This commit is contained in:
GabsPuNs
2026-05-16 16:09:05 -04:00
parent 341d4c8d6a
commit 29893d490a
2 changed files with 17 additions and 24 deletions

View File

@@ -470,13 +470,6 @@ void UIScene_InGamePlayerOptionsMenu::resetCheatCheckboxes()
void UIScene_InGamePlayerOptionsMenu::handleCheckboxToggled(F64 controlId, bool selected)
{
switch(static_cast<int>(controlId))
{
case eControl_Op:
// flag that the moderator state has changed
//resetCheatCheckboxes();
break;
}
}
void UIScene_InGamePlayerOptionsMenu::handleTimerComplete(int id)

View File

@@ -211,18 +211,20 @@ void UIScene_SettingsGraphicsMenu::handleInput(int iPad, int key, bool repeat, b
{
if (isDirectEditBlocking()) return;
// UIControl_MultiList* test;
ui.AnimateKeyPress(iPad, key, repeat, pressed, released);
switch(key)
{
case ACTION_MENU_CANCEL:
if(pressed)
{
/*
/*
// check the checkboxes
app.SetGameSettings(m_iPad,eGameSetting_Clouds,m_checkboxClouds.IsChecked()?1:0);
app.SetGameSettings(m_iPad,eGameSetting_BedrockFog,m_checkboxBedrockFog.IsChecked()?1:0);
app.SetGameSettings(m_iPad,eGameSetting_CustomSkinAnim,m_checkboxCustomSkinAnim.IsChecked()?1:0);
*/
app.SetGameSettings(m_iPad,eGameSetting_Clouds,test->GetCheckboxValue(5));
app.SetGameSettings(m_iPad,eGameSetting_BedrockFog,test->GetCheckboxValue(6));
app.SetGameSettings(m_iPad,eGameSetting_CustomSkinAnim,test->GetCheckboxValue(0));
*/
navigateBack();
handled = true;
}
@@ -262,44 +264,43 @@ UIControl* UIScene_SettingsGraphicsMenu::GetMainPanel()
void UIScene_SettingsGraphicsMenu::handleSliderMove(F64 sliderId, F64 currentValue)
{
/*
WCHAR TempString[256];
const int value = static_cast<int>(currentValue);
switch(static_cast<int>(sliderId))
{
case eControl_Gamma:
m_sliderGamma.handleSliderMove(value);
//m_sliderGamma.handleSliderMove(value);
app.SetGameSettings(m_iPad,eGameSetting_Gamma,value);
swprintf( TempString, 256, L"%ls: %d%%", app.GetString( IDS_SLIDER_GAMMA ),value);
m_sliderGamma.setLabel(TempString);
//m_sliderGamma.setLabel(TempString);
break;
case eControl_FOV:
{
m_sliderFOV.handleSliderMove(value);
//m_sliderFOV.handleSliderMove(value);
const Minecraft* pMinecraft = Minecraft::GetInstance();
const int fovValue = sliderValueToFov(value);
pMinecraft->gameRenderer->SetFovVal(static_cast<float>(fovValue));
app.SetGameSettings(m_iPad, eGameSetting_FOV, value);
swprintf(TempString, 256, L"%ls: %d", app.GetString( IDS_SLIDER_FOV ),fovValue);
m_sliderFOV.setLabel(TempString);
//m_sliderFOV.setLabel(TempString);
}
break;
case eControl_InterfaceOpacity:
m_sliderInterfaceOpacity.handleSliderMove(value);
//m_sliderInterfaceOpacity.handleSliderMove(value);
app.SetGameSettings(m_iPad,eGameSetting_InterfaceOpacity,value);
swprintf( TempString, 256, L"%ls: %d%%", app.GetString( IDS_SLIDER_INTERFACEOPACITY ),value);
m_sliderInterfaceOpacity.setLabel(TempString);
//m_sliderInterfaceOpacity.setLabel(TempString);
break;
case eControl_RenderDistance:
{
m_sliderRenderDistance.handleSliderMove(value);
//m_sliderRenderDistance.handleSliderMove(value);
const int dist = LevelToDistance(value);
@@ -308,21 +309,20 @@ void UIScene_SettingsGraphicsMenu::handleSliderMove(F64 sliderId, F64 currentVal
const Minecraft* mc = Minecraft::GetInstance();
mc->options->viewDistance = 3 - value;
swprintf(TempString,256,L"%ls: %d", app.GetString( IDS_SLIDER_RENDERDISTANCE ),dist);
m_sliderRenderDistance.setLabel(TempString);
//m_sliderRenderDistance.setLabel(TempString);
}
break;
case eControl_GraphicsMode:
{
m_sliderGraphicsMode.handleSliderMove(value);
//m_sliderGraphicsMode.handleSliderMove(value);
app.SetGameSettings(m_iPad, eGameSetting_GraphicsMode, value);
swprintf(TempString, 256, L"%ls: %ls", app.GetString( IDS_GRAPHICS ),app.GetString(m_iGraphicsModeTitleSettingA[value]));
m_sliderGraphicsMode.setLabel(TempString);
//m_sliderGraphicsMode.setLabel(TempString);
}
break;
}
*/
}