Several of our mainline campaigns are in the works for upgrades at the moment, which includes adding characters and enhancing existing scenarios. We are looking for more artwork to supplement these upgrades, including the following:
We are happy to announce that Wesnoth is now able to accept donations on Liberapay . While Wesnoth does rely on the work of dedicated volunteers, no project can function completely cost-free. Revenue from the Apple App Store and from donations goes towards maintaining our servers,...
There have been numerous important forum posts and wiki articles written by users and developers. We reference these pages a lot, and decided to put them together in a convenient list.
Write clearly, be nice to others, and be very careful when posting anything related to politics or religion. When asking for help, remember that everyone here is a volunteer. Prefer editing your previous post over double posting. No animated avatars or graphical signatures. Don’t plagiarize other’s...
I'm trying to create an example of using a spinner, since I can't find one. I had a hard time figuring out how to get the value out of it, and while it works, I'm not really happy what I did. So, what is the right way to do this? It seems like there should be a spinner.text, not...
Hi,
I need to understand the difference between and
I have two functions here:
I get two arrays, one from to , the other from to .
I will use wml.fire but I want to understand why gave different result?
also, any comment on the code itself is welcome ofc
Is there a widget that provides text search, and maybe some docs/examples?
I'm looking at data/gui/window/unit_recruit.cfg. It has a text_box, with that promising FILTER_TEXT_BOX_HINT. But I can't find the stuff that actually acts on said text.
I'd like to change some variables stored in units (namely attack.specials.dummy.name)
How to read and rewrite these variables stored in units stored in lua?
I have a table of preferences. For some preferences, I only want them to be visible if certain game events have occurred. So I'm looking to store my test condition as a string in the table for later execution. For example, the discovered field for the blood_rain item:
I uploaded a new addon some days ago.
The add-on contains multiple GUIs, some of them are related to events in the test scenario, some not.
The add-on offer a way facilite using and learning GUI development for beginners in wesnoth community. Although many comments are disorganized, the user will...
Hi,
I've got a silly idea, how to change golds description in counter (now it says Gold the amount of gold currently avaible to recruit and maintain your army and I'd like to change it to something funny(idk what exactly)...)
Any ideas how to do so?
Hi,
How to get the code of the wesnoth.interface.game_display.income function?
Or how to modify the string coming into text and tooltip?
...
I want to modify the function, NOT entirely replace it(if I don't know the exact code).
So I have this ordered list of units which I present in a tree_view along with buttons which will eventually enable the user to move a unit up or down in the list. Currently, I'm trying to use a button with a callback. My problem is I can't figure out how to pass arguments to a callback. This is...
I have a multi_page object, where one page is a unit description (same page for any selected unit, not one page per unit). I've found that when I change units I need to clear out the old data (if unit A has 5 abilities, and unit B has 4 abilities, when I switch from A to B I see B's abilities...
I spare some to learn more in Lua and I learnt quite good things but still I get always hit by the postshow process like here:
So, I will be glad if someone help me to understand the way to use a return_value in postshow
full code (can be useful to anyone) using 4 different methods
This is my fifth add-on, Gui Debug Tools.
It is written completely in Lua.
Current version is 0.10.5 for the 1.16 & 1.17 series.
First released for BfW 1.13.5.
I have found the tools in this add-on useful in making bug reports and developing add-ons.
Do you know if there are some Lua type annotations (following this format available for the
LuaAPI exposed by the game engine. I would make developing UMC so much easier !
I'm trying to create an ability that is like feeding but the +1hp max bonus applies to all units including undead. However, feeding cites LUA, and I haven't a clue how you customise an LUA-based ability.
This is a stupid little example, just for learning. I have a slider and a textbox, and I want each to update the other when they are changed. The slider works (text box updates when slider moves), but I have some issues with the textbox.
I'm trying to figure out how tree_view works. The only thing I can find to work from is the MP campaign World Conquest, in particular I'm looking at the help menu because it's easy to find. To keep things simple, I want to strip out the column that has menus and submenus, and just make a very, very...
Trying to use the minimum/maximum_value_label on a slider. I can't get the text to fit. I thought maybe the right_offset would reserve space, but no. Tried every combination of the variables I can come up with, with or without horizontal_grow and friends. devdocs is confusing (what is...
I kept running across examples with objects with entries like 'definition = default '. At some point I ran into something in the docs that confirmed my suspicion about what these were, but it was short on details and I don't remember where it was. Eventually I discovered I could set definition =...
I have a simple button, as part of a page definition, and I want to set the return value in preshow, something like:
I'm guessing this has something to do with return_value_id? I've been messing around trying things and can't figure it out. Every example I can find just has return_value_id = ok...
In this campaign, units can pick up custom items. I want to initially show a list of units which have said items, hopefully eventually adding support for acting on them (dropping an item for example). I have a table geared_units which contains units and for each unit a table of objects representing...
I don't know if this is the right place to post. If I m wrong, please direct me to the right forum.
I want to know if there is a way to update an old campaign that use campgen (python 2.x) mechanism
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum