How to create "Graphical User Interface"?

Added by packpro over 7 years ago

Hi,

What is tool for creating an xml based format for layout?

-----------------------------------------------------------------------------------------------
Ryzom Core Features

Graphical User Interface

The GUI system allows for easy creation of user interfaces using an xml based format for layout, and features support for all the common interface controls, as well as scripting through Lua script.
It is possible to customize the graphical look and feel of the user interface. The interface controls adapt to the size of the graphics. Textures are packed together, using the interface build tool, in a large sprite sheet, which minimizes draw calls, resulting in high performance.
In order to allow for localized versions of the game in languages with varying character sets, Unicode fonts can be used. Text characters are rendered on demand in the font manager's character cache, so it is not required to build font sprite maps in advance, and your dialogue writers do not need to worry about missing characters. This also makes it possible to use any character in a font at any font size.
Interfaces can be created inside resizable and movable windows with a titlebar, which can also minimize the window to show only the titlebar. Transparency effects can be used to bring specific windows into focus or out of focus into the background.
All the common interface controls, such as buttons, labels, text boxes, combo boxes, checkboxes, and so on, are available.
A flexible general purpuse web browser component is available, which can be used for easily making more dynamic interfaces such as forums and help pages available ingame. The web browser allows you to use most basic html tags, including images, as well as to invoke client side Lua scripts.
The interface also includes a small music player, with support for common audio formats and playlists, allows the user to play his own music in the background.
All actions in the user interface can be bound to client commands and Lua scripts, through action handlers, which can be specified in the client code. Content displayed in the user interface can be dynamically linked to the client's network variable database using conditional expressions.
Keyboard shortcuts can be dynamically assigned to the action handlers.
-----------------------------------------------------------------------------------------------

Regard!


Replies (1)

RE: How to create "Graphical User Interface"? - Added by molator over 7 years ago

Here some clues:

- you will need to use the pipeline to build the interface
code\nel\tools\build_gamedata\processes\interface contains the scripts for the interface.
For details on that subject, ask Kaetemi and Sfb,

- you've got a tool in \code\nel\tools\3d\build_interface.
Binary here: http://dl.kaetemi.be/ryzom/bin/nel_tools_win_x86-0.7.0.682.7z
I never used that tool.
Looks like there no graphical tool to edit the interface, you will have to edit the files.
You may have to figure out the syntax.
You will find the data of the client in data/interface.bnp.
You can pack/unpack that file using bnp_make (previous link),
or my frontend: https://docs.google.com/leaf?id=0B3LX3q7MsUEGODhjN2U4ZGUtODdlZi00ZTk1LTg3YTItMjk4NDI4MDY5Nzkw

That's not much, but i hope it will give you a starting point.

(1-1/1)