Skip to content

Commit

Permalink
refactor local scores a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jul 27, 2018
1 parent 33defdf commit 8ee53cf
Show file tree
Hide file tree
Showing 4 changed files with 226 additions and 318 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local t = Def.ActorFrame{
BeginCommand=function(self)
self:queuecommand("Set"):visible(false)
self:GetChild("GoalDisplay"):xy(10,60)
self:GetChild("GoalDisplay"):xy(10,60):visible(false)
end,
OffCommand=function(self)
self:bouncebegin(0.2):xy(-500,0):diffusealpha(0)
Expand All @@ -13,9 +13,11 @@ local t = Def.ActorFrame{
self:finishtweening(1)
if getTabIndex() == 6 then
self:queuecommand("On")
self:visible(true)
else
self:visible(true) -- input filter has a get:visible check so it doesn't eat inputs if the element isn't displayed
self:GetChild("GoalDisplay"):visible(true) -- however it isn't recursive, so we set the child explicitly, leaving this here to remind myself
else -- to look into changing the getvisible logic or adding a new recursive function maybe -mina
self:queuecommand("Off")
self:GetChild("GoalDisplay"):xy(10,60):visible(false)
end
end,
TabChangedMessageCommand=function(self)
Expand Down
Loading

0 comments on commit 8ee53cf

Please sign in to comment.