GUI Label text color, aligning GUI elements

Discussion of Lua and LuaWML support, development, and ideas.

Moderator: Forum Moderators

Post Reply
Smok
Posts: 53
Joined: June 14th, 2016, 11:52 am

GUI Label text color, aligning GUI elements

Post by Smok »

How to change color of text in lablel? How to set right align of element insted of center? Can i set element on specific x,y of panel?
One more question. How to make GUI dialog be displayed to only current player?
gfgtdf
Developer
Posts: 1432
Joined: February 10th, 2013, 2:25 pm

Re: GUI Label text color, aligning GUI elements

Post by gfgtdf »

Can i set element on specific x,y of panel?
You can have a grid with a spacer of size x,y in the upper left corner. Dont know wny other solutions currently.
How to make GUI dialog be displayed to only current player?
Usually such dialogs are displayed together with wesnoth.synchronize_choice which then shows the dialog to the current player and then sends the result to the other players.
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
Smok
Posts: 53
Joined: June 14th, 2016, 11:52 am

Re: GUI Label text color, aligning GUI elements

Post by Smok »

Thanks. You fixed the most important problems.
Post Reply