Skip to content

Commit

Permalink
整理代码
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Jan 12, 2024
1 parent 0583c5f commit 8c8325e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions assets/skin/mino_template.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ local gc_draw,gc_line=gc.draw,gc.line
local gc_rectangle=gc.rectangle
local gc_printf=gc.printf

local stc_reset,stc_rect,stc_stop=GC.stc_reset,GC.stc_rect,GC.stc_stop

local max,min=math.max,math.min

local COLOR=COLOR
Expand Down Expand Up @@ -146,12 +148,12 @@ function S.drawLockDelayIndicator(freshCondition,freshChance,timeRem)
freshCondition=='none' and COLOR.D or
COLOR.random(4)
)
GC.stc_reset()
GC.stc_rect(-200,415,400*timeRem,14)
stc_reset()
stc_rect(-200,415,400*timeRem,14)
for i=1,freshChance do gc_rectangle('fill',-218+26*i-1,420-1,20+2,5+2) end
gc_setColor(COLOR.hsv(freshChance/(14*2.6),.4,.9))
for i=1,freshChance do gc_rectangle('fill',-218+26*i,420,20,5) end
GC.stc_stop()
stc_stop()
gc_setColor(COLOR.hsv(freshChance/(14*2.6),.4,.9,.62))
for i=1,freshChance do gc_rectangle('fill',-218+26*i,420,20,5) end
end
Expand Down

0 comments on commit 8c8325e

Please sign in to comment.