Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fc-pregmod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
macaronideath
fc-pregmod
Commits
cf5ff0e3
Commit
cf5ff0e3
authored
4 years ago
by
lowercasedonkey
Browse files
Options
Downloads
Patches
Plain Diff
start summary conversion
parent
2b1bf4a7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/gui/options/summaryOptions.js
+107
-0
107 additions, 0 deletions
src/gui/options/summaryOptions.js
with
107 additions
and
0 deletions
src/gui/options/summaryOptions.js
0 → 100644
+
107
−
0
View file @
cf5ff0e3
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
;
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment