TabardModel is a frame type provided specifically for designing or modifying guild tabards. It provides functions for displaying a character in a sample tabard and cycling through different trim textures, emblems, and color schemes, as well as saving the selected look as your guild's current tabard (this requires that your character have appropriate guild privileges to do so).
Because the stock UI already includes a fairly comprehensive tabard interface using one of these frames, it's fairly unlikely that you'll need to create one of your own.
Defined Methods
- enabled = TabardModel:CanSaveTabardNow() - Returns whether the tabard model's current design can be saved as the player's guild tabard
- TabardModel:CycleVariation(variable, delta) - Cycles through available design variations for the tabard model
- TabardModel:GetLowerBackgroundFileName("filename") - Returns the image file for the lower portion of the tabard model's current background design
- TabardModel:GetLowerEmblemFileName("filename") - Returns the image file for the lower portion of the tabard model's current emblem design
- TabardModel:GetLowerEmblemTexture(texture) - Sets a `Texture` object to display the lower portion of the tabard model's current emblem design
- TabardModel:GetUpperBackgroundFileName("filename") - Returns the image file for the upper portion of the tabard model's current background design
- TabardModel:GetUpperEmblemFileName("filename") - Returns the image file for the upper portion of the tabard model's current emblem design
- TabardModel:GetUpperEmblemTexture(texture) - Sets a `Texture` object to display the upper portion of the tabard model's current emblem design
- TabardModel:InitializeTabardColors() - Sets the tabard model's design to match the player's guild tabard
- TabardModel:Save() - Saves the current tabard model design as the player's guild tabard
Inherited Methods
- TabardModel:AdvanceTime() - Advances to the model's next animation frame
- TabardModel:AllowAttributeChanges() - Temporarily allows insecure code to modify the frame's attributes during combat
- enabled = TabardModel:CanChangeAttribute() - Returns whether secure frame attributes can currently be changed
- canChange = TabardModel:CanChangeProtectedState() - Returns whether protected properties of the region can be changed by non-secure scripts
- TabardModel:ClearAllPoints() - Removes all anchor points from the region
- TabardModel:ClearFog() - Disables fog display for the model.
- TabardModel:ClearModel() - Removes the 3D model currently displayed
- animationGroup = TabardModel:CreateAnimationGroup(["name" [, "inheritsFrom"]]) - Creates a new AnimationGroup as a child of the region
- fontstring = TabardModel:CreateFontString(["name" [, "layer" [, "inherits"]]]) - Creates a new [[docs/widgets/FontString|`FontString`]] as a child of the frame
- texture = TabardModel:CreateTexture(["name" [, "layer" [, "inherits"]]]) - Creates a new [[docs/widgets/Texture|`Texture`]] as a child of the frame
- region = TabardModel:CreateTitleRegion() - Creates a title region for dragging the frame
- TabardModel:DisableDrawLayer("layer") - Prevents display of all child objects of the frame on a specified graphics layer
- TabardModel:EnableDrawLayer("layer") - Allows display of all child objects of the frame on a specified graphics layer
- TabardModel:EnableJoystick(enable) - Enables or disables joystick interactivity
- TabardModel:EnableKeyboard(enable) - Enables or disables keyboard interactivity for the frame
- TabardModel:EnableMouse(enable) - Enables or disables mouse interactivity for the frame
- TabardModel:EnableMouseWheel(enable) - Enables or disables mouse wheel interactivity for the frame
- alpha = TabardModel:GetAlpha() - Returns the opacity of the region relative to its parent
- ... = TabardModel:GetAnimationGroups() - Returns a list of animation groups belonging to the region
- value = TabardModel:GetAttribute("name") - Returns the value of a secure frame attribute
- backdrop = TabardModel:GetBackdrop() - Returns information about the frame's backdrop graphic
- red, green, blue, alpha = TabardModel:GetBackdropBorderColor() - Returns the shading color for the frame's border graphic
- red, green, blue, alpha = TabardModel:GetBackdropColor() - Returns the shading color for the frame's background graphic
- bottom = TabardModel:GetBottom() - Returns the distance from the bottom of the screen to the bottom of the region
- left, bottom, width, height = TabardModel:GetBoundsRect() - Returns the position and dimension of the smallest area enclosing the frame and its children
- x, y = TabardModel:GetCenter() - Returns the screen coordinates of the region's center
- ... = TabardModel:GetChildren() - Returns a list of child frames of the frame
- left, right, top, bottom = TabardModel:GetClampRectInsets() - Returns offsets from the frame's edges used when limiting user movement or resizing of the frame
- depth = TabardModel:GetDepth() - Returns the 3D depth of the frame (for stereoscopic 3D setups)
- alpha = TabardModel:GetEffectiveAlpha() - Returns the overall opacity of the frame
- depth = TabardModel:GetEffectiveDepth() - Returns the overall 3D depth of the frame (for stereoscopic 3D configurations)
- scale = TabardModel:GetEffectiveScale() - Returns the overall scale factor of the frame
- facing = TabardModel:GetFacing() - Returns the model's current rotation setting
- red, green, blue = TabardModel:GetFogColor() - Returns the model's current fog color
- distance = TabardModel:GetFogFar() - Returns the far clipping distance for the model's fog.
- distance = TabardModel:GetFogNear() - Returns the near clipping distance for the model's fog.
- level = TabardModel:GetFrameLevel() - Sets the level at which the frame is layered relative to others in its strata
- strata = TabardModel:GetFrameStrata() - Returns the general layering strata of the frame
- height = TabardModel:GetHeight() - Returns the height of the region
- left, right, top, bottom = TabardModel:GetHitRectInsets() - Returns the insets from the frame's edges which determine its mouse-interactable area
- id = TabardModel:GetID() - Returns the frame's numeric identifier
- left = TabardModel:GetLeft() - Returns the distance from the left edge of the screen to the left edge of the region
- enabled, omni, dirX, dirY, dirZ, ambIntensity, ambR, ambG, ambB, dirIntensity, dirR, dirG, dirB = TabardModel:GetLight() - Returns properties of the light sources used when rendering the model
- maxWidth, maxHeight = TabardModel:GetMaxResize() - Returns the maximum size of the frame for user resizing
- minWidth, minHeight = TabardModel:GetMinResize() - Returns the minimum size of the frame for user resizing
- filename = TabardModel:GetModel() - Returns the model file currently displayed
- scale = TabardModel:GetModelScale() - Returns the scale factor determining the size at which the 3D model appears
- name = TabardModel:GetName() - Returns the widget object's name
- numChildren = TabardModel:GetNumChildren() - Returns the number of child frames belonging to the frame
- numPoints = TabardModel:GetNumPoints() - Returns the number of anchor points defined for the region
- numRegions = TabardModel:GetNumRegions() - Returns the number of non-Frame child regions belonging to the frame
- type = TabardModel:GetObjectType() - Returns the object's widget type
- parent = TabardModel:GetParent() - Returns the object's parent object
- point, relativeTo, relativePoint, xOffset, yOffset = TabardModel:GetPoint(index) - Returns information about one of the region's anchor points
- x, y, z = TabardModel:GetPosition() - Returns the position of the 3D model within the frame
- left, bottom, width, height = TabardModel:GetRect() - Returns the position and dimensions of the region
- ... = TabardModel:GetRegions() - Returns a list of non-Frame child regions belonging to the frame
- right = TabardModel:GetRight() - Returns the distance from the left edge of the screen to the right edge of the region
- scale = TabardModel:GetScale() - Returns the frame's scale factor
- handler = TabardModel:GetScript("scriptType") - Returns the widget's handler function for a script
- width, height = TabardModel:GetSize() - Returns the width and height of the region
- region = TabardModel:GetTitleRegion() - Returns the frame's TitleRegion object
- top = TabardModel:GetTop() - Returns the distance from the bottom of the screen to the top of the region
- width = TabardModel:GetWidth() - Returns the width of the region
- hasScript = TabardModel:HasScript("scriptType") - Returns whether the widget supports a script handler
- TabardModel:Hide() - Hides the region
- TabardModel:HookScript("scriptType", handler) - Securely hooks a script handler
- TabardModel:IgnoreDepth(enable) - Sets whether the frame's depth property is ignored (for stereoscopic 3D setups)
- enabled = TabardModel:IsClampedToScreen() - Returns whether the frame's boundaries are limited to those of the screen
- isDragging = TabardModel:IsDragging() - Returns whether the region is currently being dragged
- registered = TabardModel:IsEventRegistered("event") - Returns whether the frame is registered for a given [[docs/events|event]]
- enabled = TabardModel:IsIgnoringDepth() - Returns whether the frame's depth property is ignored (for stereoscopic 3D setups)
- enabled = TabardModel:IsJoystickEnabled() - Returns whether joystick interactivity is enabled for the frame
- enabled = TabardModel:IsKeyboardEnabled() - Returns whether keyboard interactivity is enabled for the frame
- enabled = TabardModel:IsMouseEnabled() - Returns whether mouse interactivity is enabled for the frame
- isOver = TabardModel:IsMouseOver() - Returns whether the mouse cursor is over the given region
- enabled = TabardModel:IsMouseWheelEnabled() - Returns whether mouse wheel interactivity is enabled for the frame
- movable = TabardModel:IsMovable() - Returns whether the frame can be moved by the user
- isType = TabardModel:IsObjectType("type") - Returns whether the object belongs to a given widget type
- isProtected, explicit = TabardModel:IsProtected() - Returns whether the region is protected
- enabled = TabardModel:IsResizable() - Returns whether the frame can be resized by the user
- shown = TabardModel:IsShown() - Returns whether the region is shown
- enabled = TabardModel:IsToplevel() - Returns whether the frame is automatically raised to the front when clicked
- enabled = TabardModel:IsUserPlaced() - Returns whether the frame is flagged for automatic saving and restoration of position and dimensions
- visible = TabardModel:IsVisible() - Returns whether the region is visible
- TabardModel:Lower() - Reduces the frame's frame level below all other frames in its strata
- TabardModel:Raise() - Increases the frame's frame level above all other frames in its strata
- TabardModel:RefreshUnit() - Updates the model's appearance to match that of its unit
- TabardModel:RegisterAllEvents() - Registers the frame for all events
- TabardModel:RegisterEvent("event") - Registers the frame for an [[docs/events|event]]
- TabardModel:RegisterForDrag(...) - Registers the frame for dragging
- TabardModel:ReplaceIconTexture("filename") - Sets the icon texture used by the model
- TabardModel:SetAllPoints([region]) or TabardModel:SetAllPoints(["name"]) - Sets all anchor points of the region to match those of another region
- TabardModel:SetAlpha(alpha) - Sets the opacity of the region relative to its parent
- TabardModel:SetAttribute("name", value) - Sets a secure frame attribute
- TabardModel:SetBackdrop(backdrop) - Sets a backdrop graphic for the frame
- TabardModel:SetBackdropBorderColor(red, green, blue [, alpha]) - Sets a shading color for the frame's border graphic
- TabardModel:SetBackdropColor(red, green, blue [, alpha]) - Sets a shading color for the frame's background graphic
- TabardModel:SetCamera(index) - Sets the view angle on the model to a pre-defined camera location
- TabardModel:SetClampRectInsets(left, right, top, bottom) - Sets offsets from the frame's edges used when limiting user movement or resizing of the frame
- TabardModel:SetClampedToScreen(enable) - Sets whether the frame's boundaries should be limited to those of the screen
- TabardModel:SetCreature(creature) - Sets the model to display the 3D model of a specific creature
- TabardModel:SetDepth(depth) - Sets the 3D depth of the frame (for stereoscopic 3D configurations)
- TabardModel:SetFacing(facing) - Sets the model's current rotation
- TabardModel:SetFogColor(red, green, blue) - Sets the model's fog color, enabling fog display if disabled
- TabardModel:SetFogFar(distance) - Sets the far clipping distance for the model's fog.
- TabardModel:SetFogNear(distance) - Sets the near clipping distance for the model's fog.
- TabardModel:SetFrameLevel(level) - Sets the level at which the frame is layered relative to others in its strata
- TabardModel:SetFrameStrata("strata") - Sets the general layering strata of the frame
- TabardModel:SetGlow(amount) - Sets the model's glow amount
- TabardModel:SetHeight(height) - Sets the region's height
- TabardModel:SetHitRectInsets(left, right, top, bottom) - Sets the insets from the frame's edges which determine its mouse-interactable area
- TabardModel:SetID(id) - Sets a numeric identifier for the frame
- TabardModel:SetLight(enabled, omni, dirX, dirY, dirZ, ambIntensity [, ambR [, ambG [, ambB [, dirIntensity [, dirR [, dirG [, dirB]]]]]]]) - Sets properties of the light sources used when rendering the model
- TabardModel:SetMaxResize(maxWidth, maxHeight) - Sets the maximum size of the frame for user resizing
- TabardModel:SetMinResize(minWidth, minHeight) - Sets the minimum size of the frame for user resizing
- TabardModel:SetModel("filename") - Sets the model file to be displayed
- TabardModel:SetModelScale(scale) - Sets the scale factor determining the size at which the 3D model appears
- TabardModel:SetMovable(enable) - Sets whether the frame can be moved by the user
- TabardModel:SetParent(frame) or TabardModel:SetParent("name") - Makes another frame the parent of this region
- TabardModel:SetPoint("point" [, relativeTo [, "relativePoint" [, xOffset [, yOffset]]]]) - Sets an anchor point for the region
- TabardModel:SetPosition(x, y, z) - Returns the position of the 3D model within the frame
- TabardModel:SetResizable(enable) - Sets whether the frame can be resized by the user
- TabardModel:SetRotation(facing) - Sets the model's current rotation by animating the model
- TabardModel:SetScale(scale) - Sets the frame's scale factor
- TabardModel:SetScript("scriptType", handler) - Sets the widget's handler function for a script
- TabardModel:SetSequence(sequence) - Sets the animation sequence to be used by the model
- TabardModel:SetSequenceTime(sequence, time) - Sets the animation sequence and time index to be used by the model
- TabardModel:SetSize(width, height) - Sets the size of the region to the specified values
- TabardModel:SetToplevel(enable) - Sets whether the frame should automatically come to the front when clicked
- TabardModel:SetUnit("unit") - Sets the model to display the 3D model of a specific unit
- TabardModel:SetUserPlaced(enable) - Flags the frame for automatic saving and restoration of position and dimensions
- TabardModel:SetWidth(width) - Sets the region's width
- TabardModel:Show() - Shows the region
- TabardModel:StartMoving() - Begins repositioning the frame via mouse movement
- TabardModel:StartSizing() - Begins resizing the frame via mouse movement
- TabardModel:StopAnimating() - Stops any active animations involving the region or its children
- TabardModel:StopMovingOrSizing() - Ends movement or resizing of the frame initiated with [[docs/widgets/Frame/StartMoving|`:StartMoving()`]] or [[docs/widgets/Frame/StartSizing|`:StartSizing()`]]
- TabardModel:UnregisterAllEvents() - Unregisters the frame from any [[docs/events|events]] for which it is registered
- TabardModel:UnregisterEvent("event") - Unregisters the frame for an event
Script Handlers
- OnAnimFinished(self) - Run when the model's animation finishes
- OnAttributeChanged(self, "name", value) - Run when a frame attribute is changed
- OnChar(self, "text") - Run for each text character typed in the frame
- OnDisable(self) - Run when the frame is disabled
- OnDragStart(self, "button") - Run when the mouse is dragged starting in the frame
- OnDragStop(self) - Run when the mouse button is released after a drag started in the frame
- OnEnable(self) - Run when the frame is enabled
- OnEnter(self, motion) - Run when the mouse cursor enters the frame's interactive area
- OnEvent(self, "event", ...) - Run whenever an [[docs/events|event]] fires for which the frame is registered
- OnHide(self) - Run when the frame's visbility changes to hidden
- OnKeyDown(self, "key") - Run when a keyboard key is pressed if the frame is keyboard enabled
- OnKeyUp(self, "key") - Run when a keyboard key is released if the frame is keyboard enabled
- OnLeave(self, motion) - Run when the mouse cursor leaves the frame's interactive area
- OnLoad(self) - Run when the frame is created
- OnMouseDown(self, "button") - Run when a mouse button is pressed while the cursor is over the frame
- OnMouseUp(self, "button") - Run when the mouse button is released following a mouse down action in the frame
- OnMouseWheel(self, delta) - Run when the frame receives a mouse wheel scrolling action
- OnReceiveDrag(self) - Run when the mouse button is released after dragging into the frame
- OnShow(self) - Run when the frame becomes visible
- OnSizeChanged(self, width, height) - Run when a frame's size changes
- OnUpdate(self, elapsed) - Run each time the screen is drawn by the game engine
- OnUpdateModel(self) - Run when a model changes or animates