mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-15 06:52:15 -07:00
Allow more naming schemes for custom pictures (#6021)
* Allow more naming schemes for custom pictures. Order is cardName_providerId, cardName_setName_collectorNumber, setName-collectorNumber-cardName and then just generically cardName, if the user has decided to override every printing. Most-to-least specific. Took 2 minutes Took 8 seconds * Fixups. Took 2 minutes * Even more naming schemes. Took 6 minutes * Finally yeet the bug warning in PrintingSelector Took 3 minutes * Adjust to PrintingInfo change. Took 5 minutes * Don't use suffixes. Took 7 minutes Took 9 seconds * Comments. Took 2 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
2267d38352
commit
ee4ff6e732
4 changed files with 68 additions and 91 deletions
|
|
@ -33,24 +33,6 @@ PrintingSelector::PrintingSelector(QWidget *parent, AbstractTabDeckEditor *_deck
|
|||
layout = new QVBoxLayout(this);
|
||||
setLayout(layout);
|
||||
|
||||
if (PictureLoader::hasCustomArt()) {
|
||||
QFrame *warningFrame = new QFrame(this);
|
||||
warningFrame->setFrameShape(QFrame::StyledPanel);
|
||||
|
||||
warningLabel = new QLabel(this);
|
||||
warningLabel->setTextFormat(Qt::RichText);
|
||||
warningLabel->setWordWrap(true);
|
||||
|
||||
auto *warningLayout = new QVBoxLayout(warningFrame);
|
||||
warningFrame->setLayout(warningLayout);
|
||||
|
||||
warningLayout->addWidget(warningLabel);
|
||||
|
||||
layout->addWidget(warningFrame);
|
||||
} else {
|
||||
warningLabel = nullptr;
|
||||
}
|
||||
|
||||
widgetLoadingBufferTimer = new QTimer(this);
|
||||
|
||||
flowWidget = new FlowWidget(this, Qt::Horizontal, Qt::ScrollBarAlwaysOff, Qt::ScrollBarAsNeeded);
|
||||
|
|
@ -107,12 +89,6 @@ PrintingSelector::PrintingSelector(QWidget *parent, AbstractTabDeckEditor *_deck
|
|||
void PrintingSelector::retranslateUi()
|
||||
{
|
||||
navigationCheckBox->setText(tr("Display Navigation Buttons"));
|
||||
|
||||
if (warningLabel) {
|
||||
warningLabel->setText(
|
||||
tr("<b>Warning:</b> You appear to be using custom card art, which has known bugs when also "
|
||||
"using the printing selector in this version of Cockatrice."));
|
||||
}
|
||||
}
|
||||
|
||||
void PrintingSelector::printingsInDeckChanged()
|
||||
|
|
|
|||
|
|
@ -51,7 +51,6 @@ private:
|
|||
QWidget *sortAndOptionsContainer;
|
||||
QHBoxLayout *sortAndOptionsLayout;
|
||||
QCheckBox *navigationCheckBox;
|
||||
QLabel *warningLabel;
|
||||
PrintingSelectorCardSortingWidget *sortToolBar;
|
||||
PrintingSelectorCardSearchWidget *searchBar;
|
||||
FlowWidget *flowWidget;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue