2023-12-16 17:36:57 +01:00
|
|
|
#pragma once
|
|
|
|
#include "ConfigRendererItemGeneric.h"
|
|
|
|
#include "config/WUPSConfigCategory.h"
|
|
|
|
|
|
|
|
class ConfigRendererItemCategory : public ConfigRendererItemGeneric {
|
|
|
|
public:
|
|
|
|
explicit ConfigRendererItemCategory(const WUPSConfigAPIBackend::WUPSConfigCategory *category) : mCategory(category) {
|
|
|
|
assert(category);
|
|
|
|
}
|
|
|
|
|
|
|
|
void Draw(uint32_t yOffset, bool isHighlighted) const override {
|
|
|
|
drawGenericBoxAndText(yOffset, mCategory->getName(), isHighlighted);
|
|
|
|
}
|
|
|
|
|
2024-05-03 11:55:27 +02:00
|
|
|
void Update(bool) override {
|
|
|
|
}
|
|
|
|
|
|
|
|
[[nodiscard]] bool NeedsRedraw() const override {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ResetNeedsRedraw() override {
|
|
|
|
}
|
|
|
|
|
2023-12-16 17:36:57 +01:00
|
|
|
private:
|
|
|
|
const WUPSConfigAPIBackend::WUPSConfigCategory *mCategory;
|
|
|
|
};
|