1.8 KiB
1.8 KiB
SetText
SetText is Bug Fables's text management system. It is a combination of a text renderer, a script processor and a dialogue management system. Its name comes from the name given to its main entry point which is a static Coroutine defined in MainManager.
Its main features are:
- Serve as the only organised method in the game to render any textual information on screen using the different fonttype available.
- Supports 2 distinct modes of operation: Dialogue mode or non dialogue mode. The later is a stripped version of the former that offers the advantage of not having any limits on the amount of calls running at a given time which is ideal for UI texts.
- Supports 217 different Commands offering a wide variety of features ranging from FontEffects and rendering to a simplified form of a turing complete scripting system.
- Provides the different facilities needed to manage dialogues between entities such as a Text advance system, a Backtracking system and the management of a textbox that can optionally point to its speaker using the tailtarget.
- Include an automatic line breaker called OrganiseLines (with some caveats, see OrganiseLines Known Issues).
For a more detailed understanding of the inner workings, see SetText Life Cycle and for using it, see SetText Entry Points and Commands.