1151 int disabled_items; |
1151 int disabled_items; |
1152 StringID base_string; |
1152 StringID base_string; |
1153 |
1153 |
1154 ToolbarMenuWindow(int x, int y, int width, int height, const Widget *widgets, int item_count, |
1154 ToolbarMenuWindow(int x, int y, int width, int height, const Widget *widgets, int item_count, |
1155 int sel_index, int parent_button, StringID base_string, int checked_items, |
1155 int sel_index, int parent_button, StringID base_string, int checked_items, |
1156 int disabled_mask) : |
1156 int disabled_items) : |
1157 Window(x, y, width, height, WC_TOOLBAR_MENU, widgets), |
1157 Window(x, y, width, height, WC_TOOLBAR_MENU, widgets), |
1158 item_count(item_count), sel_index(sel_index), main_button(GB(parent_button, 0, 8)), |
1158 item_count(item_count), sel_index(sel_index), main_button(GB(parent_button, 0, 8)), |
1159 action_id((GB(parent_button, 8, 8) != 0) ? GB(parent_button, 8, 8) : parent_button), |
1159 action_id((GB(parent_button, 8, 8) != 0) ? GB(parent_button, 8, 8) : parent_button), |
1160 checked_items(checked_items), disabled_items(disabled_items), base_string(base_string) |
1160 checked_items(checked_items), disabled_items(disabled_items), base_string(base_string) |
1161 { |
1161 { |