Amon_PRC8/_module/nss/woa_mod_onnui.nss

41 lines
1011 B
Plaintext
Raw Normal View History

//::///////////////////////////////////////////////
//:: NUI Events
//:: woa_mod_onnui (hp_nui_events)
//:://////////////////////////////////////////////
/*
This handles any NUI events and sends them to
appropriate NUI Event handler depending on the
window Id
*/
//:://////////////////////////////////////////////
//:: Created By: Rakiov
//:: Created On: 22.05.2005
//:://////////////////////////////////////////////
2025-04-03 19:00:46 -04:00
#include "nui_i_main"
#include "prc_nui_consts"
2025-04-03 19:00:46 -04:00
void main()
{
NUI();
object oPlayer = NuiGetEventPlayer();
int nToken = NuiGetEventWindow();
string sWindowId = NuiGetWindowId(oPlayer, nToken);
ExecuteScript("mod_nui");
// Open the Power Attack NUI
if(sWindowId == NUI_PRC_POWER_ATTACK_WINDOW)
{
ExecuteScript("prc_nui_pa_event");
}
// Open the Spellbook NUI
if(sWindowId == PRC_SPELLBOOK_NUI_WINDOW_ID
|| sWindowId == NUI_SPELL_DESCRIPTION_WINDOW_ID)
{
ExecuteScript("prc_nui_sb_event");
}
return;
2025-04-03 19:00:46 -04:00
}