Module hud

Source

Re-exports§

pub use item_imgs::animate_by_pulse;

Modules§

animation πŸ”’
bag πŸ”’
buffs πŸ”’
buttons πŸ”’
change_notification πŸ”’
chat πŸ”’
crafting πŸ”’
diary πŸ”’
esc_menu πŸ”’
group πŸ”’
hotbar πŸ”’
img_ids
item_imgs
loot_scroller πŸ”’
map πŸ”’
minimap πŸ”’
overhead πŸ”’
overitem πŸ”’
popup πŸ”’
prompt_dialog πŸ”’
quest πŸ”’
settings_window πŸ”’
skillbar πŸ”’
slots πŸ”’
social πŸ”’
subtitles πŸ”’
trade πŸ”’
util

Structs§

BlockFloater
BuffIcon
ChatTab
CollectFailedData
ComboFloater
DebugInfo
ExpFloater
Floaters
HotbarState
Hud
HudInfo
Ids πŸ”’
LootMessage
MapMarkers
PromptDialogSettings
Show
SkillPointGain
Subtitle
TradeAmountInput
(target slot, input value, inventory quantity, is our inventory, error, trade.offers index of trade slot)

Enums§

AutoPressBehavior
Similar to PressBehavior, with different semantics for settings that change state automatically. There is no [PressBehavior::update][update] implementation because it doesn’t apply to the use case; this is just a sentinel.
BarNumbers
BuffIconKind
BuffPosition
CraftingTab
CrosshairType
Event
HotbarSlotContents
HudCollectFailedReason
HudLootOwner
Intro
PositionSpecifier
Specifier to use with Position::position Read its documentation for more
PressBehavior
ScaleChange
ShortcutNumbers
Windows
XpBar

Constants§

BLACK πŸ”’
BUFF_COLOR πŸ”’
CRITICAL_HP_COLOR πŸ”’
DEBUFF_COLOR πŸ”’
DEFAULT_NPC πŸ”’
ENEMY_HP_COLOR πŸ”’
ERROR_COLOR πŸ”’
Color for chat command errors (yellow !)
EXP_ACCUMULATION_DURATION πŸ”’
EXP_FLOATER_LIFETIME πŸ”’
FACTION_COLOR πŸ”’
Color for factional chat
GROUP_COLOR πŸ”’
Color for group chat
GROUP_MEMBER πŸ”’
HP_COLOR πŸ”’
INFO_COLOR πŸ”’
Color for chat command info (blue i)
KILL_COLOR πŸ”’
Color for death messagesw
LOW_HP_COLOR πŸ”’
MENU_BG πŸ”’
NAMETAG_DMG_RANGE πŸ”’
Range damaged triggered nametags can be seen
NAMETAG_DMG_TIME πŸ”’
Time nametags stay visible after doing damage even if they are out of range in seconds
NAMETAG_GROUP_RANGE πŸ”’
Distance at which nametags are visible for group members
NAMETAG_RANGE πŸ”’
Distance at which nametags are visible
OFFLINE_COLOR πŸ”’
Offline color
ONLINE_COLOR πŸ”’
Online color
POISEBAR_TICK_COLOR πŸ”’
POISE_COLOR πŸ”’
QUALITY_ARTIFACT πŸ”’
QUALITY_COMMON πŸ”’
QUALITY_DEBUG πŸ”’
QUALITY_EPIC πŸ”’
QUALITY_HIGH πŸ”’
QUALITY_LEGENDARY πŸ”’
QUALITY_LOW πŸ”’
QUALITY_MODERATE πŸ”’
REGION_COLOR πŸ”’
Color for regional chat
SAY_COLOR πŸ”’
Color for local chat
SPEECH_BUBBLE_RANGE πŸ”’
Range to display speech-bubbles at
STAMINA_COLOR πŸ”’
TELL_COLOR πŸ”’
Color for a private message from another player
TEXT_BG πŸ”’
TEXT_BIND_CONFLICT_COLOR πŸ”’
TEXT_BLUE_COLOR πŸ”’
TEXT_COLOR πŸ”’
TEXT_COLOR_3 πŸ”’
TEXT_COLOR_GREY πŸ”’
TEXT_DULL_RED_COLOR πŸ”’
TEXT_GRAY_COLOR πŸ”’
TEXT_VELORITE πŸ”’
UI_HIGHLIGHT_0 πŸ”’
UI_MAIN πŸ”’
UI_SUBTLE πŸ”’
WORLD_COLOR πŸ”’
Color for global messages
XP_COLOR πŸ”’

Traits§

Position
Trait which enables you to declare widget position to use later on widget creation. It is implemented for all widgets which are implement Positionable, so you can easily change your code to use this method.

Functions§

air_velocity πŸ”’
angle_of_attack_text
cr_color
default_water_color
get_buff_image
get_quality_col
get_sprite_desc
multiplier_to_percentage
Converts multiplier to percentage. NOTE: floats are not the most precise type.
try_hotbar_slot_from_input πŸ”’