Search found 1225 matches
- 34 minutes ago
- Forum: Lua Labs
- Topic: Unsolved Custom dialog text "center" placement
- Replies: 26
- Views: 400
Re: Unsolved Custom dialog text "center" placement
BTW, in the code you comment "TODO Why two columns doest work, 2 columns everywhere needed" Do you mean "why can't this row have two columns?"? If so, it's because all rows in a grid must have the same number of columns. To get around this, you put grids in grids. I can provide a...
- 47 minutes ago
- Forum: Lua Labs
- Topic: Unsolved Custom dialog text "center" placement
- Replies: 26
- Views: 400
Re: Unsolved Custom dialog text "center" placement
If you want it to look like [message] you'll probably add another column with a T.image, most likely with dialog.narration_image.label = unit.profile
- Today, 11:57 am
- Forum: Lua Labs
- Topic: Unsolved Custom dialog text "center" placement
- Replies: 26
- Views: 400
Re: Unsolved Custom dialog text "center" placement
Looks pretty good here. Do you have any other add-ons installed, on perhaps another part of your add-on has a problem? It's probably more likely a version thing, what version of wesnoth are you running (I'm running a very recent 1.19 from git)? What resolution (mine is 1920x1010)? P.S. You probably ...
- Today, 11:24 am
- Forum: Lua Labs
- Topic: Unsolved Custom dialog text "center" placement
- Replies: 26
- Views: 400
Re: [solved] Custom dialog text "center" placement
If you post the rest of your code I can try it here.
- Yesterday, 7:50 pm
- Forum: Lua Labs
- Topic: Unsolved Custom dialog text "center" placement
- Replies: 26
- Views: 400
Re: Custom dialog text "center" placement
You have to use the "Post Reply" button. Then there will be an Attachments tab below the edit box.
- Yesterday, 7:40 pm
- Forum: Lua Labs
- Topic: Unsolved Custom dialog text "center" placement
- Replies: 26
- Views: 400
Re: Custom dialog text "center" placement
I don't know why there is a close button there. I'm sure it comes from click_dismiss, but it doesn't always add a close button and I don't know why it works one way or the other. I didn't notice it when I had the invisible text_box in there.
- Yesterday, 7:37 pm
- Forum: Lua Labs
- Topic: Unsolved Custom dialog text "center" placement
- Replies: 26
- Views: 400
Re: Custom dialog text "center" placement
I said vertical_ alignment . Like this: T.column { vertical_alignment="bottom", T.stacked_widget{ id = "narration_stacked_widget", And mine is centered horizontally in the gamemap (as it should be, because that's the center of the dialog too). Of course, if you end up with a scro...
- Yesterday, 6:26 pm
- Forum: Lua Labs
- Topic: Unsolved Custom dialog text "center" placement
- Replies: 26
- Views: 400
Re: Custom dialog text "center" placement
You might want to add vertical_alignment="bottom" to the column that contains your stacked_widget
- Yesterday, 3:12 pm
- Forum: Lua Labs
- Topic: Unsolved Custom dialog text "center" placement
- Replies: 26
- Views: 400
Re: Custom dialog text "center" placement
The example above is a dialog that is a fixed size (the size of the gamemap) in a fixed location (the location of the gamemap).
- Yesterday, 2:52 pm
- Forum: Lua Labs
- Topic: Unsolved Custom dialog text "center" placement
- Replies: 26
- Views: 400
Re: Custom dialog text "center" placement
You might want to add vertical_alignment="bottom" to the column that contains your stacked_widget
- Yesterday, 2:48 pm
- Forum: Lua Labs
- Topic: Unsolved Custom dialog text "center" placement
- Replies: 26
- Views: 400
Re: Custom dialog text "center" placement
That's what you asked for
BTW, see the updated version above that get's rid of the hardcoded "30".Any idea how to align the text into the middle of the game map?
- Yesterday, 1:33 pm
- Forum: Lua Labs
- Topic: Unsolved Custom dialog text "center" placement
- Replies: 26
- Views: 400
Re: Custom dialog text "center" placement
Better yet, try this: maximum_height = "(gamemap_height)", maximum_width = "(gamemap_width)", height = "(gamemap_height)", width = "(gamemap_width)", automatic_placement = false, x=0, y="(screen_height - gamemap_height)", --horizontal_placement = &qu...
- Yesterday, 1:03 pm
- Forum: Lua Labs
- Topic: Unsolved Custom dialog text "center" placement
- Replies: 26
- Views: 400
Re: Custom dialog text "center" placement
This is probably the idea you want: ... T.layer{ T.row { T.column { T.image { id = "empty" } } } } } } } } } local function preshow(dialog) dialog.narration_title.marked_up_text = "This is a really, long title. I mean, it's really long. Like it takes up the whole game map. More than t...
- Yesterday, 12:05 pm
- Forum: Lua Labs
- Topic: Unsolved Custom dialog text "center" placement
- Replies: 26
- Views: 400
Re: Custom dialog text "center" placement
This is there so the whole message is only on the game map: maximum_height = "(screen_height - 30)", maximum_width = "(gamemap_width)", horizontal_placement = "left", vertical_placement = "bottom", Any idea what to do so the message is in the middle of the sc...
- Yesterday, 1:31 am
- Forum: WML Workshop
- Topic: Nearly impassably terrain
- Replies: 3
- Views: 126
Re: Nearly impassably terrain
Oh, very good.