Changeset 31 in tmcsimulator-scriptbuilder for trunk/src/scriptbuilder


Ignore:
Timestamp:
08/02/2017 12:49:41 PM (9 years ago)
Author:
bmcguffin
Message:

Fixed bug in which event icons failed to be rendered past the end of an incident. Also fixed a bug in which new events could not be added past the end of an incident.

Location:
trunk/src/scriptbuilder/gui/panels
Files:
2 edited

Legend:

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

    r18 r31  
    161161            { 
    162162                ed.setVisible(true); 
     163                System.out.println(incident.slices.get(newSlice).toXML()); 
    163164            } 
    164165        } 
     
    285286                } 
    286287 
    287                 newSize = new Dimension((incident.length + incident.offset) 
     288                newSize = new Dimension((ScriptBuilderGuiConstants.MAX_SIMULATION_LENGTH) 
    288289                        / ScriptBuilderGuiConstants.HORIZONTAL_TICK_RESOLUTION 
    289290                        * ScriptBuilderGuiConstants.PIXEL_WIDTH_PER_HORIZONTAL_TICK, 
  • trunk/src/scriptbuilder/gui/panels/TimelineTickPanel.java

    r1 r31  
    187187            EventIconDrawer.DrawEventIcon(g2d, 
    188188                    ((ScriptBuilderFrame) this.getTopLevelAncestor()).currentEventType, 
    189                     x + 5, y + 10); 
     189                    x, y); 
    190190        } 
    191191    } 
Note: See TracChangeset for help on using the changeset viewer.