diff options
| author | robojumper <robojumper@gmail.com> | 2026-01-24 11:10:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-24 11:10:18 +0100 |
| commit | cffba79e3f0600d54dea3bdbb0506e2fc1c54199 (patch) | |
| tree | ea7b04324a88e16afdec64354ea790cfb4c85cc3 /include/d/d_cs_base.h | |
| parent | ddc2c9359124773594b93b3a35ad5f548c9fc89a (diff) | |
| parent | 2952e7568f6d0c2ab7c12bbdaa8d274fee619adc (diff) | |
Merge pull request #290 from robojumper/d_lyt_deposit
d_lyt_deposit OK
Diffstat (limited to 'include/d/d_cs_base.h')
| -rw-r--r-- | include/d/d_cs_base.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/include/d/d_cs_base.h b/include/d/d_cs_base.h index 8c7972c8..0ac075b9 100644 --- a/include/d/d_cs_base.h +++ b/include/d/d_cs_base.h @@ -26,6 +26,9 @@ public: void setVisible(bool val) { mVisible = val; } + bool isVisible() const { + return mVisible; + } void setDrawDirectly(bool val) { mDrawDirectly = val; } @@ -36,7 +39,7 @@ public: mCalibrationPointCenterEnabled = val; } - dCursorHitCheck_c *getHitCheck() { + dCursorHitCheck_c *getHitCheck() const { return mCursorIf.getHit(); } @@ -52,10 +55,26 @@ public: mCursorStick.setShouldBeOn(visible); } + void setCursorStickPriority(u8 priority) { + mCursorStick.setPriority(priority); + } + + void setCursorStickPriority2(u8 priority) { + mCursorStick.setPriority2(priority); + } + + bool isCursorStickVisible() const { + return mCursorStick.getShouldBeOn(); + } + void setCursorStickTargetPane(const nw4r::lyt::Pane *target) { mCursorStick.setTargetPane(target); } + const nw4r::lyt::Pane *getCursorStickAllPane() const { + return mCursorStick.getAllPane(); + } + private: static dCsBase_c *sInstance; void setCurrentLyt(int lyt); |
