aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/UIScene_SettingsGraphicsMenu.h
diff options
context:
space:
mode:
authorMijaeLio <87155057+MijaeLio@users.noreply.github.com>2026-03-06 20:14:06 -0500
committerGitHub <noreply@github.com>2026-03-06 19:14:06 -0600
commit16446265d555d21f564b5989611a05918728d643 (patch)
treead4ed8918f0090cf64bda4ac604d883a23ab1b48 /Minecraft.Client/Common/UI/UIScene_SettingsGraphicsMenu.h
parent216943716b8797fa1b9014f337b8ce7bbe50af4d (diff)
Add Render Distance option. (#675)
* FOV option without debug menu Now located in Graphics section. Based on the FOV thing from discord idk * language * render distance option for graphics menu * oop * swf files on media * revert changes on language selector * nvm it was actually easy to fix * forgot this * Final probably Fixed visual bug and made the chunk updates depend to your view distance.
Diffstat (limited to 'Minecraft.Client/Common/UI/UIScene_SettingsGraphicsMenu.h')
-rw-r--r--Minecraft.Client/Common/UI/UIScene_SettingsGraphicsMenu.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Minecraft.Client/Common/UI/UIScene_SettingsGraphicsMenu.h b/Minecraft.Client/Common/UI/UIScene_SettingsGraphicsMenu.h
index c6e1e394..99022c83 100644
--- a/Minecraft.Client/Common/UI/UIScene_SettingsGraphicsMenu.h
+++ b/Minecraft.Client/Common/UI/UIScene_SettingsGraphicsMenu.h
@@ -1,6 +1,8 @@
#pragma once
#include "UIScene.h"
+#include "Common/UI/UIControl_CheckBox.h"
+#include "Common/UI/UIControl_Slider.h"
class UIScene_SettingsGraphicsMenu : public UIScene
{
@@ -10,17 +12,19 @@ private:
eControl_Clouds,
eControl_BedrockFog,
eControl_CustomSkinAnim,
+ eControl_RenderDistance,
eControl_Gamma,
eControl_FOV,
eControl_InterfaceOpacity
};
UIControl_CheckBox m_checkboxClouds, m_checkboxBedrockFog, m_checkboxCustomSkinAnim; // Checkboxes
- UIControl_Slider m_sliderGamma, m_sliderFOV, m_sliderInterfaceOpacity; // Sliders
+ UIControl_Slider m_sliderRenderDistance, m_sliderGamma, m_sliderFOV, m_sliderInterfaceOpacity; // Sliders
UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
UI_MAP_ELEMENT( m_checkboxClouds, "Clouds")
UI_MAP_ELEMENT( m_checkboxBedrockFog, "BedrockFog")
UI_MAP_ELEMENT( m_checkboxCustomSkinAnim, "CustomSkinAnim")
+ UI_MAP_ELEMENT( m_sliderRenderDistance, "RenderDistance")
UI_MAP_ELEMENT( m_sliderGamma, "Gamma")
UI_MAP_ELEMENT(m_sliderFOV, "FOV")
UI_MAP_ELEMENT( m_sliderInterfaceOpacity, "InterfaceOpacity")
@@ -45,4 +49,8 @@ public:
virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled);
virtual void handleSliderMove(F64 sliderId, F64 currentValue);
+
+ static int LevelToDistance(int dist);
+
+ static int DistanceToLevel(int dist);
}; \ No newline at end of file