Hello everyone,
I'm currently working on a GUI for App Game Kit. I currently have a screenshot here showing my progress:
I'm currently working on the design and the layout of the controls, so that I can read them in from a file. I currently have these controls implemented (to be created from a text file)
-Sprites, that you can deform to any size/position
-Text labels, pixel perfect, with horizontal text-alignment that works with multiple lines
-Frames, pixel perfect, that won't distort the border based size
-Buttons, pixel perfect, that are sized based on text contents within, with horizontal text-alignment that works with multiple lines
-Horizontal scroll bar that won't distort based on length
These are the controls I want to add:
-Vertical scroll bar
-Selectlist
-Checkbox
-Textbox
My current task list is as follows:
1) Implement all controls to be loaded dynamically from a text file onto the screen
2) Get them positioned to screen correctly. E.g., fix this GUI element to the top-left corner of the screen, factor in safe margins as well
3) Implement actions (e.g., fire an action when a button is clicked)
For game development, I cannot think of any other controls that one might need. My question is for you guys:
-What additional controls you might want?
-How much would one pay for a kit like this? This would also include all of my additional functions I've developed and/or collected such as a sprite/image/screen/mouse/hashtable/text-language library that would definitely help boost anyone's project to the next level.
My system allows multiple gui's to be on-screen at once (e.g., one GUI could be used as a reusable onscreen keyboard). My prior experience with GUIs has given me experience with how to capture events so it'll be quite easy to do! Just want to make sure all of the controls are finalized before I add in action code.
What do you guys think? Here's the sample initialization code for this screenshot if you guys are interested.
[guitype]
handle=pcTestV2
[label]
#omg this is sample text with a new line
x=100
y=50
fontwidth=16
fontheight=16
text=THE QUICK BROWN FOX\nJUMPED OVER THE LAZY DOG\nWHARRRGARBL
textalign=2
font=sample
depth=10
[sprite]
#woodgrain randomly positioned and stretched
spriteimageid=102
x=50
y=0
width=150
height=300
depth=15
[sprite]
#greenbox full screen ignore safe margins
spriteimageid=101
x=0
y=0
ignoresafebounds=1
width=-1
height=-1
depth=150
[sprite]
#blackbox full screen factor in safe margins
spriteimageid=100
x=0
y=0
ignoresafebounds=0
width=-1
height=-1
depth=150
[button]
#to be a clickable button
x=350
y=20
depth=15
textalign=1
frameborderwidth=16
frameborderheight=16
frameimageidstart=111
frameimageidmiddle=115
fontwidth=32
fontheight=32
text=PUSH ME IN\nCLICK ME
font=sample
fontactive=sample
[frame]
#sample frame yo
x=100
y=400
width=240
height=240
depth=25
frameborderwidth=16
frameborderheight=16
frameimageidstart=111
#let's throw in a picture of a kid eating watermelon instead of a solid blue background
frameimageidmiddle=103
[hscroll]
#sample horizontal scroll
x=100
y=300
depth=21
scrollvaluemin=1
scrollvaluemax=10
scrollvalue=10
scrollbarlength=320
scrolliconwidth=16
scrolliconheight=16
scrollimageidstart=121
Hi there. My name is Dug. I have just met you, and I love you.