Banner
Interaction Indicator + Timer
Thumbnail
Downloads8,640
Views23,442
Publish Date2 years ago
Last Updated1 month ago by
Version3.2.5
Tags
Avatar

Hey! i've turn off MUI interaction indicator for the compatibility. How can i change text ("HOLD [F] TO USE THE DRILL") size? I can only change the timer font size in this mod:(

Avatar

That text is part of the base game HUD, not from the Interaction Indicator mod, so you will need another mod to change that. Something simple like this would do:

local interact_text_font_size = 16
--change to your desired font size here

Hooks:PostHook(HUDInteraction,"init","xonn_increase_interact_font_size",function(self,hud,child_name)
    if alive(self._hud_panel) then
        local interact_text = self._hud_panel:child(self._child_name_text)
        if alive(interact_text) then
            interact_text:set_font_size(interact_text_font_size) 
            --assume that invalid text is also present
            self._hud_panel:child(self._child_ivalid_name_text):set_font_size(interact_text_font_size) --"ivalid" is how it's spelled in the game files, do not correct
        end
    end
end)

Hook to lib/managers/hud/hudinteraction.

Avatar

@offyerrocker Hey, i put together this mod, and sent you mod ownership, feel free to accept it :) mod: mod/42802

Avatar

Thank you both, just what I was looking for :)
both mods are great

14 250