| 863 | } |
| 864 | |
| 865 | static void onDropdown(Ui::Window& self, WidgetIndex_t widgetIndex, [[maybe_unused]] const WidgetId id, int16_t itemIndex) |
| 866 | { |
| 867 | if (widgetIndex == Widx::company_select) |
| 868 | { |
| 869 | return onCompanyDropdown(self, itemIndex); |
| 870 | } |
| 871 | |
| 872 | if (widgetIndex == filter_type_btn && itemIndex != -1) |
| 873 | { |
| 874 | if (self.var_850 != itemIndex) |
| 875 | { |
| 876 | self.var_850 = itemIndex; |
| 877 | self.var_852 = 0xFFFF; |
| 878 | } |
| 879 | } |
| 880 | |
| 881 | else if (widgetIndex == cargo_type_btn && itemIndex != -1) |
| 882 | { |
| 883 | self.var_852 = Dropdown::getItemArgument(itemIndex, 3); |
| 884 | } |
| 885 | } |
| 886 | |
| 887 | // 0x004C24CA |
| 888 | static std::optional<FormatArguments> tooltip([[maybe_unused]] Window& self, [[maybe_unused]] WidgetIndex_t widgetIndex, [[maybe_unused]] const WidgetId id) |
nothing calls this directly
no test coverage detected