Verse widget animation bugged

Summary

To animate a widget in verse, the smooth animation used to be from making the widget hidden and then visible (like in the code below). However now it flickers and there isn’t a way to animate it such as a move to function

MoneyText.SetVisibility(widget_visibility.Hidden)
MainUIWidget.RemoveWidget(MoneyText)
MoneyText.SetVisibility(widget_visibility.Visible)

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

UI/Tools

Steps to Reproduce

Here is the code (ignore that it isnt the best) and it should animate the money text down

var MoneyText : text_block = text_block{DefaultText := S2M(“0”), DefaultTextColor := White,DefaultShadowOffset:=option{vector2{X:=2.5,Y:=2.5}},DefaultShadowColor:=Black}

    MoneyText.SetText(S2M("+${FormatAmount(Num)}"))
    scale_iteration :int = 30
    var i : int = 0
    Top := 100.0
    # MoneyText.MoveTo()

    loop:
        if (i >= scale_iteration):
            break
            
        Percentage :float= (i*1.0) / (scale_iteration*1.0)

        Value : float = Lerp(Top,10.0, Percentage)
        MoneyText.SetVisibility(widget_visibility.Hidden)
        MainUIWidget.RemoveWidget(MoneyText)
        MoneyText.SetVisibility(widget_visibility.Visible)

        # Print("Value {Value}")

        MainUIWidget.AddWidget(
             canvas_slot:
                Anchors := anchors{Minimum:=vector2{X:=0.7, Y:=0.5}, Maximum:=vector2{X:=0.7, Y:=0.5}}
                Offsets := margin{Left :=-200.0, Top:=(-110.0 +Top) - Value}
                Alignment := vector2{X:=1.0, Y:=0.5}
                ZOrder := 3
                SizeToContent := false
                Widget := MoneyText
        )
        set i+=1
        Sleep(0.0)

    MoneyText.SetVisibility(widget_visibility.Hidden)
    MainUIWidget.RemoveWidget(MoneyText)
    MoneyText.SetVisibility(widget_visibility.Visible)

Expected Result

A smooth animation

Observed Result

A flickering movement down

Platform(s)

PC

Island Code

7340-5853-5689

Video

Ticket: FORT-883689

FORT-889141 has been created and its status is ‘Unconfirmed’. This is now in a queue to be reproduced and confirmed.

Hello, I have exactly the same problem!! :cry:

Can confirm this bug! Seems like something changed behind the scenes in one of the last few patches(can’t say which one, since I haven’t tested my islands in between).

It seems like there has been some delay introduced between removing and readding a widget, although both functions are called in the same frame.

Please follow this thread for updates. Closing this one as a duplicate.

Bug Report 34.20 - Flickering problem when reloading HUD widgets