View Single Post
10-09-23, 12:59 AM   #3
Blandros
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Sep 2023
Posts: 13
Originally Posted by Fizzlemizz View Post
Or maybe you mean something else?
I want to use it this way. But it doesnt work.

Lua Code:
  1. Controls.Open = CreateFrame("Button", nil, Keyboard, "MaximizeMinimizeButtonFrameTemplate ")
  2.     Controls.Open:SetSize(25, 25)
  3.     Controls.Open:SetPoint("RIGHT", Keyboard.Close, "LEFT", 0, 0)
  4.     Controls.Open:SetScript("OnClick", function(s)
  5.         if Controls:IsShown() then
  6.             Controls:Hide()
  7.         else
  8.             Controls:Show()
  9.         end
  10.     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.

Last edited by Blandros : 10-09-23 at 01:05 AM.
  Reply With Quote