Exemplo n.º 1
0
 static int QPYX_NumChange_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 1);
         TextWrapEx QPYX_obj_YXQP = (TextWrapEx)ToLua.CheckObject <TextWrapEx>(L_YXQP, 1);
         QPYX_obj_YXQP.NumChange();
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Exemplo n.º 2
0
 static int QPYX_SetIntervalScale_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 2);
         TextWrapEx QPYX_obj_YXQP  = (TextWrapEx)ToLua.CheckObject <TextWrapEx>(L_YXQP, 1);
         float      QPYX_arg0_YXQP = (float)LuaDLL.luaL_checknumber(L_YXQP, 2);
         QPYX_obj_YXQP.SetIntervalScale(QPYX_arg0_YXQP);
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Exemplo n.º 3
0
 static int NumChange(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         TextWrapEx obj = (TextWrapEx)ToLua.CheckObject <TextWrapEx>(L, 1);
         obj.NumChange();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 4
0
 static int QPYX_SetDigitStr_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 3);
         TextWrapEx          QPYX_obj_YXQP  = (TextWrapEx)ToLua.CheckObject <TextWrapEx>(L_YXQP, 1);
         BetterList <string> QPYX_arg0_YXQP = (BetterList <string>)ToLua.CheckObject <BetterList <string> >(L_YXQP, 2);
         int QPYX_arg1_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 3);
         QPYX_obj_YXQP.SetDigitStr(QPYX_arg0_YXQP, QPYX_arg1_YXQP);
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Exemplo n.º 5
0
 static int SetSizeScale(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         TextWrapEx obj  = (TextWrapEx)ToLua.CheckObject <TextWrapEx>(L, 1);
         float      arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
         obj.SetSizeScale(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 6
0
 static int QPYX_SetTransFormActive_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 3);
         TextWrapEx QPYX_obj_YXQP  = (TextWrapEx)ToLua.CheckObject <TextWrapEx>(L_YXQP, 1);
         int        QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2);
         bool       QPYX_arg1_YXQP = LuaDLL.luaL_checkboolean(L_YXQP, 3);
         QPYX_obj_YXQP.SetTransFormActive(QPYX_arg0_YXQP, QPYX_arg1_YXQP);
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Exemplo n.º 7
0
 static int QPYX_GetDigit_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 2);
         TextWrapEx QPYX_obj_YXQP  = (TextWrapEx)ToLua.CheckObject <TextWrapEx>(L_YXQP, 1);
         int        QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2);
         int        QPYX_o_YXQP    = QPYX_obj_YXQP.GetDigit(QPYX_arg0_YXQP);
         LuaDLL.lua_pushinteger(L_YXQP, QPYX_o_YXQP);
         return(1);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Exemplo n.º 8
0
 static int SetTransFormActive(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         TextWrapEx obj  = (TextWrapEx)ToLua.CheckObject <TextWrapEx>(L, 1);
         int        arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         bool       arg1 = LuaDLL.luaL_checkboolean(L, 3);
         obj.SetTransFormActive(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 9
0
 static int SetDigitStr(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         TextWrapEx          obj  = (TextWrapEx)ToLua.CheckObject <TextWrapEx>(L, 1);
         BetterList <string> arg0 = (BetterList <string>)ToLua.CheckObject <BetterList <string> >(L, 2);
         int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
         obj.SetDigitStr(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 10
0
 static int GetDigit(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         TextWrapEx obj  = (TextWrapEx)ToLua.CheckObject <TextWrapEx>(L, 1);
         int        arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         int        o    = obj.GetDigit(arg0);
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 11
0
 static int QPYX_SetImage_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 4);
         TextWrapEx          QPYX_obj_YXQP  = (TextWrapEx)ToLua.CheckObject <TextWrapEx>(L_YXQP, 1);
         int                 QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2);
         UnityEngine.Sprite  QPYX_arg1_YXQP = (UnityEngine.Sprite)ToLua.CheckObject(L_YXQP, 3, typeof(UnityEngine.Sprite));
         UnityEngine.Vector3 QPYX_arg2_YXQP = ToLua.ToVector3(L_YXQP, 4);
         QPYX_obj_YXQP.SetImage(QPYX_arg0_YXQP, QPYX_arg1_YXQP, QPYX_arg2_YXQP);
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Exemplo n.º 12
0
    static int get_atlas(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            TextWrapEx  obj = (TextWrapEx)o;
            SpriteAtlas ret = obj.atlas;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index atlas on a nil value"));
        }
    }
Exemplo n.º 13
0
    static int get_rectTransList(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            TextWrapEx obj = (TextWrapEx)o;
            BetterList <UnityEngine.RectTransform> ret = obj.rectTransList;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index rectTransList on a nil value"));
        }
    }
Exemplo n.º 14
0
    static int get_imageSize(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            TextWrapEx          obj = (TextWrapEx)o;
            UnityEngine.Vector2 ret = obj.imageSize;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index imageSize on a nil value"));
        }
    }
Exemplo n.º 15
0
    static int get_text(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            TextWrapEx obj = (TextWrapEx)o;
            string     ret = obj.text;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index text on a nil value"));
        }
    }
