Re: Code: Gui module or include file
Hi Mike,
this looks very nice, thanks for your work.
Worked very well for me!
Few thoughts:
- it seems the corrdinate system for GUI is sticked to lower-left corner. You can pass parameters to TBGL_RenderMatrix2D to make it the same as in Windows - 0,0 in top-left corner.
- maybe it would be nice to have "Align" for whole dialog, so with changing resolution the dialog would be still present in bottom right corner, just smaller of course ( is this understandable :) ? ). Like anchor.
Petr
Re: Code: Gui module or include file
No Petr, the defination of the gui elements are top, left, width, height. So for creating a gui it uses a "normal" corrdinate system with 0,0 at teh top-left corner. I just transfer this inside the code. but of couse, there are many roads to rome. :) thnaks for your hint.
Re: Code: Gui module or include file
Plus, this is far form being finished. I just wanted to show you how it is basically working.
Re: Code: Gui module or include file
Quote:
Originally Posted by Psch
- maybe it would be nice to have "Align" for whole dialog, so with changing resolution the dialog would be still present in bottom right corner, just smaller of course ( is this understandable :) ? ). Like anchor.
I envision the following. You can create the gui, and of course it needs to be saved, using XML for it. It stores also on which resolution this gui was saved. When you load the gui, it will automatically rearange/resize(optional) all the gui elements.
Re: Code: Gui module or include file
Yes,
I just did not wanted to have fixed resolution game.
So the idea was - to have dialogs designed via fixed dimension way ( like in Windows in common, you change resolution and everything gets smaller ), but when I need main menu to be centered, I want it to be centered at any resolution.
Petr
Re: Code: Gui module or include file
Yes, that is the design goal. Dimension independant.
Re: Code: Gui module or include file
If you want to try my gui version, please go here and download the temporary thinCore.dll, which includes new commands for memory allocation.
http://community.thinbasic.com/index...15262#msg15262
Re: Code: Gui module or include file
thanks Mike
I like it, seems very complicated.
Re: Code: Gui module or include file
Quote:
Originally Posted by Abraxas
thanks Mike
I like it, seems very complicated.
You mean the two user commands it has so far or the whole gui coding?
Re: Code: Gui module or include file
Sorry, i will now give you a proper answer.
I Like the look and easy of creating the windows and buttons/frames on it, I ment the routines to build it take a bit of reading to understand. The more I look at it the easier it seems though.
Is there anyway Petr could build that into TBGL or is that overkill and not worth it?
to sum up very nice