Search found 243 matches

by ZombieKnight
May 16th, 2024, 7:24 pm
Forum: Lua Labs
Topic: [resolution] problems
Replies: 4
Views: 134

Re: [resolution] problems

Celtic_Minstrel wrote: May 16th, 2024, 1:07 pm This sounds like a bug to me.
Hmmff
That's poor
How to make my dialog working then?
by ZombieKnight
May 16th, 2024, 6:47 pm
Forum: Lua Labs
Topic: [unsolvable] Access event content
Replies: 9
Views: 288

Re: [unsolvable] Access event content

Hmm
... I see
I wanted to save and load anything at any time.
by ZombieKnight
May 16th, 2024, 2:56 pm
Forum: Lua Labs
Topic: [unsolvable] Access event content
Replies: 9
Views: 288

Re: [unsolvable] Access event content

... hmm not sure
Can I use wesnoth.game_events.on_event and wesnoth.current.event_context to re-create all those events (right after I erase them)?
by ZombieKnight
May 16th, 2024, 8:41 am
Forum: Lua Labs
Topic: [resolution] problems
Replies: 4
Views: 134

Re: [resolution] problems

You can't use side 1 turn 1, or turn refresh, or one of those? Jup I can. BUT I need to have start event so turn 1 works. AND whenever I change theme dialog only works in next event (not one that is fired with [fire_event]) So I need to know why does it overwrite only after event. Any idea what mig...
by ZombieKnight
May 16th, 2024, 8:31 am
Forum: Lua Labs
Topic: [unsolvable] Access event content
Replies: 9
Views: 288

Re: [unsolvable] Access event content

Ravana wrote: May 16th, 2024, 8:18 am It probably does not catch everything, but you can overwrite wesnoth.wml_actions.event to save what is given to it.
True... but how to notice when it's fired?
by ZombieKnight
May 16th, 2024, 7:30 am
Forum: Lua Labs
Topic: [resolution] problems
Replies: 4
Views: 134

[resolution] problems

Why does in start event gamemap_size == screen_size ? How to repair it so gamemap_size == actual_gamemap_size ? The green area is on x=0. y=0, w = "(gamemap_width)", h = "(gamemap_height)" (so it should be only above the gamemap) In start event: (doesn't work) Screenshot_20240516...
by ZombieKnight
May 16th, 2024, 7:19 am
Forum: Lua Labs
Topic: [~solved] Global_variables with Lua
Replies: 4
Views: 202

Re: Global_variables with Lua

Using wesnoth.wml_actions ...
by ZombieKnight
May 16th, 2024, 7:16 am
Forum: Lua Labs
Topic: [unsolvable] Access event content
Replies: 9
Views: 288

Re: Access event content

Double checked I can't do it.
by ZombieKnight
May 14th, 2024, 5:43 pm
Forum: Lua Labs
Topic: [solved] Gui2 dialog formatting
Replies: 14
Views: 384

Re: Gui2 dialog formatting

Code showing two images for comparison of the grid and canvas Lua: -- to make code shorter local wml_actions = wesnoth.wml_actions -- starting values local font_size_title = 70000 local font_size_message = 70000 local font_family_title = "Oldania ADF Std" local font_family_message = "...
by ZombieKnight
May 13th, 2024, 2:23 pm
Forum: Lua Labs
Topic: [solved] Gui2 dialog formatting
Replies: 14
Views: 384

Re: Gui2 dialog formatting

Okay, maybe I don't but it took me so much time to ad it there...
Ok I'll remove it.
Thanks for help Ravana and white uncle ^^ <3
by ZombieKnight
May 13th, 2024, 1:14 pm
Forum: Lua Labs
Topic: [solved] Gui2 dialog formatting
Replies: 14
Views: 384

Re: Gui2 dialog formatting

I need it there.
by ZombieKnight
May 13th, 2024, 10:53 am
Forum: Lua Labs
Topic: [solved] Gui2 dialog formatting
Replies: 14
Views: 384

Re: Gui2 dialog formatting

Great, works
Thanks ^^
Now any idea how to remove that cancel button (one due to the text input window)
Screenshot_20240513_123535.png
by ZombieKnight
May 12th, 2024, 7:26 pm
Forum: Lua Labs
Topic: [solved] Gui2 dialog formatting
Replies: 14
Views: 384

Re: Gui2 dialog formatting

white_haired_uncle wrote: May 12th, 2024, 6:07 pm I think it is at the very bottom, but it has a border:

Code: Select all

border = "all",
border_size = 5,
Try border = "left,right,top" ?
No, didn't worked (I've tried to set them all to 0 (default value))
Any other idea?
by ZombieKnight
May 12th, 2024, 5:40 pm
Forum: Lua Labs
Topic: [solved] Gui2 dialog formatting
Replies: 14
Views: 384

Re: Gui2 dialog formatting

About that box... idk it's just for skiping messages and I don't really care where it is.
by ZombieKnight
May 12th, 2024, 5:40 pm
Forum: Lua Labs
Topic: [solved] Gui2 dialog formatting
Replies: 14
Views: 384

Re: Gui2 dialog formatting

Well, I'm terrible with lining things up, but it looks like this column is right justified: T.column { -- SHOULD HORIZONTAL_ALIGNMENT = "CENTER" GO HERE??? vertical_alignment="bottom", T.stacked_widget{ id = "narration_stacked_widget", So, while it looks like you've ce...