Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicHUD MythicHUD
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicHUDMythicHUD
  • Wiki
  • Pop Ups

Pop Ups · Changes

Page history
Create Pop-Ups authored Oct 03, 2024 by Brickgard's avatar Brickgard
Hide whitespace changes
Inline Side-by-side
Showing with 94 additions and 0 deletions
+94 -0
  • Pop-Ups.md Pop-Ups.md +94 -0
  • No files found.
Pop-Ups.md 0 → 100644
View page @ 95f5bb5f
### Arrangement
Pop-Ups inherit the Asset arrangement options of [Layouts](Layouts) - [Alignment](Layouts#alignment), [Positioning](Layouts#position), and [Offset](Layouts#offset) specifically.
### Slots
Pop-Ups can show multiple assets at once, stacking however the elements are arranged, to the max amount of elements you configure.
## Require Unique
This option is either true or false. If true, the popup will only display is there is not already an element displayed with the same arguments. This is useful for preventing duplicate messages.
### Sending a Popup
Sending a popup is as easy as sending a command:\
`/happyhud popup <player> <popup> <ticks> <args separated by '|'>`\
**Example Command:** `/happyhud popup Notch action-bar 60 Hello There Notch!`
### Example:
---
A PvP-focused "Death Message" pop-up that slots in the upper right of the screen:
##### Pop-Up Layout:
```yaml
death-message:
elements:
kill-1:
asset: death-message
align: left
position:
x: 100.0
y: 100.0
offset:
x: -20
y: -20
kill-2:
asset: death-message
align: left
position:
x: 100.0
y: 100.0
offset:
x: -20
y: -40
kill-3:
asset: death-message
align: left
position:
x: 100.0
y: 100.0
offset:
x: -20
y: -60
kill-4:
asset: death-message
align: left
position:
x: 100.0
y: 100.0
offset:
x: -20
y: -80
kill-5:
asset: death-message
align: left
position:
x: 100.0
y: 100.0
offset:
x: -20
y: -100
```
##### Example Popup Asset and Asset Layers:
```yaml
death-message:
layers:
icon:
texture:
scale: 0.5
path: assets/death-message/icon.png
offset:
x: 86
y: -2
killer:
text: "%arg-1%"
font: "default"
outlined: true
align: left
offset:
x: 80
y: -2
victim:
text: "%arg-2%"
font: "default"
outlined: true
align: right
offset:
x: 100
y: -2
outline:
texture:
path: assets/death-message/outline.png
```
\ No newline at end of file
Clone repository
  • Advanced Version Support
  • Changelog
  • Commands
  • Compatibility
  • Components
    • Asset Layers
    • Assets
  • Conditions
  • Conditions
    • Effect
    • Gamemode
    • Logical Operator
    • Placeholder
    • Progress
  • Fonts
  • Getting Started
  • HUD Components
View All Pages