mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 01:35:46 +00:00
Replace text with vectors
This commit is contained in:
parent
93ac87f29e
commit
ace7b59863
2 changed files with 312 additions and 83 deletions
|
@ -43,6 +43,16 @@ private:
|
|||
Left,
|
||||
};
|
||||
|
||||
enum class Symbol {
|
||||
House,
|
||||
A,
|
||||
B,
|
||||
X,
|
||||
Y,
|
||||
ZL,
|
||||
ZR,
|
||||
};
|
||||
|
||||
struct AxisValue {
|
||||
QPointF value{};
|
||||
QPointF raw_value{};
|
||||
|
@ -120,10 +130,12 @@ private:
|
|||
Direction direction = Direction::None, float radius = 2);
|
||||
void DrawMinusButton(QPainter& p, QPointF center, bool pressed, int button_size);
|
||||
void DrawPlusButton(QPainter& p, QPointF center, bool pressed, int button_size);
|
||||
void DrawArrowButtonOutline(QPainter& p, const QPointF center);
|
||||
void DrawArrowButton(QPainter& p, QPointF center, Direction direction, bool pressed);
|
||||
void DrawTriggerButton(QPainter& p, QPointF center, Direction direction, bool pressed);
|
||||
|
||||
// Draw icon functions
|
||||
void DrawHouseIcon(QPainter& p, QPointF center, float icon_size);
|
||||
void DrawSymbol(QPainter& p, QPointF center, Symbol symbol, float icon_size);
|
||||
void DrawArrow(QPainter& p, QPointF center, Direction direction, float size);
|
||||
|
||||
// Draw primitive types
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue