Thread: Message Box
View Single Post
12-25-18, 02:02 AM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
You can create any frame you want to "popup/show()" your messages

Lua Code:
  1. local function ShowMessage(text)
  2.     if not JDoubleU00MessageBox then
  3.         local f = CreateFrame("Frame", "JDoubleU00MessageBox", UIParent)
  4.         --- Whatever your heart desires to see any messages plus a close (hide) button
  5.         function f:SetText(text)
  6.              -- Depends on your frame setup above how the text is "set"
  7.         end
  8.     end
  9.     JDoubleU00MessageBox:SetText(text)
  10.     if not JDoubleU00MessageBox:IsShown() then
  11.         JDoubleU00MessageBox:Show()
  12.     end
  13. end
  14. if JWFav == 0 then
  15.     ShowMessage("You do not have any mounts selected as a favorite.")
  16. end
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 12-25-18 at 02:55 AM.
  Reply With Quote