Add basic tooltip

This commit is contained in:
2024-02-13 11:58:56 +01:00
parent fc219b6a33
commit 4c8c59fd10
4 changed files with 81 additions and 9 deletions

View File

@@ -34,6 +34,11 @@ typedef struct InputMapping {
MouseButton moveDown;
} InputMapping;
typedef struct ToolTipCost {
bool active;
i32 costs[RES_COUNT];
} ToolTipCost;
typedef struct InputState {
InputType state;
InputMapping mapping;
@@ -66,6 +71,7 @@ typedef struct InputState {
// SELECTED_BUILDING
// Other
ToolTipCost toolTipCost;
struct {
/* Selected units
* 1: Position