GMovieClip class.
상속: GObject, IAnimationGear, IColorGear
예제 #1
0
		override protected void ConstructExtension(ByteBuffer buffer)
		{
			buffer.Seek(0, 6);

			_titleType = (ProgressTitleType)buffer.ReadByte();
			_reverse = buffer.ReadBool();

			_titleObject = GetChild("title") as GTextField;
			_barObjectH = GetChild("bar");
			_barObjectV = GetChild("bar_v");
			_aniObject = GetChild("ani") as GMovieClip;

			if (_barObjectH != null)
			{
				_barMaxWidth = _barObjectH.width;
				_barMaxWidthDelta = this.width - _barMaxWidth;
				_barStartX = _barObjectH.x;
			}
			if (_barObjectV != null)
			{
				_barMaxHeight = _barObjectV.height;
				_barMaxHeightDelta = this.height - _barMaxHeight;
				_barStartY = _barObjectV.y;
			}
		}
예제 #2
0
    static int get_flip(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GMovieClip obj = (FairyGUI.GMovieClip)o;
            FairyGUI.FlipType   ret = obj.flip;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index flip on a nil value"));
        }
    }
예제 #3
0
    static int get_playing(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GMovieClip obj = (FairyGUI.GMovieClip)o;
            bool ret = obj.playing;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index playing on a nil value"));
        }
    }
예제 #4
0
    static int set_flip(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GMovieClip obj  = (FairyGUI.GMovieClip)o;
            FairyGUI.FlipType   arg0 = (FairyGUI.FlipType)ToLua.CheckObject(L, 2, typeof(FairyGUI.FlipType));
            obj.flip = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index flip on a nil value"));
        }
    }
예제 #5
0
    static int get_timeScale(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GMovieClip obj = (FairyGUI.GMovieClip)o;
            float ret = obj.timeScale;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index timeScale on a nil value"));
        }
    }
예제 #6
0
    static int get_ignoreEngineTimeScale(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GMovieClip obj = (FairyGUI.GMovieClip)o;
            bool ret = obj.ignoreEngineTimeScale;
            LuaDLL.lua_pushboolean(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ignoreEngineTimeScale on a nil value"));
        }
    }
예제 #7
0
    static int get_color(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GMovieClip obj = (FairyGUI.GMovieClip)o;
            UnityEngine.Color   ret = obj.color;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index color on a nil value" : e.Message));
        }
    }
예제 #8
0
    static int get_frame(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GMovieClip obj = (FairyGUI.GMovieClip)o;
            int ret = obj.frame;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index frame on a nil value"));
        }
    }
예제 #9
0
    static int get_material(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GMovieClip  obj = (FairyGUI.GMovieClip)o;
            UnityEngine.Material ret = obj.material;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index material on a nil value"));
        }
    }
예제 #10
0
    static int set_frame(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GMovieClip obj = (FairyGUI.GMovieClip)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.frame = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index frame on a nil value"));
        }
    }
예제 #11
0
    static int set_color(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GMovieClip obj  = (FairyGUI.GMovieClip)o;
            UnityEngine.Color   arg0 = ToLua.ToColor(L, 2);
            obj.color = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index color on a nil value"));
        }
    }
예제 #12
0
    static int set_playing(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GMovieClip obj = (FairyGUI.GMovieClip)o;
            bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
            obj.playing = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index playing on a nil value"));
        }
    }
예제 #13
0
    static int set_shader(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GMovieClip obj = (FairyGUI.GMovieClip)o;
            string arg0             = ToLua.CheckString(L, 2);
            obj.shader = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index shader on a nil value"));
        }
    }
예제 #14
0
    static int get_shader(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GMovieClip obj = (FairyGUI.GMovieClip)o;
            string ret = obj.shader;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index shader on a nil value"));
        }
    }
예제 #15
0
    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));
        }
    }
예제 #16
0
    static int set_material(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GMovieClip  obj  = (FairyGUI.GMovieClip)o;
            UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckObject <UnityEngine.Material>(L, 2);
            obj.material = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index material on a nil value"));
        }
    }
예제 #17
0
    static int get_onPlayEnd(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FairyGUI.GMovieClip    obj = (FairyGUI.GMovieClip)o;
            FairyGUI.EventListener ret = obj.onPlayEnd;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index onPlayEnd on a nil value"));
        }
    }
예제 #18
0
 static int SetPlaySettings(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 5);
         FairyGUI.GMovieClip obj = (FairyGUI.GMovieClip)ToLua.CheckObject <FairyGUI.GMovieClip>(L, 1);
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
         int arg2 = (int)LuaDLL.luaL_checknumber(L, 4);
         int arg3 = (int)LuaDLL.luaL_checknumber(L, 5);
         obj.SetPlaySettings(arg0, arg1, arg2, arg3);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #19
