Files
MMD_PRC8/_module/nss/mod_gui.nss
Jaysyn904 7207aba580 2026/01/14 Late update
Updated PEPS.
Tweaked geomorph code to prevent broken transitions.
East/west & north/south are now randomized & tacked separately.
Dungeon will reset areas when empty & no more options are available.
Fixed issue with spell effect NUI.
Full compile.
2026-01-14 23:49:30 -05:00

30 lines
908 B
Plaintext

#include "inc_examine"
#include "nw_inc_nui"
#include "prc_nui_consts"
void main()
{
object oPlayer = GetLastGuiEventPlayer();
int nType = GetLastGuiEventType();
object oTarget = GetLastGuiEventObject();
int nValue = GetLastGuiEventInteger();
if (nType == GUIEVENT_EFFECTICON_CLICK)
{
int windowId = NuiFindWindow(oPlayer, DURATION_NUI_WINDOW_ID);
if (!windowId)
{
SetScriptParam(NUI_DURATION_MANUALLY_OPENED_PARAM, "1");
ExecuteScript("prc_nui_dur_view", 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);
}
}
}