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:Live2DSwitcher: 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
No edit summary
No edit summary
Line 9: Line 9:
       var doll = container.data('t-doll');
       var doll = container.data('t-doll');
       mw.loader.using('ext.gadget.live2d').then(function() {
       mw.loader.using('ext.gadget.live2d').then(function() {
         var ul = $(this).find('ul');
         var ul = container.find('ul');
         var settings = gfUtils.live2dUtils.convertSettingsFromUl(ul);
         var settings = gfUtils.live2dUtils.convertSettingsFromUl(ul);
         for (costume in settings) {
         for (costume in settings) {
Line 18: Line 18:
               name = costume.costumeId + " - " + variant.variantId;
               name = costume.costumeId + " - " + variant.variantId;
             }
             }
             $('#mySelect').append($('<option>', {
             container.find('.live2dswitcher').append($('<option>', {
               value: id,
               value: id,
               text: name
               text: name
Line 48: Line 48:


</script>
</script>
<select class="gf-droplist" style="flex-grow: 1;" autocomplete="off" onchange="swap_model(this)" >
<select class="gf-droplist live2dswitcher" style="flex-grow: 1;" autocomplete="off" onchange="swap_model(this)" >
<!--<option value="<!--{$defaultpaths|escape:'html'}-->" selected="selected"></option>-->
<!--<option value="<!--{$defaultpaths|escape:'html'}-->" selected="selected"></option>-->
</select></includeonly><noinclude>
</select></includeonly><noinclude>

Revision as of 15:28, 15 September 2018