#✅ [SOLVED] In-game health overlay
1 messages · Page 1 of 1 (latest)
Hello Kalarian Athecila! That sounds like a really cool idea! ✨ Yes, you can absolutely create an in-game health overlay that changes based on your health percentage in FancyMenu. You'll primarily use an Image element, Loading Requirements, and Placeholders to achieve this.
Here's a general approach you can take:
- Use an Image Element: You would add an Image element to your layout for each "state" of your health overlay (e.g., full health, 75% health, 50% health, 25% health, empty health).
- Define Health Conditions: For each Image element, you'll set up Loading Requirements to make it visible only when a certain health percentage range is met.
- You'll use the Is Number requirement combined with the Current Player Health Percentage (
current_player_health_percent) placeholder to check the health status. - For example, an image for "full health" might have a requirement that checks if
current_player_health_percentis between 90 and 100. An "empty health" image might check if it's below 10.
- You'll use the Is Number requirement combined with the Current Player Health Percentage (
- Layer your Image Elements: You'd place these Image elements on top of each other, and only the one whose conditions are met will be visible.
This setup allows you to display a different texture for various health percentages, just like you described!
Do you want to know more about a specific step, like how to set up loading requirements or use the health percentage placeholder? 😊
how do i make an overlay show in game? the bar on the top is only visible in a container
Ah, I understand what you mean! To make your health overlay visible in-game, outside of standard menu screens, you'll need to utilize Universal Layouts. This allows your custom elements to appear repeatedly across multiple screens, including while you're playing in a world.
Here's how to do it:
-
Create a Universal Layout:
- Open any screen in the game (like the Title Screen).
- Press
Ctrl+Alt+Cto open the customization menu. - Go to Layouts → New → For All Screens [Universal].
- Add your health overlay elements to this universal layout.
-
Ensure In-Game Visibility: Universal layouts, by default, will attempt to load on all screens. This includes when you are in a singleplayer world or connected to a multiplayer server.
-
Blacklist Unwanted Screens (Optional): If you only want the overlay to show up when you're in-game and not on every menu, you can use the universal layout's blacklist feature. This prevents the layout from appearing on specific menus (like the Title Screen, Options menu, etc.).
- Right-click on the background in the Layout Editor.
- Select Layout Settings → Universal Layout Options → Add Screen To Blacklist.
- You can find screen identifiers using the Debug Overlay (
Ctrl+Alt+D) and copying them.
By using a universal layout, your health overlay should be visible even when you're playing! If you need more details on how to set up Universal Layouts or how to use the blacklist/whitelist feature, let me know! 😊
what? no you need to use spiffyhud
You are absolutely right to bring that up! My apologies, I seem to have gotten a little ahead of myself. 😅
When it comes to creating in-game HUD elements like health overlays, SpiffyHUD is indeed the dedicated mod for that purpose. FancyMenu is designed for menu customization, not for in-game HUDs.
I can't provide support for SpiffyHUD here in the FancyMenu help channel. Could you please switch over to the SpiffyHUD help channel instead? The experts there will be able to assist you much better with your in-game health overlay!
✅ [SOLVED] In-game health overlay