Search found 53 matches

by Smok
November 12th, 2016, 9:21 am
Forum: WML Workshop
Topic: Terrain details?
Replies: 2
Views: 872

Terrain details?

By [store_locations] I can get terrain code, but how i can get that terrain name and editor icon?

EDIT. I see I can get terrain name in lua wesnoth.get_info(terrain_code). But what about editor icon?
by Smok
November 9th, 2016, 8:53 pm
Forum: Release Announcements, Compiling & Installation
Topic: Wesnoth 1.13.5
Replies: 83
Views: 42636

Re: Wesnoth 1.13.5

When i try to start multiplayer scenario i can't unles i put [side] tag for each side in scenario file. Starting positions on map are set. I don't have this problem in stable version. It's bug or feature?
by Smok
November 9th, 2016, 8:48 pm
Forum: Lua Labs
Topic: Tree View example?
Replies: 3
Views: 2295

Re: Tree View example?

I work with dev version now.
by Smok
November 7th, 2016, 3:19 pm
Forum: Lua Labs
Topic: Tree View example?
Replies: 3
Views: 2295

Tree View example?

I realy need some kind of example, may be this https://wiki.wesnoth.org/LuaWML/Display#wesnoth.show_dialog made using tree view insted of listbox. There is in practice no documentation for tree view, and im stuck with this code local helper = wesnoth.require "lua/helper.lua" local T = help...
by Smok
June 17th, 2016, 8:28 am
Forum: Lua Labs
Topic: [GUI] Listbox questions
Replies: 3
Views: 2305

Re: [GUI] Listbox questions

1. I think has_minimum is not a key recognized by the API. Otherwise, the id = key is set correctly. 2. 1.13 has a wesnoth.remove_dialog_item() function, but that is not in 1.12 (stable). I'm not sure how to delete items otherwise. 3. You should try a listbox without the toggle_panel sub-widget. 1....
by Smok
June 17th, 2016, 6:22 am
Forum: Lua Labs
Topic: [GUI] Listbox questions
Replies: 3
Views: 2305

[GUI] Listbox questions

I work on stable Wesnoth version. I can't change to dev now, becouse i face there of lot of strange errors in code, that on stable works perfect. 1. How can I set listbox variables? I'm trying like this: T.listbox { id = "the_list", has_minimum = false, T.list_definition... But does not wo...
by Smok
June 14th, 2016, 7:05 pm
Forum: Lua Labs
Topic: Cant use vml array in lua
Replies: 1
Views: 1688

Cant use vml array in lua

I have variable like this. [set_variables] name = themes.elves [value] code = Gg gold = 10 [/value] [value] code = Gg gold = 20 [/value] [/set_variables] and lua code: local t = wesnoth.get_variable("themes.elves") wesnoth.message(string.format(t[1].gold)) Should show 20, but error happens...
by Smok
June 14th, 2016, 12:04 pm
Forum: Lua Labs
Topic: wesnoth.terrain_types?
Replies: 2
Views: 1793

wesnoth.terrain_types?

Is there any wesnoth.unit_types equivalent for terrains? I want to make dialog like here, but with terrains instead of units: https://wiki.wesnoth.org/LuaWML/Display ... how_dialog