Skip to content
Snippets Groups Projects
Commit 9210ddb3 authored by lowercasedonkey's avatar lowercasedonkey
Browse files

compress actor selection

parent 7d4a0945
No related branches found
No related tags found
1 merge request!9579Manual event select tweaks
...@@ -14,7 +14,6 @@ App.Events.debugEvent = function(eventName) { ...@@ -14,7 +14,6 @@ App.Events.debugEvent = function(eventName) {
if (!event.actors[i]) { if (!event.actors[i]) {
missingCast = true; missingCast = true;
} }
App.UI.DOM.appendNewElement("div", cast, `Actor ${i}: ${event.actors[i] ? SlaveFullName(getSlave(event.actors[i])) : 'not yet cast'}`);
} }
if (!missingCast) { if (!missingCast) {
App.UI.DOM.appendNewElement("div", cast, App.UI.DOM.link('Run event now', (evt) => { V.event = evt; }, [event], "JS Random Event")); App.UI.DOM.appendNewElement("div", cast, App.UI.DOM.link('Run event now', (evt) => { V.event = evt; }, [event], "JS Random Event"));
...@@ -32,7 +31,7 @@ App.Events.debugEvent = function(eventName) { ...@@ -32,7 +31,7 @@ App.Events.debugEvent = function(eventName) {
} else { } else {
const tabBar = new App.UI.Tabs.TabBar("Options"); const tabBar = new App.UI.Tabs.TabBar("Options");
for (let i = 0; i < actorReqs.length; ++i) { for (let i = 0; i < actorReqs.length; ++i) {
tabBar.addTab(`Actor ${i}`, `actor${i}`, singleActorList(i)); tabBar.addTab(`Actor ${i}: ${event.actors[i] ? SlaveFullName(getSlave(event.actors[i])) : 'not yet cast'}`, `actor${i}`, singleActorList(i));
} }
actors.append(tabBar.render()); actors.append(tabBar.render());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment