Welcome to IOPWiki, Commander.
We are searching for editors to complete gameplay topics in all games. You can contribute without an account. Learn how to contribute and join our Discord server.

Widget:costumeSwitcher: 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
swap_costume now triggers "costume_changed" for all ".chibiAnimation,.live2dAnimation" in the surrounding ".costumeContainer"
Select Box reference corrected
Line 1: Line 1:
<includeonly><script>
<includeonly><script>
function swap_costume(element) {
function swap_costume(element) {
         costumeSelectionPathsString = document.getElementById("costumeSelection").value;
        var selectBox = $(element);
         costumeSelectionIndex = document.getElementById("costumeSelection").selectedIndex;
       
         costumeSelectionPathsString = selectBox.value();
         costumeSelectionIndex = selectBox.prop('selectedIndex');
          
          
         var chibiCostumeName = "";
         var chibiCostumeName = "";
Line 9: Line 11:
         }
         }


         $(element).closest('.costumeContainer').find('.chibiAnimation,.live2dAnimation').trigger("costume_changed", chibiCostumeName);
         selectBox.closest('.costumeContainer').find('.chibiAnimation,.live2dAnimation').trigger("costume_changed", chibiCostumeName);


         costumePaths = costumeSelectionPathsString.split(",,");
         costumePaths = costumeSelectionPathsString.split(",,");

Revision as of 15:34, 7 January 2018


test