[Commits] [wesnoth/wesnoth] b576e1: Ensure that the map-editor still works

GitHub noreply at github.com
Thu Feb 25 09:14:33 UTC 2016


  Branch: refs/heads/guifixes
  Home:   https://github.com/wesnoth/wesnoth
  Commit: b576e1ae9081379222483713f85eb50130140001
      https://github.com/wesnoth/wesnoth/commit/b576e1ae9081379222483713f85eb50130140001
  Author: Andreas Löf <andreas at alternating.net>
  Date:   2016-02-25 (Thu, 25 Feb 2016)

  Changed paths:
    M data/themes/_initial.cfg
    M src/editor/controller/editor_controller.cpp
    M src/editor/map/context_manager.cpp
    M src/editor/palette/editor_palettes.cpp
    M src/menu_events.cpp
    M src/widgets/button.cpp

  Log Message:
  -----------
  Ensure that the map-editor still works

This makes the map-editor aware of the draw-layering. Since it's a
subclass of the display-class, but relies on the buttons being
re-created in the superclass I've moved that code into the subclass
instead. This way there won't be any infinite loops with a full redraw
triggering another full redraw.

I have also introduced a small workaround in the GUI1 button widget,
where it would sometimes add the postfix to overlay image names that
already contained the postfix. If the image name ends in the postfix,
the postfix is removed from the name before re-added. This ensures
that the files are successfully found.





More information about the Commits mailing list