[Commits] [wesnoth/wesnoth] 90c3c0: MP Create: improved handling of campaign difficult...

GitHub noreply at github.com
Fri Aug 19 01:34:27 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 90c3c05af4cdfe28373219884241ee6340f6b9eb
      https://github.com/wesnoth/wesnoth/commit/90c3c05af4cdfe28373219884241ee6340f6b9eb
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2016-08-19 (Fri, 19 Aug 2016)

  Changed paths:
    M data/gui/window/mp_create_game.cfg
    M src/game_initialization/create_engine.cpp
    M src/game_initialization/create_engine.hpp
    M src/game_initialization/multiplayer.cpp
    M src/gui/dialogs/multiplayer/mp_create_game.cpp
    M src/gui/dialogs/multiplayer/mp_create_game.hpp

  Log Message:
  -----------
  MP Create: improved handling of campaign difficulty selection

Instead of showing the difficulty dialog in post_show and setting the retval to twindow::NONE if the
dialog was canceled, we add a custom exit hook that fires when double clicking the games list or pressing
the Create Game button that shows the dialog instead, and returns if canceled. This is much cleaner.





More information about the Commits mailing list