public void trade()
        {
            Supply_Command_Window selected_option;

            if (Command_Window.selected_index() == 0)
            {
                selected_option = Supply_Command_Window.Give;
            }
            else if (Command_Window.selected_index() == 1)
            {
                if (this.restock_blocked)
                {
                    selected_option = Supply_Command_Window.Take;
                }
                else
                {
                    selected_option = Supply_Command_Window.Restock;
                }
            }
            else
            {
                selected_option = Supply_Command_Window.Take;
            }

            trade(selected_option);
        }
Beispiel #2
0
 public ChapterCommands SelectedChapterCommand()
 {
     return(ActiveChapterCommands[ChapterCommandWindow.selected_index()]);
 }