CSUI:地图
This commit is contained in:
parent
7c07e5bbaf
commit
d40b70615b
@ -32,9 +32,14 @@ end
|
||||
function LuaUIMgr:Open(id, param, sourceUI, needOutAnim, skipCloseAll, sortingOrder)
|
||||
local page = self:GetPage(id)
|
||||
local view, uiData
|
||||
if page ~= nil and page.MLuaTable then
|
||||
view = page.MLuaTable
|
||||
uiData = view.uiData
|
||||
if page ~= nil then
|
||||
if page.IsCSPage == false then
|
||||
view = page.MLuaTable
|
||||
uiData = view.uiData
|
||||
else
|
||||
view = {}
|
||||
uiData = ManagerContainer.CfgMgr:GetUIData(page.View.Data.id)
|
||||
end
|
||||
else
|
||||
uiData = ManagerContainer.CfgMgr:GetUIData(id)
|
||||
if uiData == nil then
|
||||
|
||||
@ -28,7 +28,9 @@ namespace CSUI
|
||||
|
||||
public void SetData(object data)
|
||||
{
|
||||
if (data == null) return;
|
||||
var json = data as string;
|
||||
if (json == null) return;
|
||||
Dictionary<string, int> dictionary = JsonConvert.DeserializeObject<Dictionary<string, int>>(json);
|
||||
var mapId = dictionary["id"];
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ namespace CSUI
|
||||
public class UIViewBase
|
||||
{
|
||||
public CfgUIData Data;
|
||||
public CsUIBase uiBase;
|
||||
public CSUIBase uiBase;
|
||||
private List<FXGOInfo> fxGoes = new();
|
||||
|
||||
public virtual void Init()
|
||||
@ -143,7 +143,7 @@ namespace CSUI
|
||||
{
|
||||
}
|
||||
|
||||
public virtual void FillContent(object data, CsUIBase uiBase)
|
||||
public virtual void FillContent(object data, CSUIBase uiBase)
|
||||
{
|
||||
this.uiBase = uiBase;
|
||||
InitGenerate(this.uiBase.GetRoot().transform, data);
|
||||
|
||||
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using CSUI;
|
||||
using UnityEngine;
|
||||
|
||||
public class CsUIBase : UIBase
|
||||
public class CSUIBase : UIBase
|
||||
{
|
||||
public UIViewBase View { get; set; }
|
||||
|
||||
@ -25,6 +25,9 @@ public abstract class UIBase : MonoBase {
|
||||
public delegate void ToggleListener (bool b);
|
||||
public delegate void ToggleListenerWithParams (Toggle tog, params object[] param);
|
||||
public delegate void DialogCallback (int btn);
|
||||
|
||||
[HideInInspector]
|
||||
public bool IsCSPage { get; set; } = false;
|
||||
|
||||
[HideInInspector]
|
||||
public int ParentId {
|
||||
|
||||
@ -549,7 +549,7 @@ public class UIMgr : SingletonMono<UIMgr>
|
||||
Show(pageID, param, needOutAnim);
|
||||
return;
|
||||
}
|
||||
CsUIBase page1 = Instance.gameObject.AddComponent<CsUIBase>();
|
||||
CSUIBase page1 = Instance.gameObject.AddComponent<CSUIBase>();
|
||||
page1.PageId = pageID;
|
||||
page1.PageAnimInType = inAni;
|
||||
page1.PageAnimOutType = outAni;
|
||||
@ -571,6 +571,7 @@ public class UIMgr : SingletonMono<UIMgr>
|
||||
isOpening = true;
|
||||
page1.Open(null, param);
|
||||
mCurrentPage = page1;
|
||||
view.uiBase.IsCSPage = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -322,6 +322,8 @@ public static class CustomSettings
|
||||
_GT (typeof (UiLoopAutoMove)),
|
||||
_GT (typeof(GUIUtility)),
|
||||
_GT (typeof(UnityEngineUtils)),
|
||||
_GT(typeof(CSUIBase)),
|
||||
_GT(typeof(CSUI.CfgUIData)),
|
||||
_GT(typeof(CSUI.BattleBossBloodView)),
|
||||
_GT(typeof(CSUI.ManagerContainer)),
|
||||
_GT(typeof(CSUI.LuaEventMgr)),
|
||||
|
||||
90
Assets/ToLua/Source/Generate/CSUIBaseWrap.cs
Normal file
90
Assets/ToLua/Source/Generate/CSUIBaseWrap.cs
Normal file
@ -0,0 +1,90 @@
|
||||
//this source code was auto-generated by tolua#, do not modify it
|
||||
using System;
|
||||
using LuaInterface;
|
||||
|
||||
public class CSUIBaseWrap
|
||||
{
|
||||
public static void Register(LuaState L)
|
||||
{
|
||||
L.BeginClass(typeof(CSUIBase), typeof(UIBase));
|
||||
L.RegFunction("OnSubCloseAnimEnd", OnSubCloseAnimEnd);
|
||||
L.RegFunction("__eq", op_Equality);
|
||||
L.RegFunction("__tostring", ToLua.op_ToString);
|
||||
L.RegVar("View", get_View, set_View);
|
||||
L.EndClass();
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int OnSubCloseAnimEnd(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
ToLua.CheckArgsCount(L, 2);
|
||||
CSUIBase obj = (CSUIBase)ToLua.CheckObject<CSUIBase>(L, 1);
|
||||
string arg0 = ToLua.CheckString(L, 2);
|
||||
obj.OnSubCloseAnimEnd(arg0);
|
||||
return 0;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int op_Equality(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
ToLua.CheckArgsCount(L, 2);
|
||||
UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
|
||||
UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
|
||||
bool o = arg0 == arg1;
|
||||
LuaDLL.lua_pushboolean(L, o);
|
||||
return 1;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_View(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUIBase obj = (CSUIBase)o;
|
||||
CSUI.UIViewBase ret = obj.View;
|
||||
ToLua.PushObject(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index View on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_View(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUIBase obj = (CSUIBase)o;
|
||||
CSUI.UIViewBase arg0 = (CSUI.UIViewBase)ToLua.CheckObject<CSUI.UIViewBase>(L, 2);
|
||||
obj.View = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index View on a nil value");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
11
Assets/ToLua/Source/Generate/CSUIBaseWrap.cs.meta
Normal file
11
Assets/ToLua/Source/Generate/CSUIBaseWrap.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 06d61c62f44f3f840abb3038092193bd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
780
Assets/ToLua/Source/Generate/CSUI_CfgUIDataWrap.cs
Normal file
780
Assets/ToLua/Source/Generate/CSUI_CfgUIDataWrap.cs
Normal file
@ -0,0 +1,780 @@
|
||||
//this source code was auto-generated by tolua#, do not modify it
|
||||
using System;
|
||||
using LuaInterface;
|
||||
|
||||
public class CSUI_CfgUIDataWrap
|
||||
{
|
||||
public static void Register(LuaState L)
|
||||
{
|
||||
L.BeginClass(typeof(CSUI.CfgUIData), typeof(System.Object));
|
||||
L.RegFunction("New", _CreateCSUI_CfgUIData);
|
||||
L.RegFunction("__tostring", ToLua.op_ToString);
|
||||
L.RegVar("id", get_id, set_id);
|
||||
L.RegVar("name", get_name, set_name);
|
||||
L.RegVar("type", get_type, set_type);
|
||||
L.RegVar("mainViewType", get_mainViewType, set_mainViewType);
|
||||
L.RegVar("need_mask", get_need_mask, set_need_mask);
|
||||
L.RegVar("lua_path", get_lua_path, set_lua_path);
|
||||
L.RegVar("res_path", get_res_path, set_res_path);
|
||||
L.RegVar("childPaths", get_childPaths, set_childPaths);
|
||||
L.RegVar("page_anim_in_type", get_page_anim_in_type, set_page_anim_in_type);
|
||||
L.RegVar("page_anim_out_type", get_page_anim_out_type, set_page_anim_out_type);
|
||||
L.RegVar("hide_main_top", get_hide_main_top, set_hide_main_top);
|
||||
L.RegVar("hide_main_bottom", get_hide_main_bottom, set_hide_main_bottom);
|
||||
L.RegVar("need_persistent", get_need_persistent, set_need_persistent);
|
||||
L.RegVar("battle_main_page", get_battle_main_page, set_battle_main_page);
|
||||
L.RegVar("need_cache", get_need_cache, set_need_cache);
|
||||
L.RegVar("can_limit_gift", get_can_limit_gift, set_can_limit_gift);
|
||||
L.RegVar("top_res_id", get_top_res_id, set_top_res_id);
|
||||
L.RegVar("top_btn_display_state", get_top_btn_display_state, set_top_btn_display_state);
|
||||
L.RegVar("NoPay", get_NoPay, set_NoPay);
|
||||
L.EndClass();
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _CreateCSUI_CfgUIData(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
int count = LuaDLL.lua_gettop(L);
|
||||
|
||||
if (count == 0)
|
||||
{
|
||||
CSUI.CfgUIData obj = new CSUI.CfgUIData();
|
||||
ToLua.PushObject(L, obj);
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: CSUI.CfgUIData.New");
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_id(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
int ret = obj.id;
|
||||
LuaDLL.lua_pushinteger(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index id on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_name(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
string ret = obj.name;
|
||||
LuaDLL.lua_pushstring(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index name on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_type(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
int ret = obj.type;
|
||||
LuaDLL.lua_pushinteger(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index type on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_mainViewType(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
int ret = obj.mainViewType;
|
||||
LuaDLL.lua_pushinteger(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index mainViewType on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_need_mask(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
bool ret = obj.need_mask;
|
||||
LuaDLL.lua_pushboolean(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index need_mask on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_lua_path(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
string ret = obj.lua_path;
|
||||
LuaDLL.lua_pushstring(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index lua_path on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_res_path(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
string ret = obj.res_path;
|
||||
LuaDLL.lua_pushstring(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index res_path on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_childPaths(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
string ret = obj.childPaths;
|
||||
LuaDLL.lua_pushstring(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index childPaths on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_page_anim_in_type(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
int ret = obj.page_anim_in_type;
|
||||
LuaDLL.lua_pushinteger(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index page_anim_in_type on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_page_anim_out_type(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
int ret = obj.page_anim_out_type;
|
||||
LuaDLL.lua_pushinteger(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index page_anim_out_type on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_hide_main_top(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
bool ret = obj.hide_main_top;
|
||||
LuaDLL.lua_pushboolean(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index hide_main_top on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_hide_main_bottom(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
bool ret = obj.hide_main_bottom;
|
||||
LuaDLL.lua_pushboolean(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index hide_main_bottom on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_need_persistent(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
bool ret = obj.need_persistent;
|
||||
LuaDLL.lua_pushboolean(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index need_persistent on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_battle_main_page(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
bool ret = obj.battle_main_page;
|
||||
LuaDLL.lua_pushboolean(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index battle_main_page on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_need_cache(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
bool ret = obj.need_cache;
|
||||
LuaDLL.lua_pushboolean(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index need_cache on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_can_limit_gift(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
bool ret = obj.can_limit_gift;
|
||||
LuaDLL.lua_pushboolean(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index can_limit_gift on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_top_res_id(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
int ret = obj.top_res_id;
|
||||
LuaDLL.lua_pushinteger(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index top_res_id on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_top_btn_display_state(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
bool ret = obj.top_btn_display_state;
|
||||
LuaDLL.lua_pushboolean(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index top_btn_display_state on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_NoPay(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
bool ret = obj.NoPay;
|
||||
LuaDLL.lua_pushboolean(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index NoPay on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_id(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
||||
obj.id = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index id on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_name(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
string arg0 = ToLua.CheckString(L, 2);
|
||||
obj.name = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index name on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_type(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
||||
obj.type = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index type on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_mainViewType(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
||||
obj.mainViewType = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index mainViewType on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_need_mask(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
||||
obj.need_mask = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index need_mask on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_lua_path(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
string arg0 = ToLua.CheckString(L, 2);
|
||||
obj.lua_path = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index lua_path on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_res_path(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
string arg0 = ToLua.CheckString(L, 2);
|
||||
obj.res_path = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index res_path on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_childPaths(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
string arg0 = ToLua.CheckString(L, 2);
|
||||
obj.childPaths = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index childPaths on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_page_anim_in_type(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
||||
obj.page_anim_in_type = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index page_anim_in_type on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_page_anim_out_type(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
||||
obj.page_anim_out_type = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index page_anim_out_type on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_hide_main_top(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
||||
obj.hide_main_top = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index hide_main_top on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_hide_main_bottom(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
||||
obj.hide_main_bottom = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index hide_main_bottom on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_need_persistent(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
||||
obj.need_persistent = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index need_persistent on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_battle_main_page(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
||||
obj.battle_main_page = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index battle_main_page on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_need_cache(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
||||
obj.need_cache = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index need_cache on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_can_limit_gift(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
||||
obj.can_limit_gift = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index can_limit_gift on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_top_res_id(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
|
||||
obj.top_res_id = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index top_res_id on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_top_btn_display_state(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
||||
obj.top_btn_display_state = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index top_btn_display_state on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_NoPay(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.CfgUIData obj = (CSUI.CfgUIData)o;
|
||||
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
||||
obj.NoPay = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index NoPay on a nil value");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
11
Assets/ToLua/Source/Generate/CSUI_CfgUIDataWrap.cs.meta
Normal file
11
Assets/ToLua/Source/Generate/CSUI_CfgUIDataWrap.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c3728c4cd986a8a4bbd1ded9b1d743cb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -17,6 +17,9 @@ public class CSUI_ManagerContainerWrap
|
||||
L.RegVar("DataMgr", get_DataMgr, set_DataMgr);
|
||||
L.RegVar("LuaBattleMgr", get_LuaBattleMgr, set_LuaBattleMgr);
|
||||
L.RegVar("UIFuncUnlockMgr", get_UIFuncUnlockMgr, set_UIFuncUnlockMgr);
|
||||
L.RegVar("UIStoryMgr", get_UIStoryMgr, set_UIStoryMgr);
|
||||
L.RegVar("ExecuteSequenceMgr", get_ExecuteSequenceMgr, set_ExecuteSequenceMgr);
|
||||
L.RegVar("StoryMgr", get_StoryMgr, set_StoryMgr);
|
||||
L.EndClass();
|
||||
}
|
||||
|
||||
@ -156,6 +159,48 @@ public class CSUI_ManagerContainerWrap
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_UIStoryMgr(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
ToLua.PushObject(L, CSUI.ManagerContainer.UIStoryMgr);
|
||||
return 1;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_ExecuteSequenceMgr(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
ToLua.PushObject(L, CSUI.ManagerContainer.ExecuteSequenceMgr);
|
||||
return 1;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_StoryMgr(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
ToLua.PushObject(L, CSUI.ManagerContainer.StoryMgr);
|
||||
return 1;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_CsUIMgr(IntPtr L)
|
||||
{
|
||||
@ -275,5 +320,50 @@ public class CSUI_ManagerContainerWrap
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_UIStoryMgr(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
CSUI.UIStoryMgr arg0 = (CSUI.UIStoryMgr)ToLua.CheckObject<CSUI.UIStoryMgr>(L, 2);
|
||||
CSUI.ManagerContainer.UIStoryMgr = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_ExecuteSequenceMgr(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
CSUI.ExecuteSequenceMgr arg0 = (CSUI.ExecuteSequenceMgr)ToLua.CheckObject<CSUI.ExecuteSequenceMgr>(L, 2);
|
||||
CSUI.ManagerContainer.ExecuteSequenceMgr = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_StoryMgr(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
CSUI.StoryMgr arg0 = (CSUI.StoryMgr)ToLua.CheckObject<CSUI.StoryMgr>(L, 2);
|
||||
CSUI.ManagerContainer.StoryMgr = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -304,7 +304,7 @@ public class CSUI_UIViewBaseWrap
|
||||
ToLua.CheckArgsCount(L, 3);
|
||||
CSUI.UIViewBase obj = (CSUI.UIViewBase)ToLua.CheckObject<CSUI.UIViewBase>(L, 1);
|
||||
object arg0 = ToLua.ToVarObject(L, 2);
|
||||
CsUIBase arg1 = (CsUIBase)ToLua.CheckObject<CsUIBase>(L, 3);
|
||||
CSUIBase arg1 = (CSUIBase)ToLua.CheckObject<CSUIBase>(L, 3);
|
||||
obj.FillContent(arg0, arg1);
|
||||
return 0;
|
||||
}
|
||||
@ -506,7 +506,7 @@ public class CSUI_UIViewBaseWrap
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.UIViewBase obj = (CSUI.UIViewBase)o;
|
||||
CsUIBase ret = obj.uiBase;
|
||||
CSUIBase ret = obj.uiBase;
|
||||
ToLua.Push(L, ret);
|
||||
return 1;
|
||||
}
|
||||
@ -544,7 +544,7 @@ public class CSUI_UIViewBaseWrap
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
CSUI.UIViewBase obj = (CSUI.UIViewBase)o;
|
||||
CsUIBase arg0 = (CsUIBase)ToLua.CheckObject<CsUIBase>(L, 2);
|
||||
CSUIBase arg0 = (CSUIBase)ToLua.CheckObject<CSUIBase>(L, 2);
|
||||
obj.uiBase = arg0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -7,6 +7,8 @@ public class GameMgrWrap
|
||||
public static void Register(LuaState L)
|
||||
{
|
||||
L.BeginClass(typeof(GameMgr), typeof(SingletonMono<GameMgr>));
|
||||
L.RegFunction("AddFrameTimer", AddFrameTimer);
|
||||
L.RegFunction("RemoveFrameTimer", RemoveFrameTimer);
|
||||
L.RegFunction("StartDetector", StartDetector);
|
||||
L.RegFunction("SetOnSceneLoadedLuaFunc", SetOnSceneLoadedLuaFunc);
|
||||
L.RegFunction("ReLogin", ReLogin);
|
||||
@ -89,6 +91,40 @@ public class GameMgrWrap
|
||||
L.EndClass();
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int AddFrameTimer(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
ToLua.CheckArgsCount(L, 2);
|
||||
GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
|
||||
FrameTimer arg0 = (FrameTimer)ToLua.CheckObject<FrameTimer>(L, 2);
|
||||
obj.AddFrameTimer(arg0);
|
||||
return 0;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int RemoveFrameTimer(IntPtr L)
|
||||
{
|
||||
try
|
||||
{
|
||||
ToLua.CheckArgsCount(L, 2);
|
||||
GameMgr obj = (GameMgr)ToLua.CheckObject<GameMgr>(L, 1);
|
||||
FrameTimer arg0 = (FrameTimer)ToLua.CheckObject<FrameTimer>(L, 2);
|
||||
obj.RemoveFrameTimer(arg0);
|
||||
return 0;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e);
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int StartDetector(IntPtr L)
|
||||
{
|
||||
|
||||
@ -102,6 +102,7 @@ public static class LuaBinder
|
||||
UIImageSwitchSpriteWrap.Register(L);
|
||||
RolRectTransformWrap.Register(L);
|
||||
UiLoopAutoMoveWrap.Register(L);
|
||||
CSUIBaseWrap.Register(L);
|
||||
SingletonMono_GameMgrWrap.Register(L);
|
||||
MonoBaseWrap.Register(L);
|
||||
UIBaseWrap.Register(L);
|
||||
@ -429,6 +430,7 @@ public static class LuaBinder
|
||||
L.EndModule();
|
||||
L.EndModule();
|
||||
L.BeginModule("CSUI");
|
||||
CSUI_CfgUIDataWrap.Register(L);
|
||||
CSUI_BattleBossBloodViewWrap.Register(L);
|
||||
CSUI_ManagerContainerWrap.Register(L);
|
||||
CSUI_LuaEventMgrWrap.Register(L);
|
||||
|
||||
@ -33,6 +33,7 @@ public class UIBaseWrap
|
||||
L.RegFunction("__tostring", ToLua.op_ToString);
|
||||
L.RegVar("animListener", get_animListener, set_animListener);
|
||||
L.RegVar("initSortingOrder", get_initSortingOrder, set_initSortingOrder);
|
||||
L.RegVar("IsCSPage", get_IsCSPage, set_IsCSPage);
|
||||
L.RegVar("ParentId", get_ParentId, set_ParentId);
|
||||
L.RegVar("NeedParentKeep", get_NeedParentKeep, set_NeedParentKeep);
|
||||
L.RegVar("IsBattleMainPage", get_IsBattleMainPage, set_IsBattleMainPage);
|
||||
@ -681,6 +682,25 @@ public class UIBaseWrap
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_IsCSPage(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
UIBase obj = (UIBase)o;
|
||||
bool ret = obj.IsCSPage;
|
||||
LuaDLL.lua_pushboolean(L, ret);
|
||||
return 1;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsCSPage on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int get_ParentId(IntPtr L)
|
||||
{
|
||||
@ -1327,6 +1347,25 @@ public class UIBaseWrap
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_IsCSPage(IntPtr L)
|
||||
{
|
||||
object o = null;
|
||||
|
||||
try
|
||||
{
|
||||
o = ToLua.ToObject(L, 1);
|
||||
UIBase obj = (UIBase)o;
|
||||
bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
|
||||
obj.IsCSPage = arg0;
|
||||
return 0;
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
return LuaDLL.toluaL_exception(L, e, o, "attempt to index IsCSPage on a nil value");
|
||||
}
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int set_ParentId(IntPtr L)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user