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
c3c9a687
Commit
c3c9a687
authored
6 years ago
by
vas
Browse files
Options
Downloads
Patches
Plain Diff
cosmetics work
parent
5fc96ec5
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/js/rulesAssistantOptions.tw
+231
-14
231 additions, 14 deletions
src/js/rulesAssistantOptions.tw
with
231 additions
and
14 deletions
src/js/rulesAssistantOptions.tw
+
231
−
14
View file @
c3c9a687
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
window.rulesAssistantOptions = (function() {
window.rulesAssistantOptions = (function() {
"use strict"
"use strict"
let V
let V
let r = ""
let r = ""
...
@@ -213,7 +213,7 @@ window.rulesAssistantOptions = (function() {
...
@@ -213,7 +213,7 @@ window.rulesAssistantOptions = (function() {
this.selectedItem = null
this.selectedItem = null
this.value = this.element.querySelector(".rajs-value")
this.value = this.element.querySelector(".rajs-value")
}
}
render(prefix, textinput) {
render(prefix, textinput) {
const elem = document.createElement("div")
const elem = document.createElement("div")
const label = document.createElement("span")
const label = document.createElement("span")
...
@@ -239,7 +239,7 @@ window.rulesAssistantOptions = (function() {
...
@@ -239,7 +239,7 @@ window.rulesAssistantOptions = (function() {
if (this.selectedItem) this.selectedItem.deselect()
if (this.selectedItem) this.selectedItem.deselect()
this.propagateChange()
this.propagateChange()
}
}
selectItem(item) {
selectItem(item) {
if (this.selectedItem) this.selectedItem.deselect()
if (this.selectedItem) this.selectedItem.deselect()
this.selectedItem = item
this.selectedItem = item
...
@@ -307,7 +307,7 @@ window.rulesAssistantOptions = (function() {
...
@@ -307,7 +307,7 @@ window.rulesAssistantOptions = (function() {
this.data = data !== undefined ? data : this.setvalue !== undefined ? this.setvalue : displayvalue
this.data = data !== undefined ? data : this.setvalue !== undefined ? this.setvalue : displayvalue
this.selected = false
this.selected = false
}
}
render(displayvalue) {
render(displayvalue) {
const elem = document.createElement("span")
const elem = document.createElement("span")
elem.classList.add("rajs-listitem")
elem.classList.add("rajs-listitem")
...
@@ -338,7 +338,7 @@ window.rulesAssistantOptions = (function() {
...
@@ -338,7 +338,7 @@ window.rulesAssistantOptions = (function() {
elem.innerText = label + ":"
elem.innerText = label + ":"
return elem
return elem
}
}
appendChild(child) {
appendChild(child) {
super.appendChild(child)
super.appendChild(child)
child.parent = this.parent
child.parent = this.parent
...
@@ -363,13 +363,14 @@ window.rulesAssistantOptions = (function() {
...
@@ -363,13 +363,14 @@ window.rulesAssistantOptions = (function() {
class OptionsItem extends Element {
class OptionsItem extends Element {
constructor(label, onclick) {
constructor(label, onclick) {
super(label)
super(label)
this.label = label
this.onclick = onclick
this.onclick = onclick
}
}
render(label, onclick) {
render(label, onclick) {
const elem = document.createElement("span")
const elem = document.createElement("span")
elem.classList.add("rajs-listitem")
elem.classList.add("rajs-listitem")
elem.innerHTML = label
elem.innerHTML = label
elem.onclick = () => { return this.onclick() }
elem.onclick = () => { return this.onclick(
this
) }
return elem
return elem
}
}
}
}
...
@@ -403,7 +404,7 @@ window.rulesAssistantOptions = (function() {
...
@@ -403,7 +404,7 @@ window.rulesAssistantOptions = (function() {
render(label, selected) {
render(label, selected) {
const container = document.createElement("div")
const container = document.createElement("div")
container.classList.add("rajs-listitem")
container.classList.add("rajs-listitem")
const labelel = document.createElement("span")
const labelel = document.createElement("span")
labelel.innerHTML = label
labelel.innerHTML = label
...
@@ -579,7 +580,7 @@ window.rulesAssistantOptions = (function() {
...
@@ -579,7 +580,7 @@ window.rulesAssistantOptions = (function() {
["Never", "Always", "Custom"].forEach(i => this.fnlist.appendChild(i))
["Never", "Always", "Custom"].forEach(i => this.fnlist.appendChild(i))
["Devotion", "Trust", "Health", "Sex drive", "Weight", "Age", "Body Age", "Visible Age", "Muscles", "Lactation", "Pregnancy", "Pregnancy Multiples", "Belly Implant", "Belly Size"].forEach(i => this.fnlist.appendChild(i, this.getAttribute(i)))
["Devotion", "Trust", "Health", "Sex drive", "Weight", "Age", "Body Age", "Visible Age", "Muscles", "Lactation", "Pregnancy", "Pregnancy Multiples", "Belly Implant", "Belly Size"].forEach(i => this.fnlist.appendChild(i, this.getAttribute(i)))
this.fnlist.onchange = () => this.fnchanged
this.fnlist.onchange = () => this.fnchanged
switch(V.currentRule.condition.function) {
switch(V.currentRule.condition.function) {
case "Never":
case "Never":
case "Always":
case "Always":
...
@@ -939,7 +940,7 @@ window.rulesAssistantOptions = (function() {
...
@@ -939,7 +940,7 @@ window.rulesAssistantOptions = (function() {
]
]
nclothes.forEach(pair => nice.appendChild(new ListItem(...pair)))
nclothes.forEach(pair => nice.appendChild(new ListItem(...pair)))
fsnclothes.forEach(pair => { if (isItemAccessible(pair[1])) nice.appendChild(new ListItem(...pair))})
fsnclothes.forEach(pair => { if (isItemAccessible(pair[1])) nice.appendChild(new ListItem(...pair))})
harsh = new ListSubSection()
harsh = new ListSubSection()
this.appendChild(harsh)
this.appendChild(harsh)
...
@@ -1183,7 +1184,7 @@ window.rulesAssistantOptions = (function() {
...
@@ -1183,7 +1184,7 @@ window.rulesAssistantOptions = (function() {
["None", () => this.none()]
["None", () => this.none()]
]
]
pairs.forEach(pair => this.appendChild(new OptionsItem(...pair)))
pairs.forEach(pair => this.appendChild(new OptionsItem(...pair)))
this.breasts = new BreastGrowthList()
this.breasts = new BreastGrowthList()
this.butts = new ButtGrowthList()
this.butts = new ButtGrowthList()
this.lips = new LipGrowthList()
this.lips = new LipGrowthList()
...
@@ -1587,7 +1588,7 @@ window.rulesAssistantOptions = (function() {
...
@@ -1587,7 +1588,7 @@ window.rulesAssistantOptions = (function() {
["Chastity", "chastity"],
["Chastity", "chastity"],
["Situational", "situational"]
["Situational", "situational"]
].forEach(pair => this.appendChild(new ListItem(...pair)))
].forEach(pair => this.appendChild(new ListItem(...pair)))
this.selec
T
Value(V.currentRule.set.standardPunishment)
this.selec
t
Value(V.currentRule.set.standardPunishment)
this.onchange = (label, value) => V.currentRule.set.standardPunishment = value
this.onchange = (label, value) => V.currentRule.set.standardPunishment = value
}
}
}
}
...
@@ -1670,6 +1671,8 @@ window.rulesAssistantOptions = (function() {
...
@@ -1670,6 +1671,8 @@ window.rulesAssistantOptions = (function() {
].forEach(pair => this.appendChild(new ListItem(...pair)))
].forEach(pair => this.appendChild(new ListItem(...pair)))
this.selectValue(V.currentRule.set.clitSettingXX)
this.selectValue(V.currentRule.set.clitSettingXX)
this.onchange = (label, value) => V.currentRule.set.clitSettingXX = value
this.onchange = (label, value) => V.currentRule.set.clitSettingXX = value
}
}
class SmartEnergyList extends List {
class SmartEnergyList extends List {
constructor() {
constructor() {
...
@@ -1728,10 +1731,224 @@ window.rulesAssistantOptions = (function() {
...
@@ -1728,10 +1731,224 @@ window.rulesAssistantOptions = (function() {
["4000", "4000", 4000],
["4000", "4000", 4000],
["5000", "5000", 5000]
["5000", "5000", 5000]
].forEach(pair => this.appendChild(new ListItem(...pair)))
].forEach(pair => this.appendChild(new ListItem(...pair)))
this.selectValue(V.currentRule.set)
this.selectValue(V.currentRule.set.pornFameSpending)
this.onchange = (label,value) => V.currentRule.set = value
this.onchange = (label,value) => V.currentRule.set.pornFameSpending = value
}
}
class CosmeticSection extends List {
constructor() {
this.appendChild(EyewearList)
this.appendChild(LensesList)
this.appendChild(MakeupList)
this.appendChild(NailsList)
this.appendChild(HairLengthList)
this.appendChild(HairColourList)
this.appendChild(HairStyleList)
this.appendChild(PubicHairColourList)
this.appendChild(PubicHairStyleList)
this.appendChild(ArmpitHairColourList)
this.appendChild(ArmpitHairStyleList)
}
}
class EyewearList extends List {
constructor() {
super("Eyewear")
[
["no default setting"],
["correct with contacts"],
["universal glasses"],
["blur with glasses"],
["blur with contacts"],
].forEach(pair => this.appendChild(new ListItem(...pair)))
this.selectValue(V.currentRule.set.eyewear)
this.onchange = (label, value) => V.currentRule.set.eyewear = value
}
}
class LensesList extends Element {
constructor() {
super(V.currentRule.set.eyeColor)
this.appendChild(new OptionsItem("No default Setting", () => this.setValue("no default setting")))
this.colourlist = new LensesColourList()
this.shapelist = new LensesShapeList()
this.appendChild(this.colourlist)
this.appendChild(this.shapelist)
}
render(color) {
const elem = document.createElement("div")
elem.innerHTML = "Eye coloring: "
this.label = document.createElement("strong")
this.label.innerText = coloring
elem.appendChild(this.label)
}
combine() {
const lst = []
if (this.colourlist.value !== "no default setting")
lst.appendChild(this.colourlist.value)
if (this.shapelist.value !== "no default setting")
list.appendChild(this.shapelist.value)
if (lst.length === 0) return "no default value"
else return lst.join(" ")
}
set_value() {
const tmp = this.combine()
this.label.innerText = tmp
V.currentRule.set.eyeColor = tmp
}
}
class LensesColourList extends Options {
constructor() {
super("Color:")
[
["no default setting"]
["blue"],
["black"],
["brown"],
["green"],
["turquoise"],
["sky-blue"],
["hazel"],
["pale-grey"],
["white"],
["pink"],
["amber"],
["red"]
].forEach(i => this.appendChild(new OptionsItem(i, item => {
this.value = item.label
this.parent.set_value()
})))
}
}
class LensesShapeList extends Options {
constructor() {
super("Shape:")
[
["no default setting"],
["catlike"],
["serpent-like"],
["devilish"],
["demonic"],
["hypnotic"],
["heart-shaped"],
["wide-eyed"],
["almond-shaped"],
["bright"],
["teary"],
["vacant"],
].forEach(i => this.appendChild(new OptionsItem(i, item => {
this.value = item.label
this.parent.set_value()
})))
}
}
class MakeupList extends List {
constructor() {
super("Makeup")
[
["no default setting"],
["makeup-free", "makeup-free", 0],
["nice", "nice", 1],
["gorgeous", "gorgeous", 2],
["color-coordinate with hair", "color-coordinate with hair", 3],
["slutty", "slutty", 4]
].forEach(pair => this.appendChild(new ListItem(...pair)))
this.selectValue(V.currentRule.set.makeup)
this.onchange = (label, value) => V.currentRule.set.makeup = value
}
}
class NailsList extends List {
constructor() {
super("Nails")
[
[],
].forEach(pair => this.appendChild(new ListItem(...pair)))
this.selectValue(V.currentRule.set.nails)
this.onchange = (label, value) => V.currentRule.set.nails = value
}
}
}
}
return rulesAssistantOptions
class HairLengthList extends List {
constructor() {
super("Nails")
[
[],
].forEach(pair => this.appendChild(new ListItem(...pair)))
this.selectValue(V.currentRule.set.nails)
this.onchange = (label, value) => V.currentRule.set.nails = value
}
}
class HairColourList extends List {
constructor() {
super("Nails")
[
[],
].forEach(pair => this.appendChild(new ListItem(...pair)))
this.selectValue(V.currentRule.set.nails)
this.onchange = (label, value) => V.currentRule.set.nails = value
}
}
class HairStyleList extends List {
constructor() {
super("Nails")
[
[],
].forEach(pair => this.appendChild(new ListItem(...pair)))
this.selectValue(V.currentRule.set.nails)
this.onchange = (label, value) => V.currentRule.set.nails = value
}
}
class PubicHairColourList extends List {
constructor() {
super("Nails")
[
[],
].forEach(pair => this.appendChild(new ListItem(...pair)))
this.selectValue(V.currentRule.set.nails)
this.onchange = (label, value) => V.currentRule.set.nails = value
}
}
class PubicHairStyleList extends List {
constructor() {
super("Nails")
[
[],
].forEach(pair => this.appendChild(new ListItem(...pair)))
this.selectValue(V.currentRule.set.nails)
this.onchange = (label, value) => V.currentRule.set.nails = value
}
}
class ArmpitHairColourList extends List {
constructor() {
super("Nails")
[
[],
].forEach(pair => this.appendChild(new ListItem(...pair)))
this.selectValue(V.currentRule.set.nails)
this.onchange = (label, value) => V.currentRule.set.nails = value
}
}
class ArmpitHairStyleList extends List {
constructor() {
super("Nails")
[
[],
].forEach(pair => this.appendChild(new ListItem(...pair)))
this.selectValue(V.currentRule.set.nails)
this.onchange = (label, value) => V.currentRule.set.nails = value
}
}
})()
})()
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