Skip to content

HUDUIElement ​

Inherits: Control

Inherited by: ActionBarUI, BreathBarUI, ChatViewer, CombatLog, DamageMeterUI, DamaterBarUI, MiniMap, MiniMenuUI, PartyFramesUI, QuestTrackerUI, SubtitlesUI, TagUnitFrame, UnitFrame

Parent class for all HUD UI elements contains useful exports for ui scaling options. All huds elements are detected by the InGameUI class allowing ease of new HUD elements for your game. Make use of available signals and the system hub for your needs

Properties ​

boolaffected_by_ui_scalingtrue
PivotPositionpivot_typePivotPosition.CENTER

Variables ​

GameHost.SystemHubsystem_hub

Methods ​

voidinitialize_ui( p_system_hub: GameHost.SystemHub )
voidapply_ui_scale( scale_value: float )

Signals ​

ability_tooltip_requested( ability: AbilityInstance ) ​

Tooltips

skill_node_tooltip_requested( node: SkillNode ) ​

Asks the interface to show the tooltip of a skill node.

item_tooltip_requested( item: ItemInstance, definition: ItemDefinition, context: String, additional_data: Dictionary ) ​

Asks the interface to show the tooltip of an item: the item, its definition, where it is and extra data.

effect_tooltip_requested( effect: EffectInstance ) ​

Asks the interface to show the tooltip of an effect.

description_tooltip_requested( object_name: String, description: String ) ​

Asks the interface to show a tooltip with a name and a text.

entity_tooltip_requested( target: Variant ) ​

Asks the interface to show the tooltip of an entity or an object.

hide_tooltip( force_hide: bool ) ​

Asks the interface to hide the tooltip (force hides it at once).

message_requested( message: String ) ​

Messages

warning_message_requested( message: String ) ​

Asks the interface to show a warning.

ui_sfx_request( sound: AudioManager.UISound, volume_modifier: float ) ​

Audio Request

Enumerations ​

enum PivotPosition ​

The options of pivot position: top left, top right, bottom left, bottom right, top, bottom, left, right, center, custom.

  • TOP_LEFT = 0
  • TOP_RIGHT = 1
  • BOTTOM_LEFT = 2
  • BOTTOM_RIGHT = 3
  • TOP = 4
  • BOTTOM = 5
  • LEFT = 6
  • RIGHT = 7
  • CENTER = 8
  • CUSTOM = 9

Property descriptions ​

bool affected_by_ui_scaling = true ​

Whether this HUD element should be affected by UI scaling

PivotPosition pivot_type = PivotPosition.CENTER ​

Pivot position for scaling transformation

Variable descriptions ​

GameHost.SystemHub system_hub ​

SystemHub reference

Method descriptions ​

void initialize_ui( p_system_hub: GameHost.SystemHub ) ​

Sets the part up with the hub of the game systems: connects the signals it listens to and fills it.

void apply_ui_scale( scale_value: float ) ​

Apply UI scale to this HUD element Called by InGameUI when settings change or HUD is initialized