Files
PRC8/nwn/nwnprc/trunk/scripts/prc_onplayergui.nss
Jaysyn904 e0e5473314 2025/11/30 Update
Moved PRC8 notes into DevNotes.
Updated Eternal Blade TLK to explain abilities better.
Updated Werewolf to use "monk" gloves when they exist.
Added PRC switch to allow Wildshapes to always merge the arms slot.
Clicking on a spell effect now opens the spell effect NUI. (@Rakiov))
Added prc_onplayergui event script for spell effect handling. (@Rakiov)
Added prc_nui_sd_event and prc_nui_dur_view to handle displaying spell durations. (@Rakiov)
Corrected typo in switch name for PRC_CRAFT_POISON_USE_INGREDIENTS
Allowed mindblade to work with Vow of Poverty.
Eternal Blade - Island in TIme now has a VFX, looks slightly better.
Eternal Blade - Guided Strike now functions.
Time Stands Still now has an impact VFX.
Added optional PRC_ALLOWED_TO_REMOVE_FRIENDLY_SPELLS and PRC_ALLOWED_TO_SEE_HOSTILE_SPELLS switches for the spell effect view window.
2025-11-30 21:53:24 -05:00

34 lines
969 B
Plaintext

//::///////////////////////////////////////////////
//:: PRC On Player GUI
//:: prc_onplayergui
//:://////////////////////////////////////////////
/*
This is the logic for the On Player GUI event script
*/
//:://////////////////////////////////////////////
//:: Created By: Rakiov
//:: Created On: 28.11.2025
//:://////////////////////////////////////////////
#include "nw_inc_nui"
#include "prc_nui_consts"
void main()
{
// Event variables
object oPlayer = GetLastGuiEventPlayer();
int nEventType = GetLastGuiEventType();
int nEventInteger = GetLastGuiEventInteger();
object oEventObject = GetLastGuiEventObject();
if (nEventType == 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);
}
}
}