mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
SetUnitCursorTexture(texture, unit) sets a texture to the cursor image the mouse shows over the unit, the Unable form when out of reach. It takes the engine's own image: the cursor name table, or a game object's record-named cursor through FormatGameObjectCursorFile. The softinteract object now shows that image over it (SoftTargetIconInteract, default 1; SoftTargetNameplateSize, default 19, is its size). A unit's icon sits where 1.12 seats a nameplate, from GetNamePlateScreenPos; an object's uses GetNamePosition's no-attachment rule (1.25 x scale x box height) with the same 2/3-yard lift. The icon is a texture on the world frame, anchored to its BOTTOMLEFT the way SeatNamePlate anchors a plate, and hides off screen.