mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 09:35:25 +00:00
InputImage can now override initial hidden state if desired so you can start them invisible
This commit is contained in:
parent
077fea7d12
commit
e13e24643e
@ -127,7 +127,7 @@ void UInputImage::UpdateImage()
|
||||
|
||||
if (Sprite)
|
||||
{
|
||||
if (bHiddenBecauseBlank)
|
||||
if (bHiddenBecauseBlank || bOverrideHiddenState)
|
||||
{
|
||||
// Use Internal so as not to recurse back here
|
||||
SetVisibilityInternal(OldVisibility);
|
||||
|
@ -41,6 +41,14 @@ protected:
|
||||
UPROPERTY(EditAnywhere)
|
||||
float UpdateDelay = 0.1f;
|
||||
|
||||
/// Option to set this image as visible when bound, even if its state is hidden from outside
|
||||
/// The default behaviour is that if this image is hidden by other means, visibility is not overridden.
|
||||
/// This is safer but can result in a 1-frame blank image sometimes. Instead if you set this to true you can
|
||||
/// set your images to hidden in the designer and have them display themselves when there's something to show.
|
||||
/// You can then control invisiblity for other reasons from a parent widget.
|
||||
UPROPERTY(EditAnywhere)
|
||||
bool bOverrideHiddenState = false;
|
||||
|
||||
/// The player index for which the input should be looked up
|
||||
UPROPERTY(EditAnywhere)
|
||||
int PlayerIndex = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user