mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-15 06:52:15 -07:00
Use letters for card counter names
This commit is contained in:
parent
e7b28322c1
commit
1cb5220485
5 changed files with 34 additions and 47 deletions
|
|
@ -487,10 +487,6 @@ AppearanceSettingsPage::AppearanceSettingsPage()
|
|||
auto *cardCountersLayout = new QVBoxLayout;
|
||||
cardCountersLayout->addLayout(cardCounterColorsLayout, 1);
|
||||
|
||||
cardCountersNameWarning = new QLabel;
|
||||
cardCountersNameWarning->setWordWrap(true);
|
||||
cardCountersLayout->addWidget(cardCountersNameWarning);
|
||||
|
||||
cardCountersGroupBox = new QGroupBox;
|
||||
cardCountersGroupBox->setLayout(cardCountersLayout);
|
||||
|
||||
|
|
@ -631,12 +627,10 @@ void AppearanceSettingsPage::retranslateUi()
|
|||
cardViewExpandedRowsMaxBox.setSuffix(tr(" rows"));
|
||||
|
||||
cardCountersGroupBox->setTitle(tr("Card counters"));
|
||||
cardCountersNameWarning->setText(
|
||||
tr("<b>Note:</b> The names can't be changed and might not match the actual colors."));
|
||||
|
||||
auto &cardCounterSettings = SettingsCache::instance().cardCounters();
|
||||
for (int index = 0; index < cardCounterNames.size(); ++index) {
|
||||
cardCounterNames[index]->setText(cardCounterSettings.displayName(index));
|
||||
cardCounterNames[index]->setText(tr("Counter %1").arg(cardCounterSettings.displayName(index)));
|
||||
}
|
||||
|
||||
handGroupBox->setTitle(tr("Hand layout"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue