diff --git a/README.md b/README.md index d74411f..9d05977 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ which are generated everytime a table highscore changes. * [Configure DOF Rules](#configure-dof-rules) * [Table Overview](#table-overview) * [Service Status](#service-status) -* [Trouble Shooting](#trouble-shooting) +* [Trouble Shooting / FAQ](#trouble-shooting) ## Overview @@ -264,6 +264,12 @@ of Visual Pinball. If you only want to use the files for the background of your check the __resources/env.properties__ file and change the path there. Note that you have to restart the service/UI to apply the change. +### Is it possible to change the highscore card format to the same format as the highscore overlay? + +The card background is not cropped or scaled (only if you enable the directb2s backgrounds). +So if you use a 4k background here, the cards have a 4k size. +But the actual size is defined by popper, so you have to increase the screen you are using for the card there too. + ## See Also [Used Third-Party Libraries](./documentation/third-party-licenses/licenses.xml) diff --git a/resources/card-generator.properties b/resources/card-generator.properties index 3a59d98..8aa58fc 100644 --- a/resources/card-generator.properties +++ b/resources/card-generator.properties @@ -1,4 +1,4 @@ -#Fri Sep 30 18:24:14 CEST 2022 +#Sun Oct 09 17:53:04 CEST 2022 card.alphacomposite.black=5 card.alphacomposite.white=0 card.background=Old Bumbers.jpg @@ -10,7 +10,7 @@ card.highscore.font.name=Digital-7 Italic card.highscores.row.padding.left=87 card.highscores.row.separator=28 card.ratio=RATIO_16x9 -card.sampleTable=58 +card.sampleTable=7 card.score.font.font.style=0 card.score.font.name=Amiri card.score.font.size=80 @@ -27,4 +27,4 @@ card.title.font.style=0 card.title.text=Highscores card.title.y.offset=22 card.useDirectB2S=true -popper.screen=GameInfo +popper.screen=GameHelp diff --git a/resources/commands.properties b/resources/commands.properties deleted file mode 100644 index 3233592..0000000 --- a/resources/commands.properties +++ /dev/null @@ -1,7 +0,0 @@ -#Tue Sep 13 21:27:42 CEST 2022 -rule.1.toggle=true -rule.1.output=1 -rule.1.duration=0 -rule.1.trigger.trigger=keyPressed -rule.1.value=255 -rule.1.trigger=tableExit diff --git a/resources/highscore-card-sample.png b/resources/highscore-card-sample.png index f363575..30fa7bb 100644 Binary files a/resources/highscore-card-sample.png and b/resources/highscore-card-sample.png differ diff --git a/resources/overlay-generator.properties b/resources/overlay-generator.properties index f079227..db19742 100644 --- a/resources/overlay-generator.properties +++ b/resources/overlay-generator.properties @@ -1,4 +1,4 @@ -#Fri Sep 30 18:23:53 CEST 2022 +#Sun Oct 09 17:53:04 CEST 2022 overlay.alphacomposite.black=0 overlay.alphacomposite.white=0 overlay.background=background4k.jpg diff --git a/src/main/java/de/mephisto/vpin/extensions/Splash.java b/src/main/java/de/mephisto/vpin/extensions/Splash.java index 1184e44..b9f469c 100644 --- a/src/main/java/de/mephisto/vpin/extensions/Splash.java +++ b/src/main/java/de/mephisto/vpin/extensions/Splash.java @@ -8,11 +8,14 @@ import de.mephisto.vpin.extensions.util.MessageWithLink; import de.mephisto.vpin.extensions.util.ProgressDialog; import de.mephisto.vpin.extensions.util.ProgressResultModel; +import de.mephisto.vpin.util.PropertiesStore; +import de.mephisto.vpin.util.SystemInfo; import org.apache.commons.lang3.StringUtils; import org.slf4j.LoggerFactory; import javax.swing.*; import java.awt.*; +import java.io.File; import java.util.List; import static de.mephisto.vpin.extensions.ConfigWindow.setUIFont; @@ -90,15 +93,8 @@ public Splash() { private void runInitialCheck() { - List gameInfos = vPinService.getGameInfos(); - boolean romFound = false; - for (GameInfo gameInfo : gameInfos) { - if (!StringUtils.isEmpty(gameInfo.getRom())) { - romFound = true; - break; - } - } - if (!romFound) { + PropertiesStore store = PropertiesStore.create("repository.properties"); + if (store.isEmpty()) { Splash.this.setVisible(false); int option = JOptionPane.showConfirmDialog(this, "It seems that no ROM scan has been performed yet.\n" + "The ROM name of each table is required in order to scan the highscore information.\n\nScan for ROM names? (This may take a while)", "Table Scan", JOptionPane.YES_NO_OPTION);