Update submodule, fix HandsGui.
HandsGui now works with the new system. The port was sloppy though so somebody might want to come and refactor this so that it doesn't force its own position and size.
This commit is contained in:
committed by
PJB3005
parent
ba152fc61d
commit
68f4fd995e
@@ -38,13 +38,14 @@ namespace Content.Client.GameObjects
|
||||
|
||||
ActiveIndex = cast.ActiveIndex;
|
||||
|
||||
var uiMgr = (UserInterfaceManager)IoCManager.Resolve<IUserInterfaceManager>();
|
||||
|
||||
if (uiMgr.GetSingleComponentByGuiComponentType(GuiComponentType.HandsUi) == null)
|
||||
// Tell UI to update.
|
||||
var uiMgr = IoCManager.Resolve<IUserInterfaceManager>();
|
||||
if (!uiMgr.TryGetSingleComponent<HandsGui>(out var component))
|
||||
{
|
||||
uiMgr.AddComponent(new HandsGui());
|
||||
component = new HandsGui();
|
||||
uiMgr.AddComponent(component);
|
||||
}
|
||||
uiMgr.ComponentUpdate(GuiComponentType.HandsUi, this);
|
||||
component.UpdateHandIcons();
|
||||
}
|
||||
|
||||
public void SendChangeHand(string index)
|
||||
|
||||
Reference in New Issue
Block a user