Raidcore Nexus
 
Loading...
Searching...
No Matches
AddonAPI_t Struct Reference

Public Attributes

void * SwapChain
 
void * ImguiContext
 
void * ImguiMalloc
 
void * ImguiFree
 
GUI_ADDRENDER GUI_Register
 
GUI_REMRENDER GUI_Deregister
 
UPDATER_REQUESTUPDATE RequestUpdate
 
LOGGER_LOG Log
 
ALERTS_NOTIFY GUI_SendAlert
 
GUI_REGISTERCLOSEONESCAPE GUI_RegisterCloseOnEscape
 
GUI_DEREGISTERCLOSEONESCAPE GUI_DeregisterCloseOnEscape
 
PATHS_GETGAMEDIR Paths_GetGameDirectory
 
PATHS_GETADDONDIR Paths_GetAddonDirectory
 
PATHS_GETCOMMONDIR Paths_GetCommonDirectory
 
MINHOOK_CREATE MinHook_Create
 
MINHOOK_REMOVE MinHook_Remove
 
MINHOOK_ENABLE MinHook_Enable
 
MINHOOK_DISABLE MinHook_Disable
 
EVENTS_RAISE Events_Raise
 
EVENTS_RAISENOTIFICATION Events_RaiseNotification
 
EVENTS_RAISE_TARGETED Events_RaiseTargeted
 
EVENTS_RAISENOTIFICATION_TARGETED Events_RaiseNotificationTargeted
 
EVENTS_SUBSCRIBE Events_Subscribe
 
EVENTS_SUBSCRIBE Events_Unsubscribe
 
WNDPROC_ADDREM WndProc_Register
 
WNDPROC_ADDREM WndProc_Deregister
 
WNDPROC_SENDTOGAME WndProc_SendToGameOnly
 
INPUTBINDS_INVOKE InputBinds_Invoke
 
INPUTBINDS_REGISTERWITHSTRING InputBinds_RegisterWithString
 
INPUTBINDS_REGISTERWITHSTRUCT InputBinds_RegisterWithStruct
 
INPUTBINDS_DEREGISTER InputBinds_Deregister
 
GAMEBINDS_PRESSASYNC GameBinds_PressAsync
 
GAMEBINDS_RELEASEASYNC GameBinds_ReleaseAsync
 
GAMEBINDS_INVOKEASYNC GameBinds_InvokeAsync
 
GAMEBINDS_PRESS GameBinds_Press
 
GAMEBINDS_RELEASE GameBinds_Release
 
GAMEBINDS_ISBOUND GameBinds_IsBound
 
DATALINK_GET DataLink_Get
 
DATALINK_SHARE DataLink_Share
 
TEXTURES_GET Textures_Get
 
TEXTURES_GETORCREATEFROMFILE Textures_GetOrCreateFromFile
 
TEXTURES_GETORCREATEFROMRESOURCE Textures_GetOrCreateFromResource
 
TEXTURES_GETORCREATEFROMURL Textures_GetOrCreateFromURL
 
TEXTURES_GETORCREATEFROMMEMORY Textures_GetOrCreateFromMemory
 
TEXTURES_LOADFROMFILE Textures_LoadFromFile
 
TEXTURES_LOADFROMRESOURCE Textures_LoadFromResource
 
TEXTURES_LOADFROMURL Textures_LoadFromURL
 
TEXTURES_LOADFROMMEMORY Textures_LoadFromMemory
 
QUICKACCESS_ADDSHORTCUT QuickAccess_Add
 
QUICKACCESS_GENERIC QuickAccess_Remove
 
QUICKACCESS_GENERIC QuickAccess_Notify
 
QUICKACCESS_ADDSIMPLE QuickAccess_AddContextMenu
 
QUICKACCESS_GENERIC QuickAccess_RemoveContextMenu
 
LOCALIZATION_TRANSLATE Localization_Translate
 
LOCALIZATION_TRANSLATETO Localization_TranslateTo
 
LOCALIZATION_SET Localization_Set
 
