static StackObject *RequestCharactersInTexture_18(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 4); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.FontStyle @style = (UnityEngine.FontStyle) typeof(UnityEngine.FontStyle).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Int32 @size = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 3); System.String @characters = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 4); UnityEngine.Font instance_of_this_method = (UnityEngine.Font) typeof(UnityEngine.Font).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.RequestCharactersInTexture(@characters, @size, @style); return(__ret); }
public virtual void OnUIEditorGUI(BaseItem item) { Name = UnityEditor.EditorGUILayout.TextField("Name", Name); Description = UnityEditor.EditorGUILayout.TextField("Description", Description); Type = (ItemTypeEnum)UnityEditor.EditorGUILayout.EnumPopup("Type", Type); #region IStackable Interface IStackable iStackableInterface = item as IStackable; if (iStackableInterface != null) { var indent = UnityEditor.EditorGUI.indentLevel; UnityEditor.EditorGUILayout.Space(); UnityEditor.EditorGUILayout.BeginVertical("Box"); UnityEngine.GUIStyle boldFontStyle = UnityEditor.EditorStyles.foldout; UnityEngine.FontStyle previousStyle = boldFontStyle.fontStyle; boldFontStyle.fontStyle = UnityEngine.FontStyle.Bold; iStackableInterfaceToggle = UnityEditor.EditorGUILayout.Foldout(iStackableInterfaceToggle, "IStackable Interface", boldFontStyle); boldFontStyle.fontStyle = previousStyle; if (iStackableInterfaceToggle) { UnityEditor.EditorGUI.indentLevel = 1; iStackableInterface.IsStackable = UnityEditor.EditorGUILayout.Toggle("Is Stackable", iStackableInterface.IsStackable); iStackableInterface.DestroyOnUse = UnityEditor.EditorGUILayout.Toggle("Destroy on Use", iStackableInterface.DestroyOnUse); iStackableInterface.Quantity = UnityEditor.EditorGUILayout.IntField("Quantity", iStackableInterface.Quantity); iStackableInterface.StackableMax = UnityEditor.EditorGUILayout.IntField("Stackable Max", iStackableInterface.StackableMax); } UnityEditor.EditorGUI.indentLevel = indent; UnityEditor.EditorGUILayout.EndVertical(); } #endregion IStackable Interface }
static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); UnityEngine.FontStyle o = (UnityEngine.FontStyle)arg0; ToLua.Push(L, o); return(1); }
static int set_fontStyle(IntPtr L) { try { UnityEngine.FontStyle arg0 = (UnityEngine.FontStyle)ToLua.CheckObject(L, 2, typeof(UnityEngine.FontStyle)); NGUIText.fontStyle = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetCharacterInfo(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3) { UnityEngine.Font obj = (UnityEngine.Font)ToLua.CheckObject(L, 1, typeof(UnityEngine.Font)); char arg0 = (char)LuaDLL.luaL_checknumber(L, 2); UnityEngine.CharacterInfo arg1; bool o = obj.GetCharacterInfo(arg0, out arg1); LuaDLL.lua_pushboolean(L, o); ToLua.PushValue(L, arg1); return(2); } else if (count == 4) { UnityEngine.Font obj = (UnityEngine.Font)ToLua.CheckObject(L, 1, typeof(UnityEngine.Font)); char arg0 = (char)LuaDLL.luaL_checknumber(L, 2); UnityEngine.CharacterInfo arg1; int arg2 = (int)LuaDLL.luaL_checknumber(L, 4); bool o = obj.GetCharacterInfo(arg0, out arg1, arg2); LuaDLL.lua_pushboolean(L, o); ToLua.PushValue(L, arg1); return(2); } else if (count == 5) { UnityEngine.Font obj = (UnityEngine.Font)ToLua.CheckObject(L, 1, typeof(UnityEngine.Font)); char arg0 = (char)LuaDLL.luaL_checknumber(L, 2); UnityEngine.CharacterInfo arg1; int arg2 = (int)LuaDLL.luaL_checknumber(L, 4); UnityEngine.FontStyle arg3 = (UnityEngine.FontStyle)ToLua.CheckObject(L, 5, typeof(UnityEngine.FontStyle)); bool o = obj.GetCharacterInfo(arg0, out arg1, arg2, arg3); LuaDLL.lua_pushboolean(L, o); ToLua.PushValue(L, arg1); return(2); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Font.GetCharacterInfo")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int QPYX_set_fontStyle_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UnityEngine.UI.Text QPYX_obj_YXQP = (UnityEngine.UI.Text)QPYX_o_YXQP; UnityEngine.FontStyle QPYX_arg0_YXQP = (UnityEngine.FontStyle)ToLua.CheckObject(L_YXQP, 2, typeof(UnityEngine.FontStyle)); QPYX_obj_YXQP.fontStyle = QPYX_arg0_YXQP; return(0); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index fontStyle on a nil value")); } }
static int QPYX_get_fontStyle_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UnityEngine.UI.Text QPYX_obj_YXQP = (UnityEngine.UI.Text)QPYX_o_YXQP; UnityEngine.FontStyle QPYX_ret_YXQP = QPYX_obj_YXQP.fontStyle; ToLua.Push(L_YXQP, QPYX_ret_YXQP); return(1); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index fontStyle on a nil value")); } }
static int set_fontStyle(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.UI.Text obj = (UnityEngine.UI.Text)o; UnityEngine.FontStyle arg0 = (UnityEngine.FontStyle)ToLua.CheckObject(L, 2, typeof(UnityEngine.FontStyle)); obj.fontStyle = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index fontStyle on a nil value" : e.Message)); } }
static int get_fontStyle(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.UI.Text obj = (UnityEngine.UI.Text)o; UnityEngine.FontStyle ret = obj.fontStyle; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index fontStyle on a nil value" : e.Message)); } }
public static FontStyles LegacyStyleToNewStyle(UnityEngine.FontStyle fontStyle) { switch (fontStyle) { case UnityEngine.FontStyle.Bold: return(FontStyles.Bold); case UnityEngine.FontStyle.Italic: return(FontStyles.Italic); case UnityEngine.FontStyle.BoldAndItalic: return(FontStyles.Bold | FontStyles.Italic); default: return(FontStyles.Normal); } }
static int get_dynamicFontStyle(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UIFont obj = (UIFont)o; UnityEngine.FontStyle ret = obj.dynamicFontStyle; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index dynamicFontStyle on a nil value")); } }
static int get_fontStyle(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UILabel obj = (UILabel)o; UnityEngine.FontStyle ret = obj.fontStyle; ToLua.Push(L, ret); return 1; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index fontStyle on a nil value"); } }
static int set_fontStyle(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UILabel obj = (UILabel)o; UnityEngine.FontStyle arg0 = (UnityEngine.FontStyle)ToLua.CheckObject(L, 2, typeof(UnityEngine.FontStyle)); obj.fontStyle = arg0; return 0; } catch(Exception e) { return LuaDLL.toluaL_exception(L, e, o, "attempt to index fontStyle on a nil value"); } }
static int set_fontStyle(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.UI.Text obj = (UnityEngine.UI.Text)o; UnityEngine.FontStyle arg0 = (UnityEngine.FontStyle)LuaDLL.luaL_checknumber(L, 2); obj.fontStyle = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index fontStyle on a nil value")); } }
static int get_fontStyle(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.UI.Text obj = (UnityEngine.UI.Text)o; UnityEngine.FontStyle ret = obj.fontStyle; LuaDLL.lua_pushinteger(L, (int)ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index fontStyle on a nil value")); } }
static StackObject *set_fontStyle_29(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.FontStyle value = (UnityEngine.FontStyle) typeof(UnityEngine.FontStyle).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.Text instance_of_this_method; instance_of_this_method = (UnityEngine.UI.Text) typeof(UnityEngine.UI.Text).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.fontStyle = value; return(__ret); }
static int set_fontStyle(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("UnityEngine.UI.Text.fontStyle"); #endif object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.UI.Text obj = (UnityEngine.UI.Text)o; UnityEngine.FontStyle arg0 = (UnityEngine.FontStyle)ToLua.CheckObject(L, 2, typeof(UnityEngine.FontStyle)); obj.fontStyle = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index fontStyle on a nil value")); } }
static int get_fontStyle(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("UnityEngine.UI.Text.fontStyle"); #endif object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.UI.Text obj = (UnityEngine.UI.Text)o; UnityEngine.FontStyle ret = obj.fontStyle; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index fontStyle on a nil value")); } }
/// <summary> /// Convert a Unity font style to a kRPC font style. /// </summary> public static FontStyle ToFontStyle(this UnityEngine.FontStyle style) { switch (style) { case UnityEngine.FontStyle.Normal: return(FontStyle.Normal); case UnityEngine.FontStyle.Bold: return(FontStyle.Bold); case UnityEngine.FontStyle.Italic: return(FontStyle.Italic); case UnityEngine.FontStyle.BoldAndItalic: return(FontStyle.BoldAndItalic); default: throw new ArgumentOutOfRangeException(nameof(style)); } }
static int RequestCharactersInTexture(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { UnityEngine.Font obj = (UnityEngine.Font)ToLua.CheckObject(L, 1, typeof(UnityEngine.Font)); string arg0 = ToLua.CheckString(L, 2); obj.RequestCharactersInTexture(arg0); return(0); } else if (count == 3) { UnityEngine.Font obj = (UnityEngine.Font)ToLua.CheckObject(L, 1, typeof(UnityEngine.Font)); string arg0 = ToLua.CheckString(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); obj.RequestCharactersInTexture(arg0, arg1); return(0); } else if (count == 4) { UnityEngine.Font obj = (UnityEngine.Font)ToLua.CheckObject(L, 1, typeof(UnityEngine.Font)); string arg0 = ToLua.CheckString(L, 2); int arg1 = (int)LuaDLL.luaL_checknumber(L, 3); UnityEngine.FontStyle arg2 = (UnityEngine.FontStyle)ToLua.CheckObject(L, 4, typeof(UnityEngine.FontStyle)); obj.RequestCharactersInTexture(arg0, arg1, arg2); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Font.RequestCharactersInTexture")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static StackObject *GetCharacterInfo_14(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 5); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.FontStyle style = (UnityEngine.FontStyle) typeof(UnityEngine.FontStyle).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.Int32 size = ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method); UnityEngine.CharacterInfo info = (UnityEngine.CharacterInfo) typeof(UnityEngine.CharacterInfo).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); ptr_of_this_method = ILIntepreter.Minus(__esp, 4); System.Char ch = (char)ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 5); UnityEngine.Font instance_of_this_method; instance_of_this_method = (UnityEngine.Font) typeof(UnityEngine.Font).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.GetCharacterInfo(ch, out info, size, style); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); switch (ptr_of_this_method->ObjectType) { case ObjectTypes.StackObjectReference: { var ___dst = *(StackObject **)&ptr_of_this_method->Value; object ___obj = info; if (___dst->ObjectType >= ObjectTypes.Object) { if (___obj is CrossBindingAdaptorType) { ___obj = ((CrossBindingAdaptorType)___obj).ILInstance; } __mStack[___dst->Value] = ___obj; } else { ILIntepreter.UnboxObject(___dst, ___obj, __mStack, __domain); } } break; case ObjectTypes.FieldReference: { var ___obj = __mStack[ptr_of_this_method->Value]; if (___obj is ILTypeInstance) { ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = info; } else { var ___type = __domain.GetType(___obj.GetType()) as CLRType; ___type.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, info); } } break; case ObjectTypes.StaticFieldReference: { var ___type = __domain.GetType(ptr_of_this_method->Value); if (___type is ILType) { ((ILType)___type).StaticInstance[ptr_of_this_method->ValueLow] = info; } else { ((CLRType)___type).SetStaticFieldValue(ptr_of_this_method->ValueLow, info); } } break; case ObjectTypes.ArrayReference: { var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as UnityEngine.CharacterInfo[]; instance_of_arrayReference[ptr_of_this_method->ValueLow] = info; } break; } __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return(__ret + 1); }
static void Push(IntPtr L, UnityEngine.FontStyle arg) { ToLua.Push(L, arg); }