|
|
@@ -6,6 +6,24 @@ namespace Urho3D
|
|
|
|
|
|
\section LuaScriptAPI_Classes Classes
|
|
|
|
|
|
+### Animatable : Serializable
|
|
|
+
|
|
|
+Methods:
|
|
|
+
|
|
|
+- void SetAnimationEnabled(bool enable)
|
|
|
+- void SetObjectAnimation(ObjectAnimation* objectAnimation)
|
|
|
+- void SetAttributeAnimation(const String name, AttributeAnimation* attributeAnimation, float speed = 1.0f)
|
|
|
+- void SetAttributeAnimationSpeed(const String name, float speed)
|
|
|
+- bool GetAnimationEnabled() const
|
|
|
+- ObjectAnimation* GetObjectAnimation() const
|
|
|
+- AttributeAnimation* GetAttributeAnimation(const String name) const
|
|
|
+- float GetAttributeAnimationSpeed(const String name) const
|
|
|
+
|
|
|
+Properties:
|
|
|
+
|
|
|
+- bool animationEnabled
|
|
|
+- ObjectAnimation* objectAnimation
|
|
|
+
|
|
|
### AnimatedModel : StaticModel
|
|
|
|
|
|
Methods:
|
|
|
@@ -213,6 +231,26 @@ Properties:
|
|
|
- float length (readonly)
|
|
|
- char layer
|
|
|
|
|
|
+### AttributeAnimation : Resource
|
|
|
+
|
|
|
+Methods:
|
|
|
+
|
|
|
+- AttributeAnimation() (GC)
|
|
|
+- AttributeAnimation* new()
|
|
|
+- void delete()
|
|
|
+- void SetWrapMode(WrapMode wrapMode)
|
|
|
+- void SetValueType(VariantType valueType)
|
|
|
+- bool SetKeyFrame(float time, const Variant& value)
|
|
|
+- void SetEventFrame(float time, const StringHash& eventType)
|
|
|
+- void SetEventFrame(float time, const StringHash& eventType, const VariantMap& eventData)
|
|
|
+- WrapMode GetWrapMode() const
|
|
|
+- VariantType GetValueType() const
|
|
|
+
|
|
|
+Properties:
|
|
|
+
|
|
|
+- WrapMode wrapMode
|
|
|
+- VariantType valueType
|
|
|
+
|
|
|
### Audio : Object
|
|
|
|
|
|
Methods:
|
|
|
@@ -820,7 +858,7 @@ Properties:
|
|
|
- Color color
|
|
|
- float time
|
|
|
|
|
|
-### Component : Serializable
|
|
|
+### Component : Animatable
|
|
|
|
|
|
Methods:
|
|
|
|
|
|
@@ -901,6 +939,7 @@ Methods:
|
|
|
- void SetVisible(bool enable)
|
|
|
- void Toggle()
|
|
|
- void SetAutoVisibleOnError(bool enable)
|
|
|
+- void SetCommandInterpreter(const String interpreter)
|
|
|
- void SetNumBufferedRows(unsigned rows)
|
|
|
- void SetNumRows(unsigned rows)
|
|
|
- void SetNumHistoryRows(unsigned rows)
|
|
|
@@ -911,6 +950,7 @@ Methods:
|
|
|
- LineEdit* GetLineEdit() const
|
|
|
- bool IsVisible() const
|
|
|
- bool IsAutoVisibleOnError() const
|
|
|
+- const String GetCommandInterpreter() const
|
|
|
- unsigned GetNumBufferedRows() const
|
|
|
- unsigned GetNumRows() const
|
|
|
- void CopySelectedRows() const
|
|
|
@@ -926,6 +966,7 @@ Properties:
|
|
|
- LineEdit* lineEdit (readonly)
|
|
|
- bool visible
|
|
|
- bool autoVisibleOnError
|
|
|
+- String commandInterpreter
|
|
|
- unsigned numBufferedRows
|
|
|
- unsigned numRows
|
|
|
- unsigned numHistoryRows
|
|
|
@@ -2311,8 +2352,8 @@ Properties:
|
|
|
Methods:
|
|
|
|
|
|
- bool CreateObject(const String scriptObjectType)
|
|
|
-- bool CreateObject(const String scriptFileName, const String scriptObjectType)
|
|
|
-- void SetScriptFileName(const String scriptFileName)
|
|
|
+- bool CreateObject(LuaFile* scriptFile, const String scriptObjectType)
|
|
|
+- void SetScriptFile(LuaFile* scriptFile)
|
|
|
- void SetScriptObjectType(const String scriptObjectType)
|
|
|
- void SubscribeToEvent(const String eventName, const String functionName)
|
|
|
- void UnsubscribeFromEvent(const String eventName)
|
|
|
@@ -2320,12 +2361,12 @@ Methods:
|
|
|
- void SubscribeToEvent(void* sender, const String eventName, const String functionName)
|
|
|
- void UnsubscribeFromEvent(void* sender, const String eventName)
|
|
|
- void UnsubscribeFromEvents(void* sender)
|
|
|
-- const String GetScriptFileName() const
|
|
|
+- LuaFile* GetScriptFile() const
|
|
|
- const String GetScriptObjectType() const
|
|
|
|
|
|
Properties:
|
|
|
|
|
|
-- const String scriptFileName
|
|
|
+- const LuaFile* scriptFile
|
|
|
- const String scriptObjectType
|
|
|
|
|
|
### Material : Resource
|
|
|
@@ -2756,7 +2797,7 @@ Properties:
|
|
|
- float minPriority
|
|
|
- bool alwaysUpdateOwner
|
|
|
|
|
|
-### Node : Serializable
|
|
|
+### Node : Animatable
|
|
|
|
|
|
Methods:
|
|
|
|
|
|
@@ -2932,6 +2973,19 @@ Properties:
|
|
|
- const String typeName (readonly)
|
|
|
- const String category (readonly)
|
|
|
|
|
|
+### ObjectAnimation : Resource
|
|
|
+
|
|
|
+Methods:
|
|
|
+
|
|
|
+- ObjectAnimation() (GC)
|
|
|
+- ObjectAnimation* new()
|
|
|
+- void delete()
|
|
|
+- void AddAttributeAnimation(const String name, AttributeAnimation* attributeAnimation, float speed = 1.0f)
|
|
|
+- void RemoveAttributeAnimation(const String name)
|
|
|
+- void RemoveAttributeAnimation(AttributeAnimation* attributeAnimation)
|
|
|
+- AttributeAnimation* GetAttributeAnimation(const String name) const
|
|
|
+- float GetAttributeAnimationSpeed(const String name) const
|
|
|
+
|
|
|
### Octree : Component
|
|
|
|
|
|
Methods:
|
|
|
@@ -4981,7 +5035,7 @@ Properties:
|
|
|
- bool forceAutoHint
|
|
|
- bool modalElement (readonly)
|
|
|
|
|
|
-### UIElement : Serializable
|
|
|
+### UIElement : Animatable
|
|
|
|
|
|
Methods:
|
|
|
|
|
|
@@ -6237,6 +6291,12 @@ Properties:
|
|
|
- int DRAG_RESIZE_BOTTOMLEFT
|
|
|
- int DRAG_RESIZE_LEFT
|
|
|
|
|
|
+### WrapMode
|
|
|
+
|
|
|
+- int WM_LOOP
|
|
|
+- int WM_ONCE
|
|
|
+- int WM_CLAMP
|
|
|
+
|
|
|
|
|
|
\section LuaScriptAPI_GlobalFunctions Global functions
|
|
|
- float Abs(float value)
|