FONTS_GETRELEASE Fonts_Get
 
FONTS_GETRELEASE Fonts_Release
 
FONTS_ADDFROMFILE Fonts_AddFromFile
 
FONTS_ADDFROMRESOURCE Fonts_AddFromResource
 
FONTS_ADDFROMMEMORY Fonts_AddFromMemory
 
FONTS_RESIZE Fonts_Resize
 

Member Data Documentation

◆ DataLink_Get

DATALINK_GET AddonAPI_t::DataLink_Get

DataLink_Get:

Returns a pointer to the requested resource or nullptr if not existing.

◆ DataLink_Share

DATALINK_SHARE AddonAPI_t::DataLink_Share

DataLink_Share:

Allocates a shared resource of given size and returns a pointer to it for writing.

◆ Events_Raise

EVENTS_RAISE AddonAPI_t::Events_Raise

Events_Raise: Raises an event to all subscribing addons. aEventData is a pointer to the data you want to share or nullptr.

Addons are responsible for knowing how to interpret this data.

◆ Events_RaiseNotification

EVENTS_RAISENOTIFICATION AddonAPI_t::Events_RaiseNotification

Events_RaiseNotification: Raises an event without a payload.

Synonymous with RaiseEvent("EV_FOO", nullptr);

◆ Events_RaiseNotificationTargeted

EVENTS_RAISENOTIFICATION_TARGETED AddonAPI_t::Events_RaiseNotificationTargeted

Events_RaiseNotificationTargeted:

Raises a notification (event without payload) targeted at a specific subscriber.

◆ Events_RaiseTargeted

EVENTS_RAISE_TARGETED AddonAPI_t::Events_RaiseTargeted

Events_RaiseTargeted:

Raises an event targeted at a specific subscriber.

◆ Events_Subscribe

EVENTS_SUBSCRIBE AddonAPI_t::Events_Subscribe

Events_Subscribe:

Registers an event callback.

◆ Events_Unsubscribe

EVENTS_SUBSCRIBE AddonAPI_t::Events_Unsubscribe

Events_Unsubscribe:

Deregisters an event callback.

◆ Fonts_AddFromFile

FONTS_ADDFROMFILE AddonAPI_t::Fonts_AddFromFile

Fonts_AddFromFile:

Adds a font from disk and sends updates to the callback.

◆ Fonts_AddFromMemory

FONTS_ADDFROMMEMORY AddonAPI_t::Fonts_AddFromMemory

Fonts_AddFromMemory:

Adds a font from memory and sends updates to the callback.

◆ Fonts_AddFromResource

FONTS_ADDFROMRESOURCE AddonAPI_t::Fonts_AddFromResource

Fonts_AddFromResource:

Adds a font from an embedded resource and sends updates to the callback.

◆ Fonts_Get

FONTS_GETRELEASE AddonAPI_t::Fonts_Get

Fonts_Get:

Requests a font to be sent to the given callback/receiver.

◆ Fonts_Release

FONTS_GETRELEASE AddonAPI_t::Fonts_Release

Fonts_Release:

Releases a callback/receiver from a specific font.

◆ Fonts_Resize

FONTS_RESIZE AddonAPI_t::Fonts_Resize

Fonts_Resize:

Resizes a font and sends updates to the callback.

◆ GameBinds_InvokeAsync

GAMEBINDS_INVOKEASYNC AddonAPI_t::GameBinds_InvokeAsync

GameBinds_InvokeAsync:

Sends the keys of a given bind and then releases them after a given duration.

◆ GameBinds_IsBound

GAMEBINDS_ISBOUND AddonAPI_t::GameBinds_IsBound

GameBinds_IsBound:

Returns if a given game bind is set.

◆ GameBinds_Press

GAMEBINDS_PRESS AddonAPI_t::GameBinds_Press

GameBinds_Press:

Presses the keys of a given bind

◆ GameBinds_PressAsync

GAMEBINDS_PRESSASYNC AddonAPI_t::GameBinds_PressAsync

GameBinds_Deregister:

Presses the keys of a given bind

