Changeset 101 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder/gui/panels/IncidentTimelinePanel.java


Ignore:
Timestamp:
08/30/2017 10:05:35 AM (9 years ago)
Author:
bmcguffin
Message:

Added text field, txtEventStart, to bottom of event editor screen. This text field by default displays the time that the event starts. Altering this field will change the start time of the selected event to the new value.

File:
1 edited

Legend:

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

    r98 r101  
    8080     * event types. Values: Properties objects for those events. 
    8181     */ 
    82     Map<ScriptEventType, Properties> eventTypeToPropertyMap; 
     82    public static Map<ScriptEventType, Properties> eventTypeToPropertyMap; 
    8383 
    8484    /** 
     
    225225            } 
    226226 
    227             if (incident.slices.get(newSlice) != null) 
    228  
    229             { 
    230                 for (I_ScriptEvent se : incident.slices.get(newSlice).events) 
    231                 { 
    232                     if (ed != null) 
    233                     { 
    234                         ed.addProperty(eventTypeToPropertyMap.get(se.getScriptEventType()), se); 
    235                     } 
    236                 } 
    237             } 
     227            if (ed != null) 
     228            { 
     229                ed.setSlice(incident.slices.get(newSlice)); 
     230            } 
     231             
    238232 
    239233            /** 
     
    250244                        if (ed != null) 
    251245                        { 
    252                             ed.addProperty(eventTypeToPropertyMap.get(g.currentEventType), s); 
     246                            ed.addEvent(eventTypeToPropertyMap.get(g.currentEventType), s); 
    253247                        } 
    254248                        if (incident.slices.get(newSlice) == null) 
Note: See TracChangeset for help on using the changeset viewer.