Got TextFields for user input. Ugh but i still have a ways to go with this. Like for instance Culling the text and offsetting it if its longer than the text field area. Secondly being able to place the cursor somewhere as well as highlighting text and deleting it.
anyways its coming along fairly nicely
I will have a demo update up as soon as i get this working decently.
Made some code changes. Now you can simply do this in your main code to use the GUI
#include "demon_gui.dba"
gosub DEMON_initgui
SET DISPLAY MODE 640, 480, 32
myskin = DEMON_createskin()
DEMON_setskinwindow(myskin, "goth")
DEMON_setskinfont(myskin,"arial",14,rgb(205,205,205),rgb(155,155,155),rgb(255,255,255))
DEMON_setclosemin(myskin, 80, 8, 96, 8)
mywindow = DEMON_createwindow("My window",20,50,320,240,1,1,1,myskin)
DEMON_createbutton("Button one",10,40,120,20,mywindow)
DEMON_createlabel("Label one",10,10,100,30,mywindow)
myotherwindow = DEMON_createwindow("Other Window",50,200,520,190,1,1,1,myskin)
DEMON_createlabel("Label two",10,10,100,30,myotherwindow)
DEMON_createtextfield(10,50,400,20,myotherwindow)
sync on
do
DEMON_updategui()
sync
loop
Those gadget creation functions like DEMON_button do return an id for use with the event system later on
LIKE OMFG IM TEH KING OF TEH INTARWEB!