public override void OnInspectorGUI() { TextEx textEx = target as TextEx; EditorGUI.BeginChangeCheck(); textEx.m_minPreferredWidth = EditorGUILayout.FloatField("minPreferredWidth", textEx.m_minPreferredWidth); textEx.m_maxPreferredWidth = EditorGUILayout.FloatField("maxPreferredWidth", textEx.m_maxPreferredWidth); if (EditorGUI.EndChangeCheck()) { EditorUtil.SetDirty(textEx); LayoutRebuilder.MarkLayoutForRebuild(textEx.transform as RectTransform); } base.OnInspectorGUI(); }
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 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 set_m_desc(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UILoading obj = (UILoading)o; UI.TextEx arg0 = (UI.TextEx)ToLua.CheckUnityObject(L, 2, typeof(UI.TextEx)); obj.m_desc = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_desc on a nil value" : e.Message)); } }
static int get_m_desc(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UILoading obj = (UILoading)o; UI.TextEx ret = obj.m_desc; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_desc on a nil value" : e.Message)); } }
static int set_m_maxPreferredWidth(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.TextEx obj = (UI.TextEx)o; float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); obj.m_maxPreferredWidth = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_maxPreferredWidth on a nil value" : e.Message)); } }
static int get_preferredWidth(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.TextEx obj = (UI.TextEx)o; float ret = obj.preferredWidth; LuaDLL.lua_pushnumber(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index preferredWidth on a nil value" : e.Message)); } }