Skip to content

Commit

Permalink
1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
syd711 committed Oct 9, 2022
1 parent 2299da9 commit 96e3eff
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 21 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)

Expand Down
6 changes: 3 additions & 3 deletions resources/card-generator.properties
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
7 changes: 0 additions & 7 deletions resources/commands.properties

This file was deleted.

Binary file modified resources/highscore-card-sample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/overlay-generator.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 5 additions & 9 deletions src/main/java/de/mephisto/vpin/extensions/Splash.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -90,15 +93,8 @@ public Splash() {


private void runInitialCheck() {
List<GameInfo> 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);
Expand Down

0 comments on commit 96e3eff

Please sign in to comment.