Change: Add optional text labels to slider widget.
This commit is contained in:
@@ -13,8 +13,9 @@
|
||||
#include "../window_type.h"
|
||||
#include "../gfx_func.h"
|
||||
|
||||
#include <map>
|
||||
|
||||
void DrawSliderWidget(Rect r, int min_value, int max_value, int value);
|
||||
void DrawSliderWidget(Rect r, int min_value, int max_value, int value, const std::map<int, StringID> &labels);
|
||||
bool ClickSliderWidget(Rect r, Point pt, int min_value, int max_value, int &value);
|
||||
|
||||
inline bool ClickSliderWidget(Rect r, Point pt, int min_value, int max_value, byte &value)
|
||||
|
Reference in New Issue
Block a user