appel wrote:
Ok, I got it going, thanks.
But it's a total whack. I don't like to start a new project by copying bunch of external files into my new fresh project, and then try to clean it up, trimming it down, removing resources, etc. Oh well...
The only two files you need are simple.xml and simple.png. You can strip out things like background and twl logo, etc. That's assuming you want the look/feel of the default windows. You could also build your own if you want to keep it minimal. The only thing you have to do is include a "theme=xxxx" for any widgets you use (and also any textures).
There is also a "gamegui.xml" template. You can modify that for your liking.
Quote:
I don't even know what that MyConsole stuff is doing. :/
It's just saying how the window should be laid out. Each widget has a theme. You can modify those to look like whatever you like. You can either set them all by hand, or build a "window" [dialoglayout] and set the theme on the entire thing. That is, add all widgets to the dialoglayout and then apply theme to dialoglayout widget.
The MyConsole, is just saying "There is a scroll bar, use the default theme for it. There is a textarea, again, just use the default include from simple.xml. etc,etc That is the ref[erence] part.
If you look in simple.xml, you'll see a theme for all these, dialoglayout, scrollpane, etc.