static int SetOverlay(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UI.UIProgressEx obj = (UI.UIProgressEx)ToLua.CheckObject(L, 1, typeof(UI.UIProgressEx)); System.Action <int, int> arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (System.Action <int, int>)ToLua.CheckObject(L, 2, typeof(System.Action <int, int>)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(System.Action <int, int>), func) as System.Action <int, int>; } obj.SetOverlay(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public override void OnInspectorGUI() { UIProgressEx t = target as UIProgressEx; base.OnInspectorGUI(); float v = EditorGUILayout.Slider("Progress", t.Value, 0f, 1f); if (t.Value != v) { t.Value = v; } }
void SetValue(Handle h, float v) { if (!h.m_go) { Debuger.LogError("游戏对象为空"); } UIProgressEx c = h.m_go.GetComponent <UIProgressEx>(); if (c) { c.Value = v; } }
float GetValue(Handle h) { if (!h.m_go) { Debuger.LogError("游戏对象为空"); return(1f); } UIProgressEx c = h.m_go.GetComponent <UIProgressEx>(); if (c) { return(c.Value); } return(1f); }
static int set_Value(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.UIProgressEx obj = (UI.UIProgressEx)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.Value = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Value on a nil value" : e.Message)); } }
static int set_mCurStageFormat(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.UIProgressEx obj = (UI.UIProgressEx)o; string arg0 = ToLua.CheckString(L, 2); obj.mCurStageFormat = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mCurStageFormat on a nil value" : e.Message)); } }
static int set_mCurStage(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.UIProgressEx obj = (UI.UIProgressEx)o; UI.TextEx arg0 = (UI.TextEx)ToLua.CheckUnityObject(L, 2, typeof(UI.TextEx)); obj.mCurStage = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mCurStage on a nil value" : e.Message)); } }
static int set_mStages(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.UIProgressEx obj = (UI.UIProgressEx)o; System.Collections.Generic.List <int> arg0 = (System.Collections.Generic.List <int>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <int>)); obj.mStages = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mStages on a nil value" : e.Message)); } }
static int get_Value(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.UIProgressEx obj = (UI.UIProgressEx)o; float ret = obj.Value; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index Value on a nil value" : e.Message)); } }
static int get_mCurStageFormat(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.UIProgressEx obj = (UI.UIProgressEx)o; string ret = obj.mCurStageFormat; LuaDLL.lua_pushstring(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mCurStageFormat on a nil value" : e.Message)); } }
static int get_mCurStage(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.UIProgressEx obj = (UI.UIProgressEx)o; UI.TextEx ret = obj.mCurStage; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mCurStage on a nil value" : e.Message)); } }
static int get_mStages(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.UIProgressEx obj = (UI.UIProgressEx)o; System.Collections.Generic.List <int> ret = obj.mStages; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mStages on a nil value" : e.Message)); } }
static int get_mAdd(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.UIProgressEx obj = (UI.UIProgressEx)o; int ret = obj.mAdd; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mAdd on a nil value" : e.Message)); } }