Topic: Same player shout again
Atanase Topic Opener |
Posted at: 2021-04-19, 15:56
Hello, Yes, I'm back for new questions. I'm trying to use the function "campaign_message_with_objective(message, objective[, sleeptime])" I saw, in other tutorial, how to use it for the stock windows, but I want to use it for the economy windows
in the mission_thread.lua and
in texts_lua. (not too easy to switch from one to the other each time I change a coma.) Questions: I'm so sorry to bother you with all of these questions, but be sure I spent a lot of time looking right and left. In particular in the Development / Documentation section. I think my idea of making a well-commented and documented skeleton for use by apprentice coders is not so bad. Oups.... it is ....shoot again and not ...shout... crazy frenchy. Edited: 2021-04-19, 15:57
La connaissance ne vaut que si elle est partagée par le plus grand nombre. |
Nordfriese |
Posted at: 2021-04-19, 16:13
The name of a window can only be found by digging through the C++ code. The economy options window is called Images paths are relative to the Widelands data directory. You can also include custom images in the map's "pics" directory and reference them as Some flags can be found in
You can access and click the toolbar buttons and dropdowns via scripting. Take a look at the 1st tutorial, and also the UI testsuite ( Edited: 2021-04-19, 16:21
Top Quote |
Atanase Topic Opener |
Posted at: 2021-04-19, 17:43
Thank you very, very much. I did the 4 tutorials and 3 campaigns out of the 4, plus 3 or 4 other maps. I must admit that I had totally forgotten that the 1st tutorial did what I wanted. All my excuses. It's perfect for me, just what I wanted. Thanks again. Thanks also for being Master Miner while digging into C ++ code. La connaissance ne vaut que si elle est partagée par le plus grand nombre. |