Merged
Conversation
…factor overlay rendering logic
…g; adjust priority and add first-person rendering support
…for EventTrigger in ReactorControllerBlockEntity
MathisGredt
approved these changes
May 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new HUD overlay system for rendering custom graphical overlays in the game, alongside related utility classes and updates. The changes include the creation of a modular overlay framework, the addition of specific overlays (e.g., helmet condition, radiation effects, and event-based text), and the refactoring of existing code to integrate the new system. Below are the most important changes grouped by theme:
New HUD Overlay Framework
HudOverlayinterface defining the contract for all HUD overlays, including methods for rendering, priority management, and activation checks (src/main/java/net/nuclearteam/createnuclear/foundation/events/HudOverlay.java).HudOverlayRegistryto manage the registration and retrieval of all HUD overlays (src/main/java/net/nuclearteam/createnuclear/foundation/events/HudOverlayRegistry.java).EasingHudOverlay, an abstract class providing smooth fade-in/out effects for overlays (src/main/java/net/nuclearteam/createnuclear/foundation/events/EasingHudOverlay.java).New HUD Overlays
HelmetOverlayto display helmet durability and condition, dynamically adjusting priority and rendering based on the helmet's state (src/main/java/net/nuclearteam/createnuclear/foundation/events/overlay/HelmetOverlay.java).RadiationOverlay, which shows a radiation effect when the player is irradiated, using dynamic coverage scaling and smooth transitions (src/main/java/net/nuclearteam/createnuclear/foundation/events/overlay/RadiationOverlay.java).EventTextOverlayto display localized text messages triggered by specific events (src/main/java/net/nuclearteam/createnuclear/foundation/events/overlay/EventTextOverlay.java).Refactoring and Integration
CNClientEventto handle the rendering of overlays using the new framework, ensuring overlays are sorted and rendered based on priority (src/main/java/net/nuclearteam/createnuclear/foundation/events/CNClientEvent.java).CommentEventClientsclass as its functionality was integrated into the new system (src/main/java/net/nuclearteam/createnuclear/foundation/events/CommentEventClients.java).Utility Enhancements
RenderHelper, a utility class for rendering full-screen textures with optional scaling and transparency, optimized with caching to avoid redundant rendering (src/main/java/net/nuclearteam/createnuclear/foundation/utility/RenderHelper.java).Minor Fixes
CNCOnfiguredFeaturesfromstoneOreReplaceablestostoneOreReplaceable(src/main/java/net/nuclearteam/createnuclear/infrastructure/worldgen/CNCOnfiguredFeatures.java).