diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-17 08:33:32 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-17 08:33:32 +0100 |
| commit | 3e818c0f0ca741fe8404e841a93b1401aacc4301 (patch) | |
| tree | b607ac09a553f909e0eb5fc56582351bcd1d99d6 /src/Types.hpp | |
| parent | fbb36fc82e7d069cdc91831aba8ccbdf063d5187 (diff) | |
Improve editor move icons management
Diffstat (limited to 'src/Types.hpp')
| -rw-r--r-- | src/Types.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Types.hpp b/src/Types.hpp index db8b6f3..68aa3fe 100644 --- a/src/Types.hpp +++ b/src/Types.hpp @@ -23,7 +23,13 @@ enum class Property : std::uint32_t { Dots = 1 << 13, // Move dots Movenumber = 1 << 14, Current = 1 << 15, - Mouseover = 1 << 16 // Set on every element where mouse is over + Mouseover = 1 << 16, // Set on every element where mouse is over + Pawn = 1 << 17, + Knight = 1 << 18, + Bishop = 1 << 19, + Rook = 1 << 20, + Queen = 1 << 21, + King = 1 << 22 }; Property operator|(Property lhs, Property rhs); Property &operator|=(Property &lhs, Property rhs); @@ -64,6 +70,7 @@ typedef struct Status { double MoveWidth = 100, MoveHeight = 50; double MarginBarWidth = 50; double ScrollbarWidth = 30; + double MoveIconWidth = 25; double MenuX, MenuY; double MoveX, MoveY; std::uint16_t CommentLinePerRow = 2; @@ -75,7 +82,7 @@ typedef struct Status { bool LeftClick, RightClick; /// @brief Can be use to close the menu bool IsMenuOpen = false; - bool UseMoveImages = false; + bool UseMoveIcons = false; double MoveTableMaxX = 0, MoveTableMaxY = 0; /// @brief User should set it to true when mouse is dragging bool IsDrag = false; |
