Changes to pychan and FIFE in editor rewrite branch

From FIFE development wiki
Jump to: navigation, search

Contents

Changes to pychan and FIFE in editor rewrite branch

Details: SVN diff

Changes which may break compatibility with existing clients are marked with CW:

FIFE

  • Layer: New function to retrive instances at a location: std::vector<Instance*> getInstancesAt(Location& loc, bool use_exactcoordinates=false);
  • GuiManager: Proper translation of Guichan key events to FIFE key events
  • CW: ClickLabel: Labels will get their background painted
  • ToggleButton: Proper size calculation
  • Cursor: Support for native cursors
    • CW: XCursor is now a dependency on linux systems.
  • CW: CellSelectionRenderer: Modified to support selection of multiple cells
  • TimeManager: Fix for update()

Pychan

  • CW: Greedy layout engine activated
    • Widgets is now able to expand if vexpand or hexpand is set to 1. Setting vexpand or hexpand to > 1 will make them more greedy
  • CW: Private variable _parent renamed to __parent. DO NOT USE PYCHAN VARIABLES OR METHODS PREFIXED WITH A UNDERSCORE (_)! These are private/protected and may change. Use the property parent instead. Use size instead of _size, width=100, instead of _setWidth(100), etc
  • Internal:
    • New property: allWidgets
    • Background color of Labels set to transparent
  • Buttons: Fixed a few bugs regarding size calculation
  • Widget:
    • New method: InsertChild(widget, position). Inserts a widget at position in widget list
    • New method: InsertChildBefore(widget, beforeWidget). Inserts a widget right before another widget
    • New property: is_focusable
    • New properties: min_size, max_size
  • Scrollarea:
    • CW: Size is not static anymore
  • Events:
    • Events are called outside of pychan logic functions using timers.
    • Fixed an error when an event was called on a deleted widget

Misc

  • Unicode fix for filebrowser
  • Fixed a memory leak in fife_timer
Personal tools