Skip to content

Commit 098efd3

Browse files
committed
more stuff
1 parent 00dc14f commit 098efd3

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

config.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"client" : {
33
"version" : "1.8",
4-
"saveLocalConfig" : false,
4+
"saveLocalConfig" : true,
55
"localConfigKey" : "local-config",
66
"developmentMode": true,
77
"developmentModeOutsideLocalhost": false
@@ -55,12 +55,12 @@
5555
}
5656
},
5757
"sheet" : {
58-
"currentSubject" : "csSUBJECT:art_history",
58+
"currentSubject" : "csSUBJECT:none",
5959
"editing" : {
6060
"deleteWarningLengthThreshold" : 25,
6161
"deleteWarningWhenImagePresent" : true,
62-
"enableDynamicBackgrounds" : true
6362
"enableDynamicBackgrounds" : false,
63+
"saveCurrentSubject" : true
6464
},
6565
"items" : {
6666
"default_highlight_colors" : {
@@ -149,6 +149,11 @@
149149
"names": {"singular": "testo", "plural": "testi", "section_title": "testi" },
150150
"icon": "book.png",
151151
"emoji" : "📚"
152+
},
153+
"csITEMTYPE:event" : {
154+
"names": {"singular": "evento", "plural": "eventi", "section_title": "eventi" },
155+
"icon": "noicon.png",
156+
"emoji" : "📆"
152157
}
153158
},
154159
"dynamicBackgroundsRoot" : "assets/",

index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@
6666
<a id="download-point" download="senza_nome.jpg">Scarica</a>
6767
</div>
6868
<div id="display-panel" class="controls-panel">
69+
<select name="csSUBJECT-selector" id="csSUBJECT-selector">
70+
<option value="csSUBJECT:none">Scegli materia...</option>
71+
</select>
6972
<button id="darkmode-button" onclick="toggleDisplayMode('darkmode')">Modalità scura</button>
7073
<button id="subwaysurfers-button" onclick="toggleSubwaySurfers()">Distraimi</button>
7174
</div>
@@ -87,6 +90,10 @@
8790
<button id="client-option-enableDynamicBackgrounds" class="setting-bool" data-setting="sheet.editing.enableDynamicBackgrounds" onclick="
8891
toggleDynamicBackgrounds('client-option-enableDynamicBackgrounds')
8992
">Sfondi dinamici: </button>
93+
94+
<button id="client-option-saveCurrentSubject" class="setting-bool" data-setting="sheet.editing.saveCurrentSubject" onclick="
95+
toggleSaveSubject('client-option-saveCurrentSubject')
96+
">Salva materia: </button>
9097
</div>
9198

9299
<div id="client-debug-options">

js/controlPanel.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11

22
function addItem(type) {
3-
const itemType = CONFIG.sheet.items.types[type]
43
textInputDialog((text) => {
54
if (!isEmptyString(text)) appendItem(type, text)
6-
}, null, `${itemType.emoji} Aggiungi ${itemType.names.singular}`, "contenuto:", "Aggiungi")
5+
}, null, `${type.emoji} Aggiungi ${type.names.singular}`, "contenuto:", "Aggiungi")
76
}
87

98
function addItemGenerationButtons(types) {

0 commit comments

Comments
 (0)