◆ GameBinds_Release

GAMEBINDS_RELEASE AddonAPI_t::GameBinds_Release

GameBinds_Release:

Releases the keypresses of a given bind.

◆ GameBinds_ReleaseAsync

GAMEBINDS_RELEASEASYNC AddonAPI_t::GameBinds_ReleaseAsync

GameBinds_ReleaseAsync:

Releases the keypresses of a given bind.

◆ GUI_Deregister

GUI_REMRENDER AddonAPI_t::GUI_Deregister

Deregister:

Removes the registered render callback that is passed.

◆ GUI_DeregisterCloseOnEscape

GUI_DEREGISTERCLOSEONESCAPE AddonAPI_t::GUI_DeregisterCloseOnEscape

GUI_DeregisterCloseOnEscape:

Deregisters a window name to listen to on escape.

◆ GUI_Register

GUI_ADDRENDER AddonAPI_t::GUI_Register

Register:

Registers a render callback, ERenderType is either Pre, Present, Post or Options.

◆ GUI_RegisterCloseOnEscape

GUI_REGISTERCLOSEONESCAPE AddonAPI_t::GUI_RegisterCloseOnEscape

GUI_RegisterCloseOnEscape:

Registers a window name to get its bool toggled when escape is pressed.

◆ GUI_SendAlert

ALERTS_NOTIFY AddonAPI_t::GUI_SendAlert

GUI_SendAlert:

Sends a text alert to the user visible for a short amount of time.

◆ InputBinds_Deregister

INPUTBINDS_DEREGISTER AddonAPI_t::InputBinds_Deregister

InputBinds_Deregister:

Deregisters a KeybindHandler callback.

◆ InputBinds_Invoke

INPUTBINDS_INVOKE AddonAPI_t::InputBinds_Invoke

InputBinds_Invoke:

Trigger a keybind programmatically.

◆ InputBinds_RegisterWithString

INPUTBINDS_REGISTERWITHSTRING AddonAPI_t::InputBinds_RegisterWithString

InputBinds_RegisterWithString: Registers a KeybindHandler callback for a given named keybind.

aKeybind is the default if not yet defined. Use as "ALT+CTRL+SHIFT+Q", "ALT+SHIFT+T", etc.

◆ InputBinds_RegisterWithStruct

INPUTBINDS_REGISTERWITHSTRUCT AddonAPI_t::InputBinds_RegisterWithStruct

InputBinds_RegisterWithStruct:

Same as INPUTBINDS_REGISTERWITHSTRING except you pass a Nexus Keybind struct as a default bind.

◆ Localization_Set

LOCALIZATION_SET AddonAPI_t::Localization_Set

Localization_Set:

Set a translated string at runtime.

◆ Localization_Translate

LOCALIZATION_TRANSLATE AddonAPI_t::Localization_Translate

Localization_Translate:

Translates aIdentifier into current active language or returns aIdentifier if not available.

◆ Localization_TranslateTo

LOCALIZATION_TRANSLATETO AddonAPI_t::Localization_TranslateTo

Localization_TranslateTo:

Same as Translate except you can pass which language you want to translate to.

◆ Paths_GetAddonDirectory

PATHS_GETADDONDIR AddonAPI_t::Paths_GetAddonDirectory

Paths_GetAddonDirectory: Returns "<GW2>/addons" if nullptr is passed or appends the string like

"<GW2>/addons/<appended>"

◆ Paths_GetCommonDirectory

PATHS_GETCOMMONDIR AddonAPI_t::Paths_GetCommonDirectory

Paths_GetCommonDirectory:

Returns "<GW2>/addons/common".

◆ Paths_GetGameDirectory

PATHS_GETGAMEDIR AddonAPI_t::Paths_GetGameDirectory

Paths_GetGameDirectory:

Returns "<GW2>".

◆ QuickAccess_Add

QUICKACCESS_ADDSHORTCUT AddonAPI_t::QuickAccess_Add

QuickAccess_Add: Adds a shortcut icon to the QuickAccess with given texture identifiers.

