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
Container registry
Model registry
Operate
Environments
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
pregmodfan
fc-pregmod
Commits
7e76d695
Commit
7e76d695
authored
6 years ago
by
prndev
Browse files
Options
Downloads
Patches
Plain Diff
JSified outfit colour helper for vector art (deepmurk's variant).
parent
4819d5ab
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!2308
Vectorart jsification
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/art/vector/Set_Colour_Outfit.tw
+3
-36
3 additions, 36 deletions
src/art/vector/Set_Colour_Outfit.tw
src/art/vector/Set_Colour_Outfit_JS.tw
+51
-0
51 additions, 0 deletions
src/art/vector/Set_Colour_Outfit_JS.tw
with
54 additions
and
36 deletions
src/art/vector/Set_Colour_Outfit.tw
+
3
−
36
View file @
7e76d695
...
@@ -4,39 +4,6 @@
...
@@ -4,39 +4,6 @@
/* BEWARE: _outfitBaseColour is read by Wardrobe Use */
/* BEWARE: _outfitBaseColour is read by Wardrobe Use */
/* BEWARE: _glassesColour is read by Wardrobe Use */
/* BEWARE: _glassesColour is read by Wardrobe Use */
<<unset _outfitBaseColour>>
<<set _s = Art_Vector_Set_Colour_Outfit(_artSlave) >>
<<set _outfitBaseColour = _s.outfitBaseColour>>
<<if _artSlave.fuckdoll != 0 || _artSlave.clothes == "restrictive latex" || _artSlave.clothes == "a latex catsuit" || _artSlave.clothes == "a cybersuit">>
<<set _glassesColour = _s.glassesColor>>
<<set _outfitBaseColour = "#515351" >> /* standard "black rubber" latex colour */
<<if def _artSlave.clothingBaseColor>>
<<set _outfitBaseColour = _artSlave.clothingBaseColor >> /* latex colour selected by user */
/* TODO: rewrite all textual descriptions not to explicitly mention the latex being of black colour. */
<</if>>
<</if>>
<<if _artSlave.fuckdoll != 0 || _artSlave.clothes == "a comfortable bodysuit">>
<<set _outfitBaseColour = "#464646" >> /* bodysuit */
<<if def _artSlave.clothingBaseColor>>
<<set _outfitBaseColour = _artSlave.clothingBaseColor >> /* bodysuit colour selected by user */
<</if>>
<</if>>
/* head addons */
<<switch _artSlave.eyewear>>
<<case "corrective glasses" "glasses" "blurring glasses">>
<<set _glassesColour = "#010101">>
<<default>>
/* use colour for "glasses" by default */
<<set _glassesColour = "#010101">>
<</switch>>
<<switch _artSlave.collar>>
<<case "porcelain mask">>
<<set _glassesColour = "#FFFFFF">>
<<default>>
/* use colour for "mask" by default */
<<set _glassesColour = "#010101">>
<</switch>>
<<if def _artSlave.glassesColor>>
<<set _glassesColour = _artSlave.glassesColor>> /* glasses colour selected by user */
<</if>>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/art/vector/Set_Colour_Outfit_JS.tw
0 → 100644
+
51
−
0
View file @
7e76d695
:: Art_Vector_Set_Colour_Outfit_JS [script]
window.Art_Vector_Set_Colour_Outfit = function(artSlave) {
var s = {
outfitBaseColour : undefined,
glassesColour : undefined
}
if (artSlave.fuckdoll != 0 || artSlave.clothes == "restrictive latex" || artSlave.clothes == "a latex catsuit" || artSlave.clothes == "a cybersuit") {
s.outfitBaseColour = "#515351" ; /* standard "black rubber" latex colour */
if (artSlave.clothingBaseColor) {
s.outfitBaseColour = artSlave.clothingBaseColor ; /* latex colour selected by user */
/* TODO: rewrite all textual descriptions not to explicitly mention the latex being of black colour. */
}
}
if (artSlave.fuckdoll != 0 || artSlave.clothes == "a comfortable bodysuit") {
s.outfitBaseColour = "#464646" ; /* bodysuit */
if (artSlave.clothingBaseColor) {
s.outfitBaseColour = artSlave.clothingBaseColor ; /* bodysuit colour selected by user */
}
}
/* head addons */
switch (artSlave.eyewear) {
case "corrective glasses":
case "glasses":
case "blurring glasses":
s.glassesColour = "#010101";
break;
default:
/* use colour for "glasses" by default */
s.glassesColour = "#010101";
}
switch (artSlave.collar) {
case "porcelain mask":
s.glassesColour = "#FFFFFF";
break;
default:
/* use colour for "mask" by default */
s.glassesColour = "#010101";
}
if (artSlave.glassesColor) {
s.glassesColour = artSlave.glassesColor; /* glasses colour selected by user */
}
return s;
}
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