Chili%3AExamples - beyond-all-reason/springrts_engine_wiki_mirror GitHub Wiki

Wiki < Chili < Examples Of Chili

Chili Widgets

A few small examples of Chili widgets, some of which were used in the Chili tutorial are the following:

1. Hello World

2. Dynamically update a label

3. Command and Build commands in a chili window

Some self-contained examples of functional Chili widgets, from real games:

You can find many more examples, including much more complex ones, in the games below.

Chili GUIs

A Chili GUI is typically built out of many different widgets, each of which uses Chili to create part of the GUI and also the Lua functions to implement that part of the GUI.

Chili is used by many Spring games, although not all. Newer games often use Chili, some older games pre-date Chili and use GUIs written directly in OpenGL. In theory, a game could have a GUI containing some Chili widgets and some non-Chili widgets, but in practice most games that adopt Chili make all or almost all of their GUI using Chili.

Games with small examples of Chili GUIs, which are good sources of simple example widgets, are

Note that these links are to the LuaUI directory of the game, in which the gui widgets can usually be found prefixed with gui_.

You can find working examples of full scale Chili GUIs in

and in other games with Public Repos. You can see many of these GUIs on the Screenshots page.

Although there are many Chili widgets that can be used in any game, there is currently no whole 'game-agnostic' minimal Chili GUI, although it would be great if someone would make one ;)

Category:Libraries