kingkont 0.7.70 → 0.7.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.html +2 -2
- package/main.js +1 -1
- package/package.json +1 -1
- package/renderer/board.js +2 -2
- package/renderer/media.js +2 -2
package/index.html
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
</div>
|
|
33
33
|
|
|
34
34
|
<div class="sidebar-section">
|
|
35
|
-
<h3
|
|
35
|
+
<h3>Общее <button id="newLocation" disabled title="Создать общую доску">+</button></h3>
|
|
36
36
|
<div class="sidebar-list" id="locationList"></div>
|
|
37
37
|
</div>
|
|
38
38
|
|
|
@@ -445,7 +445,7 @@
|
|
|
445
445
|
<label id="charsPickRow" style="display:none;">Персонажи
|
|
446
446
|
<div class="picker-chips" id="charsPickChips"></div>
|
|
447
447
|
</label>
|
|
448
|
-
<label id="locPickRow" style="display:none;"
|
|
448
|
+
<label id="locPickRow" style="display:none;">Из общего
|
|
449
449
|
<select id="locPickSelect"><option value="">— не выбрана —</option></select>
|
|
450
450
|
</label>
|
|
451
451
|
<!-- Дефолтные промпты сцены (стек чекбоксов; рендерится динамически) -->
|
package/main.js
CHANGED
package/package.json
CHANGED
package/renderer/board.js
CHANGED
|
@@ -1211,7 +1211,7 @@ $('newLocation').addEventListener('click', async () => {
|
|
|
1211
1211
|
vlog('info', 'newLocation click; hasFilm=' + !!state.filmHandle);
|
|
1212
1212
|
if (!state.filmHandle) { alert('Сначала открой проект (папку).'); return; }
|
|
1213
1213
|
try {
|
|
1214
|
-
const name = await askName('Название
|
|
1214
|
+
const name = await askName('Название (общее):', 'например, Кухня, Револьвер, Фон…');
|
|
1215
1215
|
vlog('info', 'newLocation name=' + JSON.stringify(name));
|
|
1216
1216
|
if (!name) return;
|
|
1217
1217
|
const root = await state.filmHandle.getDirectoryHandle(LOC_DIR, { create: true });
|
|
@@ -1778,7 +1778,7 @@ function showNodeContextMenu(node, clientX, clientY) {
|
|
|
1778
1778
|
// Локация: пометить картинку как location sheet
|
|
1779
1779
|
if (node.type === 'image' && node.file && state.currentBoard?.kind === 'location') {
|
|
1780
1780
|
const isSheet = state.currentBoard.metadata.location?.sheet === node.file;
|
|
1781
|
-
add(isSheet ? '⭐ Это
|
|
1781
|
+
add(isSheet ? '⭐ Это главная картинка' : '⭐ Сделать главной картинкой', () => {
|
|
1782
1782
|
if (!state.currentBoard.metadata.location) state.currentBoard.metadata.location = {};
|
|
1783
1783
|
state.currentBoard.metadata.location.sheet = isSheet ? null : node.file;
|
|
1784
1784
|
scheduleSave();
|
package/renderer/media.js
CHANGED
|
@@ -1299,8 +1299,8 @@ function updateMentionPopup() {
|
|
|
1299
1299
|
t.className = `mtype ${s.type}`;
|
|
1300
1300
|
t.textContent = s.scope === 'char' ? 'персонаж'
|
|
1301
1301
|
: s.scope === 'char-image' ? `персонаж·${s.charName}`
|
|
1302
|
-
: s.scope === 'loc' ? '
|
|
1303
|
-
: s.scope === 'loc-image' ?
|
|
1302
|
+
: s.scope === 'loc' ? 'общее'
|
|
1303
|
+
: s.scope === 'loc-image' ? `общее·${s.locName}`
|
|
1304
1304
|
: s.scope === 'scene-folder' ? 'сцена'
|
|
1305
1305
|
: s.type;
|
|
1306
1306
|
const nm = document.createElement('span');
|