1977 lines
72 KiB
C#
1977 lines
72 KiB
C#
#if USE_UNI_LUA
|
|
using LuaAPI = UniLua.Lua;
|
|
using RealStatePtr = UniLua.ILuaState;
|
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
|
#else
|
|
using LuaAPI = XLua.LuaDLL.Lua;
|
|
using RealStatePtr = System.IntPtr;
|
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
|
#endif
|
|
|
|
using XLua;
|
|
using System.Collections.Generic;
|
|
|
|
|
|
namespace XLua.CSObjectWrap
|
|
{
|
|
using Utils = XLua.Utils;
|
|
public class TMProShaderUtilitiesWrap
|
|
{
|
|
public static void __Register(RealStatePtr L)
|
|
{
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
System.Type type = typeof(TMPro.ShaderUtilities);
|
|
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
|
null, null, null);
|
|
|
|
Utils.BeginClassRegister(type, L, __CreateInstance, 6, 65, 65);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetShaderPropertyIDs", _m_GetShaderPropertyIDs_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "UpdateShaderRatios", _m_UpdateShaderRatios_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFontExtent", _m_GetFontExtent_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "IsMaskingEnabled", _m_IsMaskingEnabled_xlua_st_);
|
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetPadding", _m_GetPadding_xlua_st_);
|
|
|
|
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_MainTex", _g_get_ID_MainTex);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_FaceTex", _g_get_ID_FaceTex);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_FaceColor", _g_get_ID_FaceColor);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_FaceDilate", _g_get_ID_FaceDilate);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_Shininess", _g_get_ID_Shininess);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_UnderlayColor", _g_get_ID_UnderlayColor);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_UnderlayOffsetX", _g_get_ID_UnderlayOffsetX);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_UnderlayOffsetY", _g_get_ID_UnderlayOffsetY);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_UnderlayDilate", _g_get_ID_UnderlayDilate);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_UnderlaySoftness", _g_get_ID_UnderlaySoftness);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_UnderlayOffset", _g_get_ID_UnderlayOffset);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_UnderlayIsoPerimeter", _g_get_ID_UnderlayIsoPerimeter);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_WeightNormal", _g_get_ID_WeightNormal);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_WeightBold", _g_get_ID_WeightBold);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_OutlineTex", _g_get_ID_OutlineTex);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_OutlineWidth", _g_get_ID_OutlineWidth);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_OutlineSoftness", _g_get_ID_OutlineSoftness);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_OutlineColor", _g_get_ID_OutlineColor);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_Outline2Color", _g_get_ID_Outline2Color);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_Outline2Width", _g_get_ID_Outline2Width);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_Padding", _g_get_ID_Padding);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_GradientScale", _g_get_ID_GradientScale);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_ScaleX", _g_get_ID_ScaleX);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_ScaleY", _g_get_ID_ScaleY);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_PerspectiveFilter", _g_get_ID_PerspectiveFilter);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_Sharpness", _g_get_ID_Sharpness);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_TextureWidth", _g_get_ID_TextureWidth);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_TextureHeight", _g_get_ID_TextureHeight);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_BevelAmount", _g_get_ID_BevelAmount);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_GlowColor", _g_get_ID_GlowColor);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_GlowOffset", _g_get_ID_GlowOffset);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_GlowPower", _g_get_ID_GlowPower);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_GlowOuter", _g_get_ID_GlowOuter);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_GlowInner", _g_get_ID_GlowInner);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_LightAngle", _g_get_ID_LightAngle);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_EnvMap", _g_get_ID_EnvMap);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_EnvMatrix", _g_get_ID_EnvMatrix);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_EnvMatrixRotation", _g_get_ID_EnvMatrixRotation);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_MaskCoord", _g_get_ID_MaskCoord);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_ClipRect", _g_get_ID_ClipRect);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_MaskSoftnessX", _g_get_ID_MaskSoftnessX);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_MaskSoftnessY", _g_get_ID_MaskSoftnessY);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_VertexOffsetX", _g_get_ID_VertexOffsetX);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_VertexOffsetY", _g_get_ID_VertexOffsetY);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_UseClipRect", _g_get_ID_UseClipRect);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_StencilID", _g_get_ID_StencilID);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_StencilOp", _g_get_ID_StencilOp);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_StencilComp", _g_get_ID_StencilComp);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_StencilReadMask", _g_get_ID_StencilReadMask);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_StencilWriteMask", _g_get_ID_StencilWriteMask);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_ShaderFlags", _g_get_ID_ShaderFlags);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_ScaleRatio_A", _g_get_ID_ScaleRatio_A);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_ScaleRatio_B", _g_get_ID_ScaleRatio_B);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ID_ScaleRatio_C", _g_get_ID_ScaleRatio_C);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Keyword_Bevel", _g_get_Keyword_Bevel);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Keyword_Glow", _g_get_Keyword_Glow);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Keyword_Underlay", _g_get_Keyword_Underlay);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Keyword_Ratios", _g_get_Keyword_Ratios);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Keyword_MASK_SOFT", _g_get_Keyword_MASK_SOFT);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Keyword_MASK_HARD", _g_get_Keyword_MASK_HARD);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Keyword_MASK_TEX", _g_get_Keyword_MASK_TEX);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Keyword_Outline", _g_get_Keyword_Outline);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ShaderTag_ZTestMode", _g_get_ShaderTag_ZTestMode);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "ShaderTag_CullMode", _g_get_ShaderTag_CullMode);
|
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "isInitialized", _g_get_isInitialized);
|
|
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_MainTex", _s_set_ID_MainTex);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_FaceTex", _s_set_ID_FaceTex);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_FaceColor", _s_set_ID_FaceColor);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_FaceDilate", _s_set_ID_FaceDilate);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_Shininess", _s_set_ID_Shininess);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_UnderlayColor", _s_set_ID_UnderlayColor);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_UnderlayOffsetX", _s_set_ID_UnderlayOffsetX);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_UnderlayOffsetY", _s_set_ID_UnderlayOffsetY);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_UnderlayDilate", _s_set_ID_UnderlayDilate);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_UnderlaySoftness", _s_set_ID_UnderlaySoftness);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_UnderlayOffset", _s_set_ID_UnderlayOffset);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_UnderlayIsoPerimeter", _s_set_ID_UnderlayIsoPerimeter);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_WeightNormal", _s_set_ID_WeightNormal);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_WeightBold", _s_set_ID_WeightBold);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_OutlineTex", _s_set_ID_OutlineTex);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_OutlineWidth", _s_set_ID_OutlineWidth);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_OutlineSoftness", _s_set_ID_OutlineSoftness);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_OutlineColor", _s_set_ID_OutlineColor);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_Outline2Color", _s_set_ID_Outline2Color);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_Outline2Width", _s_set_ID_Outline2Width);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_Padding", _s_set_ID_Padding);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_GradientScale", _s_set_ID_GradientScale);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_ScaleX", _s_set_ID_ScaleX);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_ScaleY", _s_set_ID_ScaleY);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_PerspectiveFilter", _s_set_ID_PerspectiveFilter);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_Sharpness", _s_set_ID_Sharpness);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_TextureWidth", _s_set_ID_TextureWidth);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_TextureHeight", _s_set_ID_TextureHeight);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_BevelAmount", _s_set_ID_BevelAmount);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_GlowColor", _s_set_ID_GlowColor);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_GlowOffset", _s_set_ID_GlowOffset);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_GlowPower", _s_set_ID_GlowPower);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_GlowOuter", _s_set_ID_GlowOuter);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_GlowInner", _s_set_ID_GlowInner);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_LightAngle", _s_set_ID_LightAngle);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_EnvMap", _s_set_ID_EnvMap);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_EnvMatrix", _s_set_ID_EnvMatrix);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_EnvMatrixRotation", _s_set_ID_EnvMatrixRotation);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_MaskCoord", _s_set_ID_MaskCoord);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_ClipRect", _s_set_ID_ClipRect);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_MaskSoftnessX", _s_set_ID_MaskSoftnessX);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_MaskSoftnessY", _s_set_ID_MaskSoftnessY);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_VertexOffsetX", _s_set_ID_VertexOffsetX);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_VertexOffsetY", _s_set_ID_VertexOffsetY);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_UseClipRect", _s_set_ID_UseClipRect);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_StencilID", _s_set_ID_StencilID);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_StencilOp", _s_set_ID_StencilOp);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_StencilComp", _s_set_ID_StencilComp);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_StencilReadMask", _s_set_ID_StencilReadMask);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_StencilWriteMask", _s_set_ID_StencilWriteMask);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_ShaderFlags", _s_set_ID_ShaderFlags);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_ScaleRatio_A", _s_set_ID_ScaleRatio_A);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_ScaleRatio_B", _s_set_ID_ScaleRatio_B);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ID_ScaleRatio_C", _s_set_ID_ScaleRatio_C);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "Keyword_Bevel", _s_set_Keyword_Bevel);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "Keyword_Glow", _s_set_Keyword_Glow);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "Keyword_Underlay", _s_set_Keyword_Underlay);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "Keyword_Ratios", _s_set_Keyword_Ratios);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "Keyword_MASK_SOFT", _s_set_Keyword_MASK_SOFT);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "Keyword_MASK_HARD", _s_set_Keyword_MASK_HARD);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "Keyword_MASK_TEX", _s_set_Keyword_MASK_TEX);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "Keyword_Outline", _s_set_Keyword_Outline);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ShaderTag_ZTestMode", _s_set_ShaderTag_ZTestMode);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "ShaderTag_CullMode", _s_set_ShaderTag_CullMode);
|
|
Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "isInitialized", _s_set_isInitialized);
|
|
|
|
|
|
Utils.EndClassRegister(type, L, translator);
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int __CreateInstance(RealStatePtr L)
|
|
{
|
|
return LuaAPI.luaL_error(L, "TMPro.ShaderUtilities does not have a constructor!");
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetShaderPropertyIDs_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
TMPro.ShaderUtilities.GetShaderPropertyIDs( );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_UpdateShaderRatios_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
|
|
{
|
|
UnityEngine.Material _mat = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material));
|
|
|
|
TMPro.ShaderUtilities.UpdateShaderRatios( _mat );
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetFontExtent_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
|
|
{
|
|
UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material));
|
|
|
|
var gen_ret = TMPro.ShaderUtilities.GetFontExtent( _material );
|
|
translator.PushUnityEngineVector4(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_IsMaskingEnabled_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
|
|
{
|
|
UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material));
|
|
|
|
var gen_ret = TMPro.ShaderUtilities.IsMaskingEnabled( _material );
|
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _m_GetPadding_xlua_st_(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
|
|
|
|
|
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
|
|
|
if(gen_param_count == 3&& translator.Assignable<UnityEngine.Material>(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
|
|
{
|
|
UnityEngine.Material _material = (UnityEngine.Material)translator.GetObject(L, 1, typeof(UnityEngine.Material));
|
|
bool _enableExtraPadding = LuaAPI.lua_toboolean(L, 2);
|
|
bool _isBold = LuaAPI.lua_toboolean(L, 3);
|
|
|
|
var gen_ret = TMPro.ShaderUtilities.GetPadding( _material, _enableExtraPadding, _isBold );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
if(gen_param_count == 3&& translator.Assignable<UnityEngine.Material[]>(L, 1)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
|
|
{
|
|
UnityEngine.Material[] _materials = (UnityEngine.Material[])translator.GetObject(L, 1, typeof(UnityEngine.Material[]));
|
|
bool _enableExtraPadding = LuaAPI.lua_toboolean(L, 2);
|
|
bool _isBold = LuaAPI.lua_toboolean(L, 3);
|
|
|
|
var gen_ret = TMPro.ShaderUtilities.GetPadding( _materials, _enableExtraPadding, _isBold );
|
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
|
|
|
|
|
|
return 1;
|
|
}
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
|
|
return LuaAPI.luaL_error(L, "invalid arguments to TMPro.ShaderUtilities.GetPadding!");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_MainTex(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_MainTex);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_FaceTex(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_FaceTex);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_FaceColor(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_FaceColor);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_FaceDilate(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_FaceDilate);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_Shininess(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_Shininess);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_UnderlayColor(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_UnderlayColor);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_UnderlayOffsetX(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_UnderlayOffsetX);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_UnderlayOffsetY(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_UnderlayOffsetY);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_UnderlayDilate(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_UnderlayDilate);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_UnderlaySoftness(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_UnderlaySoftness);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_UnderlayOffset(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_UnderlayOffset);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_UnderlayIsoPerimeter(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_UnderlayIsoPerimeter);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_WeightNormal(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_WeightNormal);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_WeightBold(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_WeightBold);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_OutlineTex(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_OutlineTex);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_OutlineWidth(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_OutlineWidth);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_OutlineSoftness(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_OutlineSoftness);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_OutlineColor(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_OutlineColor);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_Outline2Color(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_Outline2Color);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_Outline2Width(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_Outline2Width);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_Padding(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_Padding);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_GradientScale(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_GradientScale);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_ScaleX(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_ScaleX);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_ScaleY(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_ScaleY);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_PerspectiveFilter(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_PerspectiveFilter);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_Sharpness(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_Sharpness);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_TextureWidth(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_TextureWidth);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_TextureHeight(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_TextureHeight);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_BevelAmount(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_BevelAmount);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_GlowColor(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_GlowColor);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_GlowOffset(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_GlowOffset);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_GlowPower(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_GlowPower);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_GlowOuter(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_GlowOuter);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_GlowInner(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_GlowInner);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_LightAngle(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_LightAngle);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_EnvMap(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_EnvMap);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_EnvMatrix(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_EnvMatrix);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_EnvMatrixRotation(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_EnvMatrixRotation);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_MaskCoord(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_MaskCoord);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_ClipRect(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_ClipRect);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_MaskSoftnessX(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_MaskSoftnessX);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_MaskSoftnessY(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_MaskSoftnessY);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_VertexOffsetX(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_VertexOffsetX);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_VertexOffsetY(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_VertexOffsetY);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_UseClipRect(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_UseClipRect);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_StencilID(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_StencilID);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_StencilOp(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_StencilOp);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_StencilComp(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_StencilComp);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_StencilReadMask(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_StencilReadMask);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_StencilWriteMask(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_StencilWriteMask);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_ShaderFlags(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_ShaderFlags);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_ScaleRatio_A(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_ScaleRatio_A);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_ScaleRatio_B(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_ScaleRatio_B);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ID_ScaleRatio_C(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.xlua_pushinteger(L, TMPro.ShaderUtilities.ID_ScaleRatio_C);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_Keyword_Bevel(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.Keyword_Bevel);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_Keyword_Glow(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.Keyword_Glow);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_Keyword_Underlay(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.Keyword_Underlay);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_Keyword_Ratios(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.Keyword_Ratios);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_Keyword_MASK_SOFT(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.Keyword_MASK_SOFT);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_Keyword_MASK_HARD(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.Keyword_MASK_HARD);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_Keyword_MASK_TEX(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.Keyword_MASK_TEX);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_Keyword_Outline(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.Keyword_Outline);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ShaderTag_ZTestMode(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.ShaderTag_ZTestMode);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_ShaderTag_CullMode(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.lua_pushstring(L, TMPro.ShaderUtilities.ShaderTag_CullMode);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _g_get_isInitialized(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
LuaAPI.lua_pushboolean(L, TMPro.ShaderUtilities.isInitialized);
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_MainTex(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_MainTex = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_FaceTex(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_FaceTex = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_FaceColor(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_FaceColor = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_FaceDilate(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_FaceDilate = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_Shininess(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_Shininess = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_UnderlayColor(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_UnderlayColor = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_UnderlayOffsetX(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_UnderlayOffsetX = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_UnderlayOffsetY(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_UnderlayOffsetY = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_UnderlayDilate(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_UnderlayDilate = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_UnderlaySoftness(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_UnderlaySoftness = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_UnderlayOffset(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_UnderlayOffset = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_UnderlayIsoPerimeter(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_UnderlayIsoPerimeter = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_WeightNormal(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_WeightNormal = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_WeightBold(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_WeightBold = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_OutlineTex(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_OutlineTex = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_OutlineWidth(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_OutlineWidth = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_OutlineSoftness(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_OutlineSoftness = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_OutlineColor(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_OutlineColor = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_Outline2Color(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_Outline2Color = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_Outline2Width(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_Outline2Width = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_Padding(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_Padding = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_GradientScale(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_GradientScale = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_ScaleX(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_ScaleX = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_ScaleY(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_ScaleY = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_PerspectiveFilter(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_PerspectiveFilter = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_Sharpness(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_Sharpness = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_TextureWidth(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_TextureWidth = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_TextureHeight(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_TextureHeight = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_BevelAmount(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_BevelAmount = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_GlowColor(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_GlowColor = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_GlowOffset(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_GlowOffset = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_GlowPower(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_GlowPower = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_GlowOuter(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_GlowOuter = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_GlowInner(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_GlowInner = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_LightAngle(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_LightAngle = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_EnvMap(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_EnvMap = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_EnvMatrix(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_EnvMatrix = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_EnvMatrixRotation(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_EnvMatrixRotation = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_MaskCoord(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_MaskCoord = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_ClipRect(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_ClipRect = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_MaskSoftnessX(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_MaskSoftnessX = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_MaskSoftnessY(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_MaskSoftnessY = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_VertexOffsetX(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_VertexOffsetX = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_VertexOffsetY(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_VertexOffsetY = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_UseClipRect(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_UseClipRect = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_StencilID(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_StencilID = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_StencilOp(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_StencilOp = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_StencilComp(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_StencilComp = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_StencilReadMask(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_StencilReadMask = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_StencilWriteMask(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_StencilWriteMask = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_ShaderFlags(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_ShaderFlags = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_ScaleRatio_A(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_ScaleRatio_A = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_ScaleRatio_B(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_ScaleRatio_B = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ID_ScaleRatio_C(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ID_ScaleRatio_C = LuaAPI.xlua_tointeger(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_Keyword_Bevel(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.Keyword_Bevel = LuaAPI.lua_tostring(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_Keyword_Glow(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.Keyword_Glow = LuaAPI.lua_tostring(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_Keyword_Underlay(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.Keyword_Underlay = LuaAPI.lua_tostring(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_Keyword_Ratios(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.Keyword_Ratios = LuaAPI.lua_tostring(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_Keyword_MASK_SOFT(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.Keyword_MASK_SOFT = LuaAPI.lua_tostring(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_Keyword_MASK_HARD(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.Keyword_MASK_HARD = LuaAPI.lua_tostring(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_Keyword_MASK_TEX(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.Keyword_MASK_TEX = LuaAPI.lua_tostring(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_Keyword_Outline(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.Keyword_Outline = LuaAPI.lua_tostring(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ShaderTag_ZTestMode(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ShaderTag_ZTestMode = LuaAPI.lua_tostring(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_ShaderTag_CullMode(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.ShaderTag_CullMode = LuaAPI.lua_tostring(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
static int _s_set_isInitialized(RealStatePtr L)
|
|
{
|
|
try {
|
|
|
|
TMPro.ShaderUtilities.isInitialized = LuaAPI.lua_toboolean(L, 1);
|
|
|
|
} catch(System.Exception gen_e) {
|
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|