Exemplo n.º 16
0
    static int set_interval(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            TextWrapEx obj  = (TextWrapEx)o;
            float      arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.interval = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index interval on a nil value"));
        }
    }
Exemplo n.º 17
0
 static int SetImage(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 4);
         TextWrapEx          obj  = (TextWrapEx)ToLua.CheckObject <TextWrapEx>(L, 1);
         int                 arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         UnityEngine.Sprite  arg1 = (UnityEngine.Sprite)ToLua.CheckObject(L, 3, typeof(UnityEngine.Sprite));
         UnityEngine.Vector3 arg2 = ToLua.ToVector3(L, 4);
         obj.SetImage(arg0, arg1, arg2);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 18
0
    static int set_text(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            TextWrapEx obj  = (TextWrapEx)o;
            string     arg0 = ToLua.CheckString(L, 2);
            obj.text = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index text on a nil value"));
        }
    }
Exemplo n.º 19
0
    static int set_mode(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            TextWrapEx        obj  = (TextWrapEx)o;
            TextWrap.WrapMode arg0 = (TextWrap.WrapMode)ToLua.CheckObject(L, 2, typeof(TextWrap.WrapMode));
            obj.mode = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index mode on a nil value"));
        }
    }
Exemplo n.º 20
0
    static int set_imageSize(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            TextWrapEx          obj  = (TextWrapEx)o;
            UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2);
            obj.imageSize = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index imageSize on a nil value"));
        }
    }
Exemplo n.º 21
0
    static int set_atlas(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            TextWrapEx  obj  = (TextWrapEx)o;
            SpriteAtlas arg0 = (SpriteAtlas)ToLua.CheckObject <SpriteAtlas>(L, 2);
            obj.atlas = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index atlas on a nil value"));
        }
    }
Exemplo n.º 22
0
    static int set_NumCount(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            TextWrapEx obj  = (TextWrapEx)o;
            int        arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.NumCount = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index NumCount on a nil value"));
        }
    }
Exemplo n.º 23
0
    static int set_rectTransList(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            TextWrapEx obj = (TextWrapEx)o;
            BetterList <UnityEngine.RectTransform> arg0 = (BetterList <UnityEngine.RectTransform>)ToLua.CheckObject <BetterList <UnityEngine.RectTransform> >(L, 2);
            obj.rectTransList = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index rectTransList on a nil value"));
        }
    }
Exemplo n.º 24
0
    static int get_interval(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            TextWrapEx obj = (TextWrapEx)o;
            float      ret = obj.interval;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index interval on a nil value"));
        }
    }
Exemplo n.º 25
0
    static int get_mode(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            TextWrapEx        obj = (TextWrapEx)o;
            TextWrap.WrapMode ret = obj.mode;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index mode on a nil value"));
        }
    }
Exemplo n.º 26
0
    static int get_num(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            TextWrapEx obj = (TextWrapEx)o;
            int        ret = obj.num;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index num on a nil value"));
        }
    }
Exemplo n.º 27
0
    public override void OnInspectorGUI()
    {
        TextWrapEx target_ = (TextWrapEx)target;

        EditorTools.SetLabelWidth(80);

        if (Application.isPlaying)
        {
            EditorGUILayout.IntField(target_.num);
        }
        else
        {
            target_.num = EditorGUILayout.IntField(target_.num);
        }
        target_.NumCount  = EditorGUILayout.IntField("最大位数", target_.NumCount);
        target_.interval  = EditorGUILayout.FloatField("字间间隔", target_.interval);
        target_.mode      = (TextWrap.WrapMode)EditorGUILayout.EnumPopup("显示方式", target_.mode);
        target_.atlas     = EditorGUILayout.ObjectField("图集", target_.atlas, typeof(SpriteAtlas), true) as SpriteAtlas;
        target_.imageSize = EditorGUILayout.Vector2Field("图片尺寸", target_.imageSize);
    }
Exemplo n.º 28
0
    static int QPYX_set_text_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        TextWrapEx QPYX_obj_YXQP = (TextWrapEx)QPYX_o_YXQP;
            string QPYX_arg0_YXQP = ToLua.CheckString(L_YXQP, 2);
            QPYX_obj_YXQP.text = 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 text on a nil value"));
        }
    }
Exemplo n.º 29
0
    static int QPYX_set_mode_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        TextWrapEx QPYX_obj_YXQP = (TextWrapEx)QPYX_o_YXQP;
            TextWrap.WrapMode QPYX_arg0_YXQP = (TextWrap.WrapMode)ToLua.CheckObject(L_YXQP, 2, typeof(TextWrap.WrapMode));
            QPYX_obj_YXQP.mode = 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 mode on a nil value"));
        }
    }
Exemplo n.º 30
0
    static int QPYX_set_interval_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        TextWrapEx QPYX_obj_YXQP = (TextWrapEx)QPYX_o_YXQP;
            float QPYX_arg0_YXQP = (float)LuaDLL.luaL_checknumber(L_YXQP, 2);
            QPYX_obj_YXQP.interval = 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 interval on a nil value"));
        }
    }