protected override void new_item_window() { int index = Item_Window == null ? 0 : Item_Window.index; if (Item_Window != null) { Item_Window.restore_equipped(); } Item_Window = new Window_Command_Item_Supply( unit.actor.id, new Vector2( 8, Config.WINDOW_HEIGHT - (Global.ActorConfig.NumItems + 2) * 16), Restocking); if (Item_Window.num_items() > 0) { Item_Window.immediate_index = index; } Item_Window.active = Giving || Restocking; }