2017-06-22 20:49:13 +02:00
|
|
|
/*****************************************************************************
|
2024-01-01 12:52:28 +01:00
|
|
|
* Copyright (c) 2014-2024 OpenRCT2 developers
|
2017-06-22 20:49:13 +02:00
|
|
|
*
|
2018-06-15 14:07:34 +02:00
|
|
|
* For a complete list of all authors, please refer to contributors.md
|
|
|
|
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
|
2017-06-22 20:49:13 +02:00
|
|
|
*
|
2018-06-15 14:07:34 +02:00
|
|
|
* OpenRCT2 is licensed under the GNU General Public License version 3.
|
2017-06-22 20:49:13 +02:00
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-06-22 23:20:47 +02:00
|
|
|
#include <openrct2-ui/interface/Window.h>
|
2017-12-07 02:47:26 +01:00
|
|
|
#include <openrct2/common.h>
|
|
|
|
#include <openrct2/sprites.h>
|
2017-06-22 20:49:13 +02:00
|
|
|
|
2018-06-22 23:20:47 +02:00
|
|
|
#define MINIMUM_TOOL_SIZE 1
|
|
|
|
#define MAXIMUM_TOOL_SIZE 64
|
2017-06-22 20:49:13 +02:00
|
|
|
// The highest tool size to have a sprite. Bigger tool sizes simply display a number.
|
|
|
|
#define MAX_TOOL_SIZE_WITH_SPRITE 7
|
|
|
|
|
2018-06-20 17:28:51 +02:00
|
|
|
extern uint16_t gLandToolSize;
|
2021-07-28 10:25:36 +02:00
|
|
|
extern money64 gLandToolRaiseCost;
|
|
|
|
extern money64 gLandToolLowerCost;
|
2020-07-23 12:17:33 +02:00
|
|
|
extern ObjectEntryIndex gLandToolTerrainSurface;
|
|
|
|
extern ObjectEntryIndex gLandToolTerrainEdge;
|
2021-07-28 10:25:36 +02:00
|
|
|
extern money64 gWaterToolRaiseCost;
|
|
|
|
extern money64 gWaterToolLowerCost;
|
2017-06-22 20:49:13 +02:00
|
|
|
|
2020-11-03 11:59:00 +01:00
|
|
|
namespace LandTool
|
|
|
|
{
|
|
|
|
uint32_t SizeToSpriteIndex(uint16_t size);
|
2023-01-21 20:57:17 +01:00
|
|
|
void ShowSurfaceStyleDropdown(WindowBase* w, Widget* widget, ObjectEntryIndex currentSurfaceType);
|
2023-04-24 23:00:12 +02:00
|
|
|
ObjectEntryIndex GetSurfaceStyleFromDropdownIndex(size_t index);
|
2023-01-21 20:57:17 +01:00
|
|
|
void ShowEdgeStyleDropdown(WindowBase* w, Widget* widget, ObjectEntryIndex currentEdgeType);
|
2023-04-24 23:00:12 +02:00
|
|
|
ObjectEntryIndex GetEdgeStyleFromDropdownIndex(size_t index);
|
2020-11-03 11:59:00 +01:00
|
|
|
} // namespace LandTool
|