illidan33 / wow_api

Documents of wow API -- 魔兽世界API资料以及宏工具
https://wow.battlenet.top
MIT License
319 stars 69 forks source link

经典旧世1.14.2(42597)下UI不显示 #11

Closed juedui0769 closed 1 year ago

juedui0769 commented 1 year ago
<Backdrop 
    bgFile="Interface\DialogFrame\UI-DialogBox-Background"
    edgeFile="Interface\DialogFrame\UI-DialogBox-Border" />
juedui0769 commented 1 year ago

local btn = CreateFrame("Button", nil, UIParent, "UIPanelButtonTemplate") btn:SetPoint("CENTER") btn:SetSize(100, 40) btn:SetText("Click me") btn:SetScript("OnClick", function(self, button, down) print("Pressed", button, down and "down" or "up") end) btn:RegisterForClicks("AnyDown", "AnyUp")