Changeset 172 in tmcsimulator-scriptbuilder
- Timestamp:
- 12/21/2019 08:16:20 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/scriptbuilder/gui/panels/IncidentTimelinePanel.java
r155 r172 218 218 { 219 219 int offset = Integer.parseInt(e.getActionCommand().substring(9,e.getActionCommand().length())); 220 String addTimeInput = JOptionPane.showInputDialog("Add time (rounded to lowest 20s): ");220 String addTimeInput = JOptionPane.showInputDialog("Add time in seconds(this will be automatically rounded to lowest 20s): "); 221 221 int addTime = 0; 222 222 … … 241 241 //does addTime but with a negative time 242 242 int offset = Integer.parseInt(e.getActionCommand().substring(11,e.getActionCommand().length()).trim()); 243 String addTimeInput = JOptionPane.showInputDialog("Remove time (rounded to lowest 20s): ");243 String addTimeInput = JOptionPane.showInputDialog("Remove time in seconds(this will be automatically rounded to lowest 20s): "); 244 244 int addTime = 0; 245 245 … … 392 392 newSlice = 0; 393 393 } 394 // add the time of addition to be passed through to the event itself somewhere in here? Stored in newSlice394 //creates a new script event 395 395 I_ScriptEvent newScriptEvent = ScriptEvent.factoryByType(incidentEditFrameCurrent.currentEventType); 396 // if (editor != null)397 // {398 // //this is not necessary if we just load the slices after we create a new one in the window, creates some extra dummy slice for no reason.399 // //this adds a new event to the existing editor window400 // editor.addEvent(eventTypeToPropertyMap.get(incidentEditFrameCurrent.currentEventType), newScriptEvent);401 // }402 396 if (incident.slices.get(newSlice) == null || incident.slices.get(newSlice).events.isEmpty()) 403 397 {
Note: See TracChangeset
for help on using the changeset viewer.
