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

start summary conversion

parent 2b1bf4a7
No related branches found
No related tags found
No related merge requests found
App.UI.summaryOptions = function() {
const el = new DocumentFragment();
let _options;
App.UI.DOM.appendNewElement("h1", el, "Summary Options");
App.UI.DOM.appendNewElement("p", el, `These options will affect the short slave summaries that appear on the main menu and the facility management screens.`, "scene-intro");
App.UI.DOM.appendNewElement("h2", el, "Main menu features");
_options = new App.UI.OptionsGroup();
_options.addOption("Rules Assistant visibility", "rulesAssistantMain")
.addValue("Shown", 1).on().addValue("Hidden", 0).off();
_options.addOption("Facilities in the sidebar are", "abbreviateSidebar")
.addValueList([["Summarized", 2], ["Abbreviated", 1]]);
_options.addOption("Sorting main menu options are", "sortSlavesMain")
.addValue("Shown", 1).on().addValue("Hidden", 0).off();
if (V.sortSlavesMain > 0) {
_options.addOption("Sorting direction", "sortSlavesOrder")
.addValueList([["Ascending", "ascending"], ["Descending", "descending"]]);
_options.addOption("Slaves are sorted by", "sortSlavesBy")
.addValueList([
["Devotion", "devotion"],
["Name", "name"],
["Date purchased", "seniority"],
["Age", "actualAge"],
["How old they look", "visualAge"],
["Age of their body", "physicalAge"],
["Assignment", "assignment"],
["Weekly Income", "weeklyIncome"]
]);
}
el.append(_options.render());
App.UI.DOM.appendNewElement("h2", el, "Individual panels");
App.UI.DOM.appendNewElement("div", el, "Sample summary:");
el.append(App.UI.SlaveList.render([V.slaves.random().ID], new Array(), App.UI.SlaveList.SlaveInteract.stdInteract));
_options = (new App.UI.OptionsGroup()).enableDoubleColumn();
_options.addOption("Panel style is", "slavePanelStyle")
.addValueList([
["None", 0],
["Line Separator", 1],
["Card", 2]
]);
App.UI.SlaveSummary.addOptions(_options);
_options.addOption("Granular slave stat numbers are", "summaryStats")
.addValue("Shown", 1).on().addValue("Hidden", 0).off();
_options.addOption("Main menu assignment shortcuts are", "displayAssignments")
.addValue("Shown", 1).on().addValue("Hidden", 0).off();
if (V.showMissingSlaves) {
_options.addOption("Missing slave parents are", "showMissingSlavesSD")
.addValue("Shown", true).on().addValue("Hidden", false).off();
}
el.append(_options.render());
App.UI.DOM.appendNewElement(
"p",
el,
App.UI.DOM.link(
"FC Dev's preferred options",
() => {
V.seeDesk = 0;
V.seeFCNN = 0;
V.sortSlavesBy = "devotion";
V.sortSlavesOrder = "descending";
V.sortSlavesMain = 0;
V.rulesAssistantMain = 1;
V.UI.slaveSummary.abbreviation = {
devotion: 1,
mental: 1,
rules: 1,
clothes: 2,
health: 1,
diet: 1,
drugs: 1,
hormoneBalance: 1,
race: 1,
genitalia: 1,
physicals: 1,
skills: 1,
nationality: 1,
rulesets: 1,
clothes: 0,
origins: 0
};
V.abbreviateSidebar = 1;
},
[],
"Summary Options"
)
);
return el;
};
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