Ejemplo n.º 1
0
        public override void OnAwake()
        {
            base.OnAwake();
            //vessel spawner
            vessel_spawner = gameObject.AddComponent <VesselSpawner>();
            //add UI components
            kit_name_editor             = gameObject.AddComponent <SimpleTextEntry>();
            kit_name_editor.yesCallback = () =>
            {
                if (kit)
                {
                    KitName = kit.Name = kit_name_editor.Text;
                }
            };
            resource_manifest_view             = gameObject.AddComponent <SimpleScrollView>();
            construct_loader                   = gameObject.AddComponent <ShipConstructLoader>();
            construct_loader.process_construct = store_construct;
            //add kit hull mesh
            var obj = new GameObject("KitHullMesh", typeof(MeshFilter), typeof(MeshRenderer));

            obj.transform.SetParent(gameObject.transform);
            kit_hull_mesh = obj.GetComponent <MeshFilter>();
            var renderer = obj.GetComponent <MeshRenderer>();

            renderer.material       = Utils.no_z_material;
            renderer.material.color = kit_hull_color;
            renderer.enabled        = true;
            obj.SetActive(false);
        }
Ejemplo n.º 2
0
 static int QPYX_Clear_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 1);
         SimpleScrollView QPYX_obj_YXQP = (SimpleScrollView)ToLua.CheckObject <SimpleScrollView>(L_YXQP, 1);
         QPYX_obj_YXQP.Clear();
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Ejemplo n.º 3
0
 static int QPYX_SetData_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 2);
         SimpleScrollView QPYX_obj_YXQP  = (SimpleScrollView)ToLua.CheckObject <SimpleScrollView>(L_YXQP, 1);
         object           QPYX_arg0_YXQP = ToLua.ToVarObject(L_YXQP, 2);
         QPYX_obj_YXQP.SetData(QPYX_arg0_YXQP);
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Ejemplo n.º 4
0
 static int Clear(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         SimpleScrollView obj = (SimpleScrollView)ToLua.CheckObject <SimpleScrollView>(L, 1);
         obj.Clear();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 5
0
 static int SetData(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         SimpleScrollView obj  = (SimpleScrollView)ToLua.CheckObject <SimpleScrollView>(L, 1);
         object           arg0 = ToLua.ToVarObject(L, 2);
         obj.SetData(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 6
0
    static int set_itemTotalHeightOrWidth(IntPtr L)
    {
        object o = null;

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

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

        try
        {
            o = ToLua.ToObject(L, 1);
            ComponentCache.Injection <SimpleScrollView> obj = (ComponentCache.Injection <SimpleScrollView>)o;
            SimpleScrollView arg0 = (SimpleScrollView)ToLua.CheckObject <SimpleScrollView>(L, 2);
            obj.value = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index value on a nil value"));
        }
    }
    static int get_value(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ComponentCache.Injection <SimpleScrollView> obj = (ComponentCache.Injection <SimpleScrollView>)o;
            SimpleScrollView ret = obj.value;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index value on a nil value"));
        }
    }
Ejemplo n.º 10
0
    static int set_OnItemDataChange(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SimpleScrollView obj = (SimpleScrollView)o;
            System.Action <SimpleItemBase> arg0 = (System.Action <SimpleItemBase>)ToLua.CheckDelegate <System.Action <SimpleItemBase> >(L, 2);
            obj.OnItemDataChange = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index OnItemDataChange on a nil value"));
        }
    }
Ejemplo n.º 11
0
    static int get_itemTotalHeightOrWidth(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SimpleScrollView obj = (SimpleScrollView)o;
            int ret = obj.itemTotalHeightOrWidth;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index itemTotalHeightOrWidth on a nil value"));
        }
    }
Ejemplo n.º 12
0
    static int get_padding(IntPtr L)
    {
        object o = null;

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

        try
        {
            o = ToLua.ToObject(L, 1);
            SimpleScrollView obj = (SimpleScrollView)o;
            int ret = obj.ItemToContentOffset;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ItemToContentOffset on a nil value"));
        }
    }
Ejemplo n.º 14
0
    static int get_ItemRectTransform(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SimpleScrollView          obj = (SimpleScrollView)o;
            UnityEngine.RectTransform ret = obj.ItemRectTransform;
            ToLua.PushSealed(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index ItemRectTransform on a nil value"));
        }
    }
Ejemplo n.º 15
0
    static int get_OnItemDataChange(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            SimpleScrollView obj = (SimpleScrollView)o;
            System.Action <SimpleItemBase> ret = obj.OnItemDataChange;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index OnItemDataChange on a nil value"));
        }
    }
Ejemplo n.º 16
0
        static GameObject CreateHorizontalScrollView(UIResources resources)
        {
            GameObject scroll = DefaultControls.CreateScrollView(UIDefaultControls.ConvertToDefaultResources(resources));

            scroll.name = "HScrollView";
            Transform toDel1 = scroll.transform.Find("Scrollbar Horizontal");
            Transform toDel2 = scroll.transform.Find("Scrollbar Vertical");

            GameObject.DestroyImmediate(toDel1.gameObject);
            GameObject.DestroyImmediate(toDel2.gameObject);

            RectTransform viewPort = scroll.transform.Find("Viewport") as RectTransform;

            ScrollRect scrollRect = scroll.GetComponent <ScrollRect>();

            scrollRect.vertical     = false;
            scrollRect.movementType = ScrollRect.MovementType.Clamped;

            RectTransform         content = viewPort.transform.Find("Content") as RectTransform;
            HorizontalLayoutGroup layout  = content.gameObject.AddComponent <HorizontalLayoutGroup>();

            layout.childAlignment         = TextAnchor.MiddleCenter;
            layout.childControlHeight     = layout.childControlWidth = false;
            layout.childForceExpandHeight = layout.childForceExpandWidth = true;
            content.sizeDelta             = Vector2.one * 100;
            content.anchorMin             = new Vector2(0, 0);
            content.anchorMax             = new Vector2(0, 1);

            SimpleScrollView ssv = scroll.AddComponent <SimpleScrollView>();

            ssv.scrollRect      = scrollRect;
            ssv.scrollDirection = SimpleScrollView.ScrollDirection.HORIZONTAL;
            ssv.content         = content;
            ssv.viewPort        = viewPort;

            return(scroll);
        }
Ejemplo n.º 17
0
    bool AddToRightList(Object obj)
    {
        Type type = m_totalTypeNameList[m_newSelectedId];

        if (type == typeof(GameObject))
        {
            GameObject value = obj as GameObject;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.GameObject_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.gameObjectList == null)
            {
                m_cache.gameObjectList = new List <ComponentCache.GameObject_Injection>();
            }
            m_cache.gameObjectList.Add(injection);
        }
        else if (type == typeof(Transform))
        {
            Transform value = obj as Transform;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.Transform_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.transformList == null)
            {
                m_cache.transformList = new List <ComponentCache.Transform_Injection>();
            }
            m_cache.transformList.Add(injection);
        }
        else if (type == typeof(RectTransform))
        {
            RectTransform value = obj as RectTransform;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.RectTransform_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.rectTransformList == null)
            {
                m_cache.rectTransformList = new List <ComponentCache.RectTransform_Injection>();
            }
            m_cache.rectTransformList.Add(injection);
        }
        else if (type == typeof(Image))
        {
            Image value = obj as Image;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.Image_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.imageList == null)
            {
                m_cache.imageList = new List <ComponentCache.Image_Injection>();
            }
            m_cache.imageList.Add(injection);
        }
        else if (type == typeof(Text))
        {
            Text value = obj as Text;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.Text_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.textList == null)
            {
                m_cache.textList = new List <ComponentCache.Text_Injection>();
            }
            m_cache.textList.Add(injection);
        }
        else if (type == typeof(Toggle))
        {
            Toggle value = obj as Toggle;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.Toggle_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.toggleList == null)
            {
                m_cache.toggleList = new List <ComponentCache.Toggle_Injection>();
            }
            m_cache.toggleList.Add(injection);
        }
        else if (type == typeof(Button))
        {
            Button value = obj as Button;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.Button_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.buttonList == null)
            {
                m_cache.buttonList = new List <ComponentCache.Button_Injection>();
            }
            m_cache.buttonList.Add(injection);
        }
        else if (type == typeof(Slider))
        {
            Slider value = obj as Slider;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.Slider_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.sliderList == null)
            {
                m_cache.sliderList = new List <ComponentCache.Slider_Injection>();
            }
            m_cache.sliderList.Add(injection);
        }
        else if (type == typeof(ToggleGroup))
        {
            ToggleGroup value = obj as ToggleGroup;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.ToggleGroup_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.toggleGroupList == null)
            {
                m_cache.toggleGroupList = new List <ComponentCache.ToggleGroup_Injection>();
            }
            m_cache.toggleGroupList.Add(injection);
        }
        else if (type == typeof(InputField))
        {
            InputField value = obj as InputField;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.InputField_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.inputFieldList == null)
            {
                m_cache.inputFieldList = new List <ComponentCache.InputField_Injection>();
            }
            m_cache.inputFieldList.Add(injection);
        }
        else if (type == typeof(Graphic))
        {
            Graphic value = obj as Graphic;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.Graphic_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.graphicList == null)
            {
                m_cache.graphicList = new List <ComponentCache.Graphic_Injection>();
            }
            m_cache.graphicList.Add(injection);
        }
        else if (type == typeof(ScrollRect))
        {
            ScrollRect value = obj as ScrollRect;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.ScrollRect_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.scrollRectList == null)
            {
                m_cache.scrollRectList = new List <ComponentCache.ScrollRect_Injection>();
            }
            m_cache.scrollRectList.Add(injection);
        }
        else if (type == typeof(Scrollbar))
        {
            Scrollbar value = obj as Scrollbar;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.Scrollbar_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.scrollbarList == null)
            {
                m_cache.scrollbarList = new List <ComponentCache.Scrollbar_Injection>();
            }
            m_cache.scrollbarList.Add(injection);
        }
        else if (type == typeof(Dropdown))
        {
            Dropdown value = obj as Dropdown;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.Dropdown_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.dropdownList == null)
            {
                m_cache.dropdownList = new List <ComponentCache.Dropdown_Injection>();
            }
            m_cache.dropdownList.Add(injection);
        }
        else if (type == typeof(GridLayoutGroup))
        {
            GridLayoutGroup value = obj as GridLayoutGroup;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.GridLayoutGroup_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.gridLayoutGroupList == null)
            {
                m_cache.gridLayoutGroupList = new List <ComponentCache.GridLayoutGroup_Injection>();
            }
            m_cache.gridLayoutGroupList.Add(injection);
        }
        else if (type == typeof(RawImage))
        {
            RawImage value = obj as RawImage;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.RawImage_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.rawImageList == null)
            {
                m_cache.rawImageList = new List <ComponentCache.RawImage_Injection>();
            }
            m_cache.rawImageList.Add(injection);
        }
        else if (type == typeof(AudioSource))
        {
            AudioSource value = obj as AudioSource;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.AudioSource_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.audioSourceList == null)
            {
                m_cache.audioSourceList = new List <ComponentCache.AudioSource_Injection>();
            }
            m_cache.audioSourceList.Add(injection);
        }
        else if (type == typeof(littlerbird.UI.QuickGrid))
        {
            littlerbird.UI.QuickGrid value = obj as littlerbird.UI.QuickGrid;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.QuickGrid_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.quickGridList == null)
            {
                m_cache.quickGridList = new List <ComponentCache.QuickGrid_Injection>();
            }
            m_cache.quickGridList.Add(injection);
        }
        else if (type == typeof(SimpleScrollView))
        {
            SimpleScrollView value = obj as SimpleScrollView;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.SimpleScrollView_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.simpleScrollViewList == null)
            {
                m_cache.simpleScrollViewList = new List <ComponentCache.SimpleScrollView_Injection>();
            }
            m_cache.simpleScrollViewList.Add(injection);
        }
        else if (type == typeof(Animation))
        {
            Animation value = obj as Animation;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.Animation_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.animationList == null)
            {
                m_cache.animationList = new List <ComponentCache.Animation_Injection>();
            }
            m_cache.animationList.Add(injection);
        }
        else if (type == typeof(Animator))
        {
            Animator value = obj as Animator;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.Animator_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.animatorList == null)
            {
                m_cache.animatorList = new List <ComponentCache.Animator_Injection>();
            }
            m_cache.animatorList.Add(injection);
        }
        else if (type == typeof(SpriteAtlas))
        {
            SpriteAtlas value = obj as SpriteAtlas;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.SpriteAtlas_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.spriteAtlasList == null)
            {
                m_cache.spriteAtlasList = new List <ComponentCache.SpriteAtlas_Injection>();
            }
            m_cache.spriteAtlasList.Add(injection);
        }
        else if (type == typeof(SpriteHolder))
        {
            SpriteHolder value = obj as SpriteHolder;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.SpriteHolder_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.spriteHolderList == null)
            {
                m_cache.spriteHolderList = new List <ComponentCache.SpriteHolder_Injection>();
            }
            m_cache.spriteHolderList.Add(injection);
        }
        else if (type == typeof(UIStateSwitcher))
        {
            UIStateSwitcher value = obj as UIStateSwitcher;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.UIStateSwitcher_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.uiStateSwitcherList == null)
            {
                m_cache.uiStateSwitcherList = new List <ComponentCache.UIStateSwitcher_Injection>();
            }
            m_cache.uiStateSwitcherList.Add(injection);
        }
        else if (type == typeof(TextWrap))
        {
            TextWrap value = obj as TextWrap;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.TextWrap_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.textWrapList == null)
            {
                m_cache.textWrapList = new List <ComponentCache.TextWrap_Injection>();
            }
            m_cache.textWrapList.Add(injection);
        }
        else if (type == typeof(UIImageAnimation))
        {
            UIImageAnimation value = obj as UIImageAnimation;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.UIImageAnimation_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.uiImageAnimList == null)
            {
                m_cache.uiImageAnimList = new List <ComponentCache.UIImageAnimation_Injection>();
            }
            m_cache.uiImageAnimList.Add(injection);
        }
        else if (type == typeof(ComponentCache))
        {
            ComponentCache value = obj as ComponentCache;
            if (value == null)
            {
                return(false);
            }
            var injection = new ComponentCache.ComponentCache_Injection();
            injection.name  = m_newObjName;
            injection.value = value;
            if (m_cache.cacheList == null)
            {
                m_cache.cacheList = new List <ComponentCache.ComponentCache_Injection>();
            }
            m_cache.cacheList.Add(injection);
        }
        else
        {
            return(false);
        }
        return(true);
    }
 protected override void  OnEnable()
 {
     _simpleScrollView = target as SimpleScrollView;
 }
Ejemplo n.º 19
0
    static int QPYX_get_ItemToContentOffset_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        SimpleScrollView QPYX_obj_YXQP = (SimpleScrollView)QPYX_o_YXQP;
            int QPYX_ret_YXQP = QPYX_obj_YXQP.ItemToContentOffset;
            LuaDLL.lua_pushinteger(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 ItemToContentOffset on a nil value"));
        }
    }
Ejemplo n.º 20
0
    static int QPYX_get_itemTotalHeightOrWidth_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        SimpleScrollView QPYX_obj_YXQP = (SimpleScrollView)QPYX_o_YXQP;
            int QPYX_ret_YXQP = QPYX_obj_YXQP.itemTotalHeightOrWidth;
            LuaDLL.lua_pushinteger(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 itemTotalHeightOrWidth on a nil value"));
        }
    }
Ejemplo n.º 21
0
    static int QPYX_set_itemTotalHeightOrWidth_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        SimpleScrollView QPYX_obj_YXQP = (SimpleScrollView)QPYX_o_YXQP;
            int QPYX_arg0_YXQP = (int)LuaDLL.luaL_checknumber(L_YXQP, 2);
            QPYX_obj_YXQP.itemTotalHeightOrWidth = 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 itemTotalHeightOrWidth on a nil value"));
        }
    }
Ejemplo n.º 22
0
    static int QPYX_get_ItemRectTransform_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        SimpleScrollView QPYX_obj_YXQP = (SimpleScrollView)QPYX_o_YXQP;
            UnityEngine.RectTransform QPYX_ret_YXQP = QPYX_obj_YXQP.ItemRectTransform;
            ToLua.PushSealed(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 ItemRectTransform on a nil value"));
        }
    }
Ejemplo n.º 23
0
    static int QPYX_get_padding_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        SimpleScrollView QPYX_obj_YXQP = (SimpleScrollView)QPYX_o_YXQP;
            UnityEngine.Vector2 QPYX_ret_YXQP = QPYX_obj_YXQP.padding;
            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 padding on a nil value"));
        }
    }
Ejemplo n.º 24
0
    static int QPYX_get_OnItemDataChange_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        SimpleScrollView QPYX_obj_YXQP = (SimpleScrollView)QPYX_o_YXQP;
            System.Action <SimpleItemBase> QPYX_ret_YXQP = QPYX_obj_YXQP.OnItemDataChange;
            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 OnItemDataChange on a nil value"));
        }
    }
Ejemplo n.º 25
0
    static int QPYX_set_OnItemDataChange_YXQP(IntPtr L_YXQP)
    {
        object QPYX_o_YXQP = null;

        try
        {
            QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1);                        SimpleScrollView QPYX_obj_YXQP = (SimpleScrollView)QPYX_o_YXQP;
            System.Action <SimpleItemBase> QPYX_arg0_YXQP = (System.Action <SimpleItemBase>)ToLua.CheckDelegate <System.Action <SimpleItemBase> >(L_YXQP, 2);
            QPYX_obj_YXQP.OnItemDataChange = 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 OnItemDataChange on a nil value"));
        }
    }