Skip to content

Progressbar-180-angle-fix #401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions @Resources/scripts/Rotate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
-- 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)
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)
Expand All @@ -80,4 +75,4 @@ function Initialize()

-- Deactivate init skin
SKIN:Bang("!DeactivateConfig")
end
end