3 local frame = CreateFrame("Frame", "OmaTirna", UIParent);
6 frame:UnregisterAllEvents();
7 frame:SetPoint("TOP", UIParent, "TOP", -300, -250);
12 local button = CreateFrame("CheckButton", "OmaTirna"..i..j, frame);
13 button:SetPoint("TOPLEFT", frame, "TOPLEFT", i*52, j*42);
16 button.normal = button:CreateTexture(nil, "BACKGROUND");
17 button.normal:SetAllPoints();
18 button.normal:SetColorTexture(0.4, 0.4, 0.4);
19 button:SetNormalTexture(button.normal);
20 button.check = button:CreateTexture(nil, "BACKGROUND");
21 button.check:SetAllPoints();
22 button.check:SetColorTexture(0.9, 0.9, 0.9);
23 button:SetCheckedTexture(button.check);
29 frame:SetScript("OnEvent", init);
30 frame:RegisterEvent("PLAYER_LOGIN");
32 SLASH_OMATIRNA1 = "/tirna";
33 function SlashCmdList.OMATIRNA()
34 if frame:IsShown() then