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
Setting the dorm spritemap for the selected option of the costume
Undo revision 33029 by Messing with data (talk)
Line 22: Line 22:
         var chibiCostumeName = "";
         var chibiCostumeName = "";
         if (costumeSelectionIndex != 0) {
         if (costumeSelectionIndex != 0) {
           chibiCostumeName = "_costume" + costumeSelectionIndex;
           chibiCostumeName = "_costume" + costumeSelectionIndex
         }
         }
        var selectedOption = selectBox.find(':selected');
        selectBox.closest('.costumeContainer').find('.tdoll_chibi').attr('data-tdoll-use-dorm-spritemap', selectedOption.attr('data-tdoll-use-dorm-spritemap')=="true");


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

Revision as of 14:46, 21 January 2018


test