0
 static public int SetPlaySettings(IntPtr l)
 {
     try {
         FairyGUI.GMovieClip self = (FairyGUI.GMovieClip)checkSelf(l);
         System.Int32        a1;
         checkType(l, 2, out a1);
         System.Int32 a2;
         checkType(l, 3, out a2);
         System.Int32 a3;
         checkType(l, 4, out a3);
         System.Int32 a4;
         checkType(l, 5, out a4);
         self.SetPlaySettings(a1, a2, a3, a4);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
예제 #20
0
        override public void ConstructFromXML(XML cxml)
        {
            base.ConstructFromXML(cxml);

            XML xml = cxml.GetNode("Slider");

            string str;

            str = xml.GetAttribute("titleType");
            if (str != null)
            {
                _titleType = FieldTypes.ParseProgressTitleType(str);
            }
            else
            {
                _titleType = ProgressTitleType.Percent;
            }

            _titleObject = GetChild("title") as GTextField;
            _barObjectH  = GetChild("bar");
            _barObjectV  = GetChild("bar_v");
            _aniObject   = GetChild("ani") as GMovieClip;
            _gripObject  = GetChild("grip");

            if (_barObjectH != null)
            {
                _barMaxWidth      = _barObjectH.width;
                _barMaxWidthDelta = this.width - _barMaxWidth;
            }
            if (_barObjectV != null)
            {
                _barMaxHeight      = _barObjectV.height;
                _barMaxHeightDelta = this.height - _barMaxHeight;
            }

            if (_gripObject != null)
            {
                _gripObject.onTouchBegin.Add(__gripTouchBegin);
                _gripObject.onTouchEnd.Add(__gripTouchEnd);
            }
        }
예제 #21
0
    static int _CreateFairyGUI_GMovieClip(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                FairyGUI.GMovieClip obj = new FairyGUI.GMovieClip();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: FairyGUI.GMovieClip.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
예제 #22
0
        override public void ConstructFromXML(XML cxml)
        {
            base.ConstructFromXML(cxml);

            XML xml = cxml.GetNode("ProgressBar");

            string str;

            str = xml.GetAttribute("titleType");
            if (str != null)
            {
                _titleType = FieldTypes.ParseProgressTitleType(str);
            }
            else
            {
                _titleType = ProgressTitleType.Percent;
            }
            _reverse = xml.GetAttributeBool("reverse", false);

            _titleObject = GetChild("title") as GTextField;
            _barObjectH  = GetChild("bar");
            _barObjectV  = GetChild("bar_v");
            _aniObject   = GetChild("ani") as GMovieClip;

            if (_barObjectH != null)
            {
                _barMaxWidth      = _barObjectH.width;
                _barMaxWidthDelta = this.width - _barMaxWidth;
                _barStartX        = _barObjectH.x;
            }
            if (_barObjectV != null)
            {
                _barMaxHeight      = _barObjectV.height;
                _barMaxHeightDelta = this.height - _barMaxHeight;
                _barStartY         = _barObjectV.y;
            }
            Update();
        }
예제 #23
0
        public override void ConstructFromXML(XML cxml)
        {
            base.ConstructFromXML(cxml);

            XML xml = cxml.GetNode("Slider");

            string str;
            str = xml.GetAttribute("titleType");
            if (str != null)
                _titleType = FieldTypes.ParseProgressTitleType(str);
            else
                _titleType = ProgressTitleType.Percent;

            _titleObject = GetChild("title") as GTextField;
            _barObjectH = GetChild("bar");
            _barObjectV = GetChild("bar_v");
            _aniObject = GetChild("ani") as GMovieClip;
            _gripObject = GetChild("grip");

            if (_barObjectH != null)
            {
                _barMaxWidth = _barObjectH.width;
                _barMaxWidthDelta = this.width - _barMaxWidth;
            }
            if (_barObjectV != null)
            {
                _barMaxHeight = _barObjectV.height;
                _barMaxHeightDelta = this.height - _barMaxHeight;
            }

            if (_gripObject != null)
            {
                _gripObject.onTouchBegin.Add(__gripTouchBegin);
                _gripObject.onTouchEnd.Add(__gripTouchEnd);
            }
        }
예제 #24
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="anotherMc"></param>
 public void SyncStatus(GMovieClip anotherMc)
 {
     _content.SyncStatus(anotherMc._content);
 }
예제 #25
0
        public override void ConstructFromXML(XML cxml)
        {
            base.ConstructFromXML(cxml);

            XML xml = cxml.GetNode("ProgressBar");

            string str;
            str = xml.GetAttribute("titleType");
            if (str != null)
                _titleType = FieldTypes.ParseProgressTitleType(str);
            else
                _titleType = ProgressTitleType.Percent;
            _reverse = xml.GetAttributeBool("reverse", false);

            _titleObject = GetChild("title") as GTextField;
            _barObjectH = GetChild("bar");
            _barObjectV = GetChild("bar_v");
            _aniObject = GetChild("ani") as GMovieClip;

            if (_barObjectH != null)
            {
                _barMaxWidth = _barObjectH.width;
                _barMaxWidthDelta = this.width - _barMaxWidth;
                _barStartX = _barObjectH.x;
            }
            if (_barObjectV != null)
            {
                _barMaxHeight = _barObjectV.height;
                _barMaxHeightDelta = this.height - _barMaxHeight;
                _barStartY = _barObjectV.y;
            }
        }
예제 #26
0
 public GMoviceSub(UIBase uiBase, FairyGUI.GObject o)
 {
     this.uiBase  = uiBase;
     this.gObject = o.asMovieClip;
 }