rename GetOrNewWidget (#14079)

This commit is contained in:
Leon Friedrich
2023-02-13 19:33:53 +13:00
committed by GitHub
parent 1b51baa966
commit 236ce69062

View File

@@ -107,7 +107,7 @@ namespace Content.Client.Suspicion
public void AddUI() public void AddUI()
{ {
// TODO move this out of the component // TODO move this out of the component
_gui = _ui.ActiveScreen?.GetOrNewWidget<SuspicionGui>(); _gui = _ui.ActiveScreen?.GetOrAddWidget<SuspicionGui>();
_gui!.UpdateLabel(); _gui!.UpdateLabel();
SetAnchorAndMarginPreset(_gui, LayoutPreset.BottomLeft); SetAnchorAndMarginPreset(_gui, LayoutPreset.BottomLeft);