Skip to content

Commit

Permalink
Merge pull request #172
Browse files Browse the repository at this point in the history
Add Large Datapad
  • Loading branch information
wrycu authored Dec 28, 2023
2 parents 4787ff3 + 7233c99 commit f1eafe0
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 0 deletions.
Binary file added artwork/datapad-large-template-2250w.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
"ffg-star-wars-enhancements.opening-crawl.ui.label": "Open Configuration",
"ffg-star-wars-enhancements.datapads.datapad-template": "Datapad Template",
"ffg-star-wars-enhancements.datapads.datapad": "Datapad",
"ffg-star-wars-enhancements.datapads.datapad-large": "Large Datapad",
"ffg-star-wars-enhancements.datapads.bounty": "Bounty",
"ffg-star-wars-enhancements.datapads.title": "Create Datapad",
"ffg-star-wars-enhancements.datapads.cancel": "Cancel",
Expand Down
1 change: 1 addition & 0 deletions lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"ffg-star-wars-enhancements.opening-crawl.ui.label": "Ouvrir Configuration",
"ffg-star-wars-enhancements.datapads.datapad-template": "Modèle de Datapad",
"ffg-star-wars-enhancements.datapads.datapad": "Datapad",
"ffg-star-wars-enhancements.datapads.datapad-large": "Grand Datapad",
"ffg-star-wars-enhancements.datapads.bounty": "Prime",
"ffg-star-wars-enhancements.datapads.title": "Créer un Datapad",
"ffg-star-wars-enhancements.datapads.cancel": "Annuler",
Expand Down
1 change: 1 addition & 0 deletions lang/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"ffg-star-wars-enhancements.opening-crawl.ui.label": "Abrir configuraçao",
"ffg-star-wars-enhancements.datapads.datapad-template": "Padrão do Datapad",
"ffg-star-wars-enhancements.datapads.datapad": "Datapad",
"ffg-star-wars-enhancements.datapads.datapad-large": "Grande Datapad",
"ffg-star-wars-enhancements.datapads.bounty": "Recompensa",
"ffg-star-wars-enhancements.datapads.title": "Criar Datapad",
"ffg-star-wars-enhancements.datapads.cancel": "Cancelar",
Expand Down
3 changes: 3 additions & 0 deletions scripts/datapads.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import { log_msg as log } from "./util.js";
export async function create_datapad_journal() {
const templates = {
datapad: '<div class="swdatapad"><p></p></div>',
datapadlarge: '<div class="swdatapadlarge"><p></p></div>',
bounty: (await getTemplate("modules/ffg-star-wars-enhancements/templates/datapads_bounty.html"))(),
};

const datapad_template = game.i18n.localize("ffg-star-wars-enhancements.datapads.datapad-template");
const datapad = game.i18n.localize("ffg-star-wars-enhancements.datapads.datapad");
const datapad_large = game.i18n.localize('ffg-star-wars-enhancements.datapads.datapad-large');
const bounty = game.i18n.localize("ffg-star-wars-enhancements.datapads.bounty");
return new Dialog({
title: game.i18n.localize("ffg-star-wars-enhancements.datapads.title"),
Expand All @@ -17,6 +19,7 @@ export async function create_datapad_journal() {
<label>${datapad_template}</label>
<select name="template">
<option value="datapad">${datapad}</option>
<option value="datapadlarge">${datapad_large}</option>
<option value="bounty">${bounty}</option>
</select>
</div>
Expand Down
15 changes: 15 additions & 0 deletions styles/datapads.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@
font-size: 12px;
}

.swdatapadlarge {
background-image: url('../artwork/datapad-large-template-2250w.png');
background-repeat: no-repeat;
min-width: 2250px;
height: 2840px;
display: block;
padding: 50px 90px;
color: #d0faff;
font-size: 14px;
font-family: Temporarium;
}
.swdatapadlarge table {
font-size: 12px
}

.swdatapad-wanted {
background-image: url("../artwork/datapad-template-wanted-700w.png");
background-repeat: no-repeat;
Expand Down

0 comments on commit f1eafe0

Please sign in to comment.