Search found 2219 matches
- April 10th, 2024, 1:32 pm
- Forum: Writers’ Forum
- Topic: Scripts for Wesnoth
- Replies: 73
- Views: 30836
Re: Scripts for Wesnoth
Nope, Kitty hasn't been around for years.
- April 10th, 2024, 1:30 pm
- Forum: Lua Labs
- Topic: Working lua need advice deciding which method is best
- Replies: 34
- Views: 1683
Re: Working lua need advice deciding which method is best
You don't need to make it translatable at all. Just concatenate if that feels easier for you, but keep in mind that when you do need something to be translatable that you must use
stringx.vformat
(or string.format
is fine too).- April 8th, 2024, 5:39 pm
- Forum: WML Workshop
- Topic: status invulnerable
- Replies: 14
- Views: 3128
Re: status invulnerable
Regarding how invulnerable works, it just forces the hit chance to zero.
- April 8th, 2024, 5:20 pm
- Forum: Lua Labs
- Topic: [unsolvable] Custom dialog close() on space/left_click
- Replies: 4
- Views: 2654
Re: Custom dialog close() on space/left_click
Sorry, that one I'm not sure about.
- April 8th, 2024, 4:50 pm
- Forum: Lua Labs
- Topic: [unsolvable] Custom dialog close() on space/left_click
- Replies: 4
- Views: 2654
Re: Custom dialog close() on space/left_click
I'm not quite sure if this will work, but you could try this:
Completely hypothetical and untested. I'm not even sure if a close() function exists.
Code: Select all
local function pre_show(dialog)
dialog.on_left_click = function() dialog:close() end
end
- April 3rd, 2024, 6:49 am
- Forum: Ideas
- Topic: Translate wiki pages
- Replies: 5
- Views: 1520
Re: Translate wiki pages
I think translating wiki stuff is probably better done using wiki-specific methods rather than something like po4a, especially since po4a doesn't support MediaWiki markup. For example, this extension (which is not installed on our wiki though). From my perspective, the flow you've outlined seems qui...
- April 2nd, 2024, 5:53 pm
- Forum: Lua Labs
- Topic: [GUI] spinner and repeating button
- Replies: 1
- Views: 1338
Re: [GUI] spinner and repeating button
The spinner is a very new widget, so it's possible that some essential parts of interacting with it in Lua just haven't been implemented yet. I don't know any details about it.
- April 2nd, 2024, 5:51 pm
- Forum: Ideas
- Topic: New Lua functions.
- Replies: 11
- Views: 1795
Re: New Lua functions.
You can remove a sound source from the map. If it still continues to play after you do that, then that's clearly a bug.
- April 2nd, 2024, 3:55 am
- Forum: Ideas
- Topic: Translate wiki pages
- Replies: 5
- Views: 1520
Re: Translate wiki pages
I don't think it makes sense to use po files to translate entire pages like on the wiki. I'm not sure if there are other steps that could be taken to make wiki translation more accessible though.
- April 2nd, 2024, 3:52 am
- Forum: Lua Labs
- Topic: [GUI] search widget?
- Replies: 5
- Views: 1466
Re: [GUI] search widget?
I went looking, thinking there should be something that at least allows you to write definition=search or definition=filter to get the appearance of a search box, but sadly that seems to be missing. While I'm not sure if the search functionality is worth adding to core, I think the appearance would ...
- April 2nd, 2024, 3:50 am
- Forum: Lua Labs
- Topic: wml.fire and wesnoth.wml_actions.
- Replies: 2
- Views: 1394
Re: wml.fire and wesnoth.wml_actions.
wesnoth.wml_actions is the place to define new WML actions. Because of that, it is technically possible to also call a WML action via it, but doing so creates a problem – WML actions are intended to be run on substituted WML tables (ak vconfigs), but calling it manually typically ends up passing an...
- March 26th, 2024, 4:36 am
- Forum: WML Workshop
- Topic: Reset achievements for UMC campaign?
- Replies: 27
- Views: 2949
Re: Reset achievements for UMC campaign?
Also surprised to learn that Wesnoth doesn't know where the WML originates from... I vaguely recall reading ages ago that the engine maintained namespaces and prepended campaign specific strings to every variable within said campaign to avoid name clashes between variables in different campaigns (I...
- March 26th, 2024, 4:30 am
- Forum: Ideas
- Topic: New Lua functions.
- Replies: 11
- Views: 1795
Re: New Lua functions.
Do you mean wesnoth.audio.sources ? If I understand that correctly it handles sources that can play sound files. Not any sounds that are actively playing. The reason why this is so important for narration is that if the player skips dialogue we want to cancel the voiceover. The intended use-case fo...
- March 23rd, 2024, 10:09 pm
- Forum: Lua Labs
- Topic: [closed] How to make my own gui.show_story
- Replies: 8
- Views: 1722
Re: How to make my own gui.show_story
There's a lot of functionality built in to the story screen that you would have to reimplement yourself if you wanted to alter its appearance.ZombieKnight wrote: ↑March 23rd, 2024, 5:25 pm I thought I could just put true in that if, that says if theres a golden line or not...
Okay I'm sticking with the default one
- March 23rd, 2024, 10:04 pm
- Forum: Ideas
- Topic: New Lua functions.
- Replies: 11
- Views: 1795
Re: New Lua functions.
For 1 you could look into the sound source functionality. It might be able to do what you want, but I'm not sure. For 3, yes, we would like to use the GPU for IPFs, but we're not quite there yet. Compiling IPFs down into shader code is possible and would probably greatly boost performance for things...