Skip to content

Commit

Permalink
v2.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Moerill committed Dec 2, 2020
2 parents 2a90729 + 205b499 commit 2e235c3
Show file tree
Hide file tree
Showing 13 changed files with 1,387 additions and 158 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
foundryconfig.json
package-lock.json
yarn-error.log
.vs
6 changes: 6 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ExpandedNodes": [
""
],
"PreviewInSolutionExplorer": false
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
1,025 changes: 1,025 additions & 0 deletions .vs/token-mold/config/applicationhost.config

Large diffs are not rendered by default.

Binary file added .vs/token-mold/v16/.suo
Binary file not shown.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v2.11

- Localization support, including german translation! Huge thanks to GitHub user @CarnVanBeck, who did *all* the work!

# v2.10.1

- *FIX* saving settings to break, if no adjective list was loaded before. (Happened e.g. when the set table doesn't exist anymore).
Expand Down
82 changes: 82 additions & 0 deletions lang/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"I18N.MAINTAINERS": [ "CarnVanBeck" ],

"Token Mold": "Token Mold",

"tmold.config.applySettings": "Einstellungen anwenden bei",
"tmold.config.unlinkedOnly": "nicht verbundenen Charakteren",

"tmold.tab.infoHelp": "Info/Hilfe",
"tmold.tab.name": "Name",
"tmold.tab.systemSpecific": "Systemspezifisch",
"tmold.tab.defaultConfig": "Standardkonfiguration",
"tmold.tab.statOverlay": "Attributs Overlay",

"tmold.info.featureOverview": "Funktionsübersicht / Read me!",
"tmold.info.bugsOrSuggestions": "Fehler oder Funktionsvorschläge? Erstelle ein Probleme hier.",
"tmold.info.changelog": "Changelog",
"tmold.info.support": "Möchtest du die Entwicklung unterstützen?",
"tmold.info.clickHere": "Klicke hier",

"tmold.name.addNumbers": "Hänge Zähler Nummern dem Namen als Suffix an.",
"tmold.name.numberStyle": "Wähle einen Zahlen Stil. Das erste Feld darf nicht leer sein!",
"tmold.name.prefix": "Präfix",
"tmold.name.suffix": "Suffix",
"tmold.name.increaseIndex": "Erhöhe den Index um bis zu",
"tmold.name.increaseIndexHelp": "Die Index Erhöhung wird zufällig aus diesem Bereich gewählt. Minimum von 1. (Gleichmäßig verteilt)",
"tmold.name.resetCounter": "Setze den Zähler für alle Figuren dieser Szene zurück.",
"tmold.name.resetCounterHelp": "Setzt den Zähler für neu erstellte Figuren zurück. Dies wird nach dem Neuladen der Seite auf den am höchsten platzierten Index zurückgesetzt. Bei Karten mit einer hohen Anzahl an Figuren kann das ein Paar Sekunden dauern.",
"tmold.name.addAdjective": "Füge ein zufälliges Adjektiv aus der Bibliothek ein",
"tmold.name.chooseRolltable": "Wähle ein zufälliges Adjektiv aus folgender Würfeltabelle:",
"tmold.name.adjectivePlacement": "Adjektiv Position:",
"tmold.name.adjectivePlacementFront": "Vorne",
"tmold.name.adjectivePlacementBack": "Hinten",
"tmold.name.baseName": "Basisname:",
"tmold.name.baseNameNothing": "Nichts tun",
"tmold.name.baseNameRemove": "Entfernen",
"tmold.name.baseNameReplace": "Durch zufälligen Namen ersetzen",
"tmold.name.replaceHelp": "Für weitere Informationen wie das Funktioniert, kannst du auf der Modul Homepage schauen.",
"tmold.name.replaceInfo1": "Die ausgewählte Option wird den Namen der Figur mit einem generierten ersetzen.",
"tmold.name.replaceInfo2": "Du kannst eine Reihe an Attributen auswählen. Für jedes Attribut kannst du mögliche Werte setzen und ihnen eine Sprache zuweisen. Bei der Erstellung der Figur wird der erste passende Wert verwendet. Wenn kein passender Wert gefunden wurde, wird der Standardwert verwendet.",
"tmold.name.replaceInfo3": "Wichtig: Das Aktivieren dieser Funktion wird zu ca 100 Mb zusätzlicher Speicherverwendung führen! (Nur für SL)",
"tmold.name.generateLength": "Länge des generierten Namens",
"tmold.name.minimum": "Minimum:",
"tmold.name.maximum": "Maximum:",
"tmold.name.regenerate": "Generiere die Namen für die ausgewählten Figuren neu",
"tmold.name.attribute": "Attribut",
"tmold.name.value": "Wert",
"tmold.name.language": "Sprache",
"tmold.name.reset": "Auf Standard zurücksetzen",
"tmold.name.default": "Standard",
"tmold.name.random": "Zufällig",
"tmold.name.delete": "Löschen",
"tmold.stat.none": "Keins",
"tmold.stat.name": "Name",
"tmold.name.addValue": "Wert hinzufügen",
"tmold.name.addAttribute": "Attribut hinzufügen",

"tmold.system.sendToChat": "Sende Ergebnise in den Chat (Diese Einstellung ändert nur, ob die Würfe an den Chat geschickt werden. Ob die Trefferpunkte gewürfelt werden, entscheidet sich an den Einstellungen in der Seitenleiste.)",
"tmold.system.setTokenSize": "Setze die Figurengröße auf die Größe der Kreatur skaliert an die Kartengröße",
"tmold.system.setTokenSizeHelp": "Setzt die Größe der Figur passend zu der Größe des Charakters anhand der Regeln. Wenn die Karte ft. als Einheit eingetragen hat, wird es passend skaliert.",

"tmold.default.overwrite": "Überschreiben",
"tmold.default.active": "Aktiv",
"tmold.default.vision": "Sicht:",
"tmold.default.randScale": "Zufälliger Größenmuliplikator",
"tmold.default.min": "Min",
"tmold.default.max": "Max",
"tmold.default.randRotation": "Zufälliger Rotationsbereich",
"tmold.default.minAngle": "Min Winkel",
"tmold.default.maxAngle": "Max Winkel",
"tmold.default.randMirroring": "Zufälliges Spiegeln",
"tmold.default.horizontal": "Horizontal",
"tmold.default.vertical": "Vertikal",

"tmold.stat.attributeChooseDisplay": "Wähle Attribute zum Anzeigen aus",
"tmold.stat.attribute": "Attribut",
"tmold.stat.attributeIcon": "Symbol",
"tmold.stat.attributeNone": "Keins",
"tmold.stat.attributeName": "Name",
"tmold.stat.attributeDelete": "Löschen",
"tmold.stat.attributeAdd": "Attribut hinzufügen"
}
82 changes: 82 additions & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"I18N.MAINTAINERS": [ "Moerill" ],

