GUI Label text color, aligning GUI elements

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

Moderators: Forum Moderators, Developers

GUI Label text color, aligning GUI elements

Postby 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?
Smok
 
Posts: 49
Joined: June 14th, 2016, 11:52 am

Re: GUI Label text color, aligning GUI elements

Postby 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.
gfgtdf
Developer
 
Posts: 908
Joined: February 10th, 2013, 2:25 pm

Re: GUI Label text color, aligning GUI elements

Postby Smok » November 12th, 2016, 9:54 pm

Thanks. You fixed the most important problems.
Smok
 
Posts: 49
Joined: June 14th, 2016, 11:52 am


Return to Lua Labs

Who is online

Users browsing this forum: No registered users and 1 guest