mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 01:27:51 -05:00
Brought up to date with the private repository (feea4c7)
This commit is contained in:
1 parent
1aa738d692
commit
1b1df1ae48
7925 files changed
+2617237
-20
No files matched your search
@@ -0,0 +1,603 @@
|
||||
package ecard
|
||||
{
|
||||
import den.DenXtCommManager;
|
||||
import flash.display.MovieClip;
|
||||
import flash.text.TextField;
|
||||
import flash.text.TextFormat;
|
||||
import loader.MediaHelper;
|
||||
import localization.LocalizationManager;
|
||||
|
||||
public class ECard
|
||||
{
|
||||
|
||||
public static const TYPE_STANDARD:int = 0;
|
||||
|
||||
public static const TYPE_CLOTHING:int = 1;
|
||||
|
||||
public static const TYPE_BUDDY:int = 2;
|
||||
|
||||
public static const TYPE_DEN_ACC:int = 3;
|
||||
|
||||
public static const TYPE_GEMS:int = 4;
|
||||
|
||||
public static const TYPE_DEN_ROOM:int = 5;
|
||||
|
||||
public static const TYPE_AVT:int = 6;
|
||||
|
||||
public static const TYPE_SUBSCRIPTION:int = 7;
|
||||
|
||||
public static const TYPE_PET:int = 8;
|
||||
|
||||
public static const TYPE_DIAMOND:int = 9;
|
||||
|
||||
public static const TYPE_CUSTOM_AVT:int = 10;
|
||||
|
||||
public static const TYPE_EMAIL_RESET:int = 11;
|
||||
|
||||
public static const TYPE_ADOPT_A_PET:int = 12;
|
||||
|
||||
public static const TYPE_PROMOTION:int = 13;
|
||||
|
||||
public static const TYPE_DEN_AUDIO:int = 99;
|
||||
|
||||
public static const CARD_ID_REDEMPTION:int = 0;
|
||||
|
||||
public static const CARD_ID_BULK:int = -1;
|
||||
|
||||
public static const ECARD_REDEMPTION_STAMP_NORMAL:int = 0;
|
||||
|
||||
public static const ECARD_REDEMPTION_STAMP_AJJUMP:int = 1;
|
||||
|
||||
public static const ECARD_REDEMPTION_STAMP_DIAMOND_REFUND:int = 2;
|
||||
|
||||
public static const ECARD_REDEMPTION_STAMP_REFERRAL:int = 3;
|
||||
|
||||
public static const MESSAGE_TYPE_BUBBLECHAT:int = 1;
|
||||
|
||||
public static const MESSAGE_TYPE_LIMITEDCHAT:int = 2;
|
||||
|
||||
public static const SENDER_USER:int = 0;
|
||||
|
||||
public static const SENDER_VOICE:int = 1;
|
||||
|
||||
public static const SENDER_REDEM:int = 2;
|
||||
|
||||
public static const SPECIAL_TYPE_NORMAL:int = 0;
|
||||
|
||||
public static const SPECIAL_TYPE_VALENTINES:int = 1;
|
||||
|
||||
private var _msgId:int;
|
||||
|
||||
private var _senderUserName:String;
|
||||
|
||||
private var _cardMediaId:int;
|
||||
|
||||
private var _stampMediaId:int;
|
||||
|
||||
private var _isRead:Boolean;
|
||||
|
||||
private var _msg:String;
|
||||
|
||||
private var _type:int;
|
||||
|
||||
private var _secondaryType:int;
|
||||
|
||||
private var _giftId:int;
|
||||
|
||||
private var _giftColor:uint;
|
||||
|
||||
private var _giftName:String;
|
||||
|
||||
private var _senderType:int;
|
||||
|
||||
private var _senderSGAccountType:int;
|
||||
|
||||
private var _senderNameBarData:int;
|
||||
|
||||
private var _userNameModerationFlag:int;
|
||||
|
||||
private var _messageTxt:TextField;
|
||||
|
||||
private var _stampCont:MovieClip;
|
||||
|
||||
private var _isReadInProcess:Boolean;
|
||||
|
||||
private var _additionalGiftData:String;
|
||||
|
||||
private var _specialType:int;
|
||||
|
||||
private var _cardImg:MovieClip;
|
||||
|
||||
private var _cardImgHelper:MediaHelper;
|
||||
|
||||
private var _stampImg:MovieClip;
|
||||
|
||||
private var _stampImgHelper:MediaHelper;
|
||||
|
||||
private var _acceptBtn:MovieClip;
|
||||
|
||||
private var _rejectBtn:MovieClip;
|
||||
|
||||
private var _memberNameBar:MovieClip;
|
||||
|
||||
private var _nonMemberNameBar:MovieClip;
|
||||
|
||||
private var _nonMemberUserName:TextField;
|
||||
|
||||
private var _charBox:MovieClip;
|
||||
|
||||
private var _linkToBtn:MovieClip;
|
||||
|
||||
private var _changeEmailBtn:MovieClip;
|
||||
|
||||
private var _cancelEmailBtn:MovieClip;
|
||||
|
||||
private var _buttonsLoadedCallback:Function;
|
||||
|
||||
public function ECard()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function init(param1:int, param2:String, param3:int, param4:int, param5:Boolean, param6:String, param7:int, param8:int, param9:uint, param10:String, param11:int, param12:int, param13:int, param14:int, param15:int, param16:String, param17:int) : void
|
||||
{
|
||||
_msgId = param1;
|
||||
_senderUserName = param2;
|
||||
_cardMediaId = param3;
|
||||
_stampMediaId = param4;
|
||||
_isRead = param5;
|
||||
_msg = param6;
|
||||
_type = param7;
|
||||
_giftId = param8;
|
||||
_giftColor = param9;
|
||||
_giftName = param10;
|
||||
_senderSGAccountType = param11;
|
||||
_senderNameBarData = param12;
|
||||
_secondaryType = param13;
|
||||
_senderType = param14;
|
||||
_userNameModerationFlag = param15;
|
||||
_additionalGiftData = param16;
|
||||
_specialType = param17;
|
||||
if(param7 == 3 && DenXtCommManager.getDenItemDef(_giftId) != null)
|
||||
{
|
||||
if(DenXtCommManager.getDenItemDef(_giftId).sortCat == 4)
|
||||
{
|
||||
_type = 99;
|
||||
}
|
||||
}
|
||||
else if(param7 == 0 && _giftId > 0)
|
||||
{
|
||||
_giftId = 0;
|
||||
}
|
||||
if(param17 == 1)
|
||||
{
|
||||
_senderUserName = LocalizationManager.translateIdOnly(32191);
|
||||
}
|
||||
else if(isFromVoice)
|
||||
{
|
||||
_senderUserName = LocalizationManager.translateIdOnly(int(_senderUserName));
|
||||
}
|
||||
_stampImg = new MovieClip();
|
||||
_cardImg = new MovieClip();
|
||||
}
|
||||
|
||||
public function get msgId() : int
|
||||
{
|
||||
return _msgId;
|
||||
}
|
||||
|
||||
public function get senderUserName() : String
|
||||
{
|
||||
return _senderUserName;
|
||||
}
|
||||
|
||||
public function get senderModeratedUserName() : String
|
||||
{
|
||||
if(_specialType == 1 || _userNameModerationFlag > 0)
|
||||
{
|
||||
return _senderUserName;
|
||||
}
|
||||
return LocalizationManager.translateIdOnly(11098);
|
||||
}
|
||||
|
||||
public function get cardMediaId() : int
|
||||
{
|
||||
return _cardMediaId;
|
||||
}
|
||||
|
||||
public function get stampMediaId() : int
|
||||
{
|
||||
return _stampMediaId;
|
||||
}
|
||||
|
||||
public function get isRead() : Boolean
|
||||
{
|
||||
return _isRead;
|
||||
}
|
||||
|
||||
public function set isRead(param1:Boolean) : void
|
||||
{
|
||||
_isRead = param1;
|
||||
}
|
||||
|
||||
public function get msg() : String
|
||||
{
|
||||
return _msg;
|
||||
}
|
||||
|
||||
public function set msg(param1:String) : void
|
||||
{
|
||||
_msg = param1;
|
||||
}
|
||||
|
||||
public function get modifiedMsg() : String
|
||||
{
|
||||
var _loc1_:String = null;
|
||||
if(_msg == "")
|
||||
{
|
||||
if(_cardImg.numChildren == 0)
|
||||
{
|
||||
cardImg;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
if(isFromVoice)
|
||||
{
|
||||
if(_type == 11)
|
||||
{
|
||||
return LocalizationManager.translateIdOnly(24440);
|
||||
}
|
||||
if(isNaN(parseInt(_msg)))
|
||||
{
|
||||
return _msg;
|
||||
}
|
||||
_loc1_ = LocalizationManager.translateIdOnly(parseInt(_msg));
|
||||
if(_loc1_.indexOf("%s") == -1)
|
||||
{
|
||||
return _loc1_;
|
||||
}
|
||||
return LocalizationManager.translateIdAndInsertOnly(parseInt(_msg),_additionalGiftData);
|
||||
}
|
||||
if(!ECardManager.isECardTextValid(_msg))
|
||||
{
|
||||
_msg = LocalizationManager.translateIdOnly(28985);
|
||||
}
|
||||
return _msg;
|
||||
}
|
||||
|
||||
public function get isBuddy() : Boolean
|
||||
{
|
||||
return _type == 2;
|
||||
}
|
||||
|
||||
public function get isGift() : Boolean
|
||||
{
|
||||
return (_type == 1 || _type >= 3) && _type != 11;
|
||||
}
|
||||
|
||||
public function get isEmailReset() : Boolean
|
||||
{
|
||||
return _type == 11;
|
||||
}
|
||||
|
||||
public function get giftId() : int
|
||||
{
|
||||
return _giftId;
|
||||
}
|
||||
|
||||
public function get giftColor() : uint
|
||||
{
|
||||
return _giftColor;
|
||||
}
|
||||
|
||||
public function get giftName() : String
|
||||
{
|
||||
return _giftName;
|
||||
}
|
||||
|
||||
public function set giftName(param1:String) : void
|
||||
{
|
||||
_giftName = param1;
|
||||
}
|
||||
|
||||
public function get isSenderMember() : Boolean
|
||||
{
|
||||
return _senderSGAccountType >= 2;
|
||||
}
|
||||
|
||||
public function get isSenderArchived() : Boolean
|
||||
{
|
||||
return _senderSGAccountType == -2;
|
||||
}
|
||||
|
||||
public function get senderSGAccountType() : int
|
||||
{
|
||||
return _senderSGAccountType;
|
||||
}
|
||||
|
||||
public function get isFromUser() : Boolean
|
||||
{
|
||||
return _senderType == 0;
|
||||
}
|
||||
|
||||
public function get isFromVoice() : Boolean
|
||||
{
|
||||
return _senderType == 1;
|
||||
}
|
||||
|
||||
public function get isStartupJAG() : Boolean
|
||||
{
|
||||
return _senderType == 2 || !gMainFrame.userInfo.isMember && isAJHQGift || _cardMediaId == -1;
|
||||
}
|
||||
|
||||
public function get isRedemptionJAG() : Boolean
|
||||
{
|
||||
if(isStartupJAG && (giftId > 0 || type == 4 || type == 7 || type == 13 || type == 9))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function get isAJHQGift() : Boolean
|
||||
{
|
||||
return isFromVoice && _giftId > 0;
|
||||
}
|
||||
|
||||
public function get isBulkItem() : Boolean
|
||||
{
|
||||
return _cardMediaId == -1;
|
||||
}
|
||||
|
||||
public function get type() : int
|
||||
{
|
||||
return _type;
|
||||
}
|
||||
|
||||
public function set type(param1:int) : void
|
||||
{
|
||||
_type = param1;
|
||||
}
|
||||
|
||||
public function get secondaryType() : int
|
||||
{
|
||||
return _secondaryType;
|
||||
}
|
||||
|
||||
public function get nameBarData() : int
|
||||
{
|
||||
return _senderNameBarData;
|
||||
}
|
||||
|
||||
public function set nameBarData(param1:int) : void
|
||||
{
|
||||
_senderNameBarData = param1;
|
||||
}
|
||||
|
||||
public function get cardImg() : MovieClip
|
||||
{
|
||||
if(_cardImg.numChildren == 0)
|
||||
{
|
||||
if(_cardImgHelper == null)
|
||||
{
|
||||
_cardImgHelper = new MediaHelper();
|
||||
_cardImgHelper.init(_cardMediaId,cardImgReceived);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ECardManager.onECardLoaded(this);
|
||||
}
|
||||
return _cardImg;
|
||||
}
|
||||
|
||||
public function get stampImg() : MovieClip
|
||||
{
|
||||
if(_type != 2 && !isFromVoice)
|
||||
{
|
||||
if(_stampImg.numChildren == 0)
|
||||
{
|
||||
_stampImgHelper = new MediaHelper();
|
||||
_stampImgHelper.init(_stampMediaId,stampImgReceived);
|
||||
}
|
||||
}
|
||||
return _stampImg;
|
||||
}
|
||||
|
||||
public function get acceptBtn() : MovieClip
|
||||
{
|
||||
return _acceptBtn;
|
||||
}
|
||||
|
||||
public function get rejectBtn() : MovieClip
|
||||
{
|
||||
return _rejectBtn;
|
||||
}
|
||||
|
||||
public function get memberNameBar() : MovieClip
|
||||
{
|
||||
return _memberNameBar;
|
||||
}
|
||||
|
||||
public function get nonMemberNameBar() : MovieClip
|
||||
{
|
||||
return _nonMemberNameBar;
|
||||
}
|
||||
|
||||
public function get nonMemberUserName() : TextField
|
||||
{
|
||||
return _nonMemberUserName;
|
||||
}
|
||||
|
||||
public function get charBox() : MovieClip
|
||||
{
|
||||
return _charBox;
|
||||
}
|
||||
|
||||
public function get changeEmailBtn() : MovieClip
|
||||
{
|
||||
return _changeEmailBtn;
|
||||
}
|
||||
|
||||
public function get cancelEmailBtn() : MovieClip
|
||||
{
|
||||
return _cancelEmailBtn;
|
||||
}
|
||||
|
||||
public function get messageTxt() : TextField
|
||||
{
|
||||
return _messageTxt;
|
||||
}
|
||||
|
||||
public function get stampCont() : MovieClip
|
||||
{
|
||||
return _stampCont;
|
||||
}
|
||||
|
||||
public function get isReadInProcess() : Boolean
|
||||
{
|
||||
return _isReadInProcess;
|
||||
}
|
||||
|
||||
public function set isReadInProcess(param1:Boolean) : void
|
||||
{
|
||||
_isReadInProcess = param1;
|
||||
}
|
||||
|
||||
public function get additionalGiftData() : String
|
||||
{
|
||||
return _additionalGiftData;
|
||||
}
|
||||
|
||||
public function get linkToBtn() : MovieClip
|
||||
{
|
||||
return _linkToBtn;
|
||||
}
|
||||
|
||||
public function get specialType() : int
|
||||
{
|
||||
return _specialType;
|
||||
}
|
||||
|
||||
private function cardImgReceived(param1:MovieClip) : void
|
||||
{
|
||||
var _loc3_:TextFormat = null;
|
||||
var _loc2_:MovieClip = param1.getChildAt(0) as MovieClip;
|
||||
if(_loc2_)
|
||||
{
|
||||
param1 = _loc2_;
|
||||
}
|
||||
_cardImg.addChild(param1);
|
||||
if(param1.userNameTxt)
|
||||
{
|
||||
param1.userNameTxt.text = _senderUserName;
|
||||
}
|
||||
if(param1.msgTxt)
|
||||
{
|
||||
_messageTxt = param1.msgTxt;
|
||||
if(modifiedMsg == "")
|
||||
{
|
||||
_msg = _messageTxt.text;
|
||||
}
|
||||
if(isFromUser)
|
||||
{
|
||||
if(modifiedMsg != "")
|
||||
{
|
||||
_messageTxt.text = modifiedMsg;
|
||||
}
|
||||
_loc3_ = _messageTxt.getTextFormat();
|
||||
_loc3_.size = 50;
|
||||
_messageTxt.setTextFormat(_loc3_);
|
||||
if(_messageTxt.textHeight / Number(_messageTxt.getTextFormat().size) > 1 || _messageTxt.textHeight / 50 > 1)
|
||||
{
|
||||
_loc3_.size = 30;
|
||||
_messageTxt.setTextFormat(_loc3_);
|
||||
if(_messageTxt.textHeight / Number(_messageTxt.getTextFormat().size) < 1)
|
||||
{
|
||||
_messageTxt.y += 13;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_messageTxt.setTextFormat(_loc3_);
|
||||
}
|
||||
}
|
||||
else if(modifiedMsg != "" && _type != 11)
|
||||
{
|
||||
LocalizationManager.updateToFit(_messageTxt,modifiedMsg);
|
||||
}
|
||||
}
|
||||
else if(isFromUser)
|
||||
{
|
||||
_msg = LocalizationManager.translateIdOnly(28985);
|
||||
}
|
||||
else
|
||||
{
|
||||
_msg = LocalizationManager.translateIdOnly(24440);
|
||||
}
|
||||
if(param1.stamp)
|
||||
{
|
||||
_stampCont = param1.stamp;
|
||||
_stampCont.addChild(stampImg);
|
||||
}
|
||||
if(_type == 2)
|
||||
{
|
||||
if(param1.okBtn)
|
||||
{
|
||||
_acceptBtn = param1.okBtn;
|
||||
}
|
||||
if(param1.cancelBtn)
|
||||
{
|
||||
_rejectBtn = param1.cancelBtn;
|
||||
}
|
||||
if(param1.member)
|
||||
{
|
||||
_memberNameBar = param1.member;
|
||||
}
|
||||
if(param1.nonmember)
|
||||
{
|
||||
_nonMemberNameBar = param1.nonmember;
|
||||
}
|
||||
if(param1.userName_txt)
|
||||
{
|
||||
_nonMemberUserName = param1.userName_txt;
|
||||
}
|
||||
if(param1.charBox)
|
||||
{
|
||||
_charBox = param1.charBox;
|
||||
}
|
||||
}
|
||||
else if(_type == 11)
|
||||
{
|
||||
if(param1.changeEmailBtn)
|
||||
{
|
||||
_changeEmailBtn = param1.changeEmailBtn;
|
||||
}
|
||||
if(param1.cancelBtn)
|
||||
{
|
||||
_cancelEmailBtn = param1.cancelBtn;
|
||||
}
|
||||
}
|
||||
if((_cardMediaId == 1194 || _cardMediaId == 1630) && _msg != "")
|
||||
{
|
||||
if(param1.hasOwnProperty("txt"))
|
||||
{
|
||||
param1.txt.text = "";
|
||||
}
|
||||
}
|
||||
if(param1.linkTo)
|
||||
{
|
||||
_linkToBtn = param1.linkTo;
|
||||
}
|
||||
ECardManager.onECardLoaded(this);
|
||||
_cardImgHelper.destroy();
|
||||
_cardImgHelper = null;
|
||||
}
|
||||
|
||||
private function stampImgReceived(param1:MovieClip) : void
|
||||
{
|
||||
_stampImg.addChild(param1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
package ecard
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
import flash.text.TextField;
|
||||
import loader.MediaHelper;
|
||||
|
||||
public class ECardImageBase
|
||||
{
|
||||
|
||||
private var _mediaId:int;
|
||||
|
||||
private var _img:MovieClip;
|
||||
|
||||
private var _img2:MovieClip;
|
||||
|
||||
private var _imgHelper:MediaHelper;
|
||||
|
||||
private var _imgHelper2:MediaHelper;
|
||||
|
||||
private var _onImageLoadedCallback:Function;
|
||||
|
||||
public function ECardImageBase()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function init(param1:int, param2:Function = null) : void
|
||||
{
|
||||
_mediaId = param1;
|
||||
_onImageLoadedCallback = param2;
|
||||
_imgHelper = new MediaHelper();
|
||||
_imgHelper.init(_mediaId,imgReceived);
|
||||
_imgHelper2 = new MediaHelper();
|
||||
_imgHelper2.init(_mediaId,img2Received);
|
||||
}
|
||||
|
||||
private function imgReceived(param1:MovieClip) : void
|
||||
{
|
||||
_img = param1.getChildAt(0) as MovieClip;
|
||||
_imgHelper.destroy();
|
||||
_imgHelper = null;
|
||||
if(_img2 && _onImageLoadedCallback != null)
|
||||
{
|
||||
_onImageLoadedCallback();
|
||||
_onImageLoadedCallback = null;
|
||||
}
|
||||
}
|
||||
|
||||
private function img2Received(param1:MovieClip) : void
|
||||
{
|
||||
_img2 = param1.getChildAt(0) as MovieClip;
|
||||
_imgHelper2.destroy();
|
||||
_imgHelper2 = null;
|
||||
if(_img && _onImageLoadedCallback != null)
|
||||
{
|
||||
_onImageLoadedCallback();
|
||||
_onImageLoadedCallback = null;
|
||||
}
|
||||
}
|
||||
|
||||
public function get img() : MovieClip
|
||||
{
|
||||
return _img;
|
||||
}
|
||||
|
||||
public function get img2() : MovieClip
|
||||
{
|
||||
return _img2;
|
||||
}
|
||||
|
||||
public function get mediaId() : int
|
||||
{
|
||||
return _mediaId;
|
||||
}
|
||||
|
||||
public function get stamp() : MovieClip
|
||||
{
|
||||
return _img.stamp;
|
||||
}
|
||||
|
||||
public function get msgTxt() : TextField
|
||||
{
|
||||
return _img.msgTxt;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,357 @@
|
||||
package ecard
|
||||
{
|
||||
import flash.display.MovieClip;
|
||||
import flash.events.MouseEvent;
|
||||
import flash.events.TimerEvent;
|
||||
import flash.utils.Timer;
|
||||
import gui.DarkenManager;
|
||||
import gui.ECardCreation;
|
||||
import gui.ECardInbox;
|
||||
import gui.PredictiveTextMessageValidation;
|
||||
import gui.SafeChatManager;
|
||||
import loader.MediaHelper;
|
||||
import room.RoomManagerWorld;
|
||||
|
||||
public class ECardManager
|
||||
{
|
||||
|
||||
private static const ECARD_INBOX_CREATION_MEDIA_ID:int = 1353;
|
||||
|
||||
private static var _inbox:Array;
|
||||
|
||||
private static var _cardMediaIds:Array;
|
||||
|
||||
private static var _stampMediaIds:Array;
|
||||
|
||||
private static var _cardIdObjects:Array;
|
||||
|
||||
private static var _eCardInbox:ECardInbox;
|
||||
|
||||
private static var _eCardCreation:ECardCreation;
|
||||
|
||||
private static var _glowTimer:Timer;
|
||||
|
||||
private static var _hudECardBtn:MovieClip;
|
||||
|
||||
private static var _guiLayer:DisplayLayer;
|
||||
|
||||
private static var _eCardInboxAndCreation:MovieClip;
|
||||
|
||||
private static var _unreadCount:int;
|
||||
|
||||
private static var _isFirstTime:Boolean;
|
||||
|
||||
private static var _mediaHelper:MediaHelper;
|
||||
|
||||
private static var _predictiveTextMessageValidation:PredictiveTextMessageValidation;
|
||||
|
||||
public function ECardManager()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function init(param1:DisplayLayer, param2:MovieClip, param3:Boolean = false) : void
|
||||
{
|
||||
_guiLayer = param1;
|
||||
_hudECardBtn = param2;
|
||||
_hudECardBtn.glow.visible = false;
|
||||
_hudECardBtn.addEventListener("mouseDown",eCardBtnDownHandler,false,0,true);
|
||||
_predictiveTextMessageValidation = new PredictiveTextMessageValidation(1);
|
||||
if(!param3)
|
||||
{
|
||||
_glowTimer = new Timer(5000);
|
||||
_glowTimer.addEventListener("timer",glowTimerHandler,false,0,true);
|
||||
_inbox = [];
|
||||
_isFirstTime = true;
|
||||
_unreadCount = 0;
|
||||
_hudECardBtn.newEcardCount.visible = false;
|
||||
_hudECardBtn.newEcardCount.eCardCountTxt.text = "";
|
||||
ECardXtCommManager._deleteResponseCallback = onDeleteResponse;
|
||||
}
|
||||
else
|
||||
{
|
||||
_hudECardBtn.newEcardCount.visible = _unreadCount > 0;
|
||||
_hudECardBtn.newEcardCount.eCardCountTxt.text = _unreadCount;
|
||||
}
|
||||
}
|
||||
|
||||
public static function destroy() : void
|
||||
{
|
||||
ECardXtCommManager._deleteResponseCallback = null;
|
||||
}
|
||||
|
||||
public static function isECardTextValid(param1:String) : Boolean
|
||||
{
|
||||
return SafeChatManager.containsInTreeArray(param1,1) || _predictiveTextMessageValidation.isTextValid(param1);
|
||||
}
|
||||
|
||||
public static function processECardList(param1:Array, param2:int) : void
|
||||
{
|
||||
_inbox = param1.concat();
|
||||
unreadCount = param2;
|
||||
if(_eCardInbox)
|
||||
{
|
||||
_eCardInbox.processECardList(_inbox);
|
||||
}
|
||||
}
|
||||
|
||||
public static function processECardPush(param1:ECard) : void
|
||||
{
|
||||
if(!isFirstTime)
|
||||
{
|
||||
_inbox.unshift(param1);
|
||||
if(_eCardInbox)
|
||||
{
|
||||
_eCardInbox.processECardPush(param1);
|
||||
}
|
||||
}
|
||||
if(!param1.isRead)
|
||||
{
|
||||
unreadCount = unreadCount + 1;
|
||||
}
|
||||
}
|
||||
|
||||
public static function processECardUpdate(param1:int, param2:String) : void
|
||||
{
|
||||
var _loc3_:ECard = null;
|
||||
var _loc4_:int = 0;
|
||||
_loc4_ = 0;
|
||||
while(_loc4_ < _inbox.length)
|
||||
{
|
||||
_loc3_ = _inbox[_loc4_];
|
||||
if(_loc3_ != null && _loc3_.msgId == param1)
|
||||
{
|
||||
_loc3_.msg = param2;
|
||||
if(_eCardInbox)
|
||||
{
|
||||
_eCardInbox.updateECard(_loc3_);
|
||||
}
|
||||
break;
|
||||
}
|
||||
_loc4_++;
|
||||
}
|
||||
}
|
||||
|
||||
public static function get inbox() : Array
|
||||
{
|
||||
return _inbox;
|
||||
}
|
||||
|
||||
public static function set setInboxAfterDelete(param1:Array) : void
|
||||
{
|
||||
if(_eCardInbox)
|
||||
{
|
||||
_inbox = param1.concat();
|
||||
}
|
||||
}
|
||||
|
||||
public static function onCardsLoaded(param1:int, param2:Array, param3:Array) : void
|
||||
{
|
||||
_cardMediaIds = param2;
|
||||
}
|
||||
|
||||
public static function onStampsLoaded(param1:int, param2:Array, param3:Array) : void
|
||||
{
|
||||
_stampMediaIds = param2;
|
||||
}
|
||||
|
||||
private static function eCardBtnDownHandler(param1:MouseEvent) : void
|
||||
{
|
||||
if(!param1.currentTarget.isGray)
|
||||
{
|
||||
RoomManagerWorld.instance.forceStopMovement();
|
||||
_eCardInbox = new ECardInbox();
|
||||
_eCardInbox.init(_guiLayer,_inbox.concat(),openCreateCard,onClose);
|
||||
}
|
||||
}
|
||||
|
||||
private static function onClose() : void
|
||||
{
|
||||
_hudECardBtn.downToUpState();
|
||||
if(_eCardCreation)
|
||||
{
|
||||
_eCardCreation.destroy();
|
||||
_eCardCreation = null;
|
||||
}
|
||||
if(_eCardInbox)
|
||||
{
|
||||
_eCardInbox.destroy();
|
||||
_eCardInbox = null;
|
||||
}
|
||||
}
|
||||
|
||||
public static function closeECard() : void
|
||||
{
|
||||
onClose();
|
||||
}
|
||||
|
||||
public static function onECardLoaded(param1:ECard) : void
|
||||
{
|
||||
if(_eCardInbox)
|
||||
{
|
||||
_eCardInbox.onECardLoaded(param1);
|
||||
}
|
||||
}
|
||||
|
||||
public static function openCreateCard(param1:String, param2:String, param3:int, param4:Boolean = true) : void
|
||||
{
|
||||
_eCardCreation = new ECardCreation();
|
||||
if(param4)
|
||||
{
|
||||
_eCardCreation.init(_guiLayer,param1,param2,param3,_cardMediaIds,_stampMediaIds,onCreateCardBackBtn,onClose);
|
||||
}
|
||||
else
|
||||
{
|
||||
_eCardCreation.init(_guiLayer,param1,param2,param3,_cardMediaIds,_stampMediaIds,onCreateCardBackBtn,onClose,true);
|
||||
}
|
||||
}
|
||||
|
||||
private static function onCreateCardBackBtn(param1:Boolean) : void
|
||||
{
|
||||
if(_eCardCreation)
|
||||
{
|
||||
_eCardCreation.destroy();
|
||||
_eCardCreation = null;
|
||||
if(_eCardInbox)
|
||||
{
|
||||
if(param1)
|
||||
{
|
||||
_hudECardBtn.downToUpState();
|
||||
_eCardInbox.destroy();
|
||||
_eCardInbox = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static function onDeleteResponse(param1:Array, param2:Boolean) : void
|
||||
{
|
||||
var _loc5_:ECard = null;
|
||||
var _loc3_:int = 0;
|
||||
var _loc6_:int = 0;
|
||||
var _loc4_:int = 0;
|
||||
var _loc7_:int = 0;
|
||||
DarkenManager.showLoadingSpiral(false);
|
||||
if(_eCardInbox)
|
||||
{
|
||||
_eCardInbox.onDeleteResponse(param1,param2);
|
||||
}
|
||||
else if(param2)
|
||||
{
|
||||
_loc3_ = 0;
|
||||
while(_loc3_ < param1.length)
|
||||
{
|
||||
_loc6_ = 0;
|
||||
while(_loc6_ < _inbox.length)
|
||||
{
|
||||
_loc5_ = _inbox[_loc6_];
|
||||
if(_loc5_ != null && _loc5_.msgId == param1[_loc3_])
|
||||
{
|
||||
_inbox.splice(_loc6_,1);
|
||||
break;
|
||||
}
|
||||
_loc6_++;
|
||||
}
|
||||
_loc3_++;
|
||||
}
|
||||
}
|
||||
if(param2)
|
||||
{
|
||||
_loc7_ = 0;
|
||||
while(_loc7_ < _inbox.length)
|
||||
{
|
||||
_loc5_ = _inbox[_loc7_];
|
||||
if(_loc5_ && !_loc5_.isRead)
|
||||
{
|
||||
_loc4_++;
|
||||
}
|
||||
_loc7_++;
|
||||
}
|
||||
_unreadCount = _loc4_;
|
||||
if(_unreadCount > 0)
|
||||
{
|
||||
_hudECardBtn.newEcardCount.eCardCountTxt.text = _unreadCount;
|
||||
_hudECardBtn.newEcardCount.visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
_hudECardBtn.newEcardCount.visible = false;
|
||||
_hudECardBtn.newEcardCount.eCardCountTxt.text = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static function glowTimerHandler(param1:TimerEvent) : void
|
||||
{
|
||||
_glowTimer.stop();
|
||||
if(_hudECardBtn)
|
||||
{
|
||||
_hudECardBtn.glow.visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
public static function get unreadCount() : int
|
||||
{
|
||||
return _unreadCount;
|
||||
}
|
||||
|
||||
public static function set unreadCount(param1:int) : void
|
||||
{
|
||||
if(param1 > _unreadCount)
|
||||
{
|
||||
if(_glowTimer.running)
|
||||
{
|
||||
_glowTimer.stop();
|
||||
}
|
||||
if(!_eCardCreation)
|
||||
{
|
||||
_glowTimer.start();
|
||||
if(_hudECardBtn)
|
||||
{
|
||||
_hudECardBtn.glow.visible = true;
|
||||
}
|
||||
AJAudio.playMailReceivedSound();
|
||||
}
|
||||
}
|
||||
_unreadCount = param1;
|
||||
if(_eCardInbox)
|
||||
{
|
||||
_eCardInbox.updateUnreadCount();
|
||||
}
|
||||
if(_hudECardBtn)
|
||||
{
|
||||
if(_unreadCount > 0)
|
||||
{
|
||||
_hudECardBtn.newEcardCount.eCardCountTxt.text = param1;
|
||||
_hudECardBtn.newEcardCount.visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
_hudECardBtn.newEcardCount.visible = false;
|
||||
_hudECardBtn.newEcardCount.eCardCountTxt.text = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static function get eCardInboxAndCreation() : MovieClip
|
||||
{
|
||||
return _eCardInboxAndCreation;
|
||||
}
|
||||
|
||||
public static function get isFirstTime() : Boolean
|
||||
{
|
||||
return _isFirstTime;
|
||||
}
|
||||
|
||||
public static function set isFirstTime(param1:Boolean) : void
|
||||
{
|
||||
_isFirstTime = param1;
|
||||
}
|
||||
|
||||
public static function isECardCreationOpen() : Boolean
|
||||
{
|
||||
return _eCardCreation != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,342 @@
|
||||
package ecard
|
||||
{
|
||||
import buddy.BuddyManager;
|
||||
import com.sbi.client.SFEvent;
|
||||
import com.sbi.popup.SBOkPopup;
|
||||
import gui.DarkenManager;
|
||||
import gui.GuiManager;
|
||||
import gui.SafeChatManager;
|
||||
import localization.LocalizationManager;
|
||||
|
||||
public class ECardXtCommManager
|
||||
{
|
||||
|
||||
private static var _requestCallback:Function;
|
||||
|
||||
private static var _readResponseCallback:Function;
|
||||
|
||||
private static var _sendResponseCallback:Function;
|
||||
|
||||
private static var _privacyResponseCallback:Function;
|
||||
|
||||
private static var _giftResponseCallback:Function;
|
||||
|
||||
private static var _giftRequestCallbackQueue:Object;
|
||||
|
||||
public static var _deleteResponseCallback:Function;
|
||||
|
||||
private static var NUM_JAGS_PER_NON_BUDDY_PER_SESSION:int = 5;
|
||||
|
||||
private static var NUM_JAGS_PER_BUDDY_PER_SESSION:int = 25;
|
||||
|
||||
private static var _jaggedPlayers:Object;
|
||||
|
||||
private static var _privacySettingId:int;
|
||||
|
||||
public function ECardXtCommManager()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function init() : void
|
||||
{
|
||||
_jaggedPlayers = {};
|
||||
_giftRequestCallbackQueue = {};
|
||||
}
|
||||
|
||||
public static function sendECardListRequest(param1:Function = null) : void
|
||||
{
|
||||
var _loc2_:int = 0;
|
||||
if(param1 != null)
|
||||
{
|
||||
_loc2_ = 1;
|
||||
_requestCallback = param1;
|
||||
}
|
||||
gMainFrame.server.setXtObject_Str("el",[_loc2_]);
|
||||
}
|
||||
|
||||
public static function sendECardReadRequest(param1:int, param2:Function = null) : void
|
||||
{
|
||||
if(!gMainFrame.clientInfo.invisMode)
|
||||
{
|
||||
if(param2 != null)
|
||||
{
|
||||
_readResponseCallback = param2;
|
||||
}
|
||||
DarkenManager.showLoadingSpiral(true);
|
||||
gMainFrame.server.setXtObject_Str("er",[param1]);
|
||||
}
|
||||
}
|
||||
|
||||
public static function sendECardSendRequest(param1:String, param2:String, param3:int, param4:int, param5:int, param6:String, param7:int, param8:int, param9:int, param10:Function = null) : Boolean
|
||||
{
|
||||
if(_jaggedPlayers[param1] == null)
|
||||
{
|
||||
_jaggedPlayers[param1] = 0;
|
||||
}
|
||||
var _loc11_:int = BuddyManager.isBuddy(param1) ? NUM_JAGS_PER_BUDDY_PER_SESSION : NUM_JAGS_PER_NON_BUDDY_PER_SESSION;
|
||||
if(_jaggedPlayers[param1] < _loc11_)
|
||||
{
|
||||
_jaggedPlayers[param1]++;
|
||||
if(param10 != null)
|
||||
{
|
||||
_sendResponseCallback = param10;
|
||||
}
|
||||
gMainFrame.server.setXtObject_Str("es",[param1,param3,param4,param5,param6,param7,param8,param9]);
|
||||
return true;
|
||||
}
|
||||
DarkenManager.showLoadingSpiral(false);
|
||||
new SBOkPopup(GuiManager.guiLayer,LocalizationManager.translateIdAndInsertOnly(14691,param2));
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function sendECardDeleteRequest(param1:int, param2:Function = null) : void
|
||||
{
|
||||
if(param2 != null)
|
||||
{
|
||||
_deleteResponseCallback = param2;
|
||||
}
|
||||
DarkenManager.showLoadingSpiral(true);
|
||||
gMainFrame.server.setXtObject_Str("ed",[param1]);
|
||||
}
|
||||
|
||||
public static function sendECardBuddyRequest(param1:int, param2:Boolean) : void
|
||||
{
|
||||
gMainFrame.server.setXtObject_Str("eb",[param1,param2 ? 1 : 0]);
|
||||
}
|
||||
|
||||
public static function sendECardAcceptDiscardGiftRequest(param1:int, param2:Boolean, param3:Function, param4:int = -1, param5:ECard = null) : void
|
||||
{
|
||||
if(!gMainFrame.clientInfo.invisMode)
|
||||
{
|
||||
if(param3 != null)
|
||||
{
|
||||
_giftResponseCallback = param3;
|
||||
}
|
||||
_giftRequestCallbackQueue[param1] = param5;
|
||||
gMainFrame.server.setXtObject_Str("eg",param4 >= 0 ? [param1,param2 ? 1 : 0,param4] : [param1,param2 ? 1 : 0]);
|
||||
}
|
||||
else if(param3 != null)
|
||||
{
|
||||
param3(0,true,param5);
|
||||
}
|
||||
}
|
||||
|
||||
public static function sendECardClearCache() : void
|
||||
{
|
||||
gMainFrame.server.setXtObject_Str("ec",[]);
|
||||
}
|
||||
|
||||
public static function sendECardPrivacySettingUpdateRequest(param1:int, param2:Function) : void
|
||||
{
|
||||
DarkenManager.showLoadingSpiral(true);
|
||||
_privacyResponseCallback = param2;
|
||||
_privacySettingId = param1;
|
||||
gMainFrame.server.setXtObject_Str("ei",[param1]);
|
||||
}
|
||||
|
||||
public static function handleXtReply(param1:SFEvent) : void
|
||||
{
|
||||
var _loc2_:Object = param1.obj;
|
||||
DarkenManager.showLoadingSpiral(false);
|
||||
switch(_loc2_[0])
|
||||
{
|
||||
case "el":
|
||||
eCardListResponse(_loc2_);
|
||||
break;
|
||||
case "er":
|
||||
eCardReadResponse(_loc2_);
|
||||
break;
|
||||
case "ed":
|
||||
eCardDeleteResponse(_loc2_);
|
||||
break;
|
||||
case "es":
|
||||
eCardSendResponse(_loc2_);
|
||||
break;
|
||||
case "eg":
|
||||
eCardGiftResponse(_loc2_);
|
||||
break;
|
||||
case "eb":
|
||||
eCardBuddyResponse(_loc2_);
|
||||
break;
|
||||
case "ep":
|
||||
eCardPushHandler(_loc2_);
|
||||
break;
|
||||
case "eu":
|
||||
eCardUpdateHandler(_loc2_);
|
||||
break;
|
||||
case "ei":
|
||||
eCardIsolationHandler(_loc2_);
|
||||
break;
|
||||
default:
|
||||
throw new Error("ECardXtCommManager: Received illegal cmd: " + _loc2_[0]);
|
||||
}
|
||||
}
|
||||
|
||||
private static function eCardListResponse(param1:Object) : void
|
||||
{
|
||||
var _loc7_:ECard = null;
|
||||
var _loc5_:int = 0;
|
||||
if(!SafeChatManager.hasLoadedLists)
|
||||
{
|
||||
SafeChatManager.safeChatStringForCode(eCardListResponse,[param1],"",1);
|
||||
return;
|
||||
}
|
||||
var _loc2_:int = int(param1[2]);
|
||||
var _loc3_:Array = new Array(_loc2_);
|
||||
if(_loc2_ == -1)
|
||||
{
|
||||
_loc2_ = 0;
|
||||
}
|
||||
var _loc4_:int = 0;
|
||||
var _loc6_:int = 3;
|
||||
_loc5_ = 0;
|
||||
while(_loc5_ < _loc2_)
|
||||
{
|
||||
_loc7_ = new ECard();
|
||||
_loc7_.init(int(param1[_loc6_++]),param1[_loc6_++],int(param1[_loc6_++]),int(param1[_loc6_++]),param1[_loc6_++] == "1",param1[_loc6_++],int(param1[_loc6_++]),int(param1[_loc6_++]),uint(param1[_loc6_++]),param1[_loc6_++],int(param1[_loc6_++]),int(param1[_loc6_++]),int(param1[_loc6_++]),int(param1[_loc6_++]),int(param1[_loc6_++]),param1[_loc6_++],param1[_loc6_++]);
|
||||
if(_loc7_.msg.match("(^[0-9]{1,2},[0-9]{1,2}$)|(^[0-9]{1,2}$)"))
|
||||
{
|
||||
_loc7_.msg = SafeChatManager.safeChatStringForCode(null,null,_loc7_.msg,1);
|
||||
}
|
||||
if(_loc7_.type == 4)
|
||||
{
|
||||
_loc7_.giftName = LocalizationManager.translateIdAndInsertOnly(_loc7_.giftName == "1" ? 11114 : 11097,Utility.convertNumberToString(int(_loc7_.giftName)));
|
||||
}
|
||||
else if(_loc7_.type == 9)
|
||||
{
|
||||
_loc7_.giftName = LocalizationManager.translateIdAndInsertOnly(_loc7_.giftName == "1" ? 11116 : 11103,Utility.convertNumberToString(int(_loc7_.giftName)));
|
||||
}
|
||||
else if(_loc7_.type == 5)
|
||||
{
|
||||
_loc7_.giftName = LocalizationManager.translateIdAndInsertOnly(15000,LocalizationManager.translateIdOnly(int(_loc7_.giftName)));
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc7_.giftName = LocalizationManager.translateIdOnly(int(_loc7_.giftName));
|
||||
}
|
||||
_loc3_[_loc2_ - 1 - _loc5_] = _loc7_;
|
||||
if(!_loc7_.isRead)
|
||||
{
|
||||
_loc4_++;
|
||||
}
|
||||
_loc5_++;
|
||||
}
|
||||
ECardManager.processECardList(_loc3_,_loc4_);
|
||||
if(_requestCallback != null)
|
||||
{
|
||||
_requestCallback(_loc3_);
|
||||
_requestCallback = null;
|
||||
}
|
||||
}
|
||||
|
||||
private static function eCardReadResponse(param1:Object) : void
|
||||
{
|
||||
if(_readResponseCallback != null)
|
||||
{
|
||||
_readResponseCallback(int(param1[2]),param1[3] == "1");
|
||||
}
|
||||
}
|
||||
|
||||
private static function eCardDeleteResponse(param1:Object) : void
|
||||
{
|
||||
var _loc2_:int = 0;
|
||||
var _loc6_:Boolean = param1[2] == "1" ? true : false;
|
||||
var _loc4_:int = int(param1[3]);
|
||||
var _loc3_:int = 4;
|
||||
var _loc5_:Array = new Array(_loc4_);
|
||||
_loc2_ = 0;
|
||||
while(_loc2_ < _loc4_)
|
||||
{
|
||||
_loc5_[_loc2_] = param1[_loc3_++];
|
||||
_loc2_++;
|
||||
}
|
||||
if(_deleteResponseCallback != null)
|
||||
{
|
||||
_deleteResponseCallback(_loc5_,_loc6_);
|
||||
}
|
||||
}
|
||||
|
||||
private static function eCardSendResponse(param1:Object) : void
|
||||
{
|
||||
if(_sendResponseCallback != null)
|
||||
{
|
||||
_sendResponseCallback(param1[2]);
|
||||
}
|
||||
}
|
||||
|
||||
private static function eCardGiftResponse(param1:Object) : void
|
||||
{
|
||||
var _loc2_:ECard = null;
|
||||
if(_giftResponseCallback != null)
|
||||
{
|
||||
_loc2_ = _giftRequestCallbackQueue[int(param1[2])];
|
||||
delete _giftRequestCallbackQueue[int(param1[2])];
|
||||
_giftResponseCallback(int(param1[2]),param1[3] == "1",_loc2_);
|
||||
}
|
||||
}
|
||||
|
||||
private static function eCardBuddyResponse(param1:Object) : void
|
||||
{
|
||||
if(param1[2] == -1)
|
||||
{
|
||||
DarkenManager.showLoadingSpiral(false);
|
||||
new SBOkPopup(GuiManager.guiLayer,LocalizationManager.translateIdOnly(14692));
|
||||
}
|
||||
}
|
||||
|
||||
private static function eCardIsolationHandler(param1:Object) : void
|
||||
{
|
||||
DarkenManager.showLoadingSpiral(false);
|
||||
var _loc2_:Boolean = param1[2] == "1";
|
||||
if(_loc2_)
|
||||
{
|
||||
gMainFrame.userInfo.eCardPrivacySettings = _privacySettingId;
|
||||
}
|
||||
if(_privacyResponseCallback != null)
|
||||
{
|
||||
_privacyResponseCallback(_loc2_,_privacySettingId);
|
||||
_privacyResponseCallback = null;
|
||||
}
|
||||
}
|
||||
|
||||
private static function eCardPushHandler(param1:Object) : void
|
||||
{
|
||||
if(!SafeChatManager.hasLoadedLists)
|
||||
{
|
||||
SafeChatManager.safeChatStringForCode(eCardPushHandler,[param1],"",1);
|
||||
return;
|
||||
}
|
||||
var _loc2_:ECard = new ECard();
|
||||
var _loc3_:int = 2;
|
||||
_loc2_.init(int(param1[_loc3_++]),param1[_loc3_++],int(param1[_loc3_++]),int(param1[_loc3_++]),param1[_loc3_++] == "1",param1[_loc3_++],int(param1[_loc3_++]),int(param1[_loc3_++]),uint(param1[_loc3_++]),param1[_loc3_++],int(param1[_loc3_++]),int(param1[_loc3_++]),int(param1[_loc3_++]),int(param1[_loc3_++]),int(param1[_loc3_++]),param1[_loc3_++],param1[_loc3_++]);
|
||||
if(_loc2_.msg.match("(^[0-9]{1,2},[0-9]{1,2}$)|(^[0-9]{1,2}$)"))
|
||||
{
|
||||
_loc2_.msg = SafeChatManager.safeChatStringForCode(null,null,_loc2_.msg,1);
|
||||
}
|
||||
if(_loc2_.type == 4)
|
||||
{
|
||||
_loc2_.giftName = LocalizationManager.translateIdAndInsertOnly(_loc2_.giftName == "1" ? 11114 : 11097,Utility.convertNumberToString(int(_loc2_.giftName)));
|
||||
}
|
||||
else if(_loc2_.type == 9)
|
||||
{
|
||||
_loc2_.giftName = LocalizationManager.translateIdAndInsertOnly(_loc2_.giftName == "1" ? 11116 : 11103,Utility.convertNumberToString(int(_loc2_.giftName)));
|
||||
}
|
||||
else if(_loc2_.type == 5)
|
||||
{
|
||||
_loc2_.giftName = LocalizationManager.translateIdAndInsertOnly(15000,LocalizationManager.translateIdOnly(int(_loc2_.giftName)));
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc2_.giftName = LocalizationManager.translateIdOnly(int(_loc2_.giftName));
|
||||
}
|
||||
ECardManager.processECardPush(_loc2_);
|
||||
}
|
||||
|
||||
private static function eCardUpdateHandler(param1:Object) : void
|
||||
{
|
||||
ECardManager.processECardUpdate(param1[2],param1[3]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user