Thread Tools Display Modes
Prev Previous Post   Next Post Next
05/22/23, 04:52 PM   #1
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 247
Question detect if HUD hidden or shown

Looking for a way to detect if the HUD is shown. ive been been trying things like this but no success.

Code:
local hud = SCENE_MANAGER:GetScene("hud")
if hud:IsHidden() then
im able to with callbacks for 3 other related scenes but I'm trying to avoid that if possible.

**EDIT
figured it out

Code:
local hudScene = SCENE_MANAGER:GetScene("hud")
if hudScene:GetState() == SCENE_SHOWN then

Last edited by sinnereso : 05/22/23 at 08:53 PM.
  Reply With Quote
 

ESOUI » Developer Discussions » Lua/XML Help » detect if HUD hidden or shown


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off