Page 1 of 1

Window engine

Posted: 20 Jan 2004 09:05
by Zuu
I have som tips for the window engine. I have written a window engine for my own game, so I have some experience.

I don't know the strcture of your window engine but my suggest is:
* Use a script engie (for exampel lua) for initiation of the windows and actions.

* Have predefined actions wich you can asign a button. (for exampel: Select tool 12)


With litle work you can then make a mod wich replace all windows if you use a script engine. (or a simple input-file where all windowses are declarated.)

Posted: 20 Jan 2004 09:52
by eis_os
I have written a GUI engine aswell.
I am interested in GUI related designs aswell ...

Posted: 20 Jan 2004 10:35
by TBOT
We will use our own 'language' (it's not scripting, more like configuration) for loading in everything about the gui.
In the end it will all come down to creating a new instance of a window class given a identifier for which window it should be.

Posted: 20 Jan 2004 12:57
by Zuu
I've updated my orginaly post now.

Re: Window engine

Posted: 20 Jan 2004 13:12
by TBOT
zuu wrote:* Have predefined actions wich you can asign a button. (for exampel: Select tool 12)
That also was already in our plans, we image the configuration a bit like this:

Code: Select all

Window JukeBox
{
    Title = "Jazz Jukebox";
    
    Items
    {
        //      x,  y,  w,  h, ..., Action
        Button(10, 10, 25, 25, ..., JUKEBOX_PLAY);
        ...
    }

}

Posted: 21 Jan 2004 11:04
by Zuu
Looks good. Reson why I started this was that many people don't know how much work that is behind a good window system.

Posted: 21 Jan 2004 14:26
by Hyronymus
Just a guess from someone who just started a tutorial in C++: that is C++ huh?

Posted: 21 Jan 2004 14:48
by TBOT
Hyronymus wrote:Just a guess from someone who just started a tutorial in C++: that is C++ huh?
Nope, it's a structure that might resemble the syntax of C++ a bit though, but it's certainly not C++ :)

Posted: 27 Jan 2004 13:13
by Rexxie
Looks good to me TBOT. Should be really easy to create your own mods for your engine with nice, easy scripting like that.
Hope you try to do the rest of the engine the same way, so we can all add our own little extentions or changes :)

Posted: 08 Feb 2004 15:10
by BobXP
It looks like POV-Ray to me.