The "Build" action hint for structures does not disappear when the placement location is blocked or invalid.
I am not sure if any other action is affected, I couldn't find any.
The issue is also for controllers. For example:

- controls.lua at:
table.insert(strs, TheInput:GetLocalizedControl(controller_id, CONTROL_CONTROLLER_ACTION) .. " " .. STRINGS.UI.HUD.BUILD)
- playercontroller.lua at function PlayerController:GetHoverTextOverride()
return self.placer_recipe ~= nil and (STRINGS.UI.HUD.BUILD.." "..(STRINGS.NAMES[string.upper(self.placer_recipe.name)] or STRINGS.UI.HUD.HERE)) or nil
After adding a check to properly not display the 'Build' hint, it'd show "Examine Evergreen" if you hover the blocked structure behind a tree (mouse would hover on the tree), but clicking won't examine, so I think Examines should also be hidden while trying to Build, which is the case when trying to Plant (for example a berrybush).
I think in playercontroller.lua the line: self.LMBaction, self.RMBaction = self.inst.components.playeractionpicker:DoGetMouseActions()
can probably be something like this:
if self.placer == nil then self.LMBaction, self.RMBaction = self.inst.components.playeractionpicker:DoGetMouseActions() else self.LMBaction, self.RMBaction = nil, nil end
hover to build a structure on an invalid or blocked place with and without controller
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now