添加legals页面

This commit is contained in:
MrZ626
2021-10-25 04:55:12 +08:00
parent d5f01537f8
commit bccb0b9976
11 changed files with 42 additions and 18 deletions

View File

@@ -3,39 +3,30 @@ TECHMINO and "26F Studio" are trademarks of 26F Studio.
The TECHMINO game and source code are under a GNU Lesser General Public License Version 3.
TECHMINO is not a fan game. TECHMINO and 26F Studio are not affiliated with Tetris Holding, LLC or The Tetris Company, Inc. in any way.
"Tetris" is the registered trademark of The Tetris Holding, LLC, licensed to The Tetris Company, Inc.
Powered by LÖVE, © 2006-2021 LÖVE Development Team.
Lua is free software distributed under the terms of the MIT license. Copyright © 1994~2021 by Lua.org, PUC-Rio.
The Apple logo, "Apple Inc.," iOS, iPadOS, macOS, iPhone, and Mac are registered trademarks of Apple Inc. in the United States of America and other countries or regions.
"Windows", the Windows logo, "Xbox", Xbox logo, and "Microsoft" are registered trademarks of Microsoft Corporation in the United States of America and other countries or regions.
Alibaba Sans is copyrighted by Alibaba Group Holding Limited. Alibaba is a trademark of Alibaba Group Holding Limited in the Peoples Republic of China and other countries or regions.
JetBrains Mono is copyrighted by the JetBrains Mono Project authors. JetBrains Mono is a trademark of JetBrains s.r.o. JetBrains Mono is licensed under the SIL Open Font License, Version 1.1.
"PlayStation", "PS", "PlayStation Family Mark", "PS logo", "DualSense" and "Play Has No Limits" are registered trademarks or trademarks of Sony Interactive Entertainment Inc. "SONY" is a registered trademark of Sony Corporation. © 2021 Sony Interactive Entertainment LLC.
@@ -43,21 +34,16 @@ JetBrains Mono is copyrighted by the JetBrains Mono Project authors. JetBrains M
N3TWORK is a registered trademark of N3TWORK Inc. © 2021 N3TWORK Inc.
"EA" and "Electronic Arts" are registered trademark of Electronic Arts Inc. © 2021 Electronic Arts Inc.
GoldWave is a registered trademark of GoldWave, Inc.
Linux is a registered trademark of Linus Torvalds.
Touhou Project © Team Shanghai Alice 2002-2021.
All other trademarks are the property of their respective owners.

View File

@@ -553,6 +553,7 @@ return{
about={
staff="Staff",
his="History",
legals="Legals",
qq="Author's QQ",
},
dict={

View File

@@ -512,6 +512,7 @@ return{
about={
staff="Staff",
his="Hist. de Acts.",
-- legals="Legals",
qq="QQ del Autor",
},
dict={

View File

@@ -602,6 +602,7 @@ return{
about={
staff="Staff",
his="History",
-- legals="Legals",
qq="QQ du créateur",
},
app_link={

View File

@@ -543,6 +543,7 @@ return{
about={
staff="Staff",
his="History",
-- legals="Legals",
qq="Author's qq",
},
dict={

View File

@@ -422,6 +422,7 @@ return{
about={
staff="Orz",
his="_&_",
legals="",
qq="_@_",
},
dict={

View File

@@ -122,6 +122,7 @@ return{fallback='zh',
about={
staff="游戏谁写的",
his="黑历史",
legals="没人关心的东西",
qq="QQ对线",
},
register={

View File

@@ -570,6 +570,7 @@ return{
about={
staff="制作人员",
his="更新历史",
legals="法律信息",
qq="作者QQ",
},
dict={

View File

@@ -554,7 +554,8 @@ return{
about={
staff="工作人员",
his="历史",
qq="作者qq",
legals="法律",
qq="作者QQ",
},
dict={
title="四联词典",

View File

@@ -60,9 +60,10 @@ end
scene.widgetList={
WIDGET.newImage{name="pay1", x=20, y=20,hide=SYSTEM=='iOS'},
WIDGET.newImage{name="pay2", x=1014,y=20,hide=SYSTEM=='iOS'},
WIDGET.newButton{name="staff", x=1140,y=400,w=220,h=80,font=35,code=goScene'staff'},
WIDGET.newButton{name="his", x=1140,y=500,w=220,h=80,font=35,code=goScene'history'},
WIDGET.newButton{name="qq", x=1140,y=600,w=220,h=80,font=35,code=function()love.system.openURL("tencent://message/?uin=1046101471&Site=&Menu=yes")end,hide=MOBILE},
WIDGET.newButton{name="staff", x=1140,y=380,w=220,h=80,font=35,code=goScene'staff'},
WIDGET.newButton{name="his", x=1140,y=470,w=220,h=80,font=35,code=goScene'history'},
WIDGET.newButton{name="legals", x=1140,y=560,w=220,h=80,font=35,code=goScene'legals'},
WIDGET.newButton{name="qq", x=1140,y=650,w=220,h=80,font=35,code=function()love.system.openURL("tencent://message/?uin=1046101471&Site=&Menu=yes")end,hide=MOBILE},
WIDGET.newButton{name="back", x=640, y=600,w=170,h=80,font=60,fText=CHAR.icon.back,code=backScene},
}

29
parts/scenes/legals.lua Normal file
View File

@@ -0,0 +1,29 @@
local scene={}
function scene.sceneInit()
BG.set('cubes')
WIDGET.active.texts:setTexts(STRING.split(love.filesystem.read("legals.md"),'\n'))
end
function scene.wheelMoved(_,y)
WHEELMOV(y)
end
function scene.keyDown(key)
if key=="up"then
WIDGET.active.texts:scroll(-5)
elseif key=="down"then
WIDGET.active.texts:scroll(5)
elseif key=="pageup"then
WIDGET.active.texts:scroll(-20)
elseif key=="pagedown"then
WIDGET.active.texts:scroll(20)
elseif key=="escape"then
SCN.back()
end
end
scene.widgetList={
WIDGET.newTextBox{name="texts",x=30,y=45,w=1000,h=640,font=15,fix=true},
WIDGET.newButton{name="back",x=1140,y=640,w=170,h=80,font=60,fText=CHAR.icon.back,code=backScene},
}
return scene