新增导出/导入数据界面(从统计界面进入)
This commit is contained in:
@@ -50,8 +50,8 @@ return{
|
|||||||
ranks={"D","C","B","A","S"},
|
ranks={"D","C","B","A","S"},
|
||||||
|
|
||||||
needRestart="Effective after restart",
|
needRestart="Effective after restart",
|
||||||
copySuccess="Copied successfully",
|
exportSuccess="Export successfully",
|
||||||
pasteSuccess="Pasted successfully",
|
importSuccess="Import successfully",
|
||||||
dataCorrupted="Data corrupted",
|
dataCorrupted="Data corrupted",
|
||||||
VKTchW="Touch Weight",
|
VKTchW="Touch Weight",
|
||||||
VKOrgW="Origin Weight",
|
VKOrgW="Origin Weight",
|
||||||
@@ -421,6 +421,7 @@ return{
|
|||||||
},
|
},
|
||||||
stat={
|
stat={
|
||||||
path="Open Data Folder",
|
path="Open Data Folder",
|
||||||
|
save="Data Management",
|
||||||
},
|
},
|
||||||
music={
|
music={
|
||||||
title="Music Room",
|
title="Music Room",
|
||||||
@@ -528,13 +529,21 @@ return{
|
|||||||
pong={
|
pong={
|
||||||
reset="Restart",
|
reset="Restart",
|
||||||
},
|
},
|
||||||
debug={
|
savedata={
|
||||||
copyLog="Copy Log",
|
exportUnlock="Export progress",
|
||||||
scrInfo="Screen Info",
|
exportData="Export statistics",
|
||||||
|
exportSetting="Export settings",
|
||||||
|
exportVK="Export virtualkey layout",
|
||||||
|
|
||||||
|
importUnlock="Import progress",
|
||||||
|
importData="Import statistics",
|
||||||
|
importSetting="Import settings",
|
||||||
|
importVK="Import virtualkey layout",
|
||||||
|
|
||||||
reset="RESET?",
|
reset="RESET?",
|
||||||
reset1="Reset ranks",
|
resetUnlock="Reset ranks",
|
||||||
reset2="Reset data",
|
resetData="Reset data",
|
||||||
reset3="Reset all",
|
resetALL="Reset all",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
modes={
|
modes={
|
||||||
|
|||||||
@@ -52,8 +52,8 @@ return{
|
|||||||
getRank="Rang: ",
|
getRank="Rang: ",
|
||||||
|
|
||||||
needRestart="Fonctionnera dès la prochaine partie",
|
needRestart="Fonctionnera dès la prochaine partie",
|
||||||
copySuccess="Copié avec succès",
|
-- exportSuccess="Export successfully",
|
||||||
pasteSuccess="Collé avec succès",
|
-- importSuccess="Import successfully",
|
||||||
dataCorrupted="Données corrompues",
|
dataCorrupted="Données corrompues",
|
||||||
VKTchW="Poids du toucher",
|
VKTchW="Poids du toucher",
|
||||||
VKOrgW="Pois d'origine",
|
VKOrgW="Pois d'origine",
|
||||||
@@ -417,6 +417,7 @@ return{
|
|||||||
},
|
},
|
||||||
stat={
|
stat={
|
||||||
path="Ouvrir dossier des données",
|
path="Ouvrir dossier des données",
|
||||||
|
-- save="Data Management",
|
||||||
},
|
},
|
||||||
music={
|
music={
|
||||||
title="Salon musical",
|
title="Salon musical",
|
||||||
@@ -530,13 +531,21 @@ return{
|
|||||||
his="History",
|
his="History",
|
||||||
qq="QQ du créateur",
|
qq="QQ du créateur",
|
||||||
},
|
},
|
||||||
debug={
|
savedata={
|
||||||
copyLog="Copier logs",
|
-- exportUnlock="Export Unlock",
|
||||||
scrInfo="Montrer les infos de l'écran",
|
-- exportData="Export Data",
|
||||||
|
-- exportSetting="Export Setting",
|
||||||
|
-- exportVK="Export VK",
|
||||||
|
|
||||||
|
-- importUnlock="Import Unlock",
|
||||||
|
-- importData="Import Data",
|
||||||
|
-- importSetting="Import Setting",
|
||||||
|
-- importVK="Import VK",
|
||||||
|
|
||||||
reset="Réinitialiser ?",
|
reset="Réinitialiser ?",
|
||||||
reset1="Réinitialiser les rangs",
|
resetUnlock="Réinitialiser les rangs",
|
||||||
reset2="Réinitialiser les données",
|
resetData="Réinitialiser les données",
|
||||||
reset3="Tout réinitialiser",
|
resetALL="Tout réinitialiser",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
modes={
|
modes={
|
||||||
|
|||||||
@@ -52,8 +52,8 @@ return{
|
|||||||
getRank="Rango obtenido:",
|
getRank="Rango obtenido:",
|
||||||
|
|
||||||
needRestart="Reinicia Techmino para que los cambios tengan efecto.",
|
needRestart="Reinicia Techmino para que los cambios tengan efecto.",
|
||||||
copySuccess="Copiado con éxito al Portapapeles",
|
-- exportSuccess="Export successfully",
|
||||||
pasteSuccess="Pegado con éxito",
|
-- importSuccess="Import successfully",
|
||||||
dataCorrupted="Los datos están corruptos.",
|
dataCorrupted="Los datos están corruptos.",
|
||||||
VKTchW="Sens. al toque",
|
VKTchW="Sens. al toque",
|
||||||
VKOrgW="Sens. al origen",
|
VKOrgW="Sens. al origen",
|
||||||
@@ -422,6 +422,7 @@ return{
|
|||||||
},
|
},
|
||||||
stat={
|
stat={
|
||||||
path="Abrir carpeta del juego",
|
path="Abrir carpeta del juego",
|
||||||
|
-- save="Data Management",
|
||||||
},
|
},
|
||||||
music={
|
music={
|
||||||
title="Sala de Música",
|
title="Sala de Música",
|
||||||
@@ -529,13 +530,21 @@ return{
|
|||||||
pong={
|
pong={
|
||||||
reset="Reiniciar",
|
reset="Reiniciar",
|
||||||
},
|
},
|
||||||
debug={
|
savedata={
|
||||||
copyLog="Copiar Reporte",
|
-- exportUnlock="Export Unlock",
|
||||||
scrInfo="Mostrar inf. de pant.",
|
-- exportData="Export Data",
|
||||||
|
-- exportSetting="Export Setting",
|
||||||
|
-- exportVK="Export VK",
|
||||||
|
|
||||||
|
-- importUnlock="Import Unlock",
|
||||||
|
-- importData="Import Data",
|
||||||
|
-- importSetting="Import Setting",
|
||||||
|
-- importVK="Import VK",
|
||||||
|
|
||||||
reset="¿Reiniciar?",
|
reset="¿Reiniciar?",
|
||||||
reset1="Reiniciar rangos",
|
resetUnlock="Reiniciar rangos",
|
||||||
reset2="Reiniciar datos",
|
resetData="Reiniciar datos",
|
||||||
reset3="Reiniciar todo",
|
resetALL="Reiniciar todo",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
modes={
|
modes={
|
||||||
|
|||||||
@@ -49,8 +49,8 @@ return{
|
|||||||
recSavingError="x!:",
|
recSavingError="x!:",
|
||||||
|
|
||||||
needRestart="!!*#R#*!!",
|
needRestart="!!*#R#*!!",
|
||||||
copySuccess="~$~",
|
exportSuccess="~Out~",
|
||||||
pasteSuccess="~v~",
|
importSuccess="~In~",
|
||||||
dataCorrupted="XXXXX",
|
dataCorrupted="XXXXX",
|
||||||
VKTchW="Tch↓",
|
VKTchW="Tch↓",
|
||||||
VKOrgW="Org↓",
|
VKOrgW="Org↓",
|
||||||
@@ -372,7 +372,8 @@ return{
|
|||||||
down="↓",
|
down="↓",
|
||||||
},
|
},
|
||||||
stat={
|
stat={
|
||||||
path="_$_",
|
path="%$%",
|
||||||
|
save="%0101%",
|
||||||
},
|
},
|
||||||
music={
|
music={
|
||||||
title="(~~~~)",
|
title="(~~~~)",
|
||||||
|
|||||||
@@ -51,8 +51,8 @@ return{
|
|||||||
ranks={"D","C","B","A","S"},
|
ranks={"D","C","B","A","S"},
|
||||||
|
|
||||||
needRestart="重新开始以生效",
|
needRestart="重新开始以生效",
|
||||||
copySuccess="已复制到剪切板",
|
exportSuccess="导出成功",
|
||||||
pasteSuccess="粘贴成功",
|
importSuccess="导入成功",
|
||||||
dataCorrupted="数据损坏",
|
dataCorrupted="数据损坏",
|
||||||
VKTchW="触摸点权重",
|
VKTchW="触摸点权重",
|
||||||
VKOrgW="原始点权重",
|
VKOrgW="原始点权重",
|
||||||
@@ -433,6 +433,7 @@ return{
|
|||||||
},
|
},
|
||||||
stat={
|
stat={
|
||||||
path="打开存储目录",
|
path="打开存储目录",
|
||||||
|
save="用户档案管理",
|
||||||
},
|
},
|
||||||
login={
|
login={
|
||||||
title="登录/注册",
|
title="登录/注册",
|
||||||
@@ -530,13 +531,21 @@ return{
|
|||||||
pong={
|
pong={
|
||||||
reset="重置",
|
reset="重置",
|
||||||
},
|
},
|
||||||
debug={
|
savedata={
|
||||||
copyLog="复制日志",
|
exportUnlock="导出地图进度",
|
||||||
scrInfo="输出屏幕信息",
|
exportData="导出统计数据",
|
||||||
|
exportSetting="导出设置",
|
||||||
|
exportVK="导出虚拟按键布局",
|
||||||
|
|
||||||
|
importUnlock="导入地图进度",
|
||||||
|
importData="导入统计数据",
|
||||||
|
importSetting="导入设置",
|
||||||
|
importVK="导入虚拟按键布局",
|
||||||
|
|
||||||
reset="重置?",
|
reset="重置?",
|
||||||
reset1="重置解锁/等级",
|
resetUnlock="重置解锁/等级",
|
||||||
reset2="重置统计",
|
resetData="重置统计",
|
||||||
reset3="清空所有数据",
|
resetALL="清空所有数据",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
modes={
|
modes={
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
local sys,fs=love.filesystem,love.filesystem
|
local fs=love.filesystem
|
||||||
|
|
||||||
local files={
|
local files={
|
||||||
data= fs.newFile("data.dat"),
|
data= fs.newFile("data.dat"),
|
||||||
@@ -35,9 +35,6 @@ function FILE.delRecord(N)
|
|||||||
fs.remove(N..".dat")
|
fs.remove(N..".dat")
|
||||||
end
|
end
|
||||||
|
|
||||||
function FILE.exportUnlock()
|
|
||||||
sys.setClipboardText(dumpTable(RANKS))
|
|
||||||
end
|
|
||||||
function FILE.loadUnlock()
|
function FILE.loadUnlock()
|
||||||
local F=files.unlock
|
local F=files.unlock
|
||||||
if F:open("r")then
|
if F:open("r")then
|
||||||
@@ -61,9 +58,6 @@ function FILE.saveUnlock()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function FILE.exportUnlock()
|
|
||||||
sys.setClipboardText(dumpTable(STAT))
|
|
||||||
end
|
|
||||||
function FILE.loadData()
|
function FILE.loadData()
|
||||||
local F=files.data
|
local F=files.data
|
||||||
if F:open("r")then
|
if F:open("r")then
|
||||||
@@ -90,9 +84,6 @@ function FILE.saveData()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function FILE.exportSetting()
|
|
||||||
sys.setClipboardText(dumpTable(SETTING))
|
|
||||||
end
|
|
||||||
function FILE.loadSetting()
|
function FILE.loadSetting()
|
||||||
local F=files.setting
|
local F=files.setting
|
||||||
if F:open("r")then
|
if F:open("r")then
|
||||||
@@ -139,9 +130,6 @@ function FILE.saveKeyMap()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function FILE.exportVK()
|
|
||||||
sys.setClipboardText(dumpTable(VK_org))
|
|
||||||
end
|
|
||||||
function FILE.loadVK()
|
function FILE.loadVK()
|
||||||
local F=files.VK
|
local F=files.VK
|
||||||
if F:open("r")then
|
if F:open("r")then
|
||||||
|
|||||||
@@ -52,18 +52,10 @@ function keyDown.calculator(k)
|
|||||||
S.val=sub(S.val,1,-2)
|
S.val=sub(S.val,1,-2)
|
||||||
end
|
end
|
||||||
if S.val==""then S.val="0"end
|
if S.val==""then S.val="0"end
|
||||||
elseif k=="+"or k=="="and kb.isDown("lshift","rshift")then
|
elseif k=="+"or k=="="and kb.isDown("lshift","rshift")then S.sym="+" S.reg=false
|
||||||
S.sym="+"
|
elseif k=="*"or k=="8"and kb.isDown("lshift","rshift")then S.sym="*" S.reg=false
|
||||||
S.reg=false
|
elseif k=="-"then S.sym="-" S.reg=false
|
||||||
elseif k=="-"then
|
elseif k=="/"then S.sym="/" S.reg=false
|
||||||
S.sym="-"
|
|
||||||
S.reg=false
|
|
||||||
elseif k=="*"or k=="8"and kb.isDown("lshift","rshift")then
|
|
||||||
S.sym="*"
|
|
||||||
S.reg=false
|
|
||||||
elseif k=="/"then
|
|
||||||
S.sym="/"
|
|
||||||
S.reg=false
|
|
||||||
elseif k=="return"then
|
elseif k=="return"then
|
||||||
if byte(S.val,-1)==101 then S.val=sub(S.val,1,-2)end
|
if byte(S.val,-1)==101 then S.val=sub(S.val,1,-2)end
|
||||||
if S.sym and S.reg then
|
if S.sym and S.reg then
|
||||||
@@ -96,8 +88,16 @@ function keyDown.calculator(k)
|
|||||||
elseif v==1379e8+2626e4+1379 then
|
elseif v==1379e8+2626e4+1379 then
|
||||||
S.pass=true
|
S.pass=true
|
||||||
SCN.go("debug")
|
SCN.go("debug")
|
||||||
elseif v%1==0 and v>=6001 and v<=6012 then
|
elseif v%1==0 and v>=8001 and v<=8012 then
|
||||||
love.keypressed("f"..(v-6000))
|
love.keypressed("f"..(v-8000))
|
||||||
|
elseif v==670 then
|
||||||
|
LOG.print("Screen Info:")
|
||||||
|
LOG.print("x y: "..SCR.x.." "..SCR.y)
|
||||||
|
LOG.print("w h: "..SCR.w.." "..SCR.h)
|
||||||
|
LOG.print("W H: "..SCR.W.." "..SCR.H)
|
||||||
|
LOG.print("k: "..math.floor(SCR.k*100)*.01)
|
||||||
|
LOG.print("rad: "..math.floor(SCR.rad*100)*.01)
|
||||||
|
LOG.print("dpi: "..SCR.dpi)
|
||||||
end
|
end
|
||||||
elseif k=="escape"then
|
elseif k=="escape"then
|
||||||
S.val,S.reg,S.sym="0"
|
S.val,S.reg,S.sym="0"
|
||||||
|
|||||||
@@ -1,57 +0,0 @@
|
|||||||
function sceneInit.debug()
|
|
||||||
sceneTemp={
|
|
||||||
reset=false,
|
|
||||||
}
|
|
||||||
end
|
|
||||||
function keyDown.debug(key)
|
|
||||||
LOG.print("keyPress: ["..key.."]")
|
|
||||||
end
|
|
||||||
|
|
||||||
WIDGET.init("debug",{
|
|
||||||
WIDGET.newButton({name="scrInfo",x=300,y=120,w=300,h=100,color="green",code=function()
|
|
||||||
LOG.print("Screen Info:")
|
|
||||||
LOG.print("x y: "..SCR.x.." "..SCR.y)
|
|
||||||
LOG.print("w h: "..SCR.w.." "..SCR.h)
|
|
||||||
LOG.print("W H: "..SCR.W.." "..SCR.H)
|
|
||||||
LOG.print("k: "..math.floor(SCR.k*100)*.01)
|
|
||||||
LOG.print("rad: "..math.floor(SCR.rad*100)*.01)
|
|
||||||
LOG.print("dpi: "..SCR.dpi)
|
|
||||||
end}),
|
|
||||||
WIDGET.newButton({name="reset",x=640,y=380,w=240,h=100,color="orange",font=40,
|
|
||||||
code=function()sceneTemp.reset=true end,
|
|
||||||
hide=WIDGET.lnk.STPval("reset")}),
|
|
||||||
WIDGET.newButton({name="reset1",x=340,y=480,w=240,h=100,color="red",font=35,
|
|
||||||
code=function()
|
|
||||||
love.filesystem.remove("unlock.dat")
|
|
||||||
SFX.play("finesseError_long")
|
|
||||||
TEXT.show("rank resetted",640,300,60,"stretch",.4)
|
|
||||||
TEXT.show("effected after restart game",640,360,60,"stretch",.4)
|
|
||||||
TEXT.show("play one game if you regret",640,390,40,"stretch",.4)
|
|
||||||
end,
|
|
||||||
hide=function()return not sceneTemp.reset end}),
|
|
||||||
WIDGET.newButton({name="reset2",x=640,y=480,w=260,h=100,color="red",font=35,
|
|
||||||
code=function()
|
|
||||||
love.filesystem.remove("data.dat")
|
|
||||||
SFX.play("finesseError_long")
|
|
||||||
TEXT.show("game data resetted",640,300,60,"stretch",.4)
|
|
||||||
TEXT.show("effected after restart game",640,360,60,"stretch",.4)
|
|
||||||
TEXT.show("play one game if you regret",640,390,40,"stretch",.4)
|
|
||||||
end,
|
|
||||||
hide=function()return not sceneTemp.reset end}),
|
|
||||||
WIDGET.newButton({name="reset3",x=940,y=480,w=260,h=100,color="red",font=35,
|
|
||||||
code=function()
|
|
||||||
local L=love.filesystem.getDirectoryItems("")
|
|
||||||
for i=1,#L do
|
|
||||||
local s=L[i]
|
|
||||||
if s:sub(-4)==".dat"then
|
|
||||||
love.filesystem.remove(s)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
SFX.play("clear_4")SFX.play("finesseError_long")
|
|
||||||
TEXT.show("all file deleted",640,330,60,"stretch",.4)
|
|
||||||
TEXT.show("effected after restart game",640,390,60,"stretch",.4)
|
|
||||||
SCN.back()
|
|
||||||
end,
|
|
||||||
hide=function()return not sceneTemp.reset end}),
|
|
||||||
WIDGET.newButton({name="back",x=640,y=620,w=200,h=80,font=40,code=WIDGET.lnk.BACK}),
|
|
||||||
})
|
|
||||||
88
parts/scenes/savedata.lua
Normal file
88
parts/scenes/savedata.lua
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
function sceneInit.savedata()
|
||||||
|
sceneTemp={reset=false}
|
||||||
|
end
|
||||||
|
function keyDown.savedata(key)
|
||||||
|
LOG.print("keyPress: ["..key.."]")
|
||||||
|
end
|
||||||
|
|
||||||
|
local NULL={}
|
||||||
|
local function encodeCB(T)
|
||||||
|
love.system.setClipboardText(
|
||||||
|
love.data.encode(
|
||||||
|
"string","base64",
|
||||||
|
love.data.compress(
|
||||||
|
"string","zlib",
|
||||||
|
dumpTable(T)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
LOG.print(text.exportSuccess)
|
||||||
|
end
|
||||||
|
local function parseCB()
|
||||||
|
local _
|
||||||
|
local s=love.system.getClipboardText()
|
||||||
|
|
||||||
|
--Decode
|
||||||
|
_,s=pcall(love.data.decode,"string","base64",s)
|
||||||
|
if not _ then LOG.print(text.dataCorrupted,COLOR.red)return end
|
||||||
|
_,s=pcall(love.data.decompress,"string","zlib",s)
|
||||||
|
if not _ then LOG.print(text.dataCorrupted,COLOR.red)return end
|
||||||
|
|
||||||
|
s=loadstring(s)
|
||||||
|
if s then
|
||||||
|
setfenv(s,NULL)
|
||||||
|
LOG.print(text.importSuccess,COLOR.green)
|
||||||
|
return s()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
local function HIDE()
|
||||||
|
return not sceneTemp.reset
|
||||||
|
end
|
||||||
|
WIDGET.init("savedata",{
|
||||||
|
WIDGET.newButton({name="exportUnlock", x=190,y=150,w=280,h=100,color="lGreen",font=25,code=function()encodeCB(RANKS)end}),
|
||||||
|
WIDGET.newButton({name="exportData", x=490,y=150,w=280,h=100,color="lGreen",font=25,code=function()encodeCB(STAT)end}),
|
||||||
|
WIDGET.newButton({name="exportSetting", x=790,y=150,w=280,h=100,color="lGreen",font=25,code=function()encodeCB(SETTING)end}),
|
||||||
|
WIDGET.newButton({name="exportVK", x=1090,y=150,w=280,h=100,color="lGreen",font=25,code=function()encodeCB(VK_org)end}),
|
||||||
|
|
||||||
|
WIDGET.newButton({name="importUnlock", x=190,y=300,w=280,h=100,color="lBlue",font=25,code=function()addToTable(parseCB()or NULL,RANKS)end}),
|
||||||
|
WIDGET.newButton({name="importData", x=490,y=300,w=280,h=100,color="lBlue",font=25,code=function()addToTable(parseCB()or NULL,STAT)end}),
|
||||||
|
WIDGET.newButton({name="importSetting", x=790,y=300,w=280,h=100,color="lBlue",font=25,code=function()addToTable(parseCB()or NULL,SETTING)end}),
|
||||||
|
WIDGET.newButton({name="importVK", x=1090,y=300,w=280,h=100,color="lBlue",font=25,code=function()addToTable(parseCB()or NULL,VK_org)end}),
|
||||||
|
|
||||||
|
WIDGET.newButton({name="reset", x=640,y=460,w=280,h=100,color="lRed",font=40,code=function()sceneTemp.reset=true end,hide=function()return sceneTemp.reset end}),
|
||||||
|
WIDGET.newButton({name="resetUnlock", x=340,y=460,w=280,h=100,color="red",
|
||||||
|
code=function()
|
||||||
|
love.filesystem.remove("unlock.dat")
|
||||||
|
SFX.play("finesseError_long")
|
||||||
|
TEXT.show("rank resetted",640,300,60,"stretch",.4)
|
||||||
|
LOG.print("effected after restart game","message")
|
||||||
|
LOG.print("fresh a rank if you regret","message")
|
||||||
|
end,
|
||||||
|
hide=HIDE}),
|
||||||
|
WIDGET.newButton({name="resetData", x=640,y=460,w=280,h=100,color="red",
|
||||||
|
code=function()
|
||||||
|
love.filesystem.remove("data.dat")
|
||||||
|
SFX.play("finesseError_long")
|
||||||
|
TEXT.show("game data resetted",640,300,60,"stretch",.4)
|
||||||
|
LOG.print("effected after restart game","message")
|
||||||
|
LOG.print("play one game if you regret","message")
|
||||||
|
end,
|
||||||
|
hide=HIDE}),
|
||||||
|
WIDGET.newButton({name="resetALL", x=940,y=460,w=280,h=100,color="red",
|
||||||
|
code=function()
|
||||||
|
local L=love.filesystem.getDirectoryItems("")
|
||||||
|
for i=1,#L do
|
||||||
|
local s=L[i]
|
||||||
|
if s:sub(-4)==".dat"then
|
||||||
|
love.filesystem.remove(s)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
SFX.play("clear_4")SFX.play("finesseError_long")
|
||||||
|
TEXT.show("all file deleted",640,330,60,"stretch",.4)
|
||||||
|
LOG.print("effected after restart game","message")
|
||||||
|
SCN.back()
|
||||||
|
end,
|
||||||
|
hide=HIDE}),
|
||||||
|
|
||||||
|
WIDGET.newButton({name="back", x=640,y=620,w=200,h=80,font=40,code=WIDGET.lnk.BACK}),
|
||||||
|
})
|
||||||
@@ -93,6 +93,7 @@ function Pnt.stat()
|
|||||||
end
|
end
|
||||||
|
|
||||||
WIDGET.init("stat",{
|
WIDGET.init("stat",{
|
||||||
WIDGET.newButton({name="path",x=980,y=620,w=250,h=80,font=25,code=function()love.system.openURL(love.filesystem.getSaveDirectory())end,hide=MOBILE}),
|
WIDGET.newButton({name="path",x=1000,y=540,w=250,h=80,font=25,code=function()love.system.openURL(love.filesystem.getSaveDirectory())end,hide=MOBILE}),
|
||||||
|
WIDGET.newButton({name="save",x=1000,y=640,w=250,h=80,font=25,code=WIDGET.lnk.goScene("savedata")}),
|
||||||
WIDGET.newButton({name="back",x=640,y=620,w=200,h=80,font=35,code=WIDGET.lnk.BACK}),
|
WIDGET.newButton({name="back",x=640,y=620,w=200,h=80,font=35,code=WIDGET.lnk.BACK}),
|
||||||
})
|
})
|
||||||
Reference in New Issue
Block a user