Changeset 123 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui/panels/TimeStampPanel.java
- Timestamp:
- 09/19/2017 02:41:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/gui/panels/TimeStampPanel.java
r118 r123 6 6 import java.awt.Graphics2D; 7 7 import javax.swing.JPanel; 8 import scriptbuilder.gui.IncidentEditorFrame; 8 9 import scriptbuilder.gui.ScriptBuilderGuiConstants; 9 10 import scriptbuilder.structures.ScriptIncident; … … 151 152 { 152 153 super.paint(g); 153 154 String title = ""; 154 155 Graphics2D g2d = (Graphics2D) g; 155 156 g2d.setFont(ScriptBuilderGuiConstants.TIMELINE_TICK_TIME_FONT); … … 160 161 + ScriptBuilderGuiConstants.TICK_TIMELINE_LEFT_MARGIN; 161 162 int seconds = offset; 163 if(getTopLevelAncestor() instanceof IncidentEditorFrame) 164 { 165 title = "Incident:"; 166 } 162 167 163 168 // Major Ticks 164 169 if (isAbsolute) 165 170 { 166 g2d.setColor(Color.red); 171 g2d.setColor(Color.getHSBColor(.5f, .9f, .5f)); 172 title = "Script:"; 167 173 } 168 174 else … … 170 176 g2d.setColor(ScriptBuilderGuiConstants.TIMELINE_TICK_COLOR); 171 177 } 178 g2d.drawString(title, 0, 18); 172 179 for (int i = ScriptBuilderGuiConstants.TICK_TIMELINE_LEFT_MARGIN; 173 180 i <= longestLengthPlusMargin;
Note: See TracChangeset
for help on using the changeset viewer.
