WoW:User defined functions: Difference between revisions
Jump to navigation
Jump to search
m
no edit summary
(Move GetPlayerBearing to Map Functions) |
mNo edit summary |
||
Line 22: | Line 22: | ||
== Cursor Functions == | == Cursor Functions == | ||
:[[GetCursorScaledPosition]]() - Return the exact position the cursor is at based on scale. | :[[GetCursorScaledPosition]]() - Return the exact position the cursor is at based on scale. | ||
== Event Functions == | |||
:[[User:Egingell/PLAYER_MONEY|PLAYER_MONEY]] - Add a message to the chat frame when you gain or spend money. | |||
== Frame Functions == | == Frame Functions == | ||
: [[GetQuadrant]](frame) - Find which quadrant of the screen a frame lies in. | : [[GetQuadrant]](frame) - Find which quadrant of the screen a frame lies in. | ||
: [[GetUIParentAnchor]](frame) - Returns SetPoint args for the frame, anchor is relative to the nearest corner of the screen. | : [[GetUIParentAnchor]](frame) - Returns SetPoint args for the frame, anchor is relative to the nearest corner of the screen. | ||
: [[Frame:RegisterEvents]](...) - Register '''n''' number of events at once. | |||
: [[Frame:UnregisterEvents]](...) - Unregister '''n''' number of events at once. | |||
: [[Frame:SetManyAttributes]](...) - Simple function to embed in a frame to set many atributes at once. | : [[Frame:SetManyAttributes]](...) - Simple function to embed in a frame to set many atributes at once. | ||
: [[UnregisterEventFromAllFrames]](event) - Tell all the frames listening for '''event''' to stop listening for it. | |||
== Item Functions == | == Item Functions == | ||
Line 36: | Line 42: | ||
== Map Functions == | == Map Functions == | ||
:[[GetPlayerBearing]]() - Returns the player's current facing bearing based on minimap arrow | :[[GetPlayerBearing]]() - Returns the player's current facing bearing based on minimap arrow | ||
== Menu Functions == | |||
:[[Context Menu Maker]] - Sudo-Class. Add/Remove menu items and show the menu when you're ready. | |||
== Metatables == | == Metatables == | ||
Line 42: | Line 51: | ||
== Slash Function == | == Slash Function == | ||
: [[RunSlashCmd]] - Passes a slash command to the chatframe | : [[RunSlashCmd]] - Passes a slash command to the chatframe | ||
: [[SlashCmdList_AddSlashCommand|SlashCmdList_AddSlashCommand]](name, func, ...) | |||
== String Functions == | == String Functions == |