Lua functions

ShowWindow

Registered in this checkout as EQ2Emu_lua_ShowWindow; implementation found at WorldServer/Lua/LuaFunctions.cpp:12677.

Historical signature: ShowWindow(player, window, show)

Parameter and behavior details in the historical explanation are under review against the current implementation.

Function: ShowWindow(player, window, show)

Description: Shows a UI window, window represents the ui/default directory eq2ui_x_y.xml, in other words eq2ui_inventory_inventory.xml will be Inventory.Inventory.

Parameters:

  • player (Spawn) - Spawn object representing player.
  • window (string) - String window.
  • show (uint8) - Integer value show.

Returns: None.

Checked example

Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. This is a contextual call pattern, not a tested standalone script.

ShowWindow(Player, "MainHUD.StartMenu", 1)

Evidence: server/Quests/FarJourneyFreeport/TasksaboardtheFarJourney.lua:169; binding EQ2Emu_lua_ShowWindow.

Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.