Beispiel #1
0
    //UI的初始化请放在这里
    public override void OnOpen()
    {
        m_ShopItem = GetReusingScrollRect("Items");

        m_ShopItem.SetItem("ShopWindow_Item");
        m_ShopItem.Init(UIEventKey, 0);

        m_ShopItem.SetData(GetShopData());

        AddOnClickListener("Button_Close", OnClickCLose);
    }
Beispiel #2
0
 static int SetItem(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         ReusingScrollRect obj  = (ReusingScrollRect)ToLua.CheckObject(L, 1, typeof(ReusingScrollRect));
         string            arg0 = ToLua.CheckString(L, 2);
         obj.SetItem(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }