forked from mirrors/kolyah35-minecraft-pe-0.6.1
FIX: Rewrite options
This commit is contained in:
parent
09d28be195
commit
badd59b644
67 changed files with 1093 additions and 1377 deletions
|
|
@ -10,7 +10,6 @@
|
|||
#include "../../../util/Mth.h"
|
||||
|
||||
#include "../Font.h"
|
||||
#include "../components/SmallButton.h"
|
||||
#include "../components/ScrolledSelectionList.h"
|
||||
|
||||
#include "../../Minecraft.h"
|
||||
|
|
@ -38,7 +37,7 @@ void StartMenuScreen::init()
|
|||
|
||||
bJoin.active = bHost.active = bOptions.active = true;
|
||||
|
||||
if (minecraft->options.username.empty()) {
|
||||
if (minecraft->options.getStringValue(OPTIONS_USERNAME).empty()) {
|
||||
return; // tick() will redirect to UsernameScreen
|
||||
}
|
||||
|
||||
|
|
@ -105,7 +104,7 @@ void StartMenuScreen::setupPositions() {
|
|||
}
|
||||
|
||||
void StartMenuScreen::tick() {
|
||||
if (minecraft->options.username.empty()) {
|
||||
if (minecraft->options.getStringValue(OPTIONS_USERNAME).empty()) {
|
||||
minecraft->setScreen(new UsernameScreen());
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue