Variables
TomCrypto edited this page Dec 20, 2014
·
2 revisions
(WIP)
The IVariable
interface is implemented by all variables which can be added to bars. The IValueVariable
interface is implemented by all value variables (which expose some kind of Value
property, but more importantly can be edited and hence have a Changed
event). The Variable
abstract base class is a helper class for variables which directly map to a native AntTweakBar variable type, such as IntVariable
or StringVariable
. It and its descendants have plenty of properties you can modify to tweak the variable's behavior and graphical appearance. The Button variable type has a Clicked event. Each variable belongs to a bar passed to its constructor, and each variable has a Group
property (which can be null, signifying it is in no group).
- High-level wrapper
-
Integration
- [Event handling](Event handling)
- [Organizing variables](Organizing variables)
- [Error handling](Error handling)
- Scripting
- [Exception safety](Exception safety)
- [Thread safety](Thread safety)
-
Technical manual
- Context
- Bar
- Group
- IntVariable
- FloatVariable
- DoubleVariable
- BoolVariable
- EnumVariable
- StringVariable
- ColorVariable
- Color4Variable
- VectorVariable
- QuaternionVariable
- StructVariable
- Button
- Separator
- ...
- [Low-level wrapper](Low-level wrapper)