Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var PARTY;
- var PARTY_ICON;
- var PARTY_ICON_INSTANCE_NAME = "partyIcon";
- function showIcons()
- {
- ICONS._visible = true;
- MAIL_ICON._visible = true;
- MOD_ICON._visible = true;
- EPFMissionHUDLayer._visible = true;
- var _loc2 = SHELL.isPlayerMascotById(SHELL.getMyPlayerId());
- MOD_ICON._visible = !shell.getIsRoomIgloo() || _loc2;
- if (shell.getIsRoomIgloo())
- {
- if (_loc2)
- {
- MOD_ICON._x = 137;
- } // end if
- }
- else
- {
- MOD_ICON._x = defaultModIconPos;
- } // end else if
- if (com.clubpenguin.login.LocalData.getStoredNewspaperIssue() == getCurrentNews())
- {
- NEWS_ICON.new_mc._visible = false;
- }
- else
- {
- NEWS_ICON.new_mc._visible = true;
- } // end else if
- NEWS_ICON.news_btn.onRelease = onNewsButtonRelease;
- showPhoneIcon();
- MAIL_ICON.mail_btn.onRelease = function ()
- {
- shell.showMail();
- };
- showMapIcon();
- EGG_TIMER_ICON.clock_btn.onRelease = function ()
- {
- showContent("egg_timer");
- };
- MOD_ICON.shield_btn.onRelease = function ()
- {
- if (shell.isPlayerMascotById(shell.getMyPlayerId()))
- {
- var _loc1 = interface_mc.widgets_mc.mascotScriptClip;
- if (_loc1 == null)
- {
- _loc1 = interface_mc.widgets_mc.attachMovie("com.clubpenguin.ui.MascotScript", "mascotScriptClip", interface_mc.widgets_mc.getNextHighestDepth());
- centerWidget(_loc1);
- } // end if
- _loc1.show();
- }
- else
- {
- showContent("mod_help");
- } // end else if
- };
- if (displayScavengerHunt())
- {
- showPartyIcon("scavenger_hunt_icon");
- }
- else if (displayFairTickets())
- {
- showPartyIcon("scavenger_hunt_icon");
- }
- else if (displayPartyIcon())
- {
- showPartyIcon("party_icon");
- } // end else if
- } // End of the function
- function displayPartyIcon()
- {
- var _loc1 = SHELL.getPartyOptions();
- if (_loc1.party_icon_active && !SHELL.isInSoloRoom())
- {
- return (true);
- }
- else if (_loc1.party_icon_active == undefined)
- {
- } // end else if
- return (false);
- } // End of the function
- function showPartyIcon(partyIcon)
- {
- var _loc2 = new com.clubpenguin.hybrid.HybridMovieClipLoader();
- if (PARTY_ICON)
- {
- setPartyIconPositionForLikeWindow();
- return;
- } // end if
- var _loc3 = SHELL.getPath(partyIcon);
- var _loc4 = com.clubpenguin.util.URLUtils.getCacheResetURL(_loc3);
- PARTY_ICON = ICONS.createEmptyMovieClip(PARTY_ICON_INSTANCE_NAME, 1);
- _loc2.addEventListener(com.clubpenguin.hybrid.HybridMovieClipLoader.EVENT_ON_LOAD_COMPLETE, com.clubpenguin.util.Delegate.create(this, onPartyIconLoad));
- _loc2.loadClip(_loc4, PARTY_ICON, "icons.as loadPartyIcon()");
- } // End of the function
- function onPartyIconLoad(event)
- {
- if (EGG_TIMER_ICON._visible)
- {
- PARTY_ICON._x = PARTY_ICON._x - 58;
- } // end if
- defaultPartyIconPos = PARTY_ICON._x;
- setPartyIconPositionForLikeWindow();
- } // End of the function
- function setPartyIconPositionForLikeWindow()
- {
- if (shell.getIsRoomIgloo())
- {
- PARTY_ICON._x = defaultPartyIconPos - 100;
- }
- else
- {
- PARTY_ICON._x = defaultPartyIconPos;
- } // end else if
- } // End of the function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement