Changeset 123 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder
- Timestamp:
- 09/19/2017 02:41:52 PM (9 years ago)
- Location:
- trunk/src/scriptbuilder/gui
- Files:
-
- 2 edited
-
ScriptBuilderFrame.java (modified) (4 diffs)
-
panels/TimeStampPanel.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/gui/ScriptBuilderFrame.java
r117 r123 1544 1544 script.numberOfIncidents++; 1545 1545 IncidentEditorFrame editor = new IncidentEditorFrame(script.incidents.get(indx), this); 1546 1546 1547 1547 editor.setVisible(true); 1548 1548 } … … 1616 1616 1617 1617 addIncidentName.setText(""); 1618 1618 1619 1619 int newLogNum = 100; 1620 1620 boolean found = false; … … 1633 1633 } 1634 1634 } 1635 } 1636 1635 } 1636 1637 1637 addIncidentNumber.setValue(newLogNum); 1638 1638 addIncidentStart.setValue(0); … … 1837 1837 incidentList, 1838 1838 script.incidents.get(0)); 1839 if (result == null) 1840 { 1841 return; 1842 } 1839 1843 input = result.toString(); 1840 1844 int i = 0; -
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.
