api: move infobox into ui-widgets

This commit is contained in:
shagu
2018-03-28 20:52:29 +02:00
parent 3222de790e
commit 2455d8def3
4 changed files with 78 additions and 59 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ pfUI:RegisterModule("hoverbind", function ()
pfUI.hoverbind.edit:Show()
local txt = T["|cff33ffccKeybind Mode|r\nThis mode allows you to bind keyboard shortcuts to your actionbars.\nBy hovering a button with your cursor and pressing a key, the key will be assigned to that button.\nHit Escape on a button to remove bindings.\n\nPress Escape or click on an empty area to leave the keybind mode."]
pfUI.info:ShowInfoBox(txt, 30, pfUI.hoverbind.edit)
CreateInfoBox(txt, 30, pfUI.hoverbind.edit)
end)
pfUI.hoverbind:SetScript("OnHide",function()
+1 -1
View File
@@ -309,7 +309,7 @@ pfUI:RegisterModule("unlock", function ()
function pfUI.unlock:UnlockFrames()
local txt = T["|cff33ffccUnlock Mode|r\nThis mode allows you to move frames by dragging them using the mouse cursor. Frames can be scaled by scrolling up and down.\nTo scale multiple frames at once (eg. raidframes), hold down the shift key while scrolling. Click into an empty space to go back to the pfUI menu."]
pfUI.info:ShowInfoBox(txt, 15, pfUI.unlock)
CreateInfoBox(txt, 15, pfUI.unlock)
pfUI.unlock:Show()
pfUI.gui:Hide()