2023-12-16 17:36:57 +01:00
|
|
|
#pragma once
|
|
|
|
#include "ConfigRendererItemGeneric.h"
|
|
|
|
#include "config/WUPSConfigCategory.h"
|
2024-11-27 20:44:36 +01:00
|
|
|
#include <cassert>
|
2023-12-16 17:36:57 +01:00
|
|
|
|
2024-11-27 20:44:36 +01:00
|
|
|
class ConfigRendererItemCategory final : public ConfigRendererItemGeneric {
|
2023-12-16 17:36:57 +01:00
|
|
|
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;
|
|
|
|
};
|