Skip to content

Commit

Permalink
fix draw order for favorite/goal/mirror indicators for charts
Browse files Browse the repository at this point in the history
doesn't look great but it will do until a better overall imeplementation is done
  • Loading branch information
MinaciousGrace committed Oct 4, 2018
1 parent 4a06d42 commit de9c98d
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions Themes/Til Death/Graphics/MusicWheelItem grades.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,6 @@ return Def.ActorFrame {
end
end
},
Def.Sprite {
InitCommand = function(self)
self:xy(1, -15):zoomto(4, 19)
end,
SetGradeCommand = function(self, params)
if params.Favorited then
self:Load(THEME:GetPathG("", "favorite"))
self:zoomto(16, 16)
self:visible(true)
else
self:visible(false)
end
end
},
Def.Sprite {
InitCommand = function(self)
self:xy(-9, -15):zoomto(4, 19)
end,
SetGradeCommand = function(self, params)
if params.PermaMirror then
self:Load(THEME:GetPathG("", "mirror"))
self:zoomto(24, 24)
self:visible(true)
else
self:visible(false)
end
end
},
Def.Quad {
InitCommand = function(self)
self:xy(2, -2):zoomto(4, 19)
Expand All @@ -64,5 +36,33 @@ return Def.ActorFrame {
self:settext(THEME:GetString("Grade", ToEnumShortString(sGrade)) or "")
self:diffuse(getGradeColor(sGrade))
end
},
Def.Sprite {
InitCommand = function(self)
self:xy(-9, -15):zoomto(4, 19)
end,
SetGradeCommand = function(self, params)
if params.PermaMirror then
self:Load(THEME:GetPathG("", "mirror"))
self:zoomto(20, 20)
self:visible(true)
else
self:visible(false)
end
end
},
Def.Sprite {
InitCommand = function(self)
self:xy(1, -15):zoomto(4, 19)
end,
SetGradeCommand = function(self, params)
if params.Favorited then
self:Load(THEME:GetPathG("", "favorite"))
self:zoomto(16, 16)
self:visible(true)
else
self:visible(false)
end
end
}
}

0 comments on commit de9c98d

Please sign in to comment.