-
Notifications
You must be signed in to change notification settings - Fork 1
Scripting
TomCrypto edited this page Dec 17, 2014
·
1 revision
You can script the different properties of your bars or variables from e.g. a text file using the SetDefinition
method. This method takes a definition string containing your parameters. For your convenience, there is an optional def
parameter in the constructor which automatically calls it as well. This method should be used e.g. as:
myVariable.SetDefinition("label='New Label' readonly=true");
myBar.SetDefinition("contained=true visible=false");
This definition string follows the same format as documented on the AntTweakBar website under TwDefine
, except it should not contain the variable's name, as you don't know what it is (it is automatically filled in by the method).
- 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)