|
| UIHairStyleButton (Player player, int hairStyleId) |
|
override void | LeftMouseDown (UIMouseEvent evt) |
| Called when the UIElement under the mouse is left clicked. The default code calls the OnLeftMouseDown event and then calls LeftMouseDown on the Parent element. Since the method is called on all parent elements in the hierarchy, check if (evt.Target == this) for code only interested in direct clicks to this element. Children elements overlaying this element can be ignored by setting IgnoresMouseInteraction to true on them. More...
|
|
override void | MouseOut (UIMouseEvent evt) |
| Called once when this UIElement is no longer moused over. Default implementation sets IsMouseHovering to false, calls OnMouseOut event, then calls this same method on the Parent element. Useful for changing visuals to indicate the element is no longer interactable, as is the OnMouseOut event. MouseOver(UIMouseEvent) will be called when it is hovered once again. More...
|
|
override void | MouseOver (UIMouseEvent evt) |
| Called once when this UIElement becomes moused over (hovered). Default implementation sets IsMouseHovering to true, calls OnMouseOver event, then calls this same method on the Parent element. Useful for changing visuals to indicate the element is interactable, as is the OnMouseOver event. Any code that needs to run as long as the element is hovered should use check IsMouseHovering in Update(GameTime). MouseOut(UIMouseEvent) will be called when it no longer hovered. More...
|
|
void | SkipRenderingContent (int timeInFrames) |
|
| UIImageButton (Asset< Texture2D > texture) |
|
override void | MouseOut (UIMouseEvent evt) |
| Called once when this UIElement is no longer moused over. Default implementation sets IsMouseHovering to false, calls OnMouseOut event, then calls this same method on the Parent element. Useful for changing visuals to indicate the element is no longer interactable, as is the OnMouseOut event. MouseOver(UIMouseEvent) will be called when it is hovered once again. More...
|
|
override void | MouseOver (UIMouseEvent evt) |
| Called once when this UIElement becomes moused over (hovered). Default implementation sets IsMouseHovering to true, calls OnMouseOver event, then calls this same method on the Parent element. Useful for changing visuals to indicate the element is interactable, as is the OnMouseOver event. Any code that needs to run as long as the element is hovered should use check IsMouseHovering in Update(GameTime). MouseOut(UIMouseEvent) will be called when it no longer hovered. More...
|
|
void | SetHoverImage (Asset< Texture2D > texture) |
|
void | SetImage (Asset< Texture2D > texture) |
|
void | SetVisibility (float whenActive, float whenInactive) |
|
void | Activate () |
|
void | Append (UIElement element) |
|
virtual int | CompareTo (object obj) |
|
virtual bool | ContainsPoint (Vector2 point) |
|
void | CopyStyle (UIElement element) |
|
void | Deactivate () |
|
virtual void | Draw (SpriteBatch spriteBatch) |
|
void | DrawDebugHitbox (BasicDebugDrawer drawer, float colorIntensity=0f) |
|
delegate void | ElementEvent (UIElement affectedElement) |
|
virtual void | ExecuteRecursively (UIElementAction action) |
|
Rectangle | GetClippingRectangle (SpriteBatch spriteBatch) |
|
CalculatedStyle | GetDimensions () |
|
UIElement | GetElementAt (Vector2 point) |
|
CalculatedStyle | GetInnerDimensions () |
|
CalculatedStyle | GetOuterDimensions () |
|
bool | GetSnapPoint (out SnapPoint point) |
|
virtual List< SnapPoint > | GetSnapPoints () |
|
virtual Rectangle | GetViewCullingArea () |
|
bool | HasChild (UIElement child) |
|
void | Initialize () |
|
virtual void | LeftClick (UIMouseEvent evt) |
|
virtual void | LeftDoubleClick (UIMouseEvent evt) |
|
virtual void | LeftMouseDown (UIMouseEvent evt) |
| Called when the UIElement under the mouse is left clicked. The default code calls the OnLeftMouseDown event and then calls LeftMouseDown on the Parent element. Since the method is called on all parent elements in the hierarchy, check if (evt.Target == this) for code only interested in direct clicks to this element. Children elements overlaying this element can be ignored by setting IgnoresMouseInteraction to true on them. More...
|
|
virtual void | LeftMouseUp (UIMouseEvent evt) |
|
virtual void | MiddleClick (UIMouseEvent evt) |
|
virtual void | MiddleDoubleClick (UIMouseEvent evt) |
|
virtual void | MiddleMouseDown (UIMouseEvent evt) |
|
virtual void | MiddleMouseUp (UIMouseEvent evt) |
|
delegate void | MouseEvent (UIMouseEvent evt, UIElement listeningElement) |
|
virtual void | MouseOut (UIMouseEvent evt) |
| Called once when this UIElement is no longer moused over. Default implementation sets IsMouseHovering to false, calls OnMouseOut event, then calls this same method on the Parent element. Useful for changing visuals to indicate the element is no longer interactable, as is the OnMouseOut event. MouseOver(UIMouseEvent) will be called when it is hovered once again. More...
|
|
virtual void | MouseOver (UIMouseEvent evt) |
| Called once when this UIElement becomes moused over (hovered). Default implementation sets IsMouseHovering to true, calls OnMouseOver event, then calls this same method on the Parent element. Useful for changing visuals to indicate the element is interactable, as is the OnMouseOver event. Any code that needs to run as long as the element is hovered should use check IsMouseHovering in Update(GameTime). MouseOut(UIMouseEvent) will be called when it no longer hovered. More...
|
|
virtual void | OnActivate () |
| Called each time this element is activated, which is usually when a UIState is activated via UserInterface.SetState(UIState). Use this to run code to update elements whenever the UI is toggled on. More...
|
|
virtual void | OnDeactivate () |
|
virtual void | OnInitialize () |
| Called before the first time this element is activated (see OnActivate). Use this method to create and append other UIElement to this to build a UI. More...
|
|
virtual void | Recalculate () |
|
virtual void | RecalculateChildren () |
|
void | Remove () |
|
void | RemoveAllChildren () |
|
void | RemoveChild (UIElement child) |
|
virtual void | RightClick (UIMouseEvent evt) |
|
virtual void | RightDoubleClick (UIMouseEvent evt) |
|
virtual void | RightMouseDown (UIMouseEvent evt) |
|
virtual void | RightMouseUp (UIMouseEvent evt) |
|
virtual void | ScrollWheel (UIScrollWheelEvent evt) |
|
delegate void | ScrollWheelEvent (UIScrollWheelEvent evt, UIElement listeningElement) |
|
void | SetPadding (float pixels) |
|
void | SetSnapPoint (string name, int id, Vector2? anchor=null, Vector2? offset=null) |
|
delegate void | UIElementAction (UIElement element) |
|
virtual void | Update (GameTime gameTime) |
|
virtual void | XButton1Click (UIMouseEvent evt) |
|
virtual void | XButton1DoubleClick (UIMouseEvent evt) |
|
virtual void | XButton1MouseDown (UIMouseEvent evt) |
|
virtual void | XButton1MouseUp (UIMouseEvent evt) |
|
virtual void | XButton2Click (UIMouseEvent evt) |
|
virtual void | XButton2DoubleClick (UIMouseEvent evt) |
|
virtual void | XButton2MouseDown (UIMouseEvent evt) |
|
virtual void | XButton2MouseUp (UIMouseEvent evt) |
|