#10 cleaner gui code

closed
nobody
None
5
2004-01-20
2004-01-11
David Newman
No

still to be updated: scrollbars, sliders.

Discussion

  • David Newman
    David Newman
    2004-01-13

     
    Attachments
  • David Newman
    David Newman
    2004-01-14

    Unified diff for Edheldil, including scrollbar bugfix

     
    Attachments
  • David Newman
    David Newman
    2004-01-14

    Logged In: YES
    user_id=945981

    Summary of changes:

    General: Code cleaned up, tried to eliminate chance of
    causing exceptions.

    EventMgr: Renamed OnMouseOver to OnMouseMove throughout
    (OnMouseOver is misleading as it is not called every frame).
    Added OnMouseEnter, OnMouseExit, OnLoseFocus. Added
    variables lastWindowF, lastControlF, lastWindowM,
    lastControlM to track the last Focused control and the last
    control the Mouse was over.

    Window: Added BackgroundDirty, ControlsDirty so that only
    what's necessary is redrawn. If a Window is dirty then all
    on top are automatically redrawn.

    Controls: Button, Scrollbar, Slider have effectively been
    rewritten. There is now much less code in Scrollbar and Slider.

    Minor changes to CHUImporter and GUIScript to incorporate these.

     
    • status: open --> closed