Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (497)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  libGDX Gui/Ui for game engine  (Read 3140 times)
0 Members and 1 Guest are viewing this topic.
Online kingroka123

JGO Ninja


Medals: 29
Projects: 5
Exp: 1 year


Gamer's Helmet


« Posted 2013-07-19 20:07:18 »

Hey guys,

i've been trying to get some kind of ui going for a game engine i'm starting of in LibGDX and i've just been wondering how i can get the same effect as the mini- Windows in the Unity3d engine: like this

thanks

Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #1 - Posted 2013-07-19 20:09:56 »

I don't know exactly, but I think that swt/awt had something like that. It's been a bit since I delved into those though...

Online kingroka123

JGO Ninja


Medals: 29
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #2 - Posted 2013-07-19 20:13:55 »

I would use the awt gui on a heartbeat if i could somehow mix the two

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Troncoso

JGO Coder


Medals: 20



« Reply #3 - Posted 2013-07-19 20:18:20 »

What is a UI for a game engine? Do you mean a development environment? Because what you linked isn't an engine of any sort. It's a scene editor.
Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #4 - Posted 2013-07-19 20:28:20 »

I would use the awt gui on a heartbeat if i could somehow mix the two
Mix awt and swt? No. I meant choose one. But if I were you, (I'll assume that this is a big project) I would make my own UI. I would make a window class, text boxes, check boxes, text, and all of that. You can get a very neat look, since it is your look, not sun/oracle's default look. If this is a small project though, I would just use awt, due to experience. But then again, Why would I remake unity, the engine I hate?

Online kingroka123

JGO Ninja


Medals: 29
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #5 - Posted 2013-07-19 20:30:46 »

What is a UI for a game engine? Do you mean a development environment? Because what you linked isn't an engine of any sort. It's a scene editor.

That is what i meant, i couldn't get the correct term, thanks Smiley.

I would use the awt gui on a heartbeat if i could somehow mix the two
Mix awt and swt? No. I meant choose one. But if I were you, (I'll assume that this is a big project) I would make my own UI. I would make a window class, text boxes, check boxes, text, and all of that. You can get a very neat look, since it is your look, not sun/oracle's default look. If this is a small project though, I would just use awt, due to experience. But then again, Why would I remake unity, the engine I hate?


I have thought about doing that but would probably end up being extremely inefficient and clunky

Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #6 - Posted 2013-07-19 20:35:40 »

How? All it would take is rendering some boxes with text. Nothing is there that needs major efficiency. Unless you are making all of your windows on their own threads, I think you won't have a problem. IMHO, this is the easiest time you can have in organization. It's simple hierarchy. Window, sub window, and components. The best part is, the framerate doesn't even need to be too big! Look at the framerate of some windows. I found this using fraps. You can just make the framerate very low, and it would'nt matter! 24fps is exceptable! Just don't make inefficient equations. But then, would'nt you run into that same exact problem with awt or something?

Online kingroka123

JGO Ninja


Medals: 29
Projects: 5
Exp: 1 year


Gamer's Helmet


« Reply #7 - Posted 2013-07-19 20:40:25 »

I just want this engine to be amazing because i will probably be using it for all of the rest of my games. But i could give it a try.  Tongue

Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #8 - Posted 2013-07-19 20:48:46 »

I would suggest that you actually make a library instead. But if you are making an engine, then make it look like you're making it, not just using some other gui lib. If you are going to write an engine, and will use it for all of your games, put some time into it, be willing to remake the wheel, and make it your own. That way it looks like you made it. Also, I think that you should stick to code for a bit. Maybe use this as your 'make a quick game because I am bored' engine. If you are serious about a game (i.e. The next Minecraft caliber game), I think you should go line by line on the code, not use your engine, because unfortunately, unless you spend years making it, you can't make a serious game out of it. Just keep working at it, while making a game. That is what I do. I am still using the same library that I made on my first project, a pong game. I still am constantly editing it, because I find that what I have down isn't enough for my game. So I edit and edit until it can make a few games, and then use it!
EDIT:
Oh, and writing a GUI is not as hard as you think. Don't worry. Just a lot of house-keeping chores...

Offline Troncoso

JGO Coder


Medals: 20



« Reply #9 - Posted 2013-07-19 21:07:33 »

I just want this engine to be amazing because i will probably be using it for all of the rest of my games. But i could give it a try.  Tongue

First off, this GUI is not going to do anything for your engine. While you will use them together, they are 2 separate entities entirely. So, if you wanted, you could use AWT for your GUI, while keeping your engine OpenGL, if that's what you are doing.

Second, ignore wesley. He doesn't know what he's talking about. Example A:

Quote
How? All it would take is rendering some boxes with text.

Anyway. As I said, you can build your front end with any GUI library you want, as it doesn't have to directly interact with your engine. You just use the GUI to manage your engine related projects.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #10 - Posted 2013-07-19 22:52:55 »

First off, this GUI is not going to do anything for your engine. While you will use them together, they are 2 separate entities entirely.
Well, you miss the point of his question. He just wants to know how to mimic the Ui of unity. And a good GUI can make all the difference in a tool. Would you want to use a Ui that I unorganized? You quickly would find yourself in a big tangled mess of checking boxes, deleting and adding, and wanting to ditch your project.
Don't judge based on what he wants to do. He just wants to make his engine organized, and slick I use!

Second, ignore wesley. He doesn't know what he's talking about.
Ouch.  Sad That hurts me in the heart man!
Also, how is that an example of how I don't know what I'm talking about? Did you take that literally? In your terms, I think, I said that he has nothing to fear of efficiency, if all he needs is do display components on windows. Not THAT memory consuming, no? Or we're you saying its harder than I put it? Because once you have the super classes down, you only have to define traits of each component, and then the rest is automated, assuming you made a flexible framework. Just a bit of time and effort is needed.

BTW:
That quote was also a hyperbole.

Offline Jimmt
« League of Dukes »

JGO Kernel


Medals: 131
Projects: 4
Exp: 3 years



« Reply #11 - Posted 2013-07-19 23:04:20 »

Second, ignore wesley. He doesn't know what he's talking about. Example A:

Quote
How? All it would take is rendering some boxes with text.

Anyway. As I said, you can build your front end with any GUI library you want, as it doesn't have to directly interact with your engine. You just use the GUI to manage your engine related projects.
Although I do disagree with wesley's comment, there's no need to word it like that. Just point out what you think is wrong, and don't look to start a fight.
Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #12 - Posted 2013-07-19 23:12:29 »

Again, hyperbole. Meaning I am exaggerating. Really there is more than that going on, which I acknowledge. I merely was saying that you have no need to worry about efficiency if simple things are happening.
Oh, and thanks jimmt!  Wink

Offline Troncoso

JGO Coder


Medals: 20



« Reply #13 - Posted 2013-07-19 23:54:45 »

So, that sounds more offensive the second time I read it. My mistake. Seriously, though."hyperbole" or not, (in my opinion, I guess) you are pretty off the mark.
Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #14 - Posted 2013-07-19 23:57:13 »

Well, could you explain what was 'off the mark?' I wouldn't want to keep thinking false thoughts, of course!  Smiley

Offline Nate

JGO Kernel


Medals: 147
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #15 - Posted 2013-07-20 11:55:47 »

14 posts and no one mentions scene2d. Shocked Just use scene2d.

Offline ReBirth
« Reply #16 - Posted 2013-07-20 13:22:35 »

Arggh Nate, I was scrolling and like "yes, yes, no one mention scene2d! I'll break it" Tongue

Read about scene2d/tablelayout and prepare some skin sprites for button, checkbox, etc. Done.

Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Profile picture isn't relevant.


« Reply #17 - Posted 2013-07-20 16:45:24 »

14 posts and no one mentions scene2d. Shocked Just use scene2d.
Perhaps since only 3 people were talking about the thread (excluding jimmt...)?

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

BurntPizza (25 views)
2014-09-19 03:14:18

Dwinin (39 views)
2014-09-12 09:08:26

Norakomi (68 views)
2014-09-10 13:57:51

TehJavaDev (93 views)
2014-09-10 06:39:09

Tekkerue (47 views)
2014-09-09 02:24:56

mitcheeb (68 views)
2014-09-08 06:06:29

BurntPizza (51 views)
2014-09-07 01:13:42

Longarmx (38 views)
2014-09-07 01:12:14

Longarmx (44 views)
2014-09-07 01:11:22

Longarmx (40 views)
2014-09-07 01:10:19
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!