Ejemplo n.º 1
0
 public InventoryPage(int x, int y, int width, int height) : base(x, y, width, height)
 {
     verticalToolBar = new VerticalToolBar(
         xPositionOnScreen - IClickableMenu.spaceToClearSideBorder - IClickableMenu.borderWidth * 2,
         yPositionOnScreen + IClickableMenu.spaceToClearTopBorder - IClickableMenu.borderWidth / 2 + 4,
         VerticalToolBar.NUM_BUTTONS,
         true);
 }
Ejemplo n.º 2
0
        /// <summary>Raised after the player loads a save slot and the world is initialised.</summary>
        /// <param name="sender">The event sender.</param>
        /// <param name="e">The event data.</param>
        private void onSaveLoaded(object sender, SaveLoadedEventArgs e)
        {
            verticalToolbar = new VerticalToolBar(getToolbar().xPositionOnScreen - (VerticalToolBar.getInitialWidth() / 2), Game1.viewport.Height - VerticalToolBar.getInitialHeight());
            Game1.onScreenMenus.Add(verticalToolbar);

            currentToolIndex = Game1.player.CurrentToolIndex;
            isInitiated      = true;
        }
Ejemplo n.º 3
0
        /// <summary>Raised after the player loads a save slot and the world is initialised.</summary>
        /// <param name="sender">The event sender.</param>
        /// <param name="e">The event data.</param>
        private void onSaveLoaded(object sender, SaveLoadedEventArgs e)
        {
            baseMaxItems    = Game1.player.MaxItems;
            verticalToolbar = new VerticalToolBar(this.Orientation);
            Game1.onScreenMenus.Add(verticalToolbar);

            currentToolIndex = Game1.player.CurrentToolIndex;
            isInitiated      = true;
        }