mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-12-27 05:11:51 +01:00
34 lines
1.0 KiB
C++
34 lines
1.0 KiB
C++
#include "ConfigRendererItemGeneric.h"
|
|
|
|
#include "ConfigDefines.h"
|
|
#include "utils/DrawUtils.h"
|
|
|
|
ConfigRendererItemGeneric::~ConfigRendererItemGeneric() = default;
|
|
|
|
void ConfigRendererItemGeneric::drawGenericBoxAndText(const uint32_t yOffset, const std::string &displayName, const bool isHighlighted) const {
|
|
if (isHighlighted) {
|
|
DrawUtils::drawRect(16, yOffset, SCREEN_WIDTH - 16 * 2, 44, 4, COLOR_BORDER_HIGHLIGHTED);
|
|
} else {
|
|
DrawUtils::drawRect(16, yOffset, SCREEN_WIDTH - 16 * 2, 44, 2, COLOR_BORDER);
|
|
}
|
|
|
|
DrawUtils::setFontSize(24);
|
|
DrawUtils::setFontColor(COLOR_TEXT);
|
|
DrawUtils::print(16 * 2, yOffset + 8 + 24, displayName.c_str());
|
|
}
|
|
|
|
void ConfigRendererItemGeneric::SetIsSelected(bool) {
|
|
}
|
|
|
|
void ConfigRendererItemGeneric::OnButtonPressed(WUPSConfigButtons) {
|
|
}
|
|
|
|
void ConfigRendererItemGeneric::OnInput(WUPSConfigSimplePadData) {
|
|
}
|
|
|
|
void ConfigRendererItemGeneric::OnInputEx(WUPSConfigComplexPadData) {
|
|
}
|
|
|
|
bool ConfigRendererItemGeneric::IsMovementAllowed() const {
|
|
return true;
|
|
} |