Commit f1f672ce authored by fallenstardust's avatar fallenstardust

重校坐标

parent fa0dea24
...@@ -619,7 +619,7 @@ void ClientField::ShowSelectOption(int select_hint) { ...@@ -619,7 +619,7 @@ void ClientField::ShowSelectOption(int select_hint) {
for(int i = 0; i < 5; i++) for(int i = 0; i < 5; i++)
mainGame->btnOption[i]->setVisible(i < count); mainGame->btnOption[i]->setVisible(i < count);
recti pos = mainGame->wOptions->getRelativePosition(); recti pos = mainGame->wOptions->getRelativePosition();
int newheight = (30 + 40 * count) * mainGame->yScale; int newheight = (30 + 60 * count) * mainGame->yScale;
int oldheight = pos.LowerRightCorner.Y - pos.UpperLeftCorner.Y; int oldheight = pos.LowerRightCorner.Y - pos.UpperLeftCorner.Y;
pos.UpperLeftCorner.Y = pos.UpperLeftCorner.Y + (oldheight - newheight) / 2; pos.UpperLeftCorner.Y = pos.UpperLeftCorner.Y + (oldheight - newheight) / 2;
pos.LowerRightCorner.Y = pos.UpperLeftCorner.Y + newheight; pos.LowerRightCorner.Y = pos.UpperLeftCorner.Y + newheight;
......
...@@ -610,7 +610,7 @@ bool Game::Initialize() { ...@@ -610,7 +610,7 @@ bool Game::Initialize() {
btnOptionp = env->addButton(rect<s32>(20 * xScale, 115 * yScale, 100 * xScale, 165 * yScale), wOptions, BUTTON_OPTION_PREV, L"<<<"); btnOptionp = env->addButton(rect<s32>(20 * xScale, 115 * yScale, 100 * xScale, 165 * yScale), wOptions, BUTTON_OPTION_PREV, L"<<<");
btnOptionn = env->addButton(rect<s32>(290 * xScale, 115 * yScale, 370 * xScale, 165 * yScale), wOptions, BUTTON_OPTION_NEXT, L">>>"); btnOptionn = env->addButton(rect<s32>(290 * xScale, 115 * yScale, 370 * xScale, 165 * yScale), wOptions, BUTTON_OPTION_NEXT, L">>>");
for(int i = 0; i < 5; ++i) { for(int i = 0; i < 5; ++i) {
btnOption[i] = env->addButton(rect<s32>(10 * xScale, (30 + 40 * i) * yScale, 340 * xScale, (60 + 40 * i) * yScale), wOptions, BUTTON_OPTION_0 + i, L""); btnOption[i] = env->addButton(rect<s32>(10 * xScale, (30 + 50 * i) * yScale, 360 * xScale, (80 + 50 * i) * yScale), wOptions, BUTTON_OPTION_0 + i, L"");
} }
#endif #endif
//pos select //pos select
......
...@@ -9,13 +9,13 @@ ...@@ -9,13 +9,13 @@
<port>233</port> <port>233</port>
<keep>true</keep> <keep>true</keep>
</server> </server>
<server> <!--server>
<player-name>Knight of Hanoi</player-name> <player-name>Knight of Hanoi</player-name>
<name>233在线OT混先行卡AI练习</name> <name>233在线OT混先行卡AI练习</name>
<ip>s1.ygo233.com</ip> <ip>s1.ygo233.com</ip>
<port>9999</port> <port>9999</port>
<keep>true</keep> <keep>true</keep>
</server> </server-->
<server> <server>
<player-name>Knight of Hanoi</player-name> <player-name>Knight of Hanoi</player-name>
<name>C萌约战</name> <name>C萌约战</name>
......
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