mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-13 21:40:00 -08:00
Orient Front and Command labels toward the opponent
This commit is contained in:
parent
5d871dcf28
commit
4e2229be98
1 changed files with 5 additions and 5 deletions
|
|
@ -206,23 +206,23 @@ void TableZone::paintBattlefieldRows(QPainter *painter)
|
||||||
painter->setFont(font);
|
painter->setFont(font);
|
||||||
|
|
||||||
for (int visualRow = 0; visualRow < TableZoneLogic::ROW_COUNT; ++visualRow) {
|
for (int visualRow = 0; visualRow < TableZoneLogic::ROW_COUNT; ++visualRow) {
|
||||||
// Table logical grid Y: 0 = Command, 1 = Support, 2 = Front.
|
// Logical grid Y: 0 = Front, 1 = Support, 2 = Command.
|
||||||
const int row = inverted ? TableZoneLogic::ROW_COUNT - 1 - visualRow : visualRow;
|
const int row = inverted ? TableZoneLogic::ROW_COUNT - 1 - visualRow : visualRow;
|
||||||
QString label;
|
QString label;
|
||||||
QColor color;
|
QColor color;
|
||||||
|
|
||||||
switch (row) {
|
switch (row) {
|
||||||
case 0:
|
case 0:
|
||||||
label = tr("COMMAND ZONE");
|
label = tr("FRONT ZONE");
|
||||||
color = commandZoneColor;
|
color = frontZoneColor;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
label = tr("SUPPORT ZONE");
|
label = tr("SUPPORT ZONE");
|
||||||
color = supportZoneColor;
|
color = supportZoneColor;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
label = tr("FRONT ZONE");
|
label = tr("COMMAND ZONE");
|
||||||
color = frontZoneColor;
|
color = commandZoneColor;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue