public GMovieClip() { gearAnimation = new GearAnimation(this); gearColor = new GearColor(this); onPlayEnd = new EventListener(this, "onPlayEnd"); }
public GLoader() { _playing = true; _url = string.Empty; _align = AlignType.Left; _verticalAlign = VertAlignType.Top; showErrorSign = true; gearAnimation = new GearAnimation(this); gearColor = new GearColor(this); }
static public int UpdateState(IntPtr l) { try { FairyGUI.GearAnimation self = (FairyGUI.GearAnimation)checkSelf(l); self.UpdateState(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { try { FairyGUI.GearAnimation o; FairyGUI.GObject a1; checkType(l, 2, out a1); o = new FairyGUI.GearAnimation(a1); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
static int get_gearAnimation(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.GMovieClip obj = (FairyGUI.GMovieClip)o; FairyGUI.GearAnimation ret = obj.gearAnimation; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index gearAnimation on a nil value" : e.Message)); } }
public GearBase GetGear(int index) { GearBase gear = _gears[index]; if (gear == null) { switch (index) { case 0: gear = new GearDisplay(this); break; case 1: gear = new GearXY(this); break; case 2: gear = new GearSize(this); break; case 3: gear = new GearLook(this); break; case 4: gear = new GearColor(this); break; case 5: gear = new GearAnimation(this); break; case 6: gear = new GearText(this); break; case 7: gear = new GearIcon(this); break; default: throw new System.Exception("FairyGUI: invalid gear index!"); } _gears[index] = gear; } return gear; }