static int Reset(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         FirClient.Component.CMultiProgressBar obj = (FirClient.Component.CMultiProgressBar)ToLua.CheckObject <FirClient.Component.CMultiProgressBar>(L, 1);
         obj.Reset();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int SetValue(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         FirClient.Component.CMultiProgressBar obj = (FirClient.Component.CMultiProgressBar)ToLua.CheckObject <FirClient.Component.CMultiProgressBar>(L, 1);
         float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         obj.SetValue(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int get_multiProgreValue(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FirClient.Component.VarData           obj = (FirClient.Component.VarData)o;
            FirClient.Component.CMultiProgressBar ret = obj.multiProgreValue;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index multiProgreValue on a nil value"));
        }
    }
    static int set_multiProgreValue(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            FirClient.Component.VarData           obj  = (FirClient.Component.VarData)o;
            FirClient.Component.CMultiProgressBar arg0 = (FirClient.Component.CMultiProgressBar)ToLua.CheckObject <FirClient.Component.CMultiProgressBar>(L, 2);
            obj.multiProgreValue = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index multiProgreValue on a nil value"));
        }
    }
Example #5
0
        public void Set(VarData newData)
        {
            //Clear
            switch (type)
            {
            case VarType.GameObject:
                objValue = null; break;

            case VarType.Transform:
                tranValue = null; break;

            case VarType.Text:
                txtValue = null; break;

            case VarType.Image:
                imgValue = null; break;

            case VarType.Button:
                btnValue = null; break;

            case VarType.TMP_InputField:
                inputValue = null; break;

            case VarType.Toggle:
                toggleValue = null; break;

            case VarType.Slider:
                sliderValue = null; break;

            case VarType.CMultiProgressBar:
                multiProgreValue = null; break;
            }
            //Set
            name     = newData.name;
            lastType = newData.type;
            type     = newData.type;
            switch (type)
            {
            case VarType.GameObject:
                objValue = newData.objValue; break;

            case VarType.Transform:
                tranValue = newData.tranValue; break;

            case VarType.Text:
                txtValue = newData.txtValue; break;

            case VarType.Image:
                imgValue = newData.imgValue; break;

            case VarType.Button:
                btnValue = newData.btnValue; break;

            case VarType.TMP_InputField:
                inputValue = newData.inputValue; break;

            case VarType.Toggle:
                toggleValue = newData.toggleValue; break;

            case VarType.Slider:
                sliderValue = newData.sliderValue; break;

            case VarType.CMultiProgressBar:
                multiProgreValue = newData.multiProgreValue; break;
            }
        }