add more docs and warnings
This commit is contained in:
@@ -35,6 +35,7 @@ std::vector<std::string> ConfigInfoStrings(HocClkConfigValue val, bool isMariko,
|
|||||||
"Options:",
|
"Options:",
|
||||||
"- MHz: Megahertz (e.g. 1600 MHz)",
|
"- MHz: Megahertz (e.g. 1600 MHz)",
|
||||||
"- MT/s: MegaTransfers per second (e.g. 3200 MT/s)",
|
"- MT/s: MegaTransfers per second (e.g. 3200 MT/s)",
|
||||||
|
"- MHz and MT/s: Display in both MHz and MT/s",
|
||||||
"Default: MHz"
|
"Default: MHz"
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -110,7 +111,9 @@ std::vector<std::string> ConfigInfoStrings(HocClkConfigValue val, bool isMariko,
|
|||||||
case HocClkConfigValue_OverwriteRefreshRate:
|
case HocClkConfigValue_OverwriteRefreshRate:
|
||||||
return {
|
return {
|
||||||
"Controls the availability of display refresh rate features.",
|
"Controls the availability of display refresh rate features.",
|
||||||
"When enabled, allows changing the display refresh rate and using display refresh rate related features."
|
"When enabled, allows changing the display refresh rate and using display refresh rate related features.",
|
||||||
|
"This feature conflicts with FPSLocker's feature that does the same thing.",
|
||||||
|
"Default: OFF"
|
||||||
};
|
};
|
||||||
|
|
||||||
case HocClkConfigValue_MaxDisplayClockH:
|
case HocClkConfigValue_MaxDisplayClockH:
|
||||||
|
|||||||
@@ -921,6 +921,13 @@ protected:
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
if(!IsAula()) {
|
if(!IsAula()) {
|
||||||
|
tsl::elm::CustomDrawer* warningTextDV = new tsl::elm::CustomDrawer([](tsl::gfx::Renderer *renderer, s32 x, s32 y, s32 w, s32 h) {
|
||||||
|
renderer->drawString("\uE150 Adjust the display voltage", false, x + 20, y + 30, 18, tsl::style::color::ColorText);
|
||||||
|
renderer->drawString("with caution to avoid damage", false, x + 20, y + 50, 18, tsl::style::color::ColorText);
|
||||||
|
renderer->drawString("to your display panel! ", false, x + 20, y + 70, 18, tsl::style::color::ColorText);
|
||||||
|
renderer->drawString("Proceed at your own risk!", false, x + 20, y + 90, 18, tsl::style::color::ColorText);
|
||||||
|
});
|
||||||
|
this->listElement->addItem(warningTextDV);
|
||||||
addConfigButton(
|
addConfigButton(
|
||||||
HocClkConfigValue_DisplayVoltage,
|
HocClkConfigValue_DisplayVoltage,
|
||||||
"Display Voltage",
|
"Display Voltage",
|
||||||
|
|||||||
Reference in New Issue
Block a user