I've finished my plugin for x4e ( and dbpro too ) called XGui.dll
It's a Basic GUI system for games ( not for applications, only for games ) so, it's far to be a complete GUI system.
It handles : Up to 16 windows and up to 256 gadgets .
The system is inspired from Magic-Windows ( I was build years ago ... for DBv1 )
I've added support for XGui inside EDITOR so, we can now choose a GUI Preset for game ( and create some ones ... )
GUI are defined in a .xgui file like this one :
[XGUI Skin for X4E]
[NAME]
arcadebar1
[XGUI]
empty.skin
[COMMENT]
1
This Skin Display SCORE and LIVES in a simple bar.
[IMAGES]
4
arcadebar1_bar.jpg
arcadebar1_lives.jpg
arcadebar1_score.jpg
arcadebar1_scoreB.jpg
[THUMBAIL]
arcadebar1_thumbail.jpg
[OPENWINDOW]
1
ALIGN
TOPLEFT
XSIZE
SCREEN
YSIZE
24
BACKGROUND
1
[ENDOPENWINDOW]
[ADDGADGET]
1
WINDOW
1
ALIGN
TOPLEFT
IMAGE
3
[ENDGADGET]
[ADDGADGET]
2
WINDOW
1
IMAGE
4
ALIGN
NEXTTO
1
ACTION
1
[ENDGADGET]
[ADDGADGET]
3
WINDOW
1
IMAGE
2
ALIGN
NEXTTO
2
[ENDGADGET]
[ADDGADGET]
4
WINDOW
1
IMAGE
4
ALIGN
NEXTTO
3
ACTION
3
[ENDGADGET]
[EOF]
As you can see, it's a simple text file that make the simple gui you see in that picture :
( Top left where there are SCORE , and LIVES )
http://xquadeditor.free.fr/XQuadEditor_Ver0.9w-XGuiSupport.jpg
( put in HTML Ref because Res is 1280x1024 ....
A Function load these .xgui file and setup the XGui system to follow the wanted windows and gadgets
Gadgets can have predefined Actino that are automatically updated ... Like Score,Lives,Energy,Mana,Timeup Displays ...
More, there are 2 options available for windows configuration :
- Do not display windows borders ( ideal for FPS and ARCADE games )
- Display windows borders ( ideal for RPG , support for Windows dragging ( positionning ) using Mouse cursor )
So the Developper life get really .... easier
I must now prepare a nice game GUI and make a new demo for your ( all ) pleasure