Module veloren_voxygen::hud
source · Re-exports
pub use item_imgs::animate_by_pulse;
Modules
- bag 🔒
- buffs 🔒
- buttons 🔒
- chat 🔒
- crafting 🔒
- diary 🔒
- esc_menu 🔒
- group 🔒
- hotbar 🔒
- map 🔒
- minimap 🔒
- overhead 🔒
- overitem 🔒
- popup 🔒
- quest 🔒
- skillbar 🔒
- slots 🔒
- social 🔒
- trade 🔒
Structs
- Ids 🔒
- (target slot, input value, inventory quantity, is our inventory, error, trade.offers index of trade slot)
Enums
- 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.
- Specifier to use with
Position::position
Read its documentation for more
Constants
- BLACK 🔒
- Color for chat command errors (yellow !)
- Color for factional chat
- Color for group chat
- HP_COLOR 🔒
- H_PAD 🔒
- Color for chat command info (blue i)
- Color for death messagesw
- LIGHT_OR 🔒
- MED_OR 🔒
- MENU_BG 🔒
- Range damaged triggered nametags can be seen
- Time nametags stay visible after doing damage even if they are out of range in seconds
- Distance at which nametags are visible for group members
- Distance at which nametags are visible
- Offline color
- Online color
- Color for regional chat
- Color for local chat
- Range to display speech-bubbles at
- Color for a private message from another player
- TEXT_BG 🔒
- UI_MAIN 🔒
- V_PAD 🔒
- WHITE 🔒
- Color for global messages
- XP_COLOR 🔒
Statics
Traits
- 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
- Converts multiplier to percentage. NOTE: floats are not the most precise type.