Commit d525e266 authored by fallenstardust's avatar fallenstardust

revert

parent d9ad4ad3
...@@ -211,8 +211,13 @@ bool Game::Initialize(ANDROID_APP app) { ...@@ -211,8 +211,13 @@ bool Game::Initialize(ANDROID_APP app) {
wMainMenu = env->addWindow(rect<s32>(450 * xScale, 40 * yScale, 900 * xScale, 600 * yScale), false, strbuf); wMainMenu = env->addWindow(rect<s32>(450 * xScale, 40 * yScale, 900 * xScale, 600 * yScale), false, strbuf);
wMainMenu->getCloseButton()->setVisible(false); wMainMenu->getCloseButton()->setVisible(false);
wMainMenu->setDrawBackground(false); wMainMenu->setDrawBackground(false);
btnLanMode = env->addButton(rect<s32>(15 * xScale, 30 * yScale, 350 * xScale, 106 * yScale), wMainMenu, BUTTON_LAN_MODE, dataManager.GetSysString(1200)); btnLanMode = irr::gui::CGUIImageButton::addImageButton(env, rect<s32>(15 * xScale, 30 * yScale, 350 * xScale, 106 * yScale), wMainMenu, BUTTON_LAN_MODE);
ChangeToIGUIImageButton(btnLanMode, imageManager.tTitleBar, imageManager.tTitleBar, titleFont); btnLanMode->setImageSize(core::dimension2di(400 * yScale, 76 * yScale));
btnLanMode->setDrawBorder(false);
btnLanMode->setImage(imageManager.tTitleBar);
env->addStaticText(strbuf, rect<s32>(55 * xScale, 2 * yScale, 280 * xScale, 35 * yScale), false, false, btnLanMode);
textLanMode = env->addStaticText(dataManager.GetSysString(1200), rect<s32>(115 * xScale, 25 * yScale, 300 * xScale, 65 * yScale), false, false, btnLanMode);
textLanMode->setOverrideFont(titleFont);
btnSingleMode = irr::gui::CGUIImageButton::addImageButton(env, rect<s32>(15 * xScale, 110 * yScale, 350 * xScale, 186 * yScale), wMainMenu, BUTTON_SINGLE_MODE); btnSingleMode = irr::gui::CGUIImageButton::addImageButton(env, rect<s32>(15 * xScale, 110 * yScale, 350 * xScale, 186 * yScale), wMainMenu, BUTTON_SINGLE_MODE);
btnSingleMode->setImageSize(core::dimension2di(400 * yScale, 76 * yScale)); btnSingleMode->setImageSize(core::dimension2di(400 * yScale, 76 * yScale));
btnSingleMode->setDrawBorder(false); btnSingleMode->setDrawBorder(false);
......
...@@ -311,7 +311,7 @@ public: ...@@ -311,7 +311,7 @@ public:
irr::gui::IGUICheckBox* chkMusicMode; irr::gui::IGUICheckBox* chkMusicMode;
//main menu //main menu
irr::gui::IGUIWindow* wMainMenu; irr::gui::IGUIWindow* wMainMenu;
irr::gui::IGUIButton* btnLanMode; irr::gui::CGUIImageButton* btnLanMode;
irr::gui::IGUIStaticText* textLanMode; irr::gui::IGUIStaticText* textLanMode;
irr::gui::CGUIImageButton* btnSingleMode; irr::gui::CGUIImageButton* btnSingleMode;
irr::gui::IGUIStaticText* textSingleMode; irr::gui::IGUIStaticText* textSingleMode;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment