GearBase
Namespace:FairyGUI
Source:Assets/Scripts/UI/Gears/GearBase.cs (line 8)
abstract public class GearBase
Gear is a connection between object and controller.
Constructors
GearBase(GObject)
public GearBase(GObject owner);
| Parameter | Type | Description |
|---|---|---|
owner | GObject |
Source:UI/Gears/GearBase.cs (line 16)
Fields
_controller
protected Controller _controller;
Source:UI/Gears/GearBase.cs (line 13)
_owner
protected GObject _owner;
Source:UI/Gears/GearBase.cs (line 12)
_tweenConfig
protected GearTweenConfig _tweenConfig;
Source:UI/Gears/GearBase.cs (line 14)
disableAllTweenEffect
public static bool disableAllTweenEffect;
Source:UI/Gears/GearBase.cs (line 10)
Methods
AddStatus(string, ByteBuffer)
abstract protected void AddStatus(string pageId, ByteBuffer buffer);
| Parameter | Type | Description |
|---|---|---|
pageId | string | |
buffer | ByteBuffer |
Source:UI/Gears/GearBase.cs (line 151)
Apply()
abstract public void Apply();
Call when controller active page changed.
Source:UI/Gears/GearBase.cs (line 157)
Dispose()
public void Dispose();
Source:UI/Gears/GearBase.cs (line 21)
Init()
abstract protected void Init();
Source:UI/Gears/GearBase.cs (line 152)
Setup(ByteBuffer)
public void Setup(ByteBuffer buffer);
| Parameter | Type | Description |
|---|---|---|
buffer | ByteBuffer |
Source:UI/Gears/GearBase.cs (line 61)
UpdateFromRelations(float, float)
virtual public void UpdateFromRelations(float dx, float dy);
| Parameter | Type | Description |
|---|---|---|
dx | float | |
dy | float |
Source:UI/Gears/GearBase.cs (line 147)
UpdateState()
abstract public void UpdateState();
Call when object's properties changed.
Source:UI/Gears/GearBase.cs (line 162)
Properties
controller
public Controller controller { get; set; }
Controller object.
Source:UI/Gears/GearBase.cs (line 33)
tweenConfig
public GearTweenConfig tweenConfig { get; }
Source:UI/Gears/GearBase.cs (line 51)