Changeset 122 in tmcsimulator-scriptbuilder for trunk


Ignore:
Timestamp:
09/19/2017 02:15:02 PM (9 years ago)
Author:
bmcguffin
Message:

Added message panel warning user, if the first event placed in an incident is placed at a time other than 00:00:00, that the event will be moved to time 00:00:00 relative to the start of the incident.

Commented out code in ScriptIncident?.addNewEvent which rounds event start times to the nearest minute. I need to find a better solution which doesn't damage the program's ability to accurately generate scripts.

Location:
trunk/src/scriptbuilder
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/scriptbuilder/gui/application.properties

    r121 r122  
    1 #Thu, 14 Sep 2017 11:38:45 -0700 
     1#Tue, 19 Sep 2017 15:12:22 -0700 
    22 
    33Application.revision=0 
  • trunk/src/scriptbuilder/gui/panels/IncidentTimelinePanel.java

    r117 r122  
    243243                if (getTopLevelAncestor() instanceof IncidentEditorFrame) 
    244244                { 
    245                     if (incident.slices.size() == 0) 
     245                    if (incident.slices.size() == 0 && newSlice != 0) 
    246246                    { 
     247                        JOptionPane.showMessageDialog(g, "This is the first event in the incident.\n" 
     248                                + "Therefore, it will be automatically positioned at time 00:00:00,\n" 
     249                                + "relative to the start of the incident.", "Event will be moved", JOptionPane.INFORMATION_MESSAGE); 
    247250                        newSlice = 0; 
    248251                    } 
  • trunk/src/scriptbuilder/structures/ScriptIncident.java

    r120 r122  
    188188    public void addNewEvent(I_ScriptEvent ev, int start) 
    189189    { 
     190        /* 
    190191        int leftoverSeconds = start % 60; 
    191192         
     
    202203            } 
    203204        } 
     205        */ 
    204206         
    205207        //Check to see if there's already a timeslice here 
Note: See TracChangeset for help on using the changeset viewer.