summaryrefslogtreecommitdiff
path: root/src/gui/setup_players.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-02-03 14:38:40 -0700
committerIra Rice <irarice@gmail.com>2009-02-03 14:38:40 -0700
commit8857a59c3818c1ce6eeb6c054cb5543bfc35c087 (patch)
tree792fca4acae0c9372cf145a4f0b4cb995b1c3c78 /src/gui/setup_players.cpp
parent6c5d9cd16b750ae9404407171a5641b5e0ee78b5 (diff)
downloadMana-8857a59c3818c1ce6eeb6c054cb5543bfc35c087.tar.gz
Mana-8857a59c3818c1ce6eeb6c054cb5543bfc35c087.tar.bz2
Mana-8857a59c3818c1ce6eeb6c054cb5543bfc35c087.tar.xz
Mana-8857a59c3818c1ce6eeb6c054cb5543bfc35c087.zip
Fixed up table class to allow for different background colors, as well
as defining whether the given table is opaque or not. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/setup_players.cpp')
-rw-r--r--src/gui/setup_players.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/setup_players.cpp b/src/gui/setup_players.cpp
index a4582b48..c8546b4b 100644
--- a/src/gui/setup_players.cpp
+++ b/src/gui/setup_players.cpp
@@ -223,12 +223,13 @@ Setup_Players::Setup_Players():
mIgnoreActionChoicesBox(new gcn::DropDown(new IgnoreChoicesListModel()))
{
setOpaque(false);
+ mPlayerTable->setOpaque(false);
int table_width = NAME_COLUMN_WIDTH + RELATION_CHOICE_COLUMN_WIDTH;
mPlayerTableTitleModel->fixColumnWidth(NAME_COLUMN, NAME_COLUMN_WIDTH);
mPlayerTableTitleModel->fixColumnWidth(RELATION_CHOICE_COLUMN,
RELATION_CHOICE_COLUMN_WIDTH);
- mPlayerTitleTable->setDimension(gcn::Rectangle(10, 10, table_width, 10));
+ mPlayerTitleTable->setDimension(gcn::Rectangle(10, 10, table_width - 1, 10));
mPlayerTitleTable->setBackgroundColor(gcn::Color(0xbf, 0xbf, 0xbf));
for (int i = 0; i < COLUMNS_NR; i++)