I have never seen a game that was not entirely in Java / Web-based to use Java for anything ingame.Muneeb Ahmed wrote:UI using java?
How to Design our own UI for our own map?
Moderator: Moderators
Re: How to Design our own UI for our own map?
Re: How to Design our own UI for our own map?
http://wildfiregames.com/0ad/
not Java but AD 0 uses javascript similiar to how spring uses Lua.
not Java but AD 0 uses javascript similiar to how spring uses Lua.
- Muneeb Ahmed
- Posts: 11
- Joined: 26 Jul 2010, 09:20
Re: How to Design our own UI for our own map?
Well thats also a good option. But question is still there! HOW?knorke wrote:why a combo box?
why not just a number of buttons? much easier to do.

-
- Moderator
- Posts: 2464
- Joined: 12 Oct 2007, 09:24
Re: How to Design our own UI for our own map?
If you know Java Lua should be easy.
My advice is to look through some Lua tutorials so you can understand the syntax then look through some of the simpler widgets in this subforum.
My advice is to look through some Lua tutorials so you can understand the syntax then look through some of the simpler widgets in this subforum.
- Muneeb Ahmed
- Posts: 11
- Joined: 26 Jul 2010, 09:20
Re: How to Design our own UI for our own map?
Ok. I'll look for that.Google_Frog wrote:If you know Java Lua should be easy.
By the way, thanks alot!

Re: How to Design our own UI for our own map?
Coding buttons / combobox:
Very straightforward, if you're OK with static positions. If you need dynamic positions (drag, resize, dynamically adding new ones) that gets a lot more complicated.
If you need an example of simple button behaviors, let me know, I have source that might suit your needs (but you will need to change various things; I don't have anything ready-made that will be totally suitable- i.e., as has been said already, learning Lua isn't optional).
The simplest way to implement this, if it's just for an AI developer to test with, is to do it as a custom Command. Then the UI is taken care of largely automatically, and you can have a testing Unit that has the custom commands built and use it during development of your project.
Very straightforward, if you're OK with static positions. If you need dynamic positions (drag, resize, dynamically adding new ones) that gets a lot more complicated.
If you need an example of simple button behaviors, let me know, I have source that might suit your needs (but you will need to change various things; I don't have anything ready-made that will be totally suitable- i.e., as has been said already, learning Lua isn't optional).
The simplest way to implement this, if it's just for an AI developer to test with, is to do it as a custom Command. Then the UI is taken care of largely automatically, and you can have a testing Unit that has the custom commands built and use it during development of your project.