public GMovieClip() { gearAnimation = new GearAnimation(this); gearColor = new GearColor(this); onPlayEnd = new EventListener(this, "onPlayEnd"); }
public GTextField() : base() { _textFormat = new TextFormat(); _textFormat.font = UIConfig.defaultFont; _textFormat.size = 12; _textFormat.color = Color.black; _textFormat.lineSpacing = 3; _textFormat.letterSpacing = 0; TextFormat tf = _textField.textFormat; tf.CopyFrom(_textFormat); _textField.textFormat = tf; _text = string.Empty; _autoSize = AutoSizeType.Both; _widthAutoSize = true; _heightAutoSize = true; _textField.autoSize = true; _textField.wordWrap = false; gearColor = new GearColor(this); onFocusIn = new EventListener(this, "onFocusIn"); onFocusOut = new EventListener(this, "onFocusOut"); onChanged = new EventListener(this, "onChanged"); }
public GTextField() : base() { underConstruct = true; _textFormat = new TextFormat(); _textFormat.font = UIConfig.defaultFont; _textFormat.size = 12; _textFormat.color = Color.black; _textFormat.lineSpacing = 3; _textFormat.letterSpacing = 0; _strokeColor = new Color(0, 0, 0, 1); UpdateTextFormat(); _text = string.Empty; _align = AlignType.Left; _verticalAlign = VertAlignType.Top; this.autoSize = AutoSizeType.Both; underConstruct = false; gearColor = new GearColor(this); onFocusIn = new EventListener(this, "onFocusIn"); onFocusOut = new EventListener(this, "onFocusOut"); onChanged = new EventListener(this, "onChanged"); }
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.GearColor self = (FairyGUI.GearColor)checkSelf(l); self.UpdateState(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { try { FairyGUI.GearColor o; FairyGUI.GObject a1; checkType(l, 2, out a1); o = new FairyGUI.GearColor(a1); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
static int get_gearColor(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); FairyGUI.GImage obj = (FairyGUI.GImage)o; FairyGUI.GearColor ret = obj.gearColor; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index gearColor 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; }
public GImage() { gearColor = new GearColor(this); }