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:
Pieter-Jan Briers
2017-11-09 18:04:37 +01:00
committed by PJB3005
parent ba152fc61d
commit 68f4fd995e
3 changed files with 21 additions and 20 deletions

View File

@@ -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)