Welcome to IOPWiki, Commander.
We are searching for new editors to keep track of Girls' Frontline 2 content, as well as veteran players to complete the data of Girls' Frontline and Project Neural Cloud characters.
You can contribute without an account. Learn how to contribute and join our Discord server.

Widget:chibiCommander: Difference between revisions

Welcome to IOP Wiki. This website is maintained by the Girls' Frontline community and is free to edit by anyone.
Jump to navigation Jump to search
Dynamic resources
Using colorkey for naming
 
(3 intermediate revisions by the same user not shown)
Line 46: Line 46:
for (var costumeKey in part.costumes) {
for (var costumeKey in part.costumes) {
var costume = part.costumes[costumeKey];
var costume = part.costumes[costumeKey];
var colIdx = -1;
for (var colorKey in costume.colors) {
for (var colorKey in costume.colors) {
var color = costume.colors[colorKey];
var color = costume.colors[colorKey];
var colName = colIdx == -1 ? "(Default)" : colIdx;
var colName = "(" + colorKey + ")";
$('.commander-sim-option.' + part.typ).append($('<option>', {
$('.commander-sim-option.' + part.typ).append($('<option>', {
Line 92: Line 91:
</script>
</script>
<div class="commander-chibi-container"><div id="cancan" class="chibiAnimationContainer commander-chibi" data-tdoll-hidedormbutton="true"></div></div>
<div class="commander-chibi-container"><div id="cancan" class="chibiAnimationContainer commander-chibi" data-tdoll-hidedormbutton="true"></div></div>
<div class="commander-chibi-controls-panel"><div class="commander-chibi-controls-panel-resources" style="display:none;"><!--{$data}--></div>
<div class="commander-chibi-controls-panel">
                       <label class="commander-sim-option-label head">Head:
                       <label class="commander-sim-option-label head">Head:
<select class="gf-droplist commander-sim-option head" autocomplete="off"></select>
<select class="gf-droplist commander-sim-option head" autocomplete="off"></select>
Line 102: Line 101:
<select class="gf-droplist commander-sim-option feet" autocomplete="off"></select>
<select class="gf-droplist commander-sim-option feet" autocomplete="off"></select>
                       </label>
                       </label>
</div></includeonly><noinclude>{{#widget:chibiCommander|data={{Widget:{{BASEPAGENAME}}/commanderResources}}}}</noinclude>
</div></includeonly><noinclude>{{#widget:chibiCommander}}</noinclude>

Latest revision as of 14:40, 28 November 2019