Skip to content

Commit

Permalink
Fix FullProgressBar Y position (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
caiohsr14 authored and MinaciousGrace committed Dec 1, 2017
1 parent 04c6cb9 commit 3805beb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Themes/Til Death/Scripts/02 ThemePrefs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -839,11 +839,13 @@ function ProgressBar()
end
end,
SaveSelections = function(self, list, pn)
local value
local value = playerConfig:get_data(pn_to_profile_slot(pn)).ProgressBarPos
if list[1] == true then
value = 0
playerConfig:get_data(pn_to_profile_slot(pn)).GameplayXYCoordinates.FullProgressBarY = SCREEN_BOTTOM - 30
else
if value ~= 0 then
value = 0
playerConfig:get_data(pn_to_profile_slot(pn)).GameplayXYCoordinates.FullProgressBarY = SCREEN_BOTTOM - 30
end
elseif value ~= 1 then
value = 1
playerConfig:get_data(pn_to_profile_slot(pn)).GameplayXYCoordinates.FullProgressBarY = 20
end
Expand Down

0 comments on commit 3805beb

Please sign in to comment.