[Commits] [wesnoth/wesnoth] 7dc59f: Enable tree_view gui2 widget for lua

GitHub noreply at github.com
Wed Apr 8 18:31:59 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 7dc59fcab50bd7c683fa35d2c063864f6cb5023f
      https://github.com/wesnoth/wesnoth/commit/7dc59fcab50bd7c683fa35d2c063864f6cb5023f
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-04-08 (Wed, 08 Apr 2015)

  Changed paths:
    M src/gui/widgets/tree_view.hpp
    M src/gui/widgets/tree_view_node.cpp
    M src/gui/widgets/tree_view_node.hpp
    M src/scripting/lua_gui2.cpp
    M src/scripting/lua_gui2.hpp
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Enable tree_view gui2 widget for lua

wesnoth.add_dialog_tree_node to add nodes to a tree_value
wesnoth.set_dialog_callback support for tree_views (triggers when the
selected node was changed)
wesnoth.get_dialog_value support for tree_views returns an array of
integers that describe the path to the currebntly selected node.


  Commit: dce3e24c6cf87e251d07787c0fcdb6fc3a64b079
      https://github.com/wesnoth/wesnoth/commit/dce3e24c6cf87e251d07787c0fcdb6fc3a64b079
  Author: gfgtdf <f492343 at rmqkr.net>
  Date:   2015-04-08 (Wed, 08 Apr 2015)

  Changed paths:
    M src/gui/widgets/tree_view_node.cpp
    M src/gui/widgets/tree_view_node.hpp

  Log Message:
  -----------
  fix assertion failure in tree_view gui2 widget

which could happen when folding a node with a folded subnote in a
treeview with a vertical scrollbar.

get_unfolded_size() is used calculate the size differnce when the node
is (un)folded and should so not return the size 'as if all child nodes
were unfolded' just the unfolded size of the current node.


  Commit: e4c6c8beef230eb44c39907ba09589c4e0d6cfa6
      https://github.com/wesnoth/wesnoth/commit/e4c6c8beef230eb44c39907ba09589c4e0d6cfa6
  Author: gfgtdf <tischpapier at gmail.com>
  Date:   2015-04-08 (Wed, 08 Apr 2015)

  Changed paths:
    M src/gui/widgets/tree_view.hpp
    M src/gui/widgets/tree_view_node.cpp
    M src/gui/widgets/tree_view_node.hpp
    M src/scripting/lua_gui2.cpp
    M src/scripting/lua_gui2.hpp
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Merge pull request #396 from gfgtdf/lua_tree_view

Enable tree_view gui2 widget for lua


Compare: https://github.com/wesnoth/wesnoth/compare/b406029bd6fd...e4c6c8beef23


More information about the Commits mailing list