public override void Update(GameTime gameTime) { base.Update(gameTime); // additional updates. recipeCatalogueUI.Update(); itemCatalogueUI.Update(); bestiaryUI.Update(); }
public override void Update(GameTime gameTime) { base.Update(gameTime); // additional updates. if (!mainPanel.GetDimensions().ToRectangle().Intersects(GetDimensions().ToRectangle())) { var parentSpace = GetDimensions().ToRectangle(); mainPanel.Left.Pixels = Utils.Clamp(mainPanel.Left.Pixels, 0, parentSpace.Right - mainPanel.Width.Pixels); mainPanel.Top.Pixels = Utils.Clamp(mainPanel.Top.Pixels, 0, parentSpace.Bottom - mainPanel.Height.Pixels); mainPanel.Recalculate(); } sharedUI.Update(); recipeCatalogueUI.Update(); craftUI.Update(); itemCatalogueUI.Update(); bestiaryUI.Update(); UpdateFavoritedPanel(); }