Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
威武堂堂
MasterDulePre
提交
35f81fb3
M
MasterDulePre
项目概览
威武堂堂
/
MasterDulePre
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
MasterDulePre
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
35f81fb3
编写于
1月 29, 2023
作者:
威武堂堂
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
表数据结构优化
上级
ef07474e
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
32 addition
and
51 deletion
+32
-51
Excel/Language.xlsx
Excel/Language.xlsx
+0
-0
Masterdulepre/.vs/masterdulepre/v17/.suo
Masterdulepre/.vs/masterdulepre/v17/.suo
+0
-0
Masterdulepre/Assets/Editor/Excel2Lua/ExcelTransfer.cs
Masterdulepre/Assets/Editor/Excel2Lua/ExcelTransfer.cs
+9
-13
Masterdulepre/Assets/LuaFramework/Lua/Common/const.lua
Masterdulepre/Assets/LuaFramework/Lua/Common/const.lua
+0
-7
Masterdulepre/Assets/LuaFramework/Lua/Common/debuger.lua
Masterdulepre/Assets/LuaFramework/Lua/Common/debuger.lua
+4
-4
Masterdulepre/Assets/LuaFramework/Lua/Config/Language.lua
Masterdulepre/Assets/LuaFramework/Lua/Config/Language.lua
+7
-6
Masterdulepre/Assets/LuaFramework/Lua/Logic/Main.lua
Masterdulepre/Assets/LuaFramework/Lua/Logic/Main.lua
+3
-2
Masterdulepre/Assets/LuaFramework/Lua/View/Menu/MenuPanel.lua
...erdulepre/Assets/LuaFramework/Lua/View/Menu/MenuPanel.lua
+5
-7
Masterdulepre/Assets/ResAssets/Menu/MenuPanel.prefab
Masterdulepre/Assets/ResAssets/Menu/MenuPanel.prefab
+4
-12
未找到文件。
Excel/Language.xlsx
浏览文件 @
35f81fb3
无法预览此类型文件
Masterdulepre/.vs/masterdulepre/v17/.suo
浏览文件 @
35f81fb3
无法预览此类型文件
Masterdulepre/Assets/Editor/Excel2Lua/ExcelTransfer.cs
浏览文件 @
35f81fb3
...
...
@@ -12,7 +12,7 @@ namespace Excel2Lua
/// <summary>
/// Excel数组开始行数
/// </summary>
const
int
BGN_ROW
=
5
;
const
int
BGN_ROW
=
3
;
/// <summary>
/// 源字符组
...
...
@@ -129,22 +129,18 @@ namespace Excel2Lua
stringBuilder
.
Append
(
"local data = {\n"
);
for
(
int
i
=
BGN_ROW
;
i
<=
GetSheetRows
(
sheet
);
i
++)
{
string
data
=
sheet
.
GetRow
(
i
).
GetCell
(
1
).
ToString
().
Trim
();
if
(!
string
.
IsNullOrEmpty
(
data
))
stringBuilder
.
AppendFormat
(
"\t[{0}] = "
,
i
-
2
);
stringBuilder
.
Append
(
"{"
);
for
(
int
j
=
1
;
j
<
GetSheetColonums
(
sheet
);
j
++)
{
stringBuilder
.
AppendFormat
(
"\t[{0}] = "
,
data
);
stringBuilder
.
Append
(
"{"
);
for
(
int
j
=
1
;
j
<
GetSheetColonums
(
sheet
);
j
++)
string
cellData
=
sheet
.
GetRow
(
i
).
GetCell
(
j
).
ToString
().
Trim
();
if
(!
string
.
IsNullOrEmpty
(
cellData
))
{
string
cellData
=
sheet
.
GetRow
(
i
).
GetCell
(
j
).
ToString
().
Trim
();
if
(!
string
.
IsNullOrEmpty
(
cellData
))
{
cellData
=
ParseCellDataByType
(
filedMap
[
j
],
cellData
);
stringBuilder
.
AppendFormat
(
"[{0}]={1},"
,
j
,
cellData
);
}
cellData
=
ParseCellDataByType
(
filedMap
[
j
],
cellData
);
stringBuilder
.
AppendFormat
(
"[{0}]={1},"
,
j
,
cellData
);
}
stringBuilder
.
Append
(
"},\n"
);
}
stringBuilder
.
Append
(
"},\n"
);
}
stringBuilder
.
Append
(
"}\n\n"
);
#
endregion
转化内容
...
...
Masterdulepre/Assets/LuaFramework/Lua/Common/const.lua
浏览文件 @
35f81fb3
-- 常量管理
is_editor
=
UnityEngine
.
Application
.
isEditor
Protocal
=
{
Connect
=
'101'
;
--连接服务器
Exception
=
'102'
;
--异常掉线
...
...
@@ -14,11 +12,6 @@ Protocal = {
-- LUA_NETWORK_RESEND_SUCCESSFULLY = "LUA_NETWORK_RESEND_SUCCESSFULLY",
-- }
-- LANGUAGE =
-- {
-- "zh",--中文
-- "en"--英文
-- }
const
=
const
or
{}
...
...
Masterdulepre/Assets/LuaFramework/Lua/Common/debuger.lua
浏览文件 @
35f81fb3
-- 输出日志--
function
log
(
str
)
if
is_e
ditor
then
if
Is_E
ditor
then
local
luaStackStr
=
debug.traceback
(
str
,
0
)
Util
.
Log
(
luaStackStr
)
else
...
...
@@ -10,7 +10,7 @@ function log(str)
end
function
logGreen
(
str
)
if
is_e
ditor
then
if
Is_E
ditor
then
local
luaStackStr
=
debug.traceback
(
str
,
0
)
Util
.
LogGreen
(
luaStackStr
)
else
...
...
@@ -19,7 +19,7 @@ function logGreen(str)
end
function
LogYellow
(
str
)
if
is_e
ditor
then
if
Is_E
ditor
then
local
luaStackStr
=
debug.traceback
(
str
,
0
)
Util
.
LogYellow
(
luaStackStr
)
else
...
...
@@ -28,7 +28,7 @@ function LogYellow(str)
end
function
LogBlue
(
str
)
if
is_e
ditor
then
if
Is_E
ditor
then
local
luaStackStr
=
debug.traceback
(
str
,
0
)
Util
.
LogBlue
(
luaStackStr
)
else
...
...
Masterdulepre/Assets/LuaFramework/Lua/Config/Language.lua
浏览文件 @
35f81fb3
--[[Notice: This lua config file is auto generate by Language.xlsx,don't modify it manually! --]]
local
indexData
=
{
key
=
1
,
--主键
zh
=
2
,
--中文
des
=
3
,
--中文描述
zh
=
1
,
--中文
des
=
2
,
--中文描述
}
local
data
=
{
[
3
]
=
{[
1
]
=
3
,[
2
]
=
'擂台'
,[
3
]
=
'使用擂台主自定义规则对战'
,},
[
4
]
=
{[
1
]
=
4
,[
2
]
=
'构筑'
,[
3
]
=
'制作一张卡'
,},
[
5
]
=
{[
1
]
=
5
,[
2
]
=
'牌库'
,[
3
]
=
'包含系统赠送和自定义卡牌和卡组'
,},
[
1
]
=
{[
1
]
=
'剧情'
,[
2
]
=
'技巧引导和背景故事'
,},
[
2
]
=
{[
1
]
=
'排位'
,[
2
]
=
'使用标准规则进行对战'
,},
[
3
]
=
{[
1
]
=
'擂台'
,[
2
]
=
'使用擂台主自定义规则对战'
,},
[
4
]
=
{[
1
]
=
'构筑'
,[
2
]
=
'制作一张卡'
,},
[
5
]
=
{[
1
]
=
'牌库'
,[
2
]
=
'包含系统赠送和自定义卡牌和卡组'
,},
}
local
mt
=
{}
...
...
Masterdulepre/Assets/LuaFramework/Lua/Logic/Main.lua
浏览文件 @
35f81fb3
-- 入口脚本
Main
=
Main
or
{}
Is_Editor
=
UnityEngine
.
Application
.
isEditor
function
Main
.
Init
()
log
(
"Lua Main.Init"
)
const
:
Init
()
log
(
"Lua Main.Init"
)
const
:
Init
()
end
function
Main
.
Start
()
...
...
Masterdulepre/Assets/LuaFramework/Lua/View/Menu/MenuPanel.lua
浏览文件 @
35f81fb3
...
...
@@ -2,18 +2,16 @@
MenuPanel
=
ViewBase
:
New
(
"MenuPanel"
,
true
)
function
MenuPanel
:
OnShow
()
local
Par_snow
=
self
.
binder
:
GetObj
(
"Par_snow"
)
Par_snow
:
Play
()
local
Ani_box
=
self
.
binder
:
GetObj
(
"Ani_box"
)
Ani_box
:
Play
(
"UI3d_Box_chuxian"
)
self
.
binder
:
GetObj
(
"Par_snow"
):
Play
()
self
.
binder
:
GetObj
(
"Ani_box"
):
Play
(
"UI3d_Box_chuxian"
)
end
function
MenuPanel
:
OnHide
()
Par_snow
:
Stop
()
self
.
binder
:
GetObj
(
"Par_snow"
)
:
Stop
()
end
function
MenuPanel
:
OnClick_Btn_
chess
()
function
MenuPanel
:
OnClick_Btn_
rank
()
self
.
binder
:
GetObj
(
"Te_rank"
).
text
=
""
end
Masterdulepre/Assets/ResAssets/Menu/MenuPanel.prefab
浏览文件 @
35f81fb3
...
...
@@ -5955,13 +5955,13 @@ MonoBehaviour:
obj
:
{
fileID
:
4765649833677787987
}
-
name
:
Btn_story
obj
:
{
fileID
:
7731447238900948756
}
-
name
:
Te_
war
-
name
:
Te_
rank
obj
:
{
fileID
:
87621599633251042
}
-
name
:
Btn_
war
-
name
:
Btn_
rank
obj
:
{
fileID
:
2621985431312564303
}
-
name
:
Btn_
other
-
name
:
Btn_
arena
obj
:
{
fileID
:
2673485502122126147
}
-
name
:
Te_
other
-
name
:
Te_
arena
obj
:
{
fileID
:
87621599141157135
}
-
name
:
Btn_cards
obj
:
{
fileID
:
4561376170413005867
}
...
...
@@ -5971,14 +5971,6 @@ MonoBehaviour:
obj
:
{
fileID
:
281550965111508810
}
-
name
:
Te_build
obj
:
{
fileID
:
87621598770888904
}
-
name
:
sdasda
obj
:
{
fileID
:
1796881594
}
-
name
:
sdasdasa
obj
:
{
fileID
:
471395263
}
-
name
:
sdasad
obj
:
{
fileID
:
471395263
}
-
name
:
asdasda
obj
:
{
fileID
:
1796881594
}
---
!u!95
&87621597751403527
Animator
:
serializedVersion
:
4
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录