Hm, pretty easy. Make this addon. It will load the first time the UI is loaded, make the pop-up boxes, then disable itself and switch profiles.
Code:
local sname = (...)
StaticPopupDialogs["UITYPE_SELECT"] = {
timeout = 0,
text="What type of resolution are you using?",
button1="High resolution",
button2="Low resolution",
OnAccept=function()
StaticPopup_Show("UITYPE_SELECT_2").data = false
end,
OnCancel=function()
StaticPopup_Show("UITYPE_SELECT_2").data = true
end,
whileDead=true,
hideOnEscape=false,
}
StaticPopupDialogs["UITYPE_SELECT_2"] = {
timeout=0,
text="Are you a Healer or a DPS class?",
button1="DPS",
button2="Healer",
OnAccept=function(_,data)
DisableAddOn(sname)
SlashCmdList["REFLUX"]("switch dps_"..(data and "l" or "h").."res")
end,
OnCancel=function(_,data)
DisableAddOn(sname)
SlashCmdList["REFLUX"]("switch heal_"..(data and "l" or "h").."res")
end,
}
StaticPopup_Show("UITYPE_SELECT")
How to use. Untested. Report back with issues.
Oh, and the profiles it tries to switch to are called "dps_hres", "dps_lres", "heal_hres" and "heal_lres", respectively.
Pretty sure you can figure out how to edit the text displayed yourself.