Added Spellcast NUI menu

Added Spellcast NUI menu.
Organized modding tools.
Full compile.
This commit is contained in:
Jaysyn904
2025-05-31 20:09:10 -04:00
parent 67bb78d085
commit 2d439cc179
45 changed files with 136 additions and 74 deletions

View File

@@ -1,10 +1,41 @@
//::
//:: woa_mod_onnui.nss
//::
//::///////////////////////////////////////////////
//:: 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
//:://////////////////////////////////////////////
#include "nui_i_main"
#include "prc_nui_consts"
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;
}