When clicked aKeybindIdentifier will be invoked.

◆ QuickAccess_AddContextMenu

QUICKACCESS_ADDSIMPLE AddonAPI_t::QuickAccess_AddContextMenu

QuickAccess_AddContextMenu:

Appends ImGui callback when right-clicking a shortcut icon.

◆ QuickAccess_Notify

QUICKACCESS_GENERIC AddonAPI_t::QuickAccess_Notify

QuickAccess_Notify:

Sends a notification icon to the given shortcut.

◆ QuickAccess_Remove

QUICKACCESS_GENERIC AddonAPI_t::QuickAccess_Remove

QuickAccess_Remove:

Removes a shortcut with the given identifier from Quick Access.

◆ QuickAccess_RemoveContextMenu

QUICKACCESS_GENERIC AddonAPI_t::QuickAccess_RemoveContextMenu

QuickAccess_RemoveContextMenu:

Removes a simple shortcut / context item with the given identifier from Quick Access.

◆ RequestUpdate

UPDATER_REQUESTUPDATE AddonAPI_t::RequestUpdate

RequestUpdate: Downloads the addon available at remote without checking its version. The addon already did that.

I hope.

◆ Textures_Get

TEXTURES_GET AddonAPI_t::Textures_Get

Textures_Get:

Returns a Texture* or nullptr if it doesn't exist.

◆ Textures_GetOrCreateFromFile

TEXTURES_GETORCREATEFROMFILE AddonAPI_t::Textures_GetOrCreateFromFile

Textures_GetOrCreateFromFile:

Returns a Texture* or if it doesn't exist yet creates it from file.

◆ Textures_GetOrCreateFromMemory

TEXTURES_GETORCREATEFROMMEMORY AddonAPI_t::Textures_GetOrCreateFromMemory

Textures_GetOrCreateFromMemory:

Returns a Texture* or if it doesn't exist yet creates it from memory.

◆ Textures_GetOrCreateFromResource

TEXTURES_GETORCREATEFROMRESOURCE AddonAPI_t::Textures_GetOrCreateFromResource

Textures_GetOrCreateFromResource:

Returns a Texture* or if it doesn't exist yet creates it from resource.

◆ Textures_GetOrCreateFromURL

TEXTURES_GETORCREATEFROMURL AddonAPI_t::Textures_GetOrCreateFromURL

Textures_GetOrCreateFromURL:

Returns a Texture* or if it doesn't exist yet creates it from URL.

◆ Textures_LoadFromFile

TEXTURES_LOADFROMFILE AddonAPI_t::Textures_LoadFromFile

Textures_LoadFromFile:

Creates a texture from file and passes it to the TextureReceiver callback when finished.

◆ Textures_LoadFromMemory

TEXTURES_LOADFROMMEMORY AddonAPI_t::Textures_LoadFromMemory

Textures_LoadFromMemory:

Creates a texture from memory and passes it to the TextureReceiver callback when finished.

◆ Textures_LoadFromResource

TEXTURES_LOADFROMRESOURCE AddonAPI_t::Textures_LoadFromResource

Textures_LoadFromResource:

Creates a texture from resource and passes it to the TextureReceiver callback when finished.

◆ Textures_LoadFromURL

TEXTURES_LOADFROMURL AddonAPI_t::Textures_LoadFromURL

Textures_LoadFromURL:

Creates a texture from URL and passes it to the TextureReceiver callback when finished.

◆ WndProc_Deregister

WNDPROC_ADDREM AddonAPI_t::WndProc_Deregister

WndProc_Deregister:

Registers/Deregisters a WndProc callback.

◆ WndProc_Register

WNDPROC_ADDREM AddonAPI_t::WndProc_Register

WndProc_Register:

Registers/Deregisters a WndProc callback.

◆ WndProc_SendToGameOnly

WNDPROC_SENDTOGAME AddonAPI_t::WndProc_SendToGameOnly

WndProc_SendToGameOnly:

Sends a WndProc to the game only and bypasses all other hooks.


The documentation for this struct was generated from the following file: