Opened 16 years ago

Closed 16 years ago

#62 closed enhancement (fixed)

Support two modes of operation in TrackWidget

Reported by: Henrik Heimbuerger Owned by: Henrik Heimbuerger
Priority: critical Milestone: MS1: First release (1.0.0)
Component: track Version: pre-1.0
Keywords: design mode, race mode, redraw Cc:

Description

The mode is determined by a boolean parameter in the constructor.

Mode 'design':

  • allows selecting track sections
  • redraw is triggered by mouse events or by an internal thread when the mouse button is held down on a control

Mode 'race':

  • shows all player's thrust gauges
  • shows cars on the track
  • redraw is triggered by RaceEngine, control invocations do not trigger a redraw!

Change History (3)

comment:1 Changed 16 years ago by Henrik Heimbuerger

Status: newassigned

comment:2 Changed 16 years ago by SVN

New commit by hheimbuerger (revision [206]):
[Fix for ticket #62] Added support for two different modes of operation in the TrackWidget.

The differences are documented in the javadoc of the TrackWidgetMode enum.

The constructor invocations in the TrackDesigner and the TrackView have been modified to use MODE_DESIGN and MODE_RACE, respectively.

Note that the animation thread has to be removed as soon as the animation is triggered by the RaceEngine!

comment:3 Changed 16 years ago by Henrik Heimbuerger

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.