From a371caeae7f0f6214891c27f22512a2763adf380 Mon Sep 17 00:00:00 2001 From: Brad Charboneau Date: Sat, 17 Jun 2023 12:03:22 -0500 Subject: [PATCH 1/3] fix for progressbar to also display if angle = 180 --- @Resources/scripts/Rotate.lua | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/@Resources/scripts/Rotate.lua b/@Resources/scripts/Rotate.lua index c789fac..0b91c7f 100644 --- a/@Resources/scripts/Rotate.lua +++ b/@Resources/scripts/Rotate.lua @@ -53,18 +53,13 @@ function Initialize() -- write skin width to variables file SKIN:Bang("!WriteKeyValue", "Variables", "SkinWidth", skinWidth, "#@#variables.ini") - -- disable progress bar when angle is higher than 0 - if angle > 0 then - SKIN:Bang("!SetOptionGroup", "GroupProgressBar", "Hidden", 1, config) - end - -- When Angle is 0 revert to default behaviour - if angle ~= 0 then + if angle ~= 0 and angle ~= 180 then if nearestAxis ~= 0 then SKIN:Bang("!SetOptionGroup", "GroupBars", "BarOrientation", "Horizontal", config) - SKIN:Bang("!SetOptionGroup", "GroupProgressBar", "Hidden", 1, config) + SKIN:Bang("!SetOptionGroup", "GroupProgressBar", "Hidden", 1, config) end - SKIN:Bang("!SetOptionGroup", "GroupBars", "AntiAlias", 1, config) + SKIN:Bang("!SetOptionGroup", "GroupBars", "AntiAlias", 1, config) SKIN:Bang("!SetOptionGroup", "GroupBars", "TransformationMatrix", matrix, config) SKIN:Bang("!UpdateMeterGroup", "GroupBars", config) SKIN:Bang("!SetOptionGroup", "GroupBars", "TransformationMatrix", "", config) @@ -80,4 +75,4 @@ function Initialize() -- Deactivate init skin SKIN:Bang("!DeactivateConfig") -end +end \ No newline at end of file From 6e485882a699e73153d89cecd9150e04951c95d5 Mon Sep 17 00:00:00 2001 From: Brad Charboneau Date: Sat, 17 Jun 2023 12:12:16 -0500 Subject: [PATCH 2/3] update comment --- @Resources/scripts/Rotate.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/@Resources/scripts/Rotate.lua b/@Resources/scripts/Rotate.lua index 0b91c7f..a922844 100644 --- a/@Resources/scripts/Rotate.lua +++ b/@Resources/scripts/Rotate.lua @@ -53,7 +53,7 @@ function Initialize() -- write skin width to variables file SKIN:Bang("!WriteKeyValue", "Variables", "SkinWidth", skinWidth, "#@#variables.ini") - -- When Angle is 0 revert to default behaviour + -- When Angle is 0 or 180 revert to default behaviour if angle ~= 0 and angle ~= 180 then if nearestAxis ~= 0 then SKIN:Bang("!SetOptionGroup", "GroupBars", "BarOrientation", "Horizontal", config) From da29cc3cde63623c365bb8d4bf1abe93e45e3de2 Mon Sep 17 00:00:00 2001 From: Brad Charboneau Date: Sat, 17 Jun 2023 12:29:21 -0500 Subject: [PATCH 3/3] fix for issue Allow rotation of song information & progress bar #251 --- @Resources/scripts/Rotate.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/@Resources/scripts/Rotate.lua b/@Resources/scripts/Rotate.lua index a922844..cf95e3d 100644 --- a/@Resources/scripts/Rotate.lua +++ b/@Resources/scripts/Rotate.lua @@ -53,7 +53,7 @@ function Initialize() -- write skin width to variables file SKIN:Bang("!WriteKeyValue", "Variables", "SkinWidth", skinWidth, "#@#variables.ini") - -- When Angle is 0 or 180 revert to default behaviour + -- When Angle is 0 or 180 revert to default behaviour, fix for issue #251 if angle ~= 0 and angle ~= 180 then if nearestAxis ~= 0 then SKIN:Bang("!SetOptionGroup", "GroupBars", "BarOrientation", "Horizontal", config)