Skip to content

Commit

Permalink
修干旱模式序列名称错误
Browse files Browse the repository at this point in the history
整理代码 框架跟进
  • Loading branch information
MrZ626 committed Nov 4, 2023
1 parent de7e73e commit ea17458
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Zenitha
6 changes: 3 additions & 3 deletions assets/game/classes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@
---@field name string Mode name, for debug use

---@class Techmino.Mode.Setting.Mino
---@field event table<Techmino.mode.event.basic|Techmino.mode.event.mino,string|table|function|table<number,string|table|function>>
---@field event table<Techmino.mode.event.basic|Techmino.mode.event.mino, string|table|function|table<number, string|table|function>>

---@class Techmino.Mode.Setting.Puyo
---@field event table<Techmino.mode.event.basic|Techmino.mode.event.puyo,string|table|function|table<number,string|table|function>>
---@field event table<Techmino.mode.event.basic|Techmino.mode.event.puyo, string|table|function|table<number, string|table|function>>

---@class Techmino.Mode.Setting.Gem
---@field event table<Techmino.mode.event.basic|Techmino.mode.event.gem,string|table|function|table<number,string|table|function>>
---@field event table<Techmino.mode.event.basic|Techmino.mode.event.gem, string|table|function|table<number, string|table|function>>

---@class Techmino.mino.clearRule
---@field getDelay fun(P:Techmino.Player.mino, lines:number[]): number?
Expand Down
2 changes: 1 addition & 1 deletion assets/game/minoes.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local Mino={}


---@type table<any,Techmino.Mino>
---@type table<any, Techmino.Mino>
local minoes={}

function Mino.registerMino(name,id,shape)
Expand Down
2 changes: 1 addition & 1 deletion assets/game/mode/mino/exterior/sprint_drought_40.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ return {
playBgm('race','base')
end,
settings={mino={
seqType='bag12_drought',
seqType='bag6p6_drought',
event={
afterClear={
mechLib.mino.sprint.event_afterClear[40],
Expand Down
6 changes: 2 additions & 4 deletions assets/scene/setting_out.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ local page
4 = Gameplay
]]

local mobile=SYSTEM=='Android' or SYSTEM=='iOS'

function scene.enter()
page=tostring(SCN.args[1] or 1)
for _,v in next,scene.widgetList do
Expand All @@ -21,8 +19,8 @@ function scene.enter()
end
end
if page=="3" then
scene.widgetList["3f"]:setVisible(not mobile)
scene.widgetList["3p"]:setVisible(mobile)
scene.widgetList["3f"]:setVisible(not MOBILE)
scene.widgetList["3p"]:setVisible(MOBILE)
end
scene.widgetList.test:setVisible(not GAME.mode)
WIDGET._reset()
Expand Down

0 comments on commit ea17458

Please sign in to comment.