mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-20 11:03:50 +00:00
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.
This commit is contained in:
parent
216943716b
commit
16446265d5
13 changed files with 97 additions and 5 deletions
|
|
@ -238,6 +238,10 @@ void Options::set(const Options::Option *item, float fVal)
|
|||
{
|
||||
gamma = fVal;
|
||||
}
|
||||
if (item == Option::RENDER_DISTANCE)
|
||||
{
|
||||
viewDistance = fVal;
|
||||
}
|
||||
}
|
||||
|
||||
void Options::toggle(const Options::Option *option, int dir)
|
||||
|
|
@ -292,6 +296,7 @@ float Options::getProgressValue(const Options::Option *item)
|
|||
if (item == Option::MUSIC) return music;
|
||||
if (item == Option::SOUND) return sound;
|
||||
if (item == Option::SENSITIVITY) return sensitivity;
|
||||
if (item == Option::RENDER_DISTANCE) return viewDistance;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue