I have used removecmds to remove commands from the menu, but it also removes the keyboard key with it, I want to remove the command(s) from the menu ONLY but leave the associated command key working, how do I do it ?
also, how to remove the background colors of the menus like in http://www.unknown-files.net/index.php? ... &dlid=2130 ?
lua gui removecmds
Moderator: Moderators
You should really wait until trepan does his stuff..
But the transperency is done with:
(from Rays file)
and to remove commands you probably can compare the ID with the constants and just don't display it.. should make some work though..
but I will look into it when I start my work..
But the transperency is done with:
Code: Select all
for i = 1,8 do
Spring.SendCommands({"decguiopacity"})
end
and to remove commands you probably can compare the ID with the constants and just don't display it.. should make some work though..
but I will look into it when I start my work..
Nah, I mean don't display it ..
If you start with an empty function in the gui.lua, no commands are displayed.. You have to implement stuff so that they are visible.. But it's not that easy to just leave out some commands I think..
I'm to tired to think about it right now but I will get started with GUI stuff when the next version comes..
If you start with an empty function in the gui.lua, no commands are displayed.. You have to implement stuff so that they are visible.. But it's not that easy to just leave out some commands I think..
I'm to tired to think about it right now but I will get started with GUI stuff when the next version comes..
aha now I see......it removes EVERYTHING the entire command menu, actually I wanted to remove only the commands as in stop, attack, patrol....etc... not the build menu icons, only the commands in it, and I would like to remove them without removing their associated keyboard buttons, are you saying that the only way to do it is to re-write the entire menu ?
you can look at my config :
http://newmanoa.ath.cx/ctrlpanel.txt and http://newmanoa.ath.cx/gui.lua it is not a must to use both, the lua does not have any includes, recommend using without the lua as there is nothing special about it
you can look at my config :
http://newmanoa.ath.cx/ctrlpanel.txt and http://newmanoa.ath.cx/gui.lua it is not a must to use both, the lua does not have any includes, recommend using without the lua as there is nothing special about it