Exemplo n.º 1
0
 public override void Unity_Deserialize(int depth)
 {
     if (depth <= 7)
     {
         this.thumb = (SerializedStateReader.Instance.ReadUnityEngineObject() as Transform);
     }
     if (depth <= 7)
     {
         this.mBG = (SerializedStateReader.Instance.ReadUnityEngineObject() as UIWidget);
     }
     if (depth <= 7)
     {
         this.mFG = (SerializedStateReader.Instance.ReadUnityEngineObject() as UIWidget);
     }
     this.mValue        = SerializedStateReader.Instance.ReadSingle();
     this.mFill         = (UIProgressBar.FillDirection)SerializedStateReader.Instance.ReadInt32();
     this.numberOfSteps = SerializedStateReader.Instance.ReadInt32();
     if (depth <= 7)
     {
         int num = SerializedStateReader.Instance.ReadInt32();
         this.onChange = new List <EventDelegate>(num);
         for (int i = 0; i < num; i++)
         {
             EventDelegate eventDelegate = new EventDelegate();
             eventDelegate.Unity_Deserialize(depth + 1);
             this.onChange.Add(eventDelegate);
         }
     }
 }
    static int set_fillDirection(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIProgressBar obj = (UIProgressBar)o;
            UIProgressBar.FillDirection arg0 = (UIProgressBar.FillDirection)ToLua.CheckObject(L, 2, typeof(UIProgressBar.FillDirection));
            obj.fillDirection = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index fillDirection on a nil value"));
        }
    }
    static int get_fillDirection(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIProgressBar obj = (UIProgressBar)o;
            UIProgressBar.FillDirection ret = obj.fillDirection;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index fillDirection on a nil value"));
        }
    }
Exemplo n.º 4
0
    private static int set_fillDirection(IntPtr L)
    {
        object obj = null;
        int    result;

        try
        {
            obj = ToLua.ToObject(L, 1);
            UIProgressBar uIProgressBar = (UIProgressBar)obj;
            UIProgressBar.FillDirection fillDirection = (UIProgressBar.FillDirection)((int)ToLua.CheckObject(L, 2, typeof(UIProgressBar.FillDirection)));
            uIProgressBar.fillDirection = fillDirection;
            result = 0;
        }
        catch (Exception ex)
        {
            result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index fillDirection on a nil value");
        }
        return(result);
    }
Exemplo n.º 5
0
    private static int get_fillDirection(IntPtr L)
    {
        object obj = null;
        int    result;

        try
        {
            obj = ToLua.ToObject(L, 1);
            UIProgressBar uIProgressBar = (UIProgressBar)obj;
            UIProgressBar.FillDirection fillDirection = uIProgressBar.fillDirection;
            ToLua.Push(L, fillDirection);
            result = 1;
        }
        catch (Exception ex)
        {
            result = LuaDLL.toluaL_exception(L, ex, (obj != null) ? ex.Message : "attempt to index fillDirection on a nil value");
        }
        return(result);
    }
Exemplo n.º 6
0
    public unsafe override void Unity_NamedDeserialize(int depth)
    {
        byte[] var_0_cp_0;
        int    var_0_cp_1;

        if (depth <= 7)
        {
            ISerializedNamedStateReader arg_1E_0 = SerializedNamedStateReader.Instance;
            var_0_cp_0 = $FieldNamesStorage.$RuntimeNames;
            var_0_cp_1 = 0;
            this.thumb = (arg_1E_0.ReadUnityEngineObject(&var_0_cp_0[var_0_cp_1] + 1570) as Transform);
        }
        if (depth <= 7)
        {
            this.mBG = (SerializedNamedStateReader.Instance.ReadUnityEngineObject(&var_0_cp_0[var_0_cp_1] + 1576) as UIWidget);
        }
        if (depth <= 7)
        {
            this.mFG = (SerializedNamedStateReader.Instance.ReadUnityEngineObject(&var_0_cp_0[var_0_cp_1] + 1580) as UIWidget);
        }
        this.mValue        = SerializedNamedStateReader.Instance.ReadSingle(&var_0_cp_0[var_0_cp_1] + 1584);
        this.mFill         = (UIProgressBar.FillDirection)SerializedNamedStateReader.Instance.ReadInt32(&var_0_cp_0[var_0_cp_1] + 1591);
        this.numberOfSteps = SerializedNamedStateReader.Instance.ReadInt32(&var_0_cp_0[var_0_cp_1] + 1597);
        if (depth <= 7)
        {
            int num = SerializedNamedStateReader.Instance.BeginSequenceGroup(&var_0_cp_0[var_0_cp_1] + 1446);
            this.onChange = new List <EventDelegate>(num);
            for (int i = 0; i < num; i++)
            {
                EventDelegate eventDelegate = new EventDelegate();
                EventDelegate arg_F8_0      = eventDelegate;
                SerializedNamedStateReader.Instance.BeginMetaGroup((IntPtr)0);
                arg_F8_0.Unity_NamedDeserialize(depth + 1);
                SerializedNamedStateReader.Instance.EndMetaGroup();
                this.onChange.Add(eventDelegate);
            }
            SerializedNamedStateReader.Instance.EndMetaGroup();
        }
    }