Gear is a connection between object and controller.
상속: GearBase
예제 #1
0
        public GMovieClip()
        {
            gearAnimation = new GearAnimation(this);
            gearColor = new GearColor(this);

            onPlayEnd = new EventListener(this, "onPlayEnd");
        }
예제 #2
0
        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");
        }
예제 #3
0
        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");
        }
예제 #4
0
        public GMovieClip()
        {
            gearAnimation = new GearAnimation(this);
            gearColor     = new GearColor(this);

            onPlayEnd = new EventListener(this, "onPlayEnd");
        }
예제 #5
0
        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 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");
        }
예제 #7
0
        public GLoader()
        {
            _playing = true;
            _url = string.Empty;
            _align = AlignType.Left;
            _verticalAlign = VertAlignType.Top;
            showErrorSign = true;

            gearAnimation = new GearAnimation(this);
            gearColor = new GearColor(this);
        }
예제 #8
0
        public GLoader()
        {
            _playing       = true;
            _url           = string.Empty;
            _align         = AlignType.Left;
            _verticalAlign = VertAlignType.Top;
            showErrorSign  = true;

            gearAnimation = new GearAnimation(this);
            gearColor     = new GearColor(this);
        }
예제 #9
0
 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));
     }
 }
예제 #10
0
 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));
     }
 }
예제 #11
0
    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));
        }
    }
예제 #12
0
 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;
 }
예제 #13
0
파일: GImage.cs 프로젝트: yinlei/Fishing
 public GImage()
 {
     gearColor = new GearColor(this);
 }
예제 #14
0
 public GImage()
 {
     gearColor = new GearColor(this);
 }