Reload UI from Lua

Discussion in 'Programming' started by MegaKnight, Feb 23, 2025.

  1. MegaKnight

    MegaKnight
    Expand Collapse

    Joined:
    Sep 12, 2024
    Messages:
    218
    Is there a way to reload the UI VM using lua? I tried to add an additional button in the main menu (using this mod as a base), but it only appears after reloading the UI (F5). That's why I want to reload it automatically.

    If anyone knows a way to make the button appear without reloading the UI, that would be very helpful as well.




    I found something in lua/ge/extensions/core/input/actions/debug.json! You can reload the UI from Lua side using reloadUI()
     
    #1 MegaKnight, Feb 23, 2025
    Last edited: Mar 10, 2025
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice