Chili:Adding To Game: Difference between revisions
From Spring
Jump to navigationJump to search
Silentwings (talk | contribs) m Silentwings moved page Chili/Chili Adding To Game to Chili:Adding To Game |
Silentwings (talk | contribs) mNo edit summary |
||
| Line 3: | Line 3: | ||
== Getting Chili == | == Getting Chili == | ||
The Chili repository can be found at [https://github.com/jk3064/chiliui https://github.com/jk3064/chiliui]. There are | The Chili repository can be found at [https://github.com/jk3064/chiliui https://github.com/jk3064/chiliui]. There are three ways to add Chili to your game: | ||
* Include the Chili repository as a git submodule in your project. | * Include the Chili repository as a git submodule in your project. | ||
* Include Chili as a dependency in [[Modinfo.lua|modinfo.lua]]. | |||
* Checkout the Chili repository, and manually place the files & subdirs from its /luaui/chili directory into your games /luaui/widgets directory. | * Checkout the Chili repository, and manually place the files & subdirs from its /luaui/chili directory into your games /luaui/widgets directory. | ||
Revision as of 06:37, 2 September 2015
Wiki < Chili < Adding Chili To A Game
Getting Chili
The Chili repository can be found at https://github.com/jk3064/chiliui. There are three ways to add Chili to your game:
- Include the Chili repository as a git submodule in your project.
- Include Chili as a dependency in modinfo.lua.
- Checkout the Chili repository, and manually place the files & subdirs from its /luaui/chili directory into your games /luaui/widgets directory.
If you are having trouble getting Chili to run, login to the lobby and join the #moddev channel (type /j moddev). People there will help you figure it out.
Chili interaction with game internals
The Chili library is, basically, a very big widget. It is loaded as a widget by the widget handler, and it makes its functions accessible via WG. This allows 'normal' widgets to use Chili - a widget may call a function from inside WG.Chili, which instructs the chili library to create/modify a particular GUI element.