forked from Kolyah35/minecraft-pe-0.6.1
FIX: Rewrite options
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
|
||||
#include "../../Screen.h"
|
||||
#include "../../components/Button.h"
|
||||
#include "../../components/SmallButton.h"
|
||||
#include "../../components/RolledSelectionListV.h"
|
||||
#include "../../../Minecraft.h"
|
||||
#include "../../../../platform/input/Multitouch.h"
|
||||
|
||||
@@ -552,9 +552,9 @@ bool SelectWorldScreen::isInGameScreen() { return true; }
|
||||
void SelectWorldScreen::keyPressed( int eventKey )
|
||||
{
|
||||
if (bWorldView.selected) {
|
||||
if (eventKey == minecraft->options.keyLeft.key)
|
||||
if (eventKey == minecraft->options.getIntValue(OPTIONS_KEY_LEFT))
|
||||
worldsList->stepLeft();
|
||||
if (eventKey == minecraft->options.keyRight.key)
|
||||
if (eventKey == minecraft->options.getIntValue(OPTIONS_KEY_RIGHT))
|
||||
worldsList->stepRight();
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#include "../PauseScreen.h"
|
||||
|
||||
#include "../../Font.h"
|
||||
#include "../../components/SmallButton.h"
|
||||
#include "../../components/ScrolledSelectionList.h"
|
||||
#include "../../components/GuiElement.h"
|
||||
|
||||
@@ -58,7 +57,6 @@ void StartMenuScreen::init()
|
||||
buttons.push_back(&bHost);
|
||||
buttons.push_back(&bJoin);
|
||||
buttons.push_back(&bOptions);
|
||||
|
||||
|
||||
|
||||
tabButtons.push_back(&bHost);
|
||||
|
||||
Reference in New Issue
Block a user