How to Design our own UI for our own map?

How to Design our own UI for our own map?

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

Moderator: Moderators

User avatar
Muneeb Ahmed
Posts: 11
Joined: 26 Jul 2010, 09:20

How to Design our own UI for our own map?

Post 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?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: How to Design our own UI for our own map?

Post by knorke »

depends what you want: just one extra button for a special unit function, completly different interface, etc
User avatar
Muneeb Ahmed
Posts: 11
Joined: 26 Jul 2010, 09:20

Re: How to Design our own UI for our own map?

Post by Muneeb Ahmed »

What if i want a completely new UI. e.g: resembling to the red alert 2 UI?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: How to Design our own UI for our own map?

Post 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.
User avatar
Muneeb Ahmed
Posts: 11
Joined: 26 Jul 2010, 09:20

Re: How to Design our own UI for our own map?

Post by Muneeb Ahmed »

ok. I'll try that. Thanks alot
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: How to Design our own UI for our own map?

Post 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.
User avatar
Muneeb Ahmed
Posts: 11
Joined: 26 Jul 2010, 09:20

Re: How to Design our own UI for our own map?

Post by Muneeb Ahmed »

Now plz tell me what to do next. I've registeered myself on ca website?
Regret
Posts: 2086
Joined: 18 Aug 2007, 19:04

Re: How to Design our own UI for our own map?

Post 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.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: How to Design our own UI for our own map?

Post by smoth »

Muneeb Ahmed wrote:plz
1) how old are you?
2) use complete words, people tend to dislike this brand of english.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: How to Design our own UI for our own map?

Post by zwzsg »

How to Design our own UI for our own map?
Map? :?:
User avatar
Muneeb Ahmed
Posts: 11
Joined: 26 Jul 2010, 09:20

Re: How to Design our own UI for our own map?

Post 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.
User avatar
Muneeb Ahmed
Posts: 11
Joined: 26 Jul 2010, 09:20

Re: How to Design our own UI for our own map?

Post by Muneeb Ahmed »

zwzsg wrote:
How to Design our own UI for our own map?
Map? :?:
I mean mod!
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: How to Design our own UI for our own map?

Post 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.
Attachments
SimpleGUI.lua
(8.22 KiB) Downloaded 25 times
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: How to Design our own UI for our own map?

Post 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?
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: How to Design our own UI for our own map?

Post by aegis »

Muneeb Ahmed wrote:
zwzsg wrote:
How to Design our own UI for our own map?
Map? :?:
I mean mod!
User avatar
Muneeb Ahmed
Posts: 11
Joined: 26 Jul 2010, 09:20

Re: How to Design our own UI for our own map?

Post 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!
Last edited by Muneeb Ahmed on 10 Oct 2010, 11:08, edited 1 time in total.
User avatar
Muneeb Ahmed
Posts: 11
Joined: 26 Jul 2010, 09:20

Re: How to Design our own UI for our own map?

Post 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?
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: How to Design our own UI for our own map?

Post 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.
User avatar
Muneeb Ahmed
Posts: 11
Joined: 26 Jul 2010, 09:20

Post 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!
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: How to Design our own UI for our own map?

Post by knorke »

why a combo box?
why not just a number of buttons? much easier to do.
Post Reply

Return to “Lua Scripts”