update readme

This commit is contained in:
avitasia
2026-04-07 11:42:41 -07:00
parent a166da61f5
commit a42adc9e17
2 changed files with 21 additions and 0 deletions
+20
View File
@@ -39,6 +39,7 @@ For custom events, see [EVENTS.md](EVENTS.md). For installation, configuration,
- [GetUnitData](#getunitdataunittoken-copy)
- [GetUnitField](#getunitfieldunittoken-fieldname-copy)
- [GetUnitGUID](#getunitguidunittoken)
- [SetMouseoverUnit](#setmouseoverunitunittoken)
- [GetRaidTargets](#getraidtargets)
- [SetLocalRaidTargetIndex](#setlocalraidtargetindexunittoken-raidtargetindex)
- [Spell Casting and Queuing](#spell-casting-and-queuing)
@@ -926,6 +927,25 @@ print(GetUnitGUID("party1pet")) -- pet of party member 1
print(GetUnitGUID("0xF5300000000000A5target"))
```
##### SetMouseoverUnit(unitToken)
Sets the client's current mouseover unit from a unit token string.
This uses the same client object-tracking path as normal UI mouseover updates. If `unitToken` resolves to a GUID, the mouseover is updated to that unit. If it does not resolve, the mouseover is cleared.
**Parameters:**
- `unitToken` (string): A standard unit token string such as `"target"`, `"party1"`, or `"mouseover"`
**Returns:**
- `1` if the client has a non-empty mouseover GUID after the update
- `nil` if the mouseover GUID is empty after the update
**Examples:**
```lua
SetMouseoverUnit("target")
SetMouseoverUnit("party1")
SetMouseoverUnit("mouseover")
```
##### GetRaidTargets()
Returns the current local raid-target assignments as a table of GUID strings.
+1
View File
@@ -1909,6 +1909,7 @@ namespace Nampower {
char getItemStats[] = "GetItemStats";
RegisterLuaFunction(getItemStats, reinterpret_cast<uintptr_t *>(Script_GetItemStats));
// for private use only
char startItemExport[] = "StartItemExport";
RegisterLuaFunction(startItemExport, reinterpret_cast<uintptr_t *>(Script_StartItemExport));