OpenRCT2/src/window_dropdown.h

41 lines
1.7 KiB
C
Raw Normal View History

2014-04-09 15:43:27 +02:00
/*****************************************************************************
* Copyright (c) 2014 Ted John
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
*
* This file is part of OpenRCT2.
*
* OpenRCT2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#ifndef _WINDOW_DROPDOWN_H_
#define _WINDOW_DROPDOWN_H_
2014-04-09 15:43:27 +02:00
#include "rct2.h"
#define DROPDOWN_SEPARATOR 0
2014-04-18 20:00:27 +02:00
extern int gAppropriateImageDropdownItemsPerRow[];
extern int gDropdownNumItems;
2014-04-09 15:43:27 +02:00
extern uint16 gDropdownItemsFormat[64];
2014-05-11 17:50:29 +02:00
extern sint64 gDropdownItemsArgs[64];
2014-04-11 03:42:39 +02:00
extern uint32 gDropdownItemsChecked;
2014-04-09 15:43:27 +02:00
void window_dropdown_show_text(int x, int y, int extray, uint8 colour, uint8 flags, int num_items);
2014-04-20 04:31:54 +02:00
void window_dropdown_show_text_custom_width(int x, int y, int extray, uint8 colour, uint8 flags, int num_items, int width);
2014-04-18 20:00:27 +02:00
void window_dropdown_show_image(int x, int y, int extray, uint8 colour, uint8 flags, int numItems, int itemWidth, int itemHeight, int numColumns);
void window_dropdown_close();
int dropdown_index_from_point(int x, int y, rct_window* w);
#endif