Skip to content

Commit

Permalink
fix gameplay UI for dance solo
Browse files Browse the repository at this point in the history
...mostly by removing features.
  • Loading branch information
quietly-turning committed May 31, 2018
1 parent 6483d6e commit b84b1c2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ local pn = ToEnumShortString(player)
if SL[pn].ActiveModifiers.TargetStatus ~= "Step Statistics"
or SL.Global.Gamestate.Style ~= "single"
or SL.Global.GameMode == "Casual"
or GAMESTATE:GetCurrentStyle():GetStepsType() == "StepsType_Dance_Solo"
or (PREFSMAN:GetPreference("Center1Player") and not IsUsingWideScreen())
then
return
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
local player = ...
local pn = ToEnumShortString(player)

local IsPlayingDanceSolo = (GAMESTATE:GetCurrentStyle():GetStepsType() == "StepsType_Dance_Solo")

-- if nobody wants us, we won't appear
if (SL[pn].ActiveModifiers.TargetStatus == "Disabled"
or SL[pn].ActiveModifiers.TargetStatus == "Step Statistics"
Expand Down
4 changes: 2 additions & 2 deletions BGAnimations/ScreenSelectStyle overlay/choice.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ local drawNinePanelPad = function(color, xoffset)
self:x(zoomFactor * self:GetWidth())
self:y(zoomFactor * self:GetHeight())

if gameName == "pump" or gameName == "techno" or gameName == "dance" and choiceName == "Solo" then
if gameName == "pump" or gameName == "techno" or gameName == "dance" and choiceName == "solo" then
self:diffuse(DifficultyIndexColor(color))
else
self:diffuse(0.2,0.2,0.2,1)
Expand Down Expand Up @@ -49,7 +49,7 @@ local drawNinePanelPad = function(color, xoffset)
self:x(zoomFactor * self:GetWidth() * 3)
self:y(zoomFactor * self:GetHeight())

if gameName == "pump" or gameName == "techno" or gameName == "dance" and choiceName == "Solo" then
if gameName == "pump" or gameName == "techno" or gameName == "dance" and choiceName == "solo" then
self:diffuse(DifficultyIndexColor(color))
else
self:diffuse(0.2,0.2,0.2,1)
Expand Down
4 changes: 2 additions & 2 deletions Scripts/SL-Helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ end
function GetNotefieldX( player )
local p = ToEnumShortString(player)

local IsUsingSoloSingles = PREFSMAN:GetPreference('Center1Player')
local IsPlayingDanceSolo = (GAMESTATE:GetCurrentStyle():GetStepsType() == "StepsType_Dance_Solo")
local IsUsingSoloSingles = PREFSMAN:GetPreference('Center1Player') or IsPlayingDanceSolo
local NumPlayersEnabled = GAMESTATE:GetNumPlayersEnabled()
local NumSidesJoined = GAMESTATE:GetNumSidesJoined()
local IsPlayingDanceSolo = (GAMESTATE:GetCurrentStyle():GetStepsType() == "StepsType_Dance_Solo")

if IsUsingSoloSingles and NumPlayersEnabled == 1 and NumSidesJoined == 1 then return _screen.cx end
if GAMESTATE:GetCurrentStyle():GetStyleType() == "StyleType_OnePlayerTwoSides" then return _screen.cx end
Expand Down
7 changes: 6 additions & 1 deletion Scripts/SL-PlayerOptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,12 @@ local Overrides = {
-------------------------------------------------------------------------
TargetStatus = {
Values = function()
local choices = { "Disabled", "Target Score Graph" }
local choices = { "Disabled" }

if not GAMESTATE:GetCurrentStyle():GetStepsType() == "StepsType_Dance_Solo" then
choice[#choices+1] = "Target Score Graph"
end

if GAMESTATE:GetCurrentStyle():GetName() == "single" and not (PREFSMAN:GetPreference("Center1Player") and not IsUsingWideScreen()) then
choices[#choices+1] = "Step Statistics"
end
Expand Down

0 comments on commit b84b1c2

Please sign in to comment.