[Commits] [wesnoth/wesnoth] f24f6a: add wmi pager class, to allow unlimited wml menu i...

GitHub noreply at github.com
Sun Jun 29 00:53:38 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: f24f6adee142c088595647d5506737c48892bf38
      https://github.com/wesnoth/wesnoth/commit/f24f6adee142c088595647d5506737c48892bf38
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-06-28 (Sat, 28 Jun 2014)

  Changed paths:
    M projectfiles/CodeBlocks/wesnoth.cbp
    M projectfiles/VC9/wesnoth.vcproj
    M src/CMakeLists.txt
    M src/SConscript
    M src/game_events/menu_item.hpp
    M src/game_events/wmi_container.cpp
    M src/game_events/wmi_container.hpp
    M src/play_controller.cpp
    M src/play_controller.hpp
    A src/wmi_pager.cpp
    A src/wmi_pager.hpp

  Log Message:
  -----------
  add wmi pager class, to allow unlimited wml menu items

The pager is held by the play_controller and wraps around the
wmi_container, if there are too many items it adds "More Items"
or "Earlier Items" entries. These entries have special reserved
ids, if they are selected the pager traps them.

Future work might be to allow the page_size_ to be selected in
the preferences, that is currently left as a variable to make
it easy to support this.


  Commit: d684826446139cc2a3209ac2aa51c68876b1088a
      https://github.com/wesnoth/wesnoth/commit/d684826446139cc2a3209ac2aa51c68876b1088a
  Author: Chris Beck <render787 at gmail.com>
  Date:   2014-06-28 (Sat, 28 Jun 2014)

  Changed paths:
    M projectfiles/CodeBlocks/wesnoth.cbp
    M projectfiles/VC9/wesnoth.vcproj
    M src/CMakeLists.txt
    M src/SConscript
    M src/game_events/menu_item.hpp
    M src/game_events/wmi_container.cpp
    M src/game_events/wmi_container.hpp
    M src/play_controller.cpp
    M src/play_controller.hpp
    A src/wmi_pager.cpp
    A src/wmi_pager.hpp

  Log Message:
  -----------
  Merge branch 'wmi_pager'


Compare: https://github.com/wesnoth/wesnoth/compare/0441ad9d66a5...d68482644613


More information about the Commits mailing list