Commit b017f25c authored by fallenstardust's avatar fallenstardust

调整宣言数字对话框布局

parent ae493b4a
......@@ -3645,20 +3645,12 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
mainGame->cbANNumber->setSelected(0);
if(quickmode) {
mainGame->cbANNumber->setVisible(false);
mainGame->btnANNumberOK->setRelativePosition(rect<s32>(70 * mainGame->xScale, 205 * mainGame->yScale, 160 * mainGame->xScale, 245 * mainGame->yScale));
mainGame->btnANNumberOK->setEnabled(false);
recti pos = mainGame->wANNumber->getRelativePosition();
pos.LowerRightCorner.Y = pos.UpperLeftCorner.Y + 250 * mainGame->yScale;
mainGame->wANNumber->setRelativePosition(pos);
} else {
for(int i = 0; i < 12; ++i) {
mainGame->btnANNumber[i]->setVisible(false);
}
mainGame->cbANNumber->setVisible(true);
mainGame->btnANNumberOK->setRelativePosition(rect<s32>(70 * mainGame->xScale, 105 * mainGame->yScale, 160 * mainGame->xScale, 145 * mainGame->yScale));
recti pos = mainGame->wANNumber->getRelativePosition();
pos.LowerRightCorner.Y = pos.UpperLeftCorner.Y + 150 * mainGame->yScale;
mainGame->wANNumber->setRelativePosition(pos);
}
if(select_hint)
myswprintf(textBuffer, L"%ls", dataManager.GetDesc(select_hint));
......
......@@ -642,14 +642,14 @@ bool Game::Initialize(ANDROID_APP app) {
wANNumber->getCloseButton()->setVisible(false);
wANNumber->setVisible(false);
ChangeToIGUIImageWindow(wANNumber, bgANNumber, imageManager.tDialog_S);
cbANNumber = CAndroidGUIComboBox::addAndroidComboBox(env, rect<s32>(20 * xScale, 30 * yScale, 370 * xScale, 65 * yScale), wANNumber, -1);
cbANNumber = CAndroidGUIComboBox::addAndroidComboBox(env, rect<s32>(30 * xScale, 180 * yScale, 270 * xScale, 240 * yScale), wANNumber, -1);
cbANNumber->setTextAlignment(irr::gui::EGUIA_CENTER, irr::gui::EGUIA_CENTER);
for(int i = 0; i < 12; ++i) {
myswprintf(strbuf, L"%d", i + 1);
btnANNumber[i] = env->addButton(rect<s32>((30 + 50 * (i % 4)) * xScale, (40 + 50 * (i / 4)) * yScale, (70 + 50 * (i % 4)) * xScale, (80 + 50 * (i / 4)) * yScale), wANNumber, BUTTON_ANNUMBER_1 + i, strbuf);
btnANNumber[i] = env->addButton(rect<s32>((50 + 70 * (i % 3)) * xScale, (50 + 70 * (i / 3)) * yScale, (110 + 70 * (i % 3)) * xScale, (110 + 70 * (i / 3)) * yScale), wANNumber, BUTTON_ANNUMBER_1 + i, strbuf);
btnANNumber[i]->setIsPushButton(true);
}
btnANNumberOK = env->addButton(rect<s32>(20 * xScale, 400 * yScale, 130 * xScale, 440 * yScale), wANNumber, BUTTON_ANNUMBER_OK, dataManager.GetSysString(1211));
btnANNumberOK = env->addButton(rect<s32>(95 * xScale, 430 * yScale, 205 * xScale, 480 * yScale), wANNumber, BUTTON_ANNUMBER_OK, dataManager.GetSysString(1211));
//announce card
wANCard = env->addWindow(rect<s32>(500 * xScale, 50 * yScale, 800 * xScale, 550 * yScale), false, L"");
wANCard->getCloseButton()->setVisible(false);
......
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