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() - This function is not yet documented
- TabardModel:ClearFog() - This function is not yet documented
- TabardModel:ClearModel() - This function is not yet documented
- TabardModel:GetCameraDistance() - This function is not yet documented
- TabardModel:GetCameraFacing() - This function is not yet documented
- TabardModel:GetCameraPosition() - This function is not yet documented
- TabardModel:GetCameraTarget() - This function is not yet documented
- TabardModel:GetDoBlend() - This function is not yet documented
- TabardModel:GetFacing() - This function is not yet documented
- TabardModel:GetFogColor() - This function is not yet documented
- TabardModel:GetFogFar() - This function is not yet documented
- TabardModel:GetFogNear() - This function is not yet documented
- TabardModel:GetLight() - This function is not yet documented
- TabardModel:GetModel() - This function is not yet documented
- TabardModel:GetModelScale() - This function is not yet documented
- TabardModel:GetPosition() - This function is not yet documented
- TabardModel:GetPropagateKeyboardInput() - This function is not yet documented
- TabardModel:GetWorldScale() - This function is not yet documented
- TabardModel:HasCustomCamera() - This function is not yet documented
- TabardModel:IsForbidden() - This function is not yet documented
- TabardModel:RefreshCamera() - This function is not yet documented
- TabardModel:RegisterUnitEvent() - This function is not yet documented
- TabardModel:ReplaceIconTexture() - This function is not yet documented
- TabardModel:SetAnimation() - This function is not yet documented
- TabardModel:SetBarberShopAlternateForm() - This function is not yet documented
- TabardModel:SetCamDistanceScale() - This function is not yet documented
- TabardModel:SetCamera() - This function is not yet documented
- TabardModel:SetCameraDistance() - This function is not yet documented
- TabardModel:SetCameraFacing() - This function is not yet documented
- TabardModel:SetCameraPosition() - This function is not yet documented
- TabardModel:SetCameraTarget() - This function is not yet documented
- TabardModel:SetCustomCamera() - This function is not yet documented
- TabardModel:SetDisplayInfo() - This function is not yet documented
- TabardModel:SetDoBlend() - This function is not yet documented
- TabardModel:SetDontSavePosition() - This function is not yet documented
- TabardModel:SetFacing() - This function is not yet documented
- TabardModel:SetFogColor() - This function is not yet documented
- TabardModel:SetFogFar() - This function is not yet documented
- TabardModel:SetFogNear() - This function is not yet documented
- TabardModel:SetGlow() - This function is not yet documented
- TabardModel:SetLight() - This function is not yet documented
- TabardModel:SetModel() - This function is not yet documented
- TabardModel:SetModelScale() - This function is not yet documented
- TabardModel:SetPortraitZoom() - This function is not yet documented
- TabardModel:SetPosition() - This function is not yet documented
- TabardModel:SetPropagateKeyboardInput() - This function is not yet documented
- TabardModel:SetSequence() - This function is not yet documented
- TabardModel:SetSequenceTime() - This function is not yet documented
- TabardModel:SetShown() - This function is not yet documented
- 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