Disabling my ui on various screens
Hello! I am trying to give the user the option to disable my ui during bank interactions, inventory, map screen, character screen, etc. I have inventory and bank interactions figured out, but I can't seem to find a good way to trigger the function based on the other scenarios, like NPC interactions and map. Is there an event handler in the documentation that I'm just missing? Thanks for the help!
|
You should simply add your UI's toplevel control to a new fragment and then add the fragment to the base vanilla games existing scenes for the "Ui shown" and "UI hidden -> In menus".
Lua Code:
This will automatically hide and show your TLC YourTopLevelControlNameHere as the users presses ESC or I or U etc. and a menu is shown, and show it again after they closed that. Read more about scenes and fragments here: https://wiki.esoui.com/Scene_Manager:_On_scene_change https://wiki.esoui.com/Fragments_in_...t_state_change |
This looks like exactly what I need! Thank you so much! I'll try it out right away.
EDIT - Works like a charm! Thanks again! |
All times are GMT -6. The time now is 12:08 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI