Search found 1093 matches

by white_haired_uncle
March 13th, 2024, 3:26 am
Forum: Lua Labs
Topic: [solved] Storing a test condition as a string
Replies: 5
Views: 233

Re: Storing a test condition as a string

load(new_prefs[3].discovered)() Thank you, that's the syntax I was looking for. As I rather suspected, it may not be the right way to accomplish the task, but it's the piece that was eluding me. I stored the condition as lua code because that's what I could get to work. I'd prefer to just store the...
by white_haired_uncle
March 13th, 2024, 1:23 am
Forum: Lua Labs
Topic: [solved] Storing a test condition as a string
Replies: 5
Views: 233

[solved] Storing a test condition as a string

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: table.insert(new_prefs,{ id = &...
by white_haired_uncle
March 12th, 2024, 2:41 pm
Forum: Lua Labs
Topic: What is a helptip?
Replies: 1
Views: 133

What is a helptip?

I see the line in every dialog, but what is it? I can't find an example of it being used, and when I tried I got an invalid property of widget.
by white_haired_uncle
March 10th, 2024, 8:56 pm
Forum: Ideas
Topic: [interface] tooltips for AMLAs
Replies: 0
Views: 147

[interface] tooltips for AMLAs

When selecting from custom AMLAs, the campaign author may have more to say than fits in the description field. Adding tooltip support seems like it'd be an easy enhancement.
by white_haired_uncle
March 10th, 2024, 8:53 pm
Forum: Ideas
Topic: [interface] search recall list for alignment
Replies: 4
Views: 294

Re: [interface] search recall list for alignment

Thank you.

And yes, I just so happen to be playing LotI.

And no, there's about zero chance I'm using the flatpak version. Of anything. I wouldn't use flatpack to remove systemd (though that might be fun to watch).
by white_haired_uncle
March 8th, 2024, 7:31 pm
Forum: WML Workshop
Topic: error engine: Formula in WML string cannot be evaluated ...
Replies: 1
Views: 138

error engine: Formula in WML string cannot be evaluated ...

Realizing I'd forgotten something, I restarted my turn. For just an instant an Image Not Found blinked into life, then all went according to plan. I found these in the log. I'm wondering if anyone can give me a clue where to start looking, either from the message or where it occurs in context. I'd a...
by white_haired_uncle
March 8th, 2024, 1:33 pm
Forum: WML Workshop
Topic: Compatibility-breaking changes between 1.16 and 1.17/1.18
Replies: 13
Views: 4933

Re: Compatibility-breaking changes between 1.16 and 1.17/1.18

No, the 1 and 2 (and 3, my bad) are removed. Everything is now attacks-se: /opt/wesnoth-1.17-git/share/wesnoth/data/core/images/units/human-loyalists/swordsman-attack-se-1.png /opt/wesnoth-1.17-git/share/wesnoth/data/core/images/units/human-loyalists/swordsman-attack-se-2.png /opt/wesnoth-1.17-git/s...
by white_haired_uncle
March 7th, 2024, 5:53 pm
Forum: WML Workshop
Topic: Compatibility-breaking changes between 1.16 and 1.17/1.18
Replies: 13
Views: 4933

Re: Compatibility-breaking changes between 1.16 and 1.17/1.18

units/human-loyalists/spearman-attack-ne -> ne1, ne1, ne3 units/human-loyalists/spearman-attack-se[4-14] removed units/human-loyalists/swordsman-attack-[1-2] > se[1-8] units/human-loyalists/swordsman-defend -> defend-1, defend-2 units/human-loyalists/swordsman-idle-[1-12] removed units/human-loyalis...
by white_haired_uncle
March 6th, 2024, 9:20 pm
Forum: WML Workshop
Topic: Compatibility-breaking changes between 1.16 and 1.17/1.18
Replies: 13
Views: 4933

Re: Compatibility-breaking changes between 1.16 and 1.17/1.18

Thanks. I was mostly just concerned if it should be on your list.

And I notice wmllint doesn't catch it, but I've used that like three times so I'm not sure what to expect.
by white_haired_uncle
March 6th, 2024, 9:18 pm
Forum: Ideas
Topic: [interface] search recall list for alignment
Replies: 4
Views: 294

[interface] search recall list for alignment

I'm looking to recall some chaotic units (who isn't these days?). But I can't search for them in the recall menu, I assume because "chaotic" doesn't show on the gui, it's an image. But wait, it's right there in the tooltip. Perhaps if the search included tooltips? I guess this could be a l...
by white_haired_uncle
March 6th, 2024, 4:59 pm
Forum: WML Workshop
Topic: Compatibility-breaking changes between 1.16 and 1.17/1.18
Replies: 13
Views: 4933

Re: Compatibility-breaking changes between 1.16 and 1.17/1.18

What about units/human-loyalists/spearman-attack-ranged.png?

Looks like units/human-loyalists/spearman-attack-ranged2.png is the best fit, but perhaps the idea is to use all three (I don't know anything about animation, I just got an error).

See also units/human-loyalists/spearman-attack-s-*
by white_haired_uncle
March 4th, 2024, 1:55 pm
Forum: Lua Labs
Topic: [GUI] indentation_step_size vs data width
Replies: 4
Views: 267

Re: [GUI] indentation_step_size vs data width

Oh that is just extremely cool. I was actually looking at unit_recall.cfg earlier, hoping I could steal something, but missed that part. Would be nice if the tooltips worked like they do in the recall menu (smaller font, better position). I've searched for a way to do that but no luck. And I need fi...
by white_haired_uncle
March 3rd, 2024, 8:17 pm
Forum: Lua Labs
Topic: [solved] [GUI] Passing parameters to callbacks
Replies: 3
Views: 555

Re: [GUI] Passing parameters to callbacks

I like your forwarding function idea. It allows me to abstract the actual implementation of the function from the callback assignment, which I find to be MUCH easier to follow. Thank you.
by white_haired_uncle
March 3rd, 2024, 9:47 am
Forum: Lua Labs
Topic: [GUI] indentation_step_size vs data width
Replies: 4
Views: 267

Re: [GUI] indentation_step_size vs data width

unit preview pane? Sounds interesting, but I don't know what it is.