Files
RATDOG/_module/nss/mod_gui.nss
Jaysyn904 ab163e6df6 2025/12/01 Update
Updated module for NWN:EE 37-17.
Updated NWNxEE libraries.
Updated PEPS.
Hooked up new PRC8 GUI module event.
Full compile.
2025-12-01 10:11:37 -05:00

21 lines
576 B
Plaintext

#include "inc_examine"
void main()
{
ExecuteScript("prc_onplayergui");
object oPlayer = GetLastGuiEventPlayer();
int nType = GetLastGuiEventType();
object oTarget = GetLastGuiEventObject();
int nValue = GetLastGuiEventInteger();
if (nType == GUIEVENT_DISABLED_PANEL_ATTEMPT_OPEN)
{
if (nValue == GUI_PANEL_EXAMINE_CREATURE || nValue == GUI_PANEL_EXAMINE_ITEM ||
nValue == GUI_PANEL_EXAMINE_PLACEABLE || nValue == GUI_PANEL_EXAMINE_DOOR)
{
Examine_HandleGUIEvents(oPlayer, oTarget, nValue);
}
}
}