WoWInterface - View Single Post - Static PopUp text help
View Single Post
03-13-15, 07:05 AM   #6
A Deviate Faerie Dragon
Kraiven's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2015
Posts: 10
Thank you guys again for the help. Phanx that worked exactly how I needed it. I was trying to find some help on how to use the "%s" format within a static popup. I only needed two options so the first one did it. I was missing this part...

local role = UnitGroupRolesAssigned("player"); -- Role selected or assigned in LFG 
local spec = GetSpecialization()
local specRole = GetSpecializationRole(spec)  -- Current Role Specialization
if role ~= specRole then
    StaticPopup_Show("WRONG_SPEC_WARNING", role, specRole)
Surprisingly I could not find any examples of these through the wow code or other addons.
  Reply With Quote