OpenRCT2/src/openrct2-ui/interface/LandTool.h

37 lines
1.4 KiB
C
Raw Normal View History

2017-06-22 20:49:13 +02:00
/*****************************************************************************
* Copyright (c) 2014-2024 OpenRCT2 developers
2017-06-22 20:49:13 +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
*
* 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
extern uint16_t gLandToolSize;
extern money64 gLandToolRaiseCost;
extern money64 gLandToolLowerCost;
extern ObjectEntryIndex gLandToolTerrainSurface;
extern ObjectEntryIndex gLandToolTerrainEdge;
extern money64 gWaterToolRaiseCost;
extern money64 gWaterToolLowerCost;
2017-06-22 20:49:13 +02:00
namespace LandTool
{
uint32_t SizeToSpriteIndex(uint16_t size);
void ShowSurfaceStyleDropdown(WindowBase* w, Widget* widget, ObjectEntryIndex currentSurfaceType);
ObjectEntryIndex GetSurfaceStyleFromDropdownIndex(size_t index);
void ShowEdgeStyleDropdown(WindowBase* w, Widget* widget, ObjectEntryIndex currentEdgeType);
ObjectEntryIndex GetEdgeStyleFromDropdownIndex(size_t index);
} // namespace LandTool