From ba66cbfa4dc8c6e55a77c9155af69e7b2522d43b Mon Sep 17 00:00:00 2001 From: keithcurtis1 Date: Thu, 11 Sep 2025 00:38:43 -0700 Subject: [PATCH 1/4] Update Director.js --- Director/Director.js | 155 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 151 insertions(+), 4 deletions(-) diff --git a/Director/Director.js b/Director/Director.js index 98421f995..7f79b807a 100644 --- a/Director/Director.js +++ b/Director/Director.js @@ -15,7 +15,7 @@ API_Meta.Director = { on('ready', () => { - const version = '1.0.3'; //version number set here + const version = '1.0.4'; //version number set here log('-=> Director v' + version + ' is loaded. Command !director creates control handout and provides link. Click that to open.'); //Changelog: @@ -23,6 +23,8 @@ on('ready', () => //1.0.1 Grid Mode, fallback image system for Marketplace images //1.0.2 Expanded Grid Mode up to 9x9 and tighterned spacing, added Star system //1.0.3 Fixed bugs where new install would crash trying to read st.items when undefined +//1.0.4 Added search function for scenes and images + // == Director Script == // Globals @@ -87,14 +89,19 @@ const cssDark = { editIcon: 'color:#eee; font-size:12px; margin:0px 4px; display:inline-block; float:right; cursor:pointer;', utilityEditButton: 'color: #333; background: crimson; padding: 0 2px; border-radius: 3px; min-width:12px; margin-left:2px; margin-bottom:-19px; padding-top:2px; font-family: Pictos; font-size: 12px; text-align:center; float:right; position:relative; top:-22px; right:4px;', utilityEditButtonOverlay: 'color: #333; background: crimson; padding: 0 4px; border-radius: 3px; min-width: 12px; margin-left: 4px; padding-top: 2px; font-family: Pictos; font-size: 20px; text-align: center; cursor: pointer; float: none; position: relative; top: 0; right: 0; margin-bottom: 0; z-index: 11;', -starred: `color: gold; font-weight: bold; font-size: 18px; text-decoration: none; user-select: none; cursor: pointer; position: absolute; top: 3px; right: 8px; margin: 0;`, -unstarred: `color: gray; font-weight: normal; font-size: 18px; text-decoration: none; user-select: none; cursor: pointer; position: absolute; top: 3px; right: 8px; margin: 0;`, + starred: `color: gold; font-weight: bold; font-size: 18px; text-decoration: none; user-select: none; cursor: pointer; position: absolute; top: 3px; right: 8px; margin: 0;`, + unstarred: `color: gray; font-weight: normal; font-size: 18px; text-decoration: none; user-select: none; cursor: pointer; position: absolute; top: 3px; right: 8px; margin: 0;`, // === Message UI === messageContainer: 'color:#ccc; background-color:#222; border:1px solid #444; border-radius:5px; padding:10px; font-family: Nunito, Arial, sans-serif; position:relative; top:-15px; left:-5px;', messageTitle: 'color:#ddd; font-size:16px; text-transform:capitalize; text-align:center; margin-bottom:13px;', messageButton: 'color:#ccc; background:#444; border-radius:4px; padding:2px 6px; margin-right:2px; display:inline-block; vertical-align:middle;', + searchScenesResultsButton: 'color:#ccc; background:#444; width:80%; border: 1px #444 solid; border-radius:4px; padding:1px 3px; margin:2px; display:inline-block; vertical-align:middle;font-size:11px', + searchResultsButton: 'color:#ccc; background:#444; border: 1px #444 solid; border-radius:4px; padding:1px 3px; margin:2px; display:inline-block; vertical-align:middle;font-size:11px', + searchImageResultsBlock: 'background:#222; border: 1px #444 solid; border-radius:2px; padding:4px; margin:6px 0px 0px 0px; display:block;', + searchResultsColumnHeader: 'color:#ddd; background:#333; width:92%; margin:25px 0px 5px 0px; padding:6px 8px; font-weight:bold; font-size:15px;display:block', + // === Images === imageContainer: 'margin-bottom:2px; clear:both; overflow:hidden;', @@ -158,6 +165,15 @@ unstarred: { color: '#bbb' }, messageContainer: { color: '#222', background: '#f9f9f9', border: '1px solid #ccc' }, messageTitle: { color: '#222' }, messageButton: { color: '#222', background: '#ddd' }, + searchScenesResultsButton: { color: '#222', background: '#f9f9f9'}, + searchResultsButton: { color: '#222', background: '#f9f9f9',}, + searchImageResultsBlock: { color: '#222', background: '#ddd',}, + searchResultsColumnHeader: { color: '#222', background: '#f9f9f9', }, + + + + + imageBoxWrapper: { background: '#fff', border: '1px solid #ccc' }, imageDiv: { border: '1px solid #ccc' }, @@ -1230,6 +1246,8 @@ const renderHelpHtml = (css) => `

Acts group together related scenes. Use the + Add Act button to create an act.

+

Click the ${Pictos('s')} button in the column header to search for a scene or image by name. Enter a partial or similar term to quickly locate what you need.

+

In Edit Mode, act-level options include: