Skip to content

Commit

Permalink
change "lock" effect for 2dir mode in menu system
Browse files Browse the repository at this point in the history
also pass player number to said commands. Yeah, now I noticed.
  • Loading branch information
ListenerJubatus committed Mar 8, 2018
1 parent 918bf9c commit 01ddc35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Themes/_fallback/Scripts/04 menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1103,13 +1103,13 @@ menu_controller_mt= {
if self.in_adjust_mode then
self.in_adjust_mode= false
if self.cursor then
self.cursor:playcommand("NormalMode")
self.cursor:playcommand("NormalMode", self.pn)
end
return sound_ret("adjust_mode_off")
else
self.in_adjust_mode= true
if self.cursor then
self.cursor:playcommand("AdjustMode")
self.cursor:playcommand("AdjustMode", self.pn)
end
return sound_ret("adjust_mode_on")
end
Expand Down
10 changes: 4 additions & 6 deletions Themes/default/Graphics/generic_menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -343,13 +343,11 @@ local menu_frame= Def.ActorFrame{
-- (left, right, and start buttons only)
-- So adjust mode means that left and right will change the value instead
-- of moving the cursor.
-- This is of course a placeholder command that Lirodon is supposed to
-- change.
NormalModeCommand= function(self)
self:linear(.1):rotationz(0)
NormalModeCommand=function(self, pn)
self:linear(0.2):diffuse(ColorLightTone(PlayerColor(pn))):stopeffect();
end,
AdjustModeCommand= function(self)
self:linear(.1):rotationz(90)
AdjustModeCommand=function(self, pn)
self:linear(0.2):diffuseshift():effectclock('beatnooffset')
end,
LoadActor(THEME:GetPathG("OptionsCursor", "Middle"))..{Name= "middle"},
LoadActor(THEME:GetPathG("OptionsCursor", "Left"))..{Name= "left"},
Expand Down

0 comments on commit 01ddc35

Please sign in to comment.