Originally Posted by Fizzlemizz
Or maybe you mean something else?
|
I want to use it this way. But it doesnt work.
Lua Code:
Controls.Open = CreateFrame("Button", nil, Keyboard, "MaximizeMinimizeButtonFrameTemplate ")
Controls.Open:SetSize(25, 25)
Controls.Open:SetPoint("RIGHT", Keyboard.Close, "LEFT", 0, 0)
Controls.Open:SetScript("OnClick", function(s)
if Controls:IsShown() then
Controls:Hide()
else
Controls:Show()
end
end)
The Button with the template „ MaximizeMinimizeButtonFrameTemplate“ does show up and is clickable. It does change the texture on click but doesnt do the script.
I want it so badly because its the only template fitting the default close button in style.