comparison Templates.lua @ 93:caded2668701

Curseforge migration and source tree cleaning
author Nenue
date Sun, 01 Jan 2017 18:25:26 -0500
parents 6e2cb847c3c6
children dadddb8a551f
comparison
equal deleted inserted replaced
92:d41c7dc3012f 93:caded2668701
17 for i, region in ipairs(handler.ConfigLayers) do 17 for i, region in ipairs(handler.ConfigLayers) do
18 region:SetShown(Veneer.ConfigMode) 18 region:SetShown(Veneer.ConfigMode)
19 end 19 end
20 end 20 end
21 21
22
23 function VeneerConfigLayerMixin:OnUpdate() 22 function VeneerConfigLayerMixin:OnUpdate()
24 local handler = self:GetParent() 23 local handler = self:GetParent()
25 handler.ConfigLayers = handler.ConfigLayers or {} 24 handler.ConfigLayers = handler.ConfigLayers or {}
26 25
27 self.ConfigName:SetText(handler:GetName()) 26 self.ConfigName:SetText(handler:GetName())
28 self.ConfigID:SetText(handler:GetID()) 27 self.ConfigID:SetText(handler:GetID())
29 end
30
31
32 function VeneerHandlerMixin:OnShow()
33 self:Reanchor()
34 Veneer:StaticReanchor(self)
35 end
36 function VeneerHandlerMixin:OnHide()
37 Veneer:DynamicReanchor()
38 end
39 function VeneerHandlerMixin:Reanchor (anchorAll)
40 if not anchorAll then
41 Veneer:InternalReanchor(self)
42 end
43 end 28 end
44 29
45 function VeneerAnimationMixin:OnPlay() 30 function VeneerAnimationMixin:OnPlay()
46 PlaySoundKitID(229) 31 PlaySoundKitID(229)
47 self.animating = true 32 self.animating = true
55 function VeneerAnimationMixin:OnFinished() 40 function VeneerAnimationMixin:OnFinished()
56 PlaySoundKitID(229) 41 PlaySoundKitID(229)
57 self.animating = nil 42 self.animating = nil
58 print('|cFF00FF00Anim:OnFinish|r @', unpack(self.destPoint)) 43 print('|cFF00FF00Anim:OnFinish|r @', unpack(self.destPoint))
59 end 44 end
45
46 function VeneerHandlerMixin:OnShow()
47 self:Reanchor()
48 Veneer:StaticReanchor(self)
49 end
50 function VeneerHandlerMixin:OnHide()
51 Veneer:DynamicReanchor()
52 end
53 function VeneerHandlerMixin:Reanchor (anchorAll)
54 if not anchorAll then
55 Veneer:InternalReanchor(self)
56 end
57 end