Translations of this page:

This is an old revision of the document!
—-

12. Windows, widgets and other GUI

In this chapter we'll focus on creating in game windows and their components. Before it was necessary to create all windows by hand, but now we have a great tool called Window Edit, which simplifies the process of window creating. But before we dive deep into the internals of windows editor, we have to say a few words about windows in general.

First of all, why we would want to have in game windows? There are quite a few occasions when you want to have certain graphical user's interface ready for the course of the whole game. Let's say Main menu, which contains "New Game", "Load Game", "Save Game", "Exit Game" etc. You can of course have a separate scene, which loads whenever you enter the menu, but also you can have a window (like we do have in our test game for example) which loads upon some escape key pressing.

Another usage of windows can be for example some permanently present on screen icon (for example if we wanted to click on an icon instead of pressing the escape key for entering the menu, or if we wanted to open an inventory by clicking on the icon of backpack instead of having our sliding inventory thing).

Lastly, many of adventure game developers like to have icon based dialogues (instead of text based) which are again easily implemented by in game windows.

So our first question is - What is the window? Window is a


 
wmebook/ch12.1197464685.txt.gz · Last modified: 2007/12/12 14:04 by metamorphium
Recent changes RSS feed Creative Commons License Driven by DokuWiki