summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-06 21:02:37 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-06 21:02:37 +0300
commit8e0703fab6ecc275e3cc2e30bb87027a195f80e8 (patch)
treef6344566ce388204e2de225d84a5e042126e442c /src
parentdeedde268a1c2fc0b7d802c20c9fc374e6a05c55 (diff)
downloadplus-8e0703fab6ecc275e3cc2e30bb87027a195f80e8.tar.gz
plus-8e0703fab6ecc275e3cc2e30bb87027a195f80e8.tar.bz2
plus-8e0703fab6ecc275e3cc2e30bb87027a195f80e8.tar.xz
plus-8e0703fab6ecc275e3cc2e30bb87027a195f80e8.zip
improve botchecker window.
Diffstat (limited to 'src')
-rw-r--r--src/gui/botcheckerwindow.cpp14
-rw-r--r--src/gui/botcheckerwindow.h3
2 files changed, 8 insertions, 9 deletions
diff --git a/src/gui/botcheckerwindow.cpp b/src/gui/botcheckerwindow.cpp
index 910c9cb06..ad5535559 100644
--- a/src/gui/botcheckerwindow.cpp
+++ b/src/gui/botcheckerwindow.cpp
@@ -131,8 +131,7 @@ public:
continue;
const Being *const player = mPlayers.at(r);
- std::string name = player->getName();
- gcn::Widget *widget = new Label(this, name);
+ gcn::Widget *widget = new Label(this, player->getName());
mWidgets.push_back(widget);
@@ -295,8 +294,8 @@ BotCheckerWindow::BotCheckerWindow():
for (int f = 0; f < 4; f++)
{
- mPlayerTableTitleModel->fixColumnWidth(TIME_COLUMN + f,
- TIME_COLUMN_WIDTH);
+ mPlayerTableTitleModel->fixColumnWidth(
+ TIME_COLUMN + f, TIME_COLUMN_WIDTH);
}
mPlayerTitleTable->setHeight(1);
@@ -319,18 +318,17 @@ BotCheckerWindow::BotCheckerWindow():
setStickyButtonLock(true);
setDefaultSize(w, h, ImageRect::CENTER);
-
playersScrollArea->setHorizontalScrollPolicy(ScrollArea::SHOW_NEVER);
- mPlayerTitleTable->setPosition(getPadding(), getPadding());
+ mPlayerTitleTable->setPosition(mPadding, mPadding);
mPlayerTitleTable->setWidth(w - 10);
mPlayerTitleTable->setHeight(20);
- playersScrollArea->setPosition(getPadding(), 20 + 2*getPadding());
+ playersScrollArea->setPosition(mPadding, 20 + 2 * mPadding);
playersScrollArea->setWidth(w - 15);
playersScrollArea->setHeight(h - 80);
- mIncButton->setPosition(getPadding(), 190 + 3*getPadding());
+ mIncButton->setPosition(mPadding, 190 + 3 * mPadding);
mIncButton->setWidth(80);
mIncButton->setHeight(20);
diff --git a/src/gui/botcheckerwindow.h b/src/gui/botcheckerwindow.h
index 7bc75e2fb..18d3efc8e 100644
--- a/src/gui/botcheckerwindow.h
+++ b/src/gui/botcheckerwindow.h
@@ -34,7 +34,8 @@
struct BOTCHK final
{
int16_t id; /**< Index into "botchecker_db" array */
- int16_t lv, sp;
+ int16_t lv;
+ int16_t sp;
};
class Button;