"Token Mold": "Token Mold",

"tmold.config.applySettings": "Apply settings to",
"tmold.config.unlinkedOnly": "unlinked tokens only",

"tmold.tab.infoHelp": "Info/Help",
"tmold.tab.name": "Name",
"tmold.tab.systemSpecific": "System Specific",
"tmold.tab.defaultConfig": "Modify Default Config",
"tmold.tab.statOverlay": "Stat Overlay",

"tmold.info.featureOverview": "Feature Overview / Read me!",
"tmold.info.bugsOrSuggestions": "Bugs or feature suggestion? Create an issue here.",
"tmold.info.changelog": "Changelog",
"tmold.info.support": "Want to support development?",
"tmold.info.clickHere": "Click here",

"tmold.name.addNumbers": "Add counting numbers to name as Suffix.",
"tmold.name.numberStyle": "Choose number style. The first field may not be empty!",
"tmold.name.prefix": "Prefix",
"tmold.name.suffix": "Suffix",
"tmold.name.increaseIndex": "Increase Index by up to",
"tmold.name.increaseIndexHelp": "The index increase will be chosen randomly from within this range. Minimum of 1. (Uniformly distributed)",
"tmold.name.resetCounter": "Reset counter for this scene for all tokens.",
"tmold.name.resetCounterHelp": "Resets the Counter for newly created tokens. This will reset to the highest placed index after a page reload. On maps with a high amount of tokens this could take a few seconds.",
"tmold.name.addAdjective": "Add random adjective from dictionary",
"tmold.name.chooseRolltable": "Choose adjectives from following rollable Table:",
"tmold.name.adjectivePlacement": "Adjective Placement:",
"tmold.name.adjectivePlacementFront": "Front",
"tmold.name.adjectivePlacementBack": "Back",
"tmold.name.baseName": "Base name:",
"tmold.name.baseNameNothing": "Do nothing",
"tmold.name.baseNameRemove": "Remove",
"tmold.name.baseNameReplace": "Replace with randomized name",
"tmold.name.replaceHelp": "For more information on how this works look onto the modules homepage.",
"tmold.name.replaceInfo1": "The chosen option will replace the tokens base name with a generated name.",
"tmold.name.replaceInfo2": "You can choose a number of attributes. For each attribute you can choose possible values and assign them a language. On token creation the first value that fits will be chosen. If no fitting value was found, the default will be used.",
"tmold.name.replaceInfo3": "Important: Enabling this feature will result in about 100MB of extra memory used! (for GMs only)",
"tmold.name.generateLength": "Generated Name length",
"tmold.name.minimum": "Minimum:",
"tmold.name.maximum": "Maximum:",
"tmold.name.regenerate": "Regenerate names for selected tokens",
"tmold.name.attribute": "Attribute",
"tmold.name.value": "Value",
"tmold.name.language": "Language",
"tmold.name.reset": "Reset to default",
"tmold.name.default": "Default",
"tmold.name.random": "random",
"tmold.name.delete": "Delete",
"tmold.stat.none": "None",
"tmold.stat.name": "Name",
"tmold.name.addValue": "Add Value",
"tmold.name.addAttribute": "Add Attribute",

"tmold.system.sendToChat": "Send result to Chat (This setting just changes if the rolls are send to chat. Whether HP are rolled or not is based on the settings done in the sidebar.)",
"tmold.system.setTokenSize": "Set Token size to creature size and scaled to map scale",
"tmold.system.setTokenSizeHelp": "Sets token size according to the size set in the actor sheet adhering to the rules. If the map has has ft. as distance unit it will scale accordingly.",

"tmold.default.overwrite": "Overwrite",
"tmold.default.active": "Active",
"tmold.default.vision": "Vision:",
"tmold.default.randScale": "Random Scale Multiplier",
"tmold.default.min": "Min",
"tmold.default.max": "Max",
"tmold.default.randRotation": "Random Rotation Range",
"tmold.default.minAngle": "Min angle",
"tmold.default.maxAngle": "Max angle",
"tmold.default.randMirroring": "Random Mirroring",
"tmold.default.horizontal": "Horizontal",
"tmold.default.vertical": "Vertical",

"tmold.stat.attributeChooseDisplay": "Choose Attributes to display",
"tmold.stat.attribute": "Attribute",
"tmold.stat.attributeIcon": "Icon",
"tmold.stat.attributeNone": "None",
"tmold.stat.attributeName": "Name",
"tmold.stat.attributeDelete": "Delete",
"tmold.stat.attributeAdd": "Add Attribute"
}
59 changes: 36 additions & 23 deletions less/token-mold.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.token-mold {
a[href] {
a[href] {
color: #4a52ca;
}

Expand All @@ -9,9 +9,9 @@
align-items: center;
justify-content: flex-start;

input[type='text'] {
input[type="text"] {
flex: 0 200px;
margin-left: auto;
margin-left: auto;
}
> * {
margin: 3px;
Expand All @@ -25,7 +25,8 @@
ul {
flex: 1;
}
h2, .token-mold-support {
h2,
.token-mold-support {
flex: 0;
}
}
Expand All @@ -39,7 +40,7 @@
min-width: 540px;
}

.token-mold .unlinked{
.token-mold .unlinked {
border-bottom: 1px solid rgba(102, 102, 102, 1);
justify-content: center;
margin: 0;
Expand All @@ -50,7 +51,7 @@
flex: 0 auto;
}
.token-mold nav {
background: rgba(0,0,0,0.05);
background: rgba(0, 0, 0, 0.05);
padding: 6px;
margin: 0;
margin-bottom: 3px;
Expand All @@ -75,15 +76,15 @@
margin: 0 0 6px 0;
}

.token-mold nav .item{
.token-mold nav .item {
flex: 1 auto;
}

section.token-mold {
flex: 0 auto;
}

section.token-mold input[type=checkbox] {
section.token-mold input[type="checkbox"] {
display: none;
}

Expand All @@ -99,13 +100,16 @@ section.token-mold label.label-inp {
margin: 0 auto;
}

section.token-mold input[type=checkbox]:checked ~ span{
section.token-mold input[type="checkbox"]:checked ~ span {
color: #eee;
/*text-shadow: 0px 0px 5px #FF0000;*/
}
section.token-mold input[type=checkbox]:checked ~ span span.checkmark::before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
section.token-mold
input[type="checkbox"]:checked
~ span
span.checkmark::before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: "\f00c";
}

Expand All @@ -114,8 +118,8 @@ section.token-mold span.checkmark {
text-shadow: none;
}
section.token-mold span.checkmark::before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: "\f05e";
}

Expand Down Expand Up @@ -145,48 +149,56 @@ section.token-mold {

.token-mold .flexcol {
padding: 5px;
border-bottom: 1px dashed rgba(0,0,0,0.5);
border-bottom: 1px dashed rgba(0, 0, 0, 0.5);
}

.token-mold .language-selection {

display: flex;
flex-flow: row nowrap;
align-items: center;
justify-content: flex-start;
}

.token-mold h4.language, .token-mold select.language, .token-mold h4.icon, .token-mold select.icon {
.token-mold h4.language,
.token-mold select.language,
.token-mold h4.icon,
.token-mold select.icon {
flex: 0 100px;
margin: 3px;
max-width: 100px;
}

.token-mold h4.attributes, .token-mold input.attributes, .token-mold h4.value, .token-mold select.value {
.token-mold h4.attributes,
.token-mold input.attributes,
.token-mold h4.value,
.token-mold select.value {
flex: 0 50%;
margin: 3px;
}

.token-mold a.remove, .token-mold a.reset, .token-mold a.lang-remove {
.token-mold a.remove,
.token-mold a.reset,
.token-mold a.lang-remove {
flex: 0 15px;
align-self: flex-end;
padding: 3px 5px;
}

.token-mold .name-randomizer-options {
margin-top: 3px;
background: rgba(0,0,0,0.05);
background: rgba(0, 0, 0, 0.05);
padding: 3px;
border: 1px solid rgba(102, 102, 102, 1);
}

.token-mold .header {
margin-top: 6px;
background: rgba(0,0,0,0.05);
background: rgba(0, 0, 0, 0.05);
border-top: 1px solid rgba(102, 102, 102, 1);
border-bottom: 1px solid rgba(102, 102, 102, 1);
}
.token-mold .language-selection.header h4, .token-mold .attributes h4 {
.token-mold .language-selection.header h4,
.token-mold .attributes h4 {
margin: 3px;
}

Expand Down Expand Up @@ -223,6 +235,7 @@ section.token-mold {
max-width: 100%;
display: flex;
flex-flow: row wrap;
align-items: flex-start;
}

.token-mold .attribute-group .language-selection {
Expand Down Expand Up @@ -265,4 +278,4 @@ section.token-mold {
.token-mold a.reroll-names {
margin: auto;
flex: 0 auto;
}
}
Loading

0 comments on commit 2e235c3

Please sign in to comment.