Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ls- committed Nov 27, 2022
1 parent 082ba48 commit 1e0f8b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ read_globals = {

-- SharedXML functions
'Mixin', -- SharedXML/Mixin.lua
'CreateAtlasMarkup', -- SharedXML/TextureUtil.lua
'CreateColor', -- SharedXML/Color.lua
'CreateFromMixins', -- SharedXML/Mixin.lua
'CreateTextureMarkup', -- SharedXML/TextureUtil.lua
'CreateAtlasMarkup', -- SharedXML/TextureUtil.lua

-- GlobalStrings
'HIGHLIGHT_FONT_COLOR',
Expand Down
10 changes: 5 additions & 5 deletions mixins/Button.lua
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ function lib:NewButtonStretch(parent, name)
parent = _G[parent]
end

local Button = Mixin(CreateFrame('Button', (name or parent:GetDebugName() .. 'MenuButtonStretch'), parent), buttonStretchMixin, CallbackRegistryBaseMixin or CallbackRegistryMixin)
local Button = Mixin(CreateFrame('Button', (name or parent:GetDebugName() .. 'MenuButtonStretch'), parent), buttonStretchMixin, CallbackRegistryMixin)
Button:SetSize(40, 26)
Button:SetScript('OnDisable', Button.OnDisable)
Button:SetScript('OnEnable', Button.OnEnable)
Expand Down Expand Up @@ -490,13 +490,13 @@ function lib:NewButtonStretch(parent, name)
Button.MiddleMiddle = MiddleMiddle

local Text = Button:CreateFontString('$parentText', 'ARTWORK')
Text:SetPoint('CENTER', 0, -0)
Text:SetPoint('CENTER', 0, 0)
Button.Text = Text

Button:SetFontString(Text)
Button:SetNormalFontObject(GameFontHighlightSmall)
Button:SetHighlightFontObject(GameFontHighlightSmall)
Button:SetDisabledFontObject(GameFontDisableSmall)
Button:SetNormalFontObject("GameFontHighlightSmall")
Button:SetHighlightFontObject("GameFontHighlightSmall")
Button:SetDisabledFontObject("GameFontDisableSmall")

local Arrow = Button:CreateTexture('$parentArrow', 'ARTWORK')
Arrow:SetSize(12, 12)
Expand Down

0 comments on commit 1e0f8b8

Please sign in to comment.