模式和语言文件移入parts文件夹
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
local langList={
|
local langList={
|
||||||
require("LANG/lang_zh"),
|
require("parts/language/lang_zh"),
|
||||||
require("LANG/lang_zh2"),
|
require("parts/language/lang_zh2"),
|
||||||
require("LANG/lang_en"),
|
require("parts/language/lang_en"),
|
||||||
require("LANG/lang_fr"),
|
require("parts/language/lang_fr"),
|
||||||
require("LANG/lang_sp"),
|
require("parts/language/lang_sp"),
|
||||||
require("LANG/lang_symbol"),
|
require("parts/language/lang_symbol"),
|
||||||
require("LANG/lang_yygq"),
|
require("parts/language/lang_yygq"),
|
||||||
--Add new language file to LANG folder. Attention, new language won't show in-game when you add language
|
--Add new language file to LANG folder. Attention, new language won't show in-game when you add language
|
||||||
}
|
}
|
||||||
local publicText={
|
local publicText={
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ local int=math.floor
|
|||||||
local pc_drop={50,45,40,35,30,26,22,18,15,12}
|
local pc_drop={50,45,40,35,30,26,22,18,15,12}
|
||||||
local pc_lock={55,50,45,40,36,32,30}
|
local pc_lock={55,50,45,40,36,32,30}
|
||||||
local pc_fall={18,16,14,12,10,9,8,7,6}
|
local pc_fall={18,16,14,12,10,9,8,7,6}
|
||||||
local PCbase=require("modes/PCbase")
|
local PCbase=require("parts/modes/PCbase")
|
||||||
local PClist=require("modes/PClist")
|
local PClist=require("parts/modes/PClist")
|
||||||
local PCtype={[0]=1,2,3,2,3}
|
local PCtype={[0]=1,2,3,2,3}
|
||||||
|
|
||||||
local function task_PC(P)
|
local function task_PC(P)
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
local PCbase=require("modes/PCbase")
|
local PCbase=require("parts/modes/PCbase")
|
||||||
local PClist=require("modes/PClist")
|
local PClist=require("parts/modes/PClist")
|
||||||
local PCtype={
|
local PCtype={
|
||||||
[0]=1,1,1,1,2,
|
[0]=1,1,1,1,2,
|
||||||
1,1,1,1,3,
|
1,1,1,1,3,
|
||||||
@@ -9,7 +9,7 @@ local find,sub=string.find,string.sub
|
|||||||
function sceneInit.dict()
|
function sceneInit.dict()
|
||||||
local location=({"zh","zh","en","en","en","en","zh"})[SETTING.lang]
|
local location=({"zh","zh","en","en","en","en","zh"})[SETTING.lang]
|
||||||
sceneTemp={
|
sceneTemp={
|
||||||
dict=require("LANG/dict_"..location),
|
dict=require("parts/language/dict_"..location),
|
||||||
|
|
||||||
input="",
|
input="",
|
||||||
result={},
|
result={},
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ function sceneBack.lang()
|
|||||||
FILE.saveSetting()
|
FILE.saveSetting()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function setLang(n)return function()LANG.set(n)SETTING.lang=n end end
|
local function setLang(n)return function()SETTING.lang=n LANG.set(n)end end
|
||||||
WIDGET.init("lang",{
|
WIDGET.init("lang",{
|
||||||
WIDGET.newButton({name="zh", x=200, y=100,w=200,h=120,font=45,code=setLang(1)}),
|
WIDGET.newButton({name="zh", x=200, y=100,w=200,h=120,font=45,code=setLang(1)}),
|
||||||
WIDGET.newButton({name="zh2", x=420, y=100,w=200,h=120,font=45,code=setLang(2)}),
|
WIDGET.newButton({name="zh2", x=420, y=100,w=200,h=120,font=45,code=setLang(2)}),
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ function Tmr.load()
|
|||||||
SKIN.loadOne(S.cur)
|
SKIN.loadOne(S.cur)
|
||||||
elseif S.phase==7 then
|
elseif S.phase==7 then
|
||||||
local m=MODES[S.cur]--Mode template
|
local m=MODES[S.cur]--Mode template
|
||||||
local M=require("modes/"..m.name)--Mode file
|
local M=require("parts/modes/"..m.name)--Mode file
|
||||||
MODES[m.name],MODES[S.cur]=M
|
MODES[m.name],MODES[S.cur]=M
|
||||||
for k,v in next,m do
|
for k,v in next,m do
|
||||||
M[k]=v
|
M[k]=v
|
||||||
|
|||||||
Reference in New Issue
Block a user