diff --git a/Minecraft.Client/Common/UI/UIScene_InGamePlayerOptionsMenu.cpp b/Minecraft.Client/Common/UI/UIScene_InGamePlayerOptionsMenu.cpp index 3f9e9489..4cab5796 100644 --- a/Minecraft.Client/Common/UI/UIScene_InGamePlayerOptionsMenu.cpp +++ b/Minecraft.Client/Common/UI/UIScene_InGamePlayerOptionsMenu.cpp @@ -470,13 +470,6 @@ void UIScene_InGamePlayerOptionsMenu::resetCheatCheckboxes() void UIScene_InGamePlayerOptionsMenu::handleCheckboxToggled(F64 controlId, bool selected) { - switch(static_cast(controlId)) - { - case eControl_Op: - // flag that the moderator state has changed - //resetCheatCheckboxes(); - break; - } } void UIScene_InGamePlayerOptionsMenu::handleTimerComplete(int id) diff --git a/Minecraft.Client/Common/UI/UIScene_SettingsGraphicsMenu.cpp b/Minecraft.Client/Common/UI/UIScene_SettingsGraphicsMenu.cpp index 565d7eed..df9ea6f0 100644 --- a/Minecraft.Client/Common/UI/UIScene_SettingsGraphicsMenu.cpp +++ b/Minecraft.Client/Common/UI/UIScene_SettingsGraphicsMenu.cpp @@ -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(currentValue); switch(static_cast(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(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; } -*/ } \ No newline at end of file