public override void close_help() { if (Giving) { Item_Window.close_help(); } else { if (Item_Selection_Window != null) { Item_Selection_Window.close_help(); } else { Supply_Window.close_help(); } } }
public override void open_help() { if (Giving || Restocking) { Item_Window.open_help(); } else if (Taking) { if (Item_Selection_Window != null) { Item_Selection_Window.open_help(); } else { Supply_Window.open_help(); } } else { } }
private void update_taking(bool active) { if (active) { if (selecting_take) { if (is_help_active) { if (Item_Selection_Window.is_canceled()) { close_help(); } } else { if (Item_Selection_Window.is_canceled()) { Global.game_system.play_se(System_Sounds.Cancel); cancel_selecting_take(); } else if (Item_Selection_Window.is_selected()) { take(); } else if (Item_Selection_Window.getting_help()) { open_help(); } } } else if (taking) { if (is_help_active) { if (Supply_Window.is_canceled()) { close_help(); } } else { if (Supply_Window.is_canceled()) { Global.game_system.play_se(System_Sounds.Cancel); cancel_trading(); } else if (Supply_Window.is_selected()) { if (Constants.Gameplay.CONVOY_ITEMS_STACK == Convoy_Stack_Types.Full) { select_take(); } else { take(); } } else if (Global.Input.triggered(Inputs.X) && Constants.Gameplay.CONVOY_ITEMS_STACK == Convoy_Stack_Types.Full) { take(); } else if (Supply_Window.getting_help()) { open_help(); } } } } }