mirror of
https://github.com/araxiaonline/wow-wotlk-declarations.git
synced 2026-06-13 02:42:25 -04:00
Added GetRegions and RegionTypes
This commit is contained in:
14
declarations/ui.d.ts
vendored
14
declarations/ui.d.ts
vendored
@@ -66,13 +66,15 @@ declare namespace WoWAPI {
|
||||
type FrameType = "Frame" | "Button" | "Cooldown"
|
||||
| "ColorSelect" | "EditBox" | "GameTooltip" | "MessageFrame"
|
||||
| "Minimap" | "Model" | "ScrollFrame" | "ScrollingMessageFrame"
|
||||
| "SimpleHTML" | "Slider" | "StatusBar";
|
||||
| "SimpleHTML" | "Slider" | "StatusBar" | "Texture" | "FontString";
|
||||
|
||||
type RegionType = "Region" | "LayeredRegion" | "Texture" | "FontString";
|
||||
|
||||
interface Object {
|
||||
/**
|
||||
* get the type of this object
|
||||
*/
|
||||
GetObjectType(): FrameType;
|
||||
GetObjectType(): FrameType | RegionType;
|
||||
|
||||
/**
|
||||
* Return the name of the object.
|
||||
@@ -90,7 +92,7 @@ declare namespace WoWAPI {
|
||||
*
|
||||
* @param type the type to check for
|
||||
*/
|
||||
IsObjectType(type: FrameType): boolean;
|
||||
IsObjectType(type: FrameType | RegionType ): boolean;
|
||||
}
|
||||
|
||||
type ModelLight = {
|
||||
@@ -751,6 +753,12 @@ declare namespace WoWAPI {
|
||||
*/
|
||||
GetFrameLevel(): number;
|
||||
|
||||
/**
|
||||
* Get Regions will return all the regions for a frame that are children
|
||||
* @return WoWAPI.Region[]
|
||||
*/
|
||||
GetRegions(): Region[];
|
||||
|
||||
/**
|
||||
* Gets the assigned script for a specific event.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user