GUI organizational help please.
Posted: Tue Jul 19, 2011 12:48 pm
Hello as you can see im BlueLight.
Anyways you’re not here for my name and hello’s so let’s get to the problem. Im trying to program a game and right now my only drawback really is knows some simple stuff in java. Mostly how classes interact with each other and how methods in different classes interact with each other. Anyways I find that I can normally add something with in the GUI quite easily compared to most of this stuff which I have a loused grasp on.
If you don’t have enough information to go on ask about it and I will tell you what I got. I’m trying to plan the game out before any real coding gets done and that’s how you should be doing it. However I still haven’t made up my mind on anything.
So noticing that I seem to be able to handle GUI and that I really didn’t have a concrete plan for my GUI. So I came here to request the forums help in planning.
This is a simple picture of what I’m thinking of for the GUI so far and yes it looks like crap that’s because I used Paint… Yes paint.
Okay so basically a panel is box that holds GUI objects in and displays them. I can set up 5 of them North, West, South, East, and Center. The null space is not a panel it’s just space between center and north panel. Now here is the plan for the GUI so far.
Panel North or 1 will contain character status variables. I also saw some bar’s objects in one of the GUI based library’s so I might give one of them a try. I can think of 2 variables I would really want to a bar for but I can think of 4 that I might try it with. HP, Lust (Variable name change at any time), Magic, Stress. It will also hold information like time of day or even enemy stats possibly.
Panel West or 2 will contain your skills and will basically just show you the values to variables for skill related stuff. I am thinking that I might change it so Panel West is in face a panel east.
We’ll skip 3 and goto Panel South or 4. This is where my buttons will be held and I believe I will have to something in the API called carddraw. I just remember reading something about it on a forum for programming about week back. This is basically the panel that will hold everything the player need to interact with it.
Now back to panel Center or 3. This panel is basically how the world interacts with the player. Now you’ll noticed above it is Tab 1,2,3,4 and nullspace. Basically what im thinking so I don’t need to place buttons in place they don’t really fit I will just add tabs and that’s how you will change screen, more on that later. Anyways first screen will be a text field that is lock from the play editing. This will adds descriptions of what the player see and tells them what’s going on in the world. The second tab would be the world map and that would be a picture. Now I believe I could find a something in the API that would let me at buttons on top of a picture but I don’t have proof of it. That being said do you think I should add buttons to the picture or panel South /4? Tab 3 I think will add player damage read out. I am right now working on a system where body parts have stats and when they get damage it affects that part stats and you’re over all HP. It’s basically what im stuck on since I can’t get the test class to work (damn evil variables). Tab 4 would be appearance.
Now I would love suggestions on what I should add. One thing I haven’t put much thought into in options button or anything you might mind in one like save or load. If you think something cool tell me and I’ll tell you if I think it’s possible. I don’t want to deal with animation since it’s takes to long and im ending it there. Panel visually won’t have any difference default and you won’t be able to tell where one starts or ends for sure.
Anyways you’re not here for my name and hello’s so let’s get to the problem. Im trying to program a game and right now my only drawback really is knows some simple stuff in java. Mostly how classes interact with each other and how methods in different classes interact with each other. Anyways I find that I can normally add something with in the GUI quite easily compared to most of this stuff which I have a loused grasp on.
If you don’t have enough information to go on ask about it and I will tell you what I got. I’m trying to plan the game out before any real coding gets done and that’s how you should be doing it. However I still haven’t made up my mind on anything.
So noticing that I seem to be able to handle GUI and that I really didn’t have a concrete plan for my GUI. So I came here to request the forums help in planning.
This is a simple picture of what I’m thinking of for the GUI so far and yes it looks like crap that’s because I used Paint… Yes paint.
Okay so basically a panel is box that holds GUI objects in and displays them. I can set up 5 of them North, West, South, East, and Center. The null space is not a panel it’s just space between center and north panel. Now here is the plan for the GUI so far.
Panel North or 1 will contain character status variables. I also saw some bar’s objects in one of the GUI based library’s so I might give one of them a try. I can think of 2 variables I would really want to a bar for but I can think of 4 that I might try it with. HP, Lust (Variable name change at any time), Magic, Stress. It will also hold information like time of day or even enemy stats possibly.
Panel West or 2 will contain your skills and will basically just show you the values to variables for skill related stuff. I am thinking that I might change it so Panel West is in face a panel east.
We’ll skip 3 and goto Panel South or 4. This is where my buttons will be held and I believe I will have to something in the API called carddraw. I just remember reading something about it on a forum for programming about week back. This is basically the panel that will hold everything the player need to interact with it.
Now back to panel Center or 3. This panel is basically how the world interacts with the player. Now you’ll noticed above it is Tab 1,2,3,4 and nullspace. Basically what im thinking so I don’t need to place buttons in place they don’t really fit I will just add tabs and that’s how you will change screen, more on that later. Anyways first screen will be a text field that is lock from the play editing. This will adds descriptions of what the player see and tells them what’s going on in the world. The second tab would be the world map and that would be a picture. Now I believe I could find a something in the API that would let me at buttons on top of a picture but I don’t have proof of it. That being said do you think I should add buttons to the picture or panel South /4? Tab 3 I think will add player damage read out. I am right now working on a system where body parts have stats and when they get damage it affects that part stats and you’re over all HP. It’s basically what im stuck on since I can’t get the test class to work (damn evil variables). Tab 4 would be appearance.
Now I would love suggestions on what I should add. One thing I haven’t put much thought into in options button or anything you might mind in one like save or load. If you think something cool tell me and I’ll tell you if I think it’s possible. I don’t want to deal with animation since it’s takes to long and im ending it there. Panel visually won’t have any difference default and you won’t be able to tell where one starts or ends for sure.