build interface
Moderator: Moderators
build interface
I would like to create a totally new control panel for all units in lua. I was just wondering if there was a way to hide the default control panel. If your wondering, the features are somewhat like the warzone 2100 control panel, only without the suck features, and with other stuff.. Ill explain later i need to know this first.
While im posting, i have a question, and that is how to get rid of the background texture for control panel buttons. I want the buttons to be transparent completely, but the build icons to still show up, with about .7 alpha.
While im posting, i have a question, and that is how to get rid of the background texture for control panel buttons. I want the buttons to be transparent completely, but the build icons to still show up, with about .7 alpha.
Re: build interface
I'm pretty sure that is all possible to do. When my lua crashes the ctrlpanel disappears, and I know noize removed the texture around the buttons.
Re: build interface
So, all i have to do is crash lua. What is the most effective way to do that? Here are my ideas:
divide by 0
take the square root of 0
render something in imaginary space
caculate the volume of a singularity
attempt to render chucknorris
divide by 0
take the square root of 0
render something in imaginary space
caculate the volume of a singularity
attempt to render chucknorris
Re: build interface
Make Spring load a different ctrlpanel.txt which makes the panel 0x0 in dimensions or moves it off the screen or something like that.
Re: build interface
so can this loading situation be done with lua, or at least the moving? Because I want a backup in case of lua fail. THis is the proper design.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: build interface
Look in evolution. THere are a few neat little gadgets in there that will make your life much easier.
Re: build interface
im making a widget. However, if you are interested, i can make it a gadget...
Re: build interface
I believe forb's actually referring to the widgets there.
But look at the bottom of layout.lua. I think you can remove the control panel with a single call to that function.
But look at the bottom of layout.lua. I think you can remove the control panel with a single call to that function.
Re: build interface
man ms notepad sux. I need to start using notepad++ again.
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: build interface
Sometimes I like to challenge myself and use notepad--, it's even worse than notepad.kiki wrote:man ms notepad sux. I need to start using notepad++ again.
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: build interface
win-vi