adjusting the gui

adjusting the gui

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

adjusting the gui

Post by NOiZE »

How do i remove the borderes around the icons, and how can i make the background of the other gui elements black?

Image

Thanks in advance
User avatar
NOiZE
Balanced Annihilation Developer
Posts: 3984
Joined: 28 Apr 2005, 19:29

Post by NOiZE »

This is what i got now:

Image

Well i removed the texture now by doing this:
IRC wrote:[18:37] <trepan> are you using luaui?
[18:51] <NOiZE_3> yes
[18:54] <trepan> ah, do you want the luaui ctrlpanel, or might you want to use the default one instead?
[18:55] <trepan> the default one does not have any textures around icons
[18:55] <NOiZE_3> i do not want the textures
[18:56] <NOiZE_3> so the default one
[18:56] <trepan> than you can call widgetHandler:ConfigLayoutHandler(nil) and you should get the default
[18:56] <trepan> (from a widget)
[18:56] <trepan> use a mod widget that is enabled by default, with just that call in Initialize()
[18:59] <NOiZE_3> so for example: in gui_comm_ends.lua I add:
[18:59] <NOiZE_3> function widget:Initialize() widgetHandler:ConfigLayoutHandler(nil) end
[19:02] <trepan> yup, should do it (disable the luaui ctrlpanel)
[19:09] <NOiZE_3> cool works Thanks
[19:09] <NOiZE_3> could a widget control the frame color?
[19:09] <NOiZE_3> so i can make it completely black?
[19:10] <trepan> a widget could, but you have to have it draw the whole ctrlpanel
[19:10] <trepan> the default ctrlpanel is dark grey, there's no setting for it
[19:10] <NOiZE_3> i see
[19:10] <trepan> (that i know of)
[19:11] <NOiZE_3> heh


So how can i make all the gui elements background black?
Post Reply

Return to “Lua Scripts”