ControllerInterface: Add IsHidden function to Control interface.

This commit is contained in:
Jordan Woyak
2024-03-14 22:09:41 -05:00
parent 0538366326
commit ee43c9508c
3 changed files with 32 additions and 20 deletions

View File

@ -64,6 +64,10 @@ public:
// May be overridden to allow multiple valid names.
// Useful for backwards-compatible configurations when names change.
virtual bool IsMatchingName(std::string_view name) const;
// May be overridden to hide in UI.
// Useful for backwards-compatible configurations when names change.
virtual bool IsHidden() const;
};
//
@ -164,6 +168,7 @@ protected:
ControlState GetState() const override;
std::string GetName() const override;
bool IsDetectable() const override;
bool IsHidden() const override;
bool IsMatchingName(std::string_view name) const override;
private: