Advertisement
Guest User

test

a guest
Apr 26th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. ;var ShopComponent = $i_64.extend({
  2. classId: 'ShopComponent',
  3. componentId: 'shop',
  4. init: function(entity, options) {
  5. var self = this;
  6. if (ige.isClient) {
  7. self.unitSkinCount = {};
  8. self.itemSkinCount = {};
  9. self.skinItems = {};
  10. self.currentPagination = 1;
  11. self.perPageItems = 99;
  12. self.currentType = '';
  13. self.oldModalHTMLBody = '';
  14. if (!ige.mobileControls.isMobile) {
  15. $('.open-modd-shop-button').show().on('click', function() {
  16. var player = ige.client.myPlayer;
  17. if (player && !player._stats.isAdBlockEnabled) {
  18. countAdImpression(gameId, 'shop')
  19. }
  20. self.openModdShop()
  21. })
  22. }
  23. $('.open-coin-shop-button').show().on('click', function() {
  24. self.openCoinShop()
  25. });
  26. $('.shop-navbar .nav-item').on('click', function() {
  27. $('.shop-navbar .nav-link').each(function() {
  28. $(this).removeClass('active')
  29. });
  30. self.shopType = $(this).find('.nav-link').attr('name');
  31. self.shopKey = '';
  32. $('#modd-shop-modal .shop-items').html('');
  33. $(this).find('.nav-link').addClass('active');
  34. self.updateModdShop()
  35. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement