GUI Label text color, aligning GUI elements

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

Moderators: Forum Moderators, Developers

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

GUI Label text color, aligning GUI elements

Post by Smok » November 12th, 2016, 2:17 pm

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: 1001
Joined: February 10th, 2013, 2:25 pm

Re: GUI Label text color, aligning GUI elements

Post by gfgtdf » November 12th, 2016, 8:53 pm

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: 52
Joined: June 14th, 2016, 11:52 am

Re: GUI Label text color, aligning GUI elements

Post by Smok » November 12th, 2016, 9:54 pm

Thanks. You fixed the most important problems.

Post Reply