Skip to content

SetInterfaceForAll

SetPlayerInterface for everyone - and for whoever joins later.

Every connected player gets the drawer, and so does everyone who joins until the mode is reloaded. It replaces what the mode set for any one player for that component. For the party it is the party frames on or off for everyone, and it changes what [party] frames says for the players who join later as well.

The reasons are the ones of SetPlayerInterface: "unknown component 'x'", "the shop cannot be hidden", and for a word that is not a drawer of that component, what is wrong with it.

SetInterfaceForAll(component, drawer)
Parameter Type
component string the component’s name, as in SetPlayerInterface
drawer string "native" or "hidden" - or, for the components with a web version (the chat, the scoreboard, the hudtext, the sleep fade, the notices, the death screen, the party frames, the voice indicator, the emotes wheel, the shop and the dialogs), "default" or the name of a frame of the interface

true, or false, reason - the reason as a person reads it

-- a role-play server where nobody knows a stranger's name, and the compass shows nothing
function OnGameModeInit()
SetInterfaceForAll("nameplates", "hidden")
SetInterfaceForAll("compass", "hidden")
end

SetPlayerInterface · SetInterfaceOptionsForAll · GetPlayerInterface · the Interface group of the index