File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 781
781
overlay :Show ()
782
782
end
783
783
784
- local function OverlayOnEnter (overlay )
784
+ local function OverlayOnEnter (button )
785
+ local overlay = overlays [button ]
786
+ if not overlay then return end
787
+
785
788
overlay .text :SetTextColor (1 , 1 , 1 )
786
789
S :SetBackdropBorderColor (overlay , ' OnEnter' )
787
790
end
788
791
789
- local function OverlayOnLeave (overlay )
792
+ local function OverlayOnLeave (button )
793
+ local overlay = overlays [button ]
794
+ if not overlay then return end
795
+
790
796
overlay .text :SetTextColor (1 , 0.81 , 0 )
791
797
S :SetBackdropBorderColor (overlay , ' OnLeave' )
792
798
end
810
816
txt :SetTextColor (1 , 0.81 , 0 )
811
817
overlay .text = txt
812
818
813
- overlay :SetScript (' OnEnter' , OverlayOnEnter )
814
- overlay :SetScript (' OnLeave' , OverlayOnLeave )
815
-
819
+ button :HookScript (' OnEnter' , OverlayOnEnter )
820
+ button :HookScript (' OnLeave' , OverlayOnLeave )
816
821
button :HookScript (' OnHide' , OverlayHide )
817
822
button :HookScript (' OnShow' , OverlayShow )
818
823
You can’t perform that action at this time.
0 commit comments