模式和语言文件移入parts文件夹
This commit is contained in:
@@ -9,7 +9,7 @@ local find,sub=string.find,string.sub
|
||||
function sceneInit.dict()
|
||||
local location=({"zh","zh","en","en","en","en","zh"})[SETTING.lang]
|
||||
sceneTemp={
|
||||
dict=require("LANG/dict_"..location),
|
||||
dict=require("parts/language/dict_"..location),
|
||||
|
||||
input="",
|
||||
result={},
|
||||
|
||||
@@ -2,7 +2,7 @@ function sceneBack.lang()
|
||||
FILE.saveSetting()
|
||||
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.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)}),
|
||||
|
||||
@@ -65,7 +65,7 @@ function Tmr.load()
|
||||
SKIN.loadOne(S.cur)
|
||||
elseif S.phase==7 then
|
||||
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
|
||||
for k,v in next,m do
|
||||
M[k]=v
|
||||
|
||||
Reference in New Issue
Block a user