Hi,
how can I change the code of AreaMex that there is a button in IceUI like UpgradeMex?
How can I assign a hotkey so that there is a AREA_MEX command send?
Can't figure out myself.
I'm just beginning to hate LUA which is incomprehensible, because of all the complex and hidden manipulation of the data structures. Argh. Can't it be c like??
Cheers,
C.
Area Mex + IceUI howto make a button?
Moderator: Moderators
Re: Area Mex + IceUI howto make a button?
Ok I give myself one answer. Write:
bind ctrl+w areamex
In the file uikeys.txt.
Where comes that "areamex" from? I would have guessed to write the defined value 10100 of the command starting the script together with the keybinding. I've read the script tutorial, and the wiki page and I must say it is not very consistent or easy to learn...
C.
bind ctrl+w areamex
In the file uikeys.txt.
Where comes that "areamex" from? I would have guessed to write the defined value 10100 of the command starting the script together with the keybinding. I've read the script tutorial, and the wiki page and I must say it is not very consistent or easy to learn...
C.
Re: Area Mex + IceUI howto make a button?
Such custom commands are added like this:
http://answers.springlobby.info/questio ... -of-a-unit
(afaik it is same whether gadget or widget)
action entry in the table that declares the command.
How to add the button to IceUI I do not know. (that would be something specifique to IceUI and not general spring lua)
http://answers.springlobby.info/questio ... -of-a-unit
(afaik it is same whether gadget or widget)
it is theWhere comes that "areamex" from?
action entry in the table that declares the command.
How to add the button to IceUI I do not know. (that would be something specifique to IceUI and not general spring lua)
Re: Area Mex + IceUI howto make a button?
Ah ok thanks, that helps me further on.
C.
C.