Files
MMD_PRC8/_module/nss/mod_gui.nss
Jaysyn904 7598075698 2025/12/15 Update
Updated PEPS.
Added respawn pop-up for petrification.
Updated Markshire Nomeclature for NPC names / titles.
Hooked up new PRC8 GUI event.
Updated nim tools.
2025-12-15 20:29:46 -05:00

20 lines
585 B
Plaintext

#include "inc_examine"
void main()
{
object oPlayer = GetLastGuiEventPlayer();
int nType = GetLastGuiEventType();
object oTarget = GetLastGuiEventObject();
int nValue = GetLastGuiEventInteger();
ExecuteScript("prc_onplayergui", oPlayer);
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);
}
}
}