Page 1 of 2
How to Design our own UI for our own map?
Posted: 06 Oct 2010, 00:10
by Muneeb Ahmed
Hi we are a group of university students working on mod development in spring rts. We're trying to create our own mod using spring engine. Please tell me how can I design my own UI for my mod?
Re: How to Design our own UI for our own map?
Posted: 06 Oct 2010, 00:19
by knorke
depends what you want: just one extra button for a special unit function, completly different interface, etc
Re: How to Design our own UI for our own map?
Posted: 06 Oct 2010, 00:32
by Muneeb Ahmed
What if i want a completely new UI. e.g: resembling to the red alert 2 UI?
Re: How to Design our own UI for our own map?
Posted: 06 Oct 2010, 01:08
by knorke
definatly possible but not easy.
you will need to learn lua/get used to springs lua.
for UI, the CA mod is always trying new things.
try that game and type /join #ca
the ca team has some ui framework called chilli.
another ui framework is redui.
Re: How to Design our own UI for our own map?
Posted: 06 Oct 2010, 01:12
by Muneeb Ahmed
ok. I'll try that. Thanks alot
Re: How to Design our own UI for our own map?
Posted: 06 Oct 2010, 01:38
by zwzsg
knorke wrote:for UI, the CA mod is always trying new things.
try that game and type /join #ca
the ca team has some ui framework called chilli.

And then you wonder why we end up backlashing CA.
Re: How to Design our own UI for our own map?
Posted: 06 Oct 2010, 23:12
by Muneeb Ahmed
Now plz tell me what to do next. I've registeered myself on ca website?
Re: How to Design our own UI for our own map?
Posted: 07 Oct 2010, 01:26
by Regret
Do not bother with CA's UI as it will be
very hard for you to port it into your own project. Use it at most as a reference after you handle the basics.
To design / create your own UI for Spring:
1.
Learn how to code in lua
2. Learn what is a widget and how it works.
3.
Learn about Spring functionality provided through lua
Specifically:
OpenGL Api,
unsynced read,
unsynced control
4. Join #lua channel on Spring's lobby and ask for help with hacking around the many obstacles you will encounter.
Re: How to Design our own UI for our own map?
Posted: 07 Oct 2010, 02:36
by smoth
Muneeb Ahmed wrote:plz
1) how old are you?
2) use complete words, people tend to dislike this brand of english.
Re: How to Design our own UI for our own map?
Posted: 07 Oct 2010, 02:58
by zwzsg
How to Design our own UI for our own map?
Map?

Re: How to Design our own UI for our own map?
Posted: 08 Oct 2010, 03:02
by Muneeb Ahmed
smoth wrote:Muneeb Ahmed wrote:plz
1) how old are you?
2) use complete words, people tend to dislike this brand of english.
I'm 19 years old. and I'm sorry. I'll try to avoid it.
Re: How to Design our own UI for our own map?
Posted: 08 Oct 2010, 03:03
by Muneeb Ahmed
zwzsg wrote:How to Design our own UI for our own map?
Map?

I mean mod!
Re: How to Design our own UI for our own map?
Posted: 08 Oct 2010, 03:30
by Argh
Hi Muneeb, glad to meet a new developer
If you would like to see a very simple graphical UI, here is the current source used for P.U.R.E. You will need to supply the graphics, but otherwise it's ready to use and it's commented fairly well.
Re: How to Design our own UI for our own map?
Posted: 08 Oct 2010, 04:21
by smoth
wow you must be a college freshman/sophomore. Pretty ambitious, are you doing a whole game or just ui?
Your question asks about a ui for a map. Are you wanting a game to run on that or you just want ui elements to show when a map is played?
Re: How to Design our own UI for our own map?
Posted: 08 Oct 2010, 04:24
by aegis
Muneeb Ahmed wrote:zwzsg wrote:How to Design our own UI for our own map?
Map?

I mean mod!
Re: How to Design our own UI for our own map?
Posted: 09 Oct 2010, 00:41
by Muneeb Ahmed
wow you must be a college freshman/sophomore. Pretty ambitious, are you doing a whole game or just ui?
Your question asks about a ui for a map. Are you wanting a game to run on that or you just want ui elements to show when a map is played?
Thanks for the compliment sir.
Actually we are a group of 5 students who volunteerly presented ourselves for a game development project at our university. Our team leader also doesn't know much about springrts. I and one of my friend were asked to work on mod development. the rest three are working on AI development. Out of us, my partner was asked to work on modeling and i was assigned to work on a custom UI. But now i've to learn about lua so that i may continue my work!
Re: How to Design our own UI for our own map?
Posted: 09 Oct 2010, 00:58
by Muneeb Ahmed
Please tell me is there any other way to work on mod or UI without Lua?
More precisely, Can we work on mod or UI using java?
Re: How to Design our own UI for our own map?
Posted: 09 Oct 2010, 01:28
by knorke
AIs can be written in all kind of langagues inclcluding java but a mods game logic and animations can only be done in Lua or this strange cob scripting language of Total Annihaltion.
The synthax of Lua is not that hard to learn, the problem will be finding the the correct spring callins etc. but if you explain what you want to do you can get help.
Posted: 09 Oct 2010, 01:42
by Muneeb Ahmed
As I'm in the "learn and try phase" right now, i was simply trying to have a UI resembling to that of warcraft 3 or red alert 2. But as it is almost impossible for me right now, i'm planning to have a combo box in my UI, with which i may switch between various AI strategies. The AI work is not my business, i only have to add a combo box!
Re: How to Design our own UI for our own map?
Posted: 09 Oct 2010, 02:34
by knorke
why a combo box?
why not just a number of buttons? much easier to do.