Changeset 172 in tmcsimulator-scriptbuilder for trunk/src


Ignore:
Timestamp:
12/21/2019 08:16:20 AM (6 years ago)
Author:
sdanthin
Message:

IncidentTimelinePanel?.java changed time addition/removal message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scriptbuilder/gui/panels/IncidentTimelinePanel.java

    r155 r172  
    218218                    { 
    219219                        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): "); 
    221221                        int addTime = 0; 
    222222                         
     
    241241                        //does addTime but with a negative time 
    242242                        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): "); 
    244244                        int addTime = 0; 
    245245                         
     
    392392                            newSlice = 0; 
    393393                        } 
    394                         //add the time of addition to be passed through to the event itself somewhere in here? Stored in newSlice 
     394                        //creates a new script event 
    395395                        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 window 
    400 //                            editor.addEvent(eventTypeToPropertyMap.get(incidentEditFrameCurrent.currentEventType), newScriptEvent); 
    401 //                        } 
    402396                        if (incident.slices.get(newSlice) == null || incident.slices.get(newSlice).events.isEmpty()) 
    403397                        { 
Note: See TracChangeset for help on using the changeset viewer.