Почти вся работа салона красоты в клиенте.
PHP код:
package beautyShop.data
{
public class BeautyShopData extends Object
{
public function BeautyShopData()
{
super();
if (_instance)
{
throw new Error("싱글톤이라 인스턴스 생성 금지");
}
return;
}
public function sumAdenaHair():Array
{
var loc1:*=0;
var loc2:*=0;
if (beautyShop.data.BeautyShopData.bHairCheck == true && !(beautyShop.data.BeautyShopData.objSelectHairData == null))
{
loc1 = beautyShop.data.BeautyShopData.objSelectHairData["itemAdenaNum"] + beautyShop.data.BeautyShopData.objSelectHairColorData["colorAdenaNum"];
loc2 = beautyShop.data.BeautyShopData.objSelectHairData["itemCoin"] + beautyShop.data.BeautyShopData.objSelectHairColorData["colorCoin"];
}
return [loc1, loc2];
}
public function sumAdenaFace():Array
{
var loc1:*=0;
var loc2:*=0;
if (beautyShop.data.BeautyShopData.bFaceCheck == true && !(beautyShop.data.BeautyShopData.objSelectFaceData == null))
{
loc1 = beautyShop.data.BeautyShopData.objSelectFaceData["itemAdenaNum"];
loc2 = beautyShop.data.BeautyShopData.objSelectFaceData["itemCoin"];
}
return [loc1, loc2];
}
public function sumResetAdenaHair():Number
{
var loc1:*=0;
if (beautyShop.data.BeautyShopData.bResetHairCheck == true && !(beautyShop.data.BeautyShopData.objResetHairData["itemAdenaNum"] == undefined))
{
loc1 = beautyShop.data.BeautyShopData.objResetHairData["itemAdenaNum"];
}
return loc1;
}
public function sumResetAdenaFace():Number
{
var loc1:*=0;
if (beautyShop.data.BeautyShopData.bResetFaceCheck == true && !(beautyShop.data.BeautyShopData.objResetFaceData["itemAdenaNum"] == undefined))
{
loc1 = beautyShop.data.BeautyShopData.objResetFaceData["itemAdenaNum"];
}
return loc1;
}
{
objSelectHairData = null;
objSelectHairColorData = null;
objSelectFaceData = null;
objResetHairData = null;
objResetFaceData = null;
nResetCount = 0;
_instance = new BeautyShopData();
}
public static function getInstance():beautyShop.data.BeautyShopData
{
return _instance;
}
public static const SHOPWINNDOW:Number=0;
public static const RESETWINDOW:Number=1;
public static const HAIRNUM:Number=0;
public static const FACENUM:Number=1;
public static const ALLNUM:Number=2;
public static const HAIR:String="hair";
public static const HAIRCOLOR:String="hairColor";
public static const FACE:String="face";
public static const POP:String="pop";
public static const RESET:String="reset";
public static const ROTATE_LEFT:Number=0;
public static const ROTATE_RIGHT:Number=1;
public static const ROTATE_STOP:Number=2;
public static const ZOOMIN:Number=0;
public static const ZOOMOUT:Number=1;
public static const CURSOR_DEFAULT:Number=0;
public static const CURSOR_ROTATE:Number=1;
public static const TOOLTIPLEFT:Number=0;
public static const TOOLTIPRIGHT:Number=1;
public static const ALERTBUYCOMPLETE:String="alert_buy_complete";
public static const ALERTRESET:String="alert_reset";
public static var currentHairColor:Number;
public static var currentFaceType:Number;
public static var bHairCheck:Boolean;
public static var bFaceCheck:Boolean;
public static var strHair:String;
public static var strHairColor:String;
public static var strFace:String;
public static var objSelectHairData:Object=null;
public static var objSelectHairColorData:Object=null;
public static var objSelectFaceData:Object=null;
public static var objResetHairData:Object=null;
public static var nOpenType:Number;
public static var resetHairType:Number;
public static var resetHairColor:Number;
public static var resetFaceType:Number;
public static var strResetHair:String;
public static var strResetHairColor:String;
public static var objResetFaceData:Object=null;
public static var bResetHairCheck:Boolean;
public static var bResetFaceCheck:Boolean;
public static var nResetCount:int=0;
internal static var _instance:beautyShop.data.BeautyShopData;
public static var currentHairType:Number;
public static var strResetFace:String;
}
}
// package event
// class BeautyEvent
package beautyShop.event
{
import flash.events.*;
public class BeautyEvent extends flash.events.Event
{
public function BeautyEvent(arg1:String, arg2:Object=null, arg3:Number=-1, arg4:Boolean=true, arg5:Boolean=false)
{
super(arg1, arg4, arg5);
this.data = arg2;
this.select = arg3;
return;
}
public override function clone():flash.events.Event
{
return new beautyShop.event.BeautyEvent(type, this.data, this.select, bubbles, cancelable);
}
public static const TOOLTIP_MSG_LEFT:String="tooltip_msg_left";
public static const TOOLTIP_MSG_RIGHT:String="tooltip_msg_right";
public static const SHOW:String="beauty_show";
public static const UPDATE_LIST:String="update_list";
public static const UPDATE_HAVEMONEY:String="update_havemoney";
public static const UPDATE_RESET:String="update_reset";
public static const SUM_ITEMPRICE:String="sum_itemprice";
public static const SUM_ITEMPRICE_UPDATE:String="sum_itemprice_update";
public static const RESET_UPDATE_LIST:String="reset_update_list";
public static const RESET_SUM_ITEMPRICE:String="reset_sum_itemprice";
public static const RESET_SUM_ITEMPRICE_UPDATE:String="reset_sum_itemprice_update";
public static const LIST_SELECT:String="list_select";
public static const COLOR_SELECT:String="color_select";
public static const SHOW_SYSTEMMSG:String="show_systemmsg";
public static const POPUP_CLOSE:String="popup_close";
public static const POPUP_CANCEL:String="popup_cancel";
public static const BUY_START:String="buy_start";
public static const POPUP_BUY:String="popup_buy";
public static const ALERT_PROGRESS:String="alert_progress";
public static const BUY_COMPLETE:String="buy_complete";
public static const RESET_START:String="reset_start";
public static const POPUP_RESET:String="popup_reset";
public static const RESET_COMPLETE:String="reset_complete";
public static const EXIT:String="exit";
public static const TOOLTIP_OPEN:String="tooltip_open";
public static const TOOLTIP_CLOSE:String="tooltip_close";
public static const TOOLTIP_ITEM_LEFT:String="tooltip_item_left";
public static const TOOLTIP_ITEM_RIGHT:String="tooltip_item_right";
public static const TOOLTIP_COLOR_LEFT:String="tooltip_color_left";
public static const TOOLTIP_COLOR_RIGHT:String="tooltip_color_right";
public static const TOOLTIP_ADENA_RIGHT:String="tooltip_adena_right";
public var data:Object;
public var select:Number;
}
}
// package native
// class BeautySystem
package beautyShop.native
{
import flash.external.*;
import ncsoft.l2.native.*;
public class BeautySystem extends Object
{
public function BeautySystem()
{
super();
return;
}
public static function requestItemList(arg1:Number=0):void
{
flash.external.ExternalInterface.call("RequestBeautyItemList", arg1);
return;
}
public static function init():void
{
HAIR = ncsoft.l2.native.L2UIConfig.LOCAL ? "헤어" : ncsoft.l2.native.L2UISystem.getSystemString(2991);
HAIRCOLOR = ncsoft.l2.native.L2UIConfig.LOCAL ? "색상" : ncsoft.l2.native.L2UISystem.getSystemString(2992);
VIEW_ORIGINAL = ncsoft.l2.native.L2UIConfig.LOCAL ? "이전 모습 보기" : ncsoft.l2.native.L2UISystem.getSystemString(2997);
VIEW_BEFORE = ncsoft.l2.native.L2UIConfig.LOCAL ? "현재 모습 보기" : ncsoft.l2.native.L2UISystem.getSystemString(2998);
FACE = ncsoft.l2.native.L2UIConfig.LOCAL ? "얼굴" : ncsoft.l2.native.L2UISystem.getSystemString(2999);
BEAUTIITEM = ncsoft.l2.native.L2UIConfig.LOCAL ? "로얄 뷰티 아이템" : ncsoft.l2.native.L2UISystem.getSystemString(3002);
EVENT = ncsoft.l2.native.L2UIConfig.LOCAL ? "이벤트" : ncsoft.l2.native.L2UISystem.getSystemString(3004);
TIP_BUY_NOMONEY = ncsoft.l2.native.L2UIConfig.LOCAL ? "필요 아이템이 부족합니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(701);
TIP_HAIR = ncsoft.l2.native.L2UIConfig.LOCAL ? "캐릭터의 헤어 스타일을 변경할 수 있습니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4001);
TIP_FACE = ncsoft.l2.native.L2UIConfig.LOCAL ? "캐릭터의 얼굴을 변경할 수 있습니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4002);
TIP_BUY_RESET = ncsoft.l2.native.L2UIConfig.LOCAL ? "선택한 스타일이 초기화됩니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4003);
POP_BUY_SUCCESS = ncsoft.l2.native.L2UIConfig.LOCAL ? "새로운 스타일 구매에 성공하였습니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4004);
POP_BUY_FAILURE = ncsoft.l2.native.L2UIConfig.LOCAL ? "새로운 스타일 구매에 실패하였습니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4005);
TIP_BUY = ncsoft.l2.native.L2UIConfig.LOCAL ? "선택한 스타일을 구매합니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4008);
TIP_RESET_ORIGINAL = ncsoft.l2.native.L2UIConfig.LOCAL ? "뷰티샵을 이용하기 전의 모습을 보여드립니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4013);
TIP_RESET_BEFORE = ncsoft.l2.native.L2UIConfig.LOCAL ? "현재의 모습을 보여드립니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4014);
TIP_RESET = ncsoft.l2.native.L2UIConfig.LOCAL ? "뷰티샵을 이용하기 전의 모습으로 복원합니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4015);
POP_RESET = ncsoft.l2.native.L2UIConfig.LOCAL ? "복원 후에는 되돌릴 수 없습니다. 계속 진행하시겠습니까?" : ncsoft.l2.native.L2UISystem.getSystemMessage(4016);
POP_RESET_SUCCESS = ncsoft.l2.native.L2UIConfig.LOCAL ? "이전 스타일로의 복원을 성공적으로 완료하였습니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4017);
POP_RESET_FAILURE = ncsoft.l2.native.L2UIConfig.LOCAL ? "이전 스타일로의 복원을 실패하였습니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4018);
TIP_SHOP_EXIT = ncsoft.l2.native.L2UIConfig.LOCAL ? "뷰티샵을 나갑니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4019);
TIP_RESET_EXIT = ncsoft.l2.native.L2UIConfig.LOCAL ? "외형 복원을 종료합니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4026);
POP_BUY = ncsoft.l2.native.L2UIConfig.LOCAL ? "구매하시겠습니까?" : ncsoft.l2.native.L2UISystem.getSystemMessage(4020);
TIP_BUY_NOITEM = ncsoft.l2.native.L2UIConfig.LOCAL ? "구매한 아이템이 없습니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4021);
POP_RESET_PROGRESS = ncsoft.l2.native.L2UIConfig.LOCAL ? "복원중입니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4022);
TIP_RESET_NOMONEY = ncsoft.l2.native.L2UIConfig.LOCAL ? "필요 아데나가 부족합니다" : ncsoft.l2.native.L2UISystem.getSystemMessage(279);
POP_BUY_PROGRESS = ncsoft.l2.native.L2UIConfig.LOCAL ? "구매 요청 중입니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4024);
TIP_RESET_NOITEM = ncsoft.l2.native.L2UIConfig.LOCAL ? "복원할 스타일이 없습니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4025);
HAVE_ITEM = ncsoft.l2.native.L2UIConfig.LOCAL ? "이미 구매한 스타일 입니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4027);
POP_NPC_FAILURE = ncsoft.l2.native.L2UIConfig.LOCAL ? "NPC 서버가 작동 중지 상태인 관계로 뷰티샵을 이용할 수 없습니다." : ncsoft.l2.native.L2UISystem.getSystemMessage(4121);
ADENA = ncsoft.l2.native.L2UIConfig.LOCAL ? "아데나" : ncsoft.l2.native.L2UISystem.getSystemString(469);
return;
}
public static function open(arg1:Number, arg2:Number=0):void
{
flash.external.ExternalInterface.call("OpenBeautyshop", arg1, arg2);
return;
}
public static function exit():void
{
flash.external.ExternalInterface.call("ExitBeautyshop");
return;
}
public static function getAdenaString(arg1:Number):String
{
return flash.external.ExternalInterface.call("GetAdenaString", String(arg1));
}
public static function buy(arg1:Number=-1, arg2:Number=-1, arg3:Number=-1):void
{
flash.external.ExternalInterface.call("IsSuccessSettingBeautyItem", arg1, arg2, arg3);
return;
}
public static function pickedStyle(arg1:Number=-1, arg2:Number=-1, arg3:Number=-1):void
{
flash.external.ExternalInterface.call("PickedStyle", arg1, arg2, arg3);
return;
}
public static function reset(arg1:Number):void
{
flash.external.ExternalInterface.call("RequestResetBeauty", arg1);
return;
}
public static function zoomInOut(arg1:Number):void
{
flash.external.ExternalInterface.call("ZoomInOut", arg1);
return;
}
public static function rotate(arg1:Number):void
{
flash.external.ExternalInterface.call("TurnTo", arg1);
return;
}
public static function useSocoalAction():void
{
flash.external.ExternalInterface.call("UseSocialAction", Number(89));
return;
}
public static var POP_BUY_SUCCESS:String;
public static var POP_BUY_FAILURE:String;
public static var TIP_BUY:String;
public static var TIP_RESET_ORIGINAL:String;
public static var TIP_RESET_BEFORE:String;
public static var TIP_RESET:String;
public static var POP_RESET:String;
public static var POP_RESET_SUCCESS:String;
public static var POP_RESET_FAILURE:String;
public static var FACE:String;
public static var TIP_SHOP_EXIT:String;
public static var POP_BUY:String;
public static var TIP_BUY_NOITEM:String;
public static var POP_RESET_PROGRESS:String;
public static var TIP_RESET_NOMONEY:String;
public static var POP_BUY_PROGRESS:String;
public static var TIP_RESET_NOITEM:String;
public static var HAVE_ITEM:String;
public static var POP_NPC_FAILURE:String;
public static var ADENA:String;
public static var HAIR:String;
public static var HAIRCOLOR:String;
public static var VIEW_ORIGINAL:String;
public static var VIEW_BEFORE:String;
public static var BEAUTIITEM:String;
public static var TIP_RESET_EXIT:String;
public static var EVENT:String;
public static var TIP_BUY_NOMONEY:String;
public static var TIP_HAIR:String;
public static var TIP_FACE:String;
public static var TIP_BUY_RESET:String;
}
}
// class MainItemMoneyView
package beautyShop.native
{
import beautyShop.event.*;
import flash.events.*;
import flash.text.*;
import ncsoft.l2.core.*;
import org.casalib.utils.*;
public class MainItemMoneyView extends ncsoft.l2.core.L2UIBase
{
public function MainItemMoneyView()
{
super();
this.init();
return;
}
protected function init():void
{
this.clear();
this.adena_txt.addEventListener(flash.events.MouseEvent.MOUSE_OVER, this.adenaOver);
this.adena_txt.addEventListener(flash.events.MouseEvent.MOUSE_OUT, this.adenaOut);
return;
}
internal function adenaOver(arg1:flash.events.MouseEvent):void
{
if (this.nAdena != 0)
{
dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.TOOLTIP_ADENA_RIGHT, beautyShop.native.BeautySystem.getAdenaString(this.nAdena)));
}
return;
}
internal function adenaOut(arg1:flash.events.MouseEvent):void
{
dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.TOOLTIP_CLOSE));
return;
}
public function clear():void
{
this.adena = 0;
this.coin = 0;
this.idx = -1;
this.adena_txt.text = "0";
this.coin_txt.text = "0";
this.objItemValue = new Object();
return;
}
public function get adena():Number
{
return this.nAdena;
}
public function set adena(arg1:Number):void
{
this.nAdena = arg1;
if (this.nAdena != 0)
{
this.adena_txt.textColor = 14540253;
}
else
{
this.adena_txt.textColor = 6710886;
}
this.adena_txt.text = org.casalib.utils.NumberUtil.format(arg1, String(arg1).length, ",", "0");
return;
}
public function get coin():int
{
return this.nCoin;
}
public function set coin(arg1:int):void
{
this.nCoin = arg1;
if (this.nCoin != 0)
{
this.coin_txt.textColor = 14540253;
}
else
{
this.coin_txt.textColor = 6710886;
}
this.coin_txt.text = org.casalib.utils.NumberUtil.format(arg1, String(arg1).length, ",", "0");
return;
}
public function get idx():int
{
return this.nIdx;
}
public function set idx(arg1:int):void
{
this.nIdx = arg1;
return;
}
public function get itemValue():Object
{
return this.objItemValue;
}
public function set itemValue(arg1:Object):void
{
this.objItemValue = arg1;
this.adena = arg1.itemAdenaNum;
this.coin = arg1.itemCoin;
this.idx = arg1.itemIdx;
return;
}
public function setNamePrefix(arg1:String):void
{
this.strNamePrefix = "[" + arg1 + "] ";
return;
}
public function setNameSuffix(arg1:String):void
{
this.strNameSuffix = " " + arg1;
return;
}
public function setName(arg1:String):String
{
this.strName = this.strNamePrefix + arg1 + this.strNameSuffix;
return this.strName;
}
public var adena_txt:flash.text.TextField;
public var coin_txt:flash.text.TextField;
protected var objItemValue:Object;
protected var nAdena:Number=0;
protected var nCoin:int=0;
internal var nIdx:int=-1;
internal var strName:String;
internal var strNamePrefix:String="";
internal var strNameSuffix:String="";
}
}
// package test
// class Test
package beautyShop.test
{
import beautyShop.event.*;
import flash.events.*;
import ncsoft.l2.controls.*;
import ncsoft.l2.core.*;
import ncsoft.l2.events.*;
public class Test extends ncsoft.l2.core.L2UIComponentBase
{
public function Test()
{
super();
return;
}
protected override function init():void
{
return;
}
public override function addEvent():void
{
super.addEvent();
addEventListener(flash.events.Event.ENTER_FRAME, initUI, false, 0, true);
return;
}
protected override function configUI():void
{
trace("초기화 및 기본 셋팅 후 시작. TestView");
this.makeDataHair();
this.makeDataFace();
this.listupHair.addEventListener(flash.events.MouseEvent.CLICK, this.listupdateHair);
this.listupFace.addEventListener(flash.events.MouseEvent.CLICK, this.listupdateFace);
this.listuphave.addEventListener(flash.events.MouseEvent.CLICK, this.listupdateHave);
this.listupfalse.addEventListener(flash.events.MouseEvent.CLICK, this.listupdateFalse);
this.listuptrue.addEventListener(flash.events.MouseEvent.CLICK, this.listupdateTrue);
this.listupso.addEventListener(flash.events.MouseEvent.CLICK, this.listupdateSocialAction);
this.close.addEventListener(flash.events.MouseEvent.CLICK, this.closeEvent);
return;
}
internal function makeDataHair():void
{
var loc1:*=null;
var loc2:*=null;
var loc3:*=null;
var loc4:*=null;
var loc5:*=null;
this.listupHairData = new Object();
loc3 = new Array();
this.listupHairData["type"] = ncsoft.l2.events.L2UIClientString.EV_ReceiveBeautyItemList;
loc1 = new Object();
loc1["itemType"] = 0;
loc1["currentColor"] = 101;
loc1["currentType"] = 10010;
this.listupHairData["data"] = loc1;
var loc6:*=0;
while (loc6 < 13)
{
(loc4 = new Array())["colorIdx"] = 100000 + loc6;
loc4["colorName"] = "헤어색상이름" + loc6;
loc4["colorDesc"] = "헤어설명" + loc6;
loc4["colorAdena"] = "10만 아데나";
loc4["colorAdenaNum"] = 20000;
loc4["colorCoin"] = loc6;
loc4["colorValue"] = 4281167005;
loc4["isDefaultColor"] = false;
loc4["isNew"] = false;
(loc5 = new Array())["colorIdx"] = 200000 + loc6;
loc5["colorName"] = "헤어색상이름2" + loc6;
loc5["colorDesc"] = "헤어설명2" + loc6 + "<br><FONT_RED>테스트임.</FONT_RED>";
loc5["colorAdena"] = "10만 아데나2";
loc5["colorAdenaNum"] = 30000;
loc5["colorCoin"] = 4;
loc5["colorValue"] = 4278190080;
loc5["isDefaultColor"] = false;
loc5["isNew"] = false;
loc2 = new Array();
loc2["itemIdx"] = 1000 + loc6;
loc2["sortingOrder"] = loc6;
loc2["itemName"] = "헤어이름" + loc6;
loc2["itemDesc"] = "헤어설명" + loc6;
loc2["itemAdena"] = "10만 아데나";
loc2["itemAdenaNum"] = 100000;
loc2["itemCoin"] = loc6;
loc2["iconName"] = "";
loc2["useColor"] = false;
loc2["isEvent"] = true;
loc2["isEnable"] = false;
loc2["isNew"] = true;
loc2["isCashItem"] = true;
loc2["Elements"] = [loc4, loc5, loc4, loc4, loc4];
loc3.push(loc2);
++loc6;
}
this.listupHairData["data"]["Elements"] = loc3;
return;
}
internal function makeDataFace():void
{
var loc1:*=null;
var loc2:*=null;
var loc3:*=null;
var loc4:*=null;
var loc5:*=null;
var loc6:*=null;
var loc7:*=null;
this.listupFaceData = new Object();
this.listupFaceData["type"] = ncsoft.l2.events.L2UIClientString.EV_ReceiveBeautyItemList;
loc1 = new Object();
loc1["itemType"] = 1;
loc1["currentColor"] = 101;
loc1["currentType"] = 10010;
this.listupFaceData["data"] = loc1;
loc2 = new Array();
loc2["itemIdx"] = 10010;
loc2["sortingOrder"] = 0;
loc2["itemName"] = "얼굴이름0";
loc2["itemDesc"] = "얼굴설명0";
loc2["itemAdena"] = "10만 아데나";
loc2["itemAdenaNum"] = 10000;
loc2["itemCoin"] = 40;
loc2["iconName"] = "";
loc2["useColor"] = false;
loc2["isEvent"] = false;
loc2["isEnable"] = false;
loc2["isNew"] = false;
loc2["Elements"] = [];
loc3 = loc2;
loc4 = loc2;
loc5 = loc2;
loc6 = loc2;
loc7 = loc2;
this.listupFaceData["data"]["Elements"] = [loc2, loc3, loc4, loc5, loc6, loc7];
return;
}
internal function listupdateHair(arg1:flash.events.MouseEvent):void
{
getDispacher().dispatchEvent(new ncsoft.l2.events.L2UIEvent(ncsoft.l2.events.L2UIEventString.CALLBACK_EVENT, this.listupHairData));
return;
}
internal function listupdateFace(arg1:flash.events.MouseEvent):void
{
getDispacher().dispatchEvent(new ncsoft.l2.events.L2UIEvent(ncsoft.l2.events.L2UIEventString.CALLBACK_EVENT, this.listupFaceData));
return;
}
internal function listupdateHave(arg1:flash.events.MouseEvent):void
{
var loc1:*=new Object();
var loc2:*=new Object();
loc1.type = ncsoft.l2.events.L2UIClientString.EV_SendUserAdenaAndCoin;
loc2.adena = "7000만 아데나";
loc2.adenaNum = "70000000";
loc2.coin = "700";
loc1.data = loc2;
getDispacher().dispatchEvent(new ncsoft.l2.events.L2UIEvent(ncsoft.l2.events.L2UIEventString.CALLBACK_EVENT, loc1));
return;
}
internal function listupdateFalse(arg1:flash.events.MouseEvent):void
{
var loc1:*=new Object();
var loc2:*=new Object();
loc1.type = ncsoft.l2.events.L2UIClientString.EV_IsSuccessBuyingStyle;
loc2.isSuccess = false;
loc1.data = loc2;
getDispacher().dispatchEvent(new ncsoft.l2.events.L2UIEvent(ncsoft.l2.events.L2UIEventString.CALLBACK_EVENT, loc1));
return;
}
internal function listupdateTrue(arg1:flash.events.MouseEvent):void
{
var loc1:*=new Object();
var loc2:*=new Object();
loc1.type = ncsoft.l2.events.L2UIClientString.EV_IsSuccessBuyingStyle;
loc2.isSuccess = true;
loc1.data = loc2;
getDispacher().dispatchEvent(new ncsoft.l2.events.L2UIEvent(ncsoft.l2.events.L2UIEventString.CALLBACK_EVENT, loc1));
return;
}
internal function listupdateSocialAction(arg1:flash.events.MouseEvent):void
{
var loc1:*=new Object();
loc1.type = ncsoft.l2.events.L2UIClientString.EV_EndSocialAction;
getDispacher().dispatchEvent(new ncsoft.l2.events.L2UIEvent(ncsoft.l2.events.L2UIEventString.CALLBACK_EVENT, loc1));
return;
}
internal function closeEvent(arg1:flash.events.MouseEvent):void
{
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.POPUP_CLOSE));
return;
}
public var listupHair:ncsoft.l2.controls.L2UIButton;
public var listupFace:ncsoft.l2.controls.L2UIButton;
public var listuphave:ncsoft.l2.controls.L2UIButton;
public var listupfalse:ncsoft.l2.controls.L2UIButton;
public var listuptrue:ncsoft.l2.controls.L2UIButton;
public var listupso:ncsoft.l2.controls.L2UIButton;
public var close:ncsoft.l2.controls.L2UIButton;
internal var listupHairData:Object;
internal var listupFaceData:Object;
}
}
// package tooltip
// class BeautyToolTipView
package beautyShop.tooltip
{
import beautyShop.data.*;
import beautyShop.event.*;
import beautyShop.native.*;
import flash.display.*;
import flash.text.*;
import ncsoft.l2.core.*;
import ncsoft.l2.data.*;
import org.casalib.utils.*;
import scaleform.gfx.*;
public class BeautyToolTipView extends ncsoft.l2.core.L2UIBase
{
public function BeautyToolTipView()
{
super();
scaleform.gfx.InteractiveObjectEx.setHitTestDisable(this.bg_mc, true);
scaleform.gfx.InteractiveObjectEx.setHitTestDisable(this.txtField, true);
this.visible = false;
return;
}
public function setTooltip(arg1:Object, arg2:String=""):void
{
var loc1:*=null;
var loc2:*=true;
var loc3:*=arg2;
switch (loc3)
{
case beautyShop.event.BeautyEvent.TOOLTIP_ADENA_RIGHT:
case beautyShop.event.BeautyEvent.TOOLTIP_MSG_RIGHT:
{
this.setPosition(beautyShop.data.BeautyShopData.TOOLTIPRIGHT);
loc1 = String(arg1);
break;
}
case beautyShop.event.BeautyEvent.TOOLTIP_COLOR_LEFT:
{
this.setPosition(beautyShop.data.BeautyShopData.TOOLTIPLEFT);
if (arg1["colorAdena"] == 0 && arg1["colorCoin"] == 0 && arg1["colorDesc"] == "")
{
loc2 = false;
}
if (loc2)
{
loc1 = ["<YELLOW03>", arg1.colorName, "</YELLOW03><br>", "<GRAY02>", this.getAdenaString(arg1.colorAdena), this.getCoinString(arg1.colorCoin), "</GRAY02>", "<br>" + arg1.colorDesc].join("");
}
else
{
loc1 = ["<YELLOW03>", arg1.colorName, "</YELLOW03>"].join("");
}
break;
}
case beautyShop.event.BeautyEvent.TOOLTIP_COLOR_RIGHT:
{
this.setPosition(beautyShop.data.BeautyShopData.TOOLTIPRIGHT);
if (arg1["colorAdena"] == 0 && arg1["colorCoin"] == 0 && arg1["colorDesc"] == "")
{
loc2 = false;
}
if (loc2)
{
loc1 = ["<YELLOW03>", arg1.colorName, "</YELLOW03><br>", "<GRAY02>", this.getAdenaString(arg1.colorAdena), this.getCoinString(arg1.colorCoin), "</GRAY02>", "<br>" + arg1.colorDesc].join("");
}
else
{
loc1 = ["<YELLOW03>", arg1.colorName, "</YELLOW03>"].join("");
}
break;
}
case beautyShop.event.BeautyEvent.TOOLTIP_ITEM_LEFT:
{
this.setPosition(beautyShop.data.BeautyShopData.TOOLTIPLEFT);
loc1 = ["<YELLOW03>", this.getNameString(arg1), "</YELLOW03><br>", "<GRAY02>", this.getAdenaString(arg1.itemAdena), this.getCoinString(arg1.itemCoin), "</GRAY02>", "<br>" + arg1.itemDesc].join("");
break;
}
case beautyShop.event.BeautyEvent.TOOLTIP_ITEM_RIGHT:
{
this.setPosition(beautyShop.data.BeautyShopData.TOOLTIPRIGHT);
loc1 = ["<YELLOW03>", this.getNameString(arg1), "</YELLOW03><br>", "<GRAY02>", this.getAdenaString(arg1.itemAdena), this.getCoinString(arg1.itemCoin), "</GRAY02>", "<br>" + arg1.itemDesc].join("");
break;
}
}
this.txtField.styleSheet = ncsoft.l2.data.L2UIFontStyleSheetData.getInstance().getStyleSheet();
this.txtField.htmlText = loc1;
this.txtField.autoSize = flash.text.TextFieldAutoSize.LEFT;
if (this.bg_mc.width < this.txtField.width)
{
this.bg_mc.width = this.txtField.width + 6;
}
this.bg_mc.height = this.txtField.height + 12;
loc1 = null;
return;
}
internal function setPosition(arg1:int=1):void
{
if (arg1 != beautyShop.data.BeautyShopData.TOOLTIPLEFT)
{
if (arg1 == beautyShop.data.BeautyShopData.TOOLTIPRIGHT)
{
this.x = this.parent["rightView"].x + 10;
this.y = this.parent["rightView"].y + this.parent["rightView"].height + 5;
}
}
else
{
this.x = this.parent["leftView"].x + 16;
this.y = this.parent["leftView"].y + this.parent["leftView"].bg_mc.height + 10;
}
return;
}
internal function getNameString(arg1:Object):String
{
var loc2:*=NaN;
var loc3:*=null;
var loc1:*=arg1.itemName;
if (arg1.isEvent)
{
loc2 = arg1.maxNum - arg1.usedNum;
loc3 = "(" + beautyShop.native.BeautySystem.EVENT + ":" + org.casalib.utils.NumberUtil.format(loc2, String(loc2).length, ",", "0") + ")";
loc1 = loc1 + " " + loc3;
loc2 = -1;
loc3 = null;
}
return loc1;
}
internal function getAdenaString(arg1:String):String
{
if (arg1 == "")
{
return "";
}
return "<br>" + arg1;
}
internal function getCoinString(arg1:Number):String
{
if (isNaN(arg1))
{
arg1 = 0;
}
if (arg1 == 0)
{
return "";
}
return "<br>" + beautyShop.native.BeautySystem.BEAUTIITEM + " x " + org.casalib.utils.NumberUtil.format(arg1, String(arg1).length, ",", "0");
}
public var txtField:flash.text.TextField;
public var bg_mc:flash.display.MovieClip;
}
}
// package view
// package bottom
// class BeautyBottomView
package beautyShop.view.bottom
{
import beautyShop.data.*;
import beautyShop.event.*;
import beautyShop.native.*;
import flash.display.*;
import flash.events.*;
import ncsoft.l2.anchor.*;
import ncsoft.l2.controls.*;
import ncsoft.l2.core.*;
import ncsoft.l2.data.*;
import ncsoft.l2.events.*;
import ncsoft.l2.native.*;
import scaleform.clik.events.*;
import scaleform.gfx.*;
public class BeautyBottomView extends ncsoft.l2.core.L2UIComponentBase
{
public function BeautyBottomView()
{
super();
return;
}
protected override function init():void
{
super.init();
this.rotate_mc.zoom_btn.selected = true;
this.hideTooltip();
return;
}
public override function addEvent():void
{
super.addEvent();
this.rotate_mc.addEventListener(scaleform.clik.events.ButtonEvent.PRESS, this.onPressRotateBtn, false, 0, true);
this.rotate_mc.addEventListener(scaleform.clik.events.ButtonEvent.CLICK, this.onClickRotateBtn, false, 0, true);
this.rotate_mc.addEventListener(scaleform.clik.events.ButtonEvent.RELEASE_OUTSIDE, this.onClickRotateBtn, false, 0, true);
this.leave_btn.addEventListener(scaleform.clik.events.ButtonEvent.CLICK, this.onClickLeaveBtn, false, 0, true);
this.leave_btn.addEventListener(flash.events.MouseEvent.ROLL_OVER, this.onRollOverLeaveBtn, false, 0, true);
this.leave_btn.addEventListener(flash.events.MouseEvent.ROLL_OUT, this.onRollOutLeaveBtn, false, 0, true);
this.beautyBack_btn.addEventListener(scaleform.clik.events.ButtonEvent.CLICK, this.onClickBeautyBackBtn, false, 0, true);
this.addEventListener(beautyShop.event.BeautyEvent.TOOLTIP_OPEN, this.showTooltip, false, 0, true);
this.addEventListener(beautyShop.event.BeautyEvent.TOOLTIP_CLOSE, this.hideTooltip, false, 0, true);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.BUY_START, this.handleBuyStart);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.BUY_COMPLETE, this.handleBuyComplete);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.POPUP_CANCEL, this.handleBuyComplete);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.RESET_START, this.handleResetStart);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.RESET_COMPLETE, this.handleResetComplete);
return;
}
public override function removeEvent():void
{
super.removeEvent();
this.rotate_mc.removeEventListener(scaleform.clik.events.ButtonEvent.PRESS, this.onPressRotateBtn);
this.rotate_mc.removeEventListener(scaleform.clik.events.ButtonEvent.CLICK, this.onClickRotateBtn);
this.leave_btn.removeEventListener(scaleform.clik.events.ButtonEvent.CLICK, this.onClickLeaveBtn);
this.leave_btn.removeEventListener(flash.events.MouseEvent.ROLL_OVER, this.onRollOverLeaveBtn);
this.leave_btn.removeEventListener(flash.events.MouseEvent.ROLL_OUT, this.onRollOutLeaveBtn);
this.removeEventListener(beautyShop.event.BeautyEvent.TOOLTIP_OPEN, this.showTooltip);
this.removeEventListener(beautyShop.event.BeautyEvent.TOOLTIP_CLOSE, this.hideTooltip);
return;
}
protected override function configUI():void
{
scaleform.gfx.InteractiveObjectEx.setHitTestDisable(this.bg_mc, true);
this.setAlign = new ncsoft.l2.anchor.L2UISetAlign();
this.setAlign.setAnchor("bg_mc", this.bg_mc, null, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_BottomLeft, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_BottomLeft, 0, 0);
this.setAlign.setAnchor("beautyBack_btn", this.beautyBack_btn, null, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_BottomLeft, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_BottomLeft, 4, -5);
this.setAlign.setAnchor("leave_btn", this.leave_btn, null, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_BottomRight, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_BottomRight, -4, -5);
this.setAlign.setAnchor("rotate_mc", this.rotate_mc, null, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_BottomCenter, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_BottomCenter, 0, -68);
return;
}
internal function onRollOverLeaveBtn(arg1:flash.events.MouseEvent):void
{
return;
}
internal function onRollOutLeaveBtn(arg1:flash.events.MouseEvent):void
{
return;
}
internal function onPressRotateBtn(arg1:scaleform.clik.events.ButtonEvent):void
{
var loc1:*=arg1.target.name.split("_")[0];
var loc2:*=loc1;
switch (loc2)
{
case "left":
{
beautyShop.native.BeautySystem.rotate(beautyShop.data.BeautyShopData.ROTATE_LEFT);
break;
}
case "right":
{
beautyShop.native.BeautySystem.rotate(beautyShop.data.BeautyShopData.ROTATE_RIGHT);
break;
}
}
loc1 = null;
return;
}
internal function onClickRotateBtn(arg1:scaleform.clik.events.ButtonEvent):void
{
var loc1:*=arg1.target.name.split("_")[0];
var loc2:*=loc1;
switch (loc2)
{
case "zoom":
{
if (arg1.target.selected)
{
beautyShop.native.BeautySystem.zoomInOut(beautyShop.data.BeautyShopData.ZOOMIN);
}
else
{
beautyShop.native.BeautySystem.zoomInOut(beautyShop.data.BeautyShopData.ZOOMOUT);
}
break;
}
case "left":
case "right":
{
beautyShop.native.BeautySystem.rotate(beautyShop.data.BeautyShopData.ROTATE_STOP);
break;
}
}
loc1 = null;
return;
}
internal function onClickLeaveBtn(arg1:scaleform.clik.events.ButtonEvent):void
{
this.init();
getDispacher().dispatchEvent(new ncsoft.l2.events.L2UIEvent(beautyShop.event.BeautyEvent.EXIT, null));
beautyShop.native.BeautySystem.exit();
return;
}
internal function onClickBeautyBackBtn(arg1:scaleform.clik.events.ButtonEvent):void
{
this.init();
getDispacher().dispatchEvent(new ncsoft.l2.events.L2UIEvent(beautyShop.event.BeautyEvent.EXIT, null));
var loc1:*=new Object();
loc1.type = ncsoft.l2.events.L2UIClientString.EV_ReOpenBeautyshopWindow;
getDispacher().dispatchEvent(new ncsoft.l2.events.L2UIEvent(ncsoft.l2.events.L2UIEventString.CALLBACK_EVENT, loc1));
beautyShop.native.BeautySystem.requestItemList(beautyShop.data.BeautyShopData.HAIRNUM);
return;
}
internal function handleBuyStart(arg1:beautyShop.event.BeautyEvent):void
{
this.rotate_mc.visible = false;
this.leave_btn.enabled = false;
return;
}
internal function handleBuyComplete(arg1:beautyShop.event.BeautyEvent):void
{
this.leave_btn.enabled = true;
this.rotate_mc.visible = true;
this.rotate_mc.zoom_btn.selected = false;
return;
}
internal function handleResetStart(arg1:beautyShop.event.BeautyEvent):void
{
this.rotate_mc.visible = false;
this.leave_btn.enabled = false;
this.beautyBack_btn.enabled = false;
return;
}
internal function handleResetComplete(arg1:beautyShop.event.BeautyEvent):void
{
this.leave_btn.enabled = true;
this.rotate_mc.visible = true;
this.beautyBack_btn.enabled = true;
this.rotate_mc.zoom_btn.selected = false;
return;
}
internal function showTooltip(arg1:beautyShop.event.BeautyEvent):void
{
return;
}
internal function hideTooltip(arg1:beautyShop.event.BeautyEvent=null):void
{
return;
}
public override function destroy():void
{
super.destroy();
return;
}
public override function callbackEvent(arg1:ncsoft.l2.events.L2UIEvent):void
{
var loc1:*=null;
var loc2:*=null;
var loc3:*=arg1._parameter.type;
switch (loc3)
{
case ncsoft.l2.events.L2UIClientString.EV_OpenBeautyshopWindow:
case ncsoft.l2.events.L2UIClientString.EV_ReOpenBeautyshopWindow:
{
this.setAlign.update();
this._bIsShopOpen = true;
this.beautyBack_btn.visible = false;
this.beautyBack_btn.enabled = false;
loc1 = ncsoft.l2.native.L2UISystem.getCurrentResolution();
this.bg_mc.width = Math.round(Number(loc1[0]));
break;
}
case ncsoft.l2.events.L2UIClientString.EV_OpenBeautyshopResetWindow:
{
this.setAlign.update();
this._bIsShopOpen = false;
this.beautyBack_btn.visible = true;
this.beautyBack_btn.enabled = true;
loc2 = ncsoft.l2.native.L2UISystem.getCurrentResolution();
this.bg_mc.width = Math.round(Number(loc2[0]));
break;
}
case ncsoft.l2.events.L2UIClientString.EV_ResolutionChanged:
{
this.bg_mc.width = Math.round(arg1._parameter.data["NewWidth"]);
this.setAlign.update();
break;
}
}
return;
}
public var beautyBack_btn:ncsoft.l2.controls.L2UIButton;
public var leave_btn:ncsoft.l2.controls.L2UIButton;
public var rotate_mc:flash.display.MovieClip;
public var bg_mc:flash.display.MovieClip;
internal var setAlign:ncsoft.l2.anchor.L2UISetAlign;
internal var _bIsShopOpen:Boolean;
}
}
// package popup
// package alert
// class AlertPopView
package beautyShop.view.popup.alert
{
import beautyShop.data.*;
import beautyShop.event.*;
import flash.display.*;
import flash.events.*;
import flash.text.*;
import ncsoft.l2.controls.*;
import ncsoft.l2.core.*;
import scaleform.gfx.*;
public class AlertPopView extends ncsoft.l2.core.L2UIBase
{
public function AlertPopView()
{
super();
this.init();
return;
}
protected function init():void
{
this.hideAllBtn();
getDispacher().addEventListener(beautyShop.event.BeautyEvent.ALERT_PROGRESS, this.showAlertProgress);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.BUY_COMPLETE, this.buyComplete);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.RESET_COMPLETE, this.resetComplete);
this.close_btn.addEventListener(flash.events.MouseEvent.CLICK, this.listenerClose);
return;
}
internal function hideAllBtn():void
{
this.resetTime_mc.gotoAndStop(1);
var loc1:*;
this.resetTime_mc.visible = loc1 = false;
this.cancel_btn.visible = loc1 = loc1;
this.ok_btn.visible = loc1 = loc1;
this.close_btn.visible = loc1;
return;
}
internal function showAlertProgress(arg1:beautyShop.event.BeautyEvent):void
{
this.hideAllBtn();
this.resetTime_mc.visible = true;
this.resetTime_mc.play();
this.setMessage(String(arg1.data));
return;
}
internal function buyComplete(arg1:beautyShop.event.BeautyEvent):void
{
this.strType = beautyShop.data.BeautyShopData.ALERTBUYCOMPLETE;
this.hideAllBtn();
this.close_btn.visible = true;
this.setMessage(String(arg1.data));
return;
}
internal function resetComplete(arg1:beautyShop.event.BeautyEvent):void
{
this.strType = beautyShop.data.BeautyShopData.ALERTBUYCOMPLETE;
this.hideAllBtn();
this.close_btn.visible = true;
this.setMessage(String(arg1.data));
return;
}
internal function listenerClose(arg1:flash.events.MouseEvent):void
{
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.POPUP_CLOSE));
return;
}
public function setMessage(arg1:String):void
{
this.msg_txt.htmlText = arg1;
scaleform.gfx.TextFieldEx.setVerticalAlign(this.msg_txt, scaleform.gfx.TextFieldEx.VALIGN_CENTER);
return;
}
public function clear():void
{
this.setMessage("");
this.hideAllBtn();
return;
}
public var close_btn:ncsoft.l2.controls.L2UIButton;
public var ok_btn:ncsoft.l2.controls.L2UIButton;
public var cancel_btn:ncsoft.l2.controls.L2UIButton;
public var resetTime_mc:flash.display.MovieClip;
public var msg_txt:flash.text.TextField;
internal var strType:String;
}
}
// package buypop
// class BuyPopMoney
package beautyShop.view.popup.buypop
{
import beautyShop.data.*;
import beautyShop.event.*;
import flash.text.*;
import ncsoft.l2.controls.*;
import ncsoft.l2.core.*;
import scaleform.clik.events.*;
import scaleform.gfx.*;
public class BuyPopMoney extends ncsoft.l2.core.L2UIBase
{
public function BuyPopMoney()
{
super();
this.init();
return;
}
internal function init():void
{
this.buy_btn.addEventListener(scaleform.clik.events.ButtonEvent.CLICK, this.itemBuyOK);
this.cancel_btn.addEventListener(scaleform.clik.events.ButtonEvent.CLICK, this.itemBuyCancel);
scaleform.gfx.TextFieldEx.setVerticalAlign(this.msg_txt, scaleform.gfx.TextFieldEx.VALIGN_CENTER);
return;
}
internal function itemBuyOK(arg1:scaleform.clik.events.ButtonEvent):void
{
if (this.strPopType != beautyShop.data.BeautyShopData.POP)
{
if (this.strPopType == beautyShop.data.BeautyShopData.RESET)
{
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.POPUP_RESET));
}
}
else
{
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.POPUP_BUY));
}
return;
}
internal function itemBuyCancel(arg1:scaleform.clik.events.ButtonEvent):void
{
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.POPUP_CANCEL));
return;
}
public var adena_txt:flash.text.TextField;
public var coin_txt:flash.text.TextField;
public var msg_txt:flash.text.TextField;
public var buy_btn:ncsoft.l2.controls.L2UIButton;
public var cancel_btn:ncsoft.l2.controls.L2UIButton;
public var strPopType:String;
}
}
// class BuyPopView
package beautyShop.view.popup.buypop
{
import beautyShop.data.*;
import beautyShop.event.*;
import beautyShop.native.*;
import flash.display.*;
import ncsoft.l2.core.*;
import ncsoft.l2.data.*;
import org.casalib.utils.*;
public class BuyPopView extends ncsoft.l2.core.L2UIComponentBase
{
public function BuyPopView()
{
super();
return;
}
protected override function configUI():void
{
this.clear();
getDispacher().addEventListener(beautyShop.event.BeautyEvent.BUY_START, this.showBuyPopup);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.RESET_START, this.showResetPopup);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.POPUP_BUY, this.buyCallServer);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.POPUP_RESET, this.resetCallServer);
return;
}
internal function showBuyPopup(arg1:beautyShop.event.BeautyEvent):void
{
var loc2:*=NaN;
this.clear();
if (!(beautyShop.data.BeautyShopData.objSelectHairData == null) && beautyShop.data.BeautyShopData.bHairCheck)
{
this.hair_mc.visible = true;
this.hair_mc.name_txt.text = beautyShop.data.BeautyShopData.strHair;
this.hair_mc.subName_txt.text = beautyShop.data.BeautyShopData.strHairColor;
}
if (!(beautyShop.data.BeautyShopData.objSelectFaceData == null) && beautyShop.data.BeautyShopData.bFaceCheck)
{
this.face_mc.visible = true;
this.face_mc.name_txt.text = beautyShop.data.BeautyShopData.strFace;
}
var loc1:*=Number(beautyShop.data.BeautyShopData.getInstance().sumAdenaHair()[0] + beautyShop.data.BeautyShopData.getInstance().sumAdenaFace()[0]);
this.money_mc.adena_txt.text = org.casalib.utils.NumberUtil.format(loc1, String(loc1).length, ",", "0") + " " + beautyShop.native.BeautySystem.ADENA;
this.money_mc.coin_txt.text = beautyShop.native.BeautySystem.BEAUTIITEM + " x " + Number(beautyShop.data.BeautyShopData.getInstance().sumAdenaHair()[1] + beautyShop.data.BeautyShopData.getInstance().sumAdenaFace()[1]);
if (Number(beautyShop.data.BeautyShopData.getInstance().sumAdenaHair()[1] + beautyShop.data.BeautyShopData.getInstance().sumAdenaFace()[1]) == 0)
{
this.money_mc.coin_txt.text = "";
}
this.money_mc.msg_txt.styleSheet = ncsoft.l2.data.L2UIFontStyleSheetData.getInstance().getStyleSheet();
this.money_mc.msg_txt.htmlText = beautyShop.native.BeautySystem.POP_BUY;
this.money_mc.strPopType = beautyShop.data.BeautyShopData.POP;
if (this.hair_mc.visible)
{
this.face_mc.y = 92;
if (this.face_mc.visible)
{
loc2 = this.face_mc.y + this.face_mc.height + 12;
this.bg.height = 352;
}
else
{
loc2 = this.hair_mc.y + this.hair_mc.height + 12;
this.bg.height = 352 - 68;
}
}
else
{
this.face_mc.y = 12;
loc2 = this.face_mc.y + this.face_mc.height + 12;
this.bg.height = 352 - 68;
}
this.money_mc.y = loc2;
return;
}
internal function showResetPopup(arg1:beautyShop.event.BeautyEvent):void
{
var loc2:*=NaN;
this.clear();
if (!(beautyShop.data.BeautyShopData.objResetHairData == null) && beautyShop.data.BeautyShopData.bResetHairCheck)
{
this.hair_mc.visible = true;
this.hair_mc.name_txt.text = beautyShop.data.BeautyShopData.strResetHair;
this.hair_mc.subName_txt.text = beautyShop.data.BeautyShopData.strResetHairColor;
}
if (!(beautyShop.data.BeautyShopData.objResetFaceData == null) && beautyShop.data.BeautyShopData.bResetFaceCheck)
{
this.face_mc.visible = true;
this.face_mc.name_txt.text = beautyShop.data.BeautyShopData.strResetFace;
}
var loc1:*=Number(beautyShop.data.BeautyShopData.getInstance().sumResetAdenaHair() + beautyShop.data.BeautyShopData.getInstance().sumResetAdenaFace());
this.money_mc.adena_txt.text = org.casalib.utils.NumberUtil.format(loc1, String(loc1).length, ",", "0") + " " + beautyShop.native.BeautySystem.ADENA;
this.money_mc.coin_txt.text = "";
this.money_mc.msg_txt.styleSheet = ncsoft.l2.data.L2UIFontStyleSheetData.getInstance().getStyleSheet();
this.money_mc.msg_txt.htmlText = beautyShop.native.BeautySystem.POP_RESET;
this.money_mc.strPopType = beautyShop.data.BeautyShopData.RESET;
if (this.hair_mc.visible)
{
this.face_mc.y = 92;
if (this.face_mc.visible)
{
loc2 = this.face_mc.y + this.face_mc.height + 12;
this.bg.height = 352;
}
else
{
loc2 = this.hair_mc.y + this.hair_mc.height + 12;
this.bg.height = 352 - 68;
}
}
else
{
this.face_mc.y = 12;
loc2 = this.face_mc.y + this.face_mc.height + 12;
this.bg.height = 352 - 68;
}
this.money_mc.y = loc2;
return;
}
internal function buyCallServer(arg1:beautyShop.event.BeautyEvent):void
{
var loc1:*=0;
var loc2:*=0;
var loc3:*=0;
if (!(beautyShop.data.BeautyShopData.objSelectHairData == null) && beautyShop.data.BeautyShopData.bHairCheck)
{
loc1 = beautyShop.data.BeautyShopData.objSelectHairData["itemIdx"];
loc2 = beautyShop.data.BeautyShopData.objSelectHairColorData["colorIdx"];
}
else
{
loc1 = -1;
loc2 = -1;
}
if (!(beautyShop.data.BeautyShopData.objSelectFaceData == null) && beautyShop.data.BeautyShopData.bFaceCheck)
{
loc3 = beautyShop.data.BeautyShopData.objSelectFaceData["itemIdx"];
}
else
{
loc3 = -1;
}
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.ALERT_PROGRESS, beautyShop.native.BeautySystem.TIP_BUY));
beautyShop.native.BeautySystem.buy(loc1, loc2, loc3);
beautyShop.data.BeautyShopData.objSelectHairData = null;
beautyShop.data.BeautyShopData.objSelectHairColorData = null;
beautyShop.data.BeautyShopData.objSelectFaceData = null;
return;
}
internal function resetCallServer(arg1:beautyShop.event.BeautyEvent):void
{
if (beautyShop.data.BeautyShopData.bResetHairCheck && beautyShop.data.BeautyShopData.bResetFaceCheck)
{
beautyShop.native.BeautySystem.reset(2);
}
else
{
if (beautyShop.data.BeautyShopData.bResetHairCheck)
{
beautyShop.native.BeautySystem.reset(beautyShop.data.BeautyShopData.HAIRNUM);
}
if (beautyShop.data.BeautyShopData.bResetFaceCheck)
{
beautyShop.native.BeautySystem.reset(beautyShop.data.BeautyShopData.FACENUM);
}
}
beautyShop.data.BeautyShopData.objResetHairData = null;
beautyShop.data.BeautyShopData.objResetFaceData = null;
var loc1:*;
var loc2:*=((loc1 = beautyShop.data.BeautyShopData).nResetCount + 1);
loc1.nResetCount = loc2;
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.ALERT_PROGRESS, beautyShop.native.BeautySystem.TIP_BUY_RESET));
return;
}
internal function popupClose():void
{
this.clear();
return;
}
public function clear():void
{
this.hair_mc.visible = false;
this.face_mc.visible = false;
return;
}
public var hair_mc:flash.display.MovieClip;
public var face_mc:flash.display.MovieClip;
public var bg:flash.display.MovieClip;
public var money_mc:BuyPopMoney;
}
}
// class BeautyPopupView
package beautyShop.view.popup
{
import beautyShop.event.*;
import flash.display.*;
import ncsoft.l2.anchor.*;
import ncsoft.l2.core.*;
import ncsoft.l2.data.*;
import ncsoft.l2.events.*;
import ncsoft.l2.native.*;
public class BeautyPopupView extends ncsoft.l2.core.L2UIComponentBase
{
public function BeautyPopupView()
{
super();
return;
}
protected override function configUI():void
{
this.visible = false;
this.setAlign = new ncsoft.l2.anchor.L2UISetAlign();
this.setAlign.setAnchor("disable_bg", this.disable_bg, null, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_TopLeft, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_TopLeft, 0, 0);
this.setAlign.setAnchor("buy_mc", this.buy_mc, null, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_CenterCenter, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_CenterCenter, 0, 0);
this.setAlign.setAnchor("alert_mc", this.alert_mc, null, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_CenterCenter, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_CenterCenter, 0, 0);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.BUY_START, this.showBuyPopup);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.RESET_START, this.showResetPopup);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.ALERT_PROGRESS, this.showAlertProgress);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.BUY_COMPLETE, this.buyComplete);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.RESET_COMPLETE, this.buyComplete);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.POPUP_CLOSE, this.showBuyPopupCancel);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.POPUP_CANCEL, this.showBuyPopupCancel);
return;
}
internal function showBuyPopup(arg1:beautyShop.event.BeautyEvent):void
{
this.visible = true;
this.buy_mc.visible = true;
this.alert_mc.visible = false;
var loc1:*=ncsoft.l2.native.L2UISystem.getCurrentResolution();
this.disable_bg.width = Math.round(Number(loc1[0]));
this.disable_bg.height = Math.round(Number(loc1[0]));
this.setAlign.update();
return;
}
internal function showResetPopup(arg1:beautyShop.event.BeautyEvent):void
{
this.visible = true;
this.buy_mc.visible = true;
this.alert_mc.visible = false;
var loc1:*=ncsoft.l2.native.L2UISystem.getCurrentResolution();
this.disable_bg.width = Math.round(Number(loc1[0]));
this.disable_bg.height = Math.round(Number(loc1[0]));
this.setAlign.update();
return;
}
internal function showAlertProgress(arg1:beautyShop.event.BeautyEvent):void
{
this.visible = true;
this.buy_mc.visible = false;
this.alert_mc.visible = true;
this.setAlign.update();
return;
}
internal function buyComplete(arg1:beautyShop.event.BeautyEvent):void
{
this.visible = true;
this.buy_mc.visible = false;
this.alert_mc.visible = true;
this.setAlign.update();
return;
}
internal function showBuyPopupCancel(arg1:beautyShop.event.BeautyEvent):void
{
this.visible = false;
this.buy_mc.visible = false;
this.alert_mc.visible = false;
return;
}
public override function callbackEvent(arg1:ncsoft.l2.events.L2UIEvent):void
{
var loc1:*=arg1._parameter.type;
switch (loc1)
{
case ncsoft.l2.events.L2UIClientString.EV_OpenBeautyshopWindow:
{
this.visible = false;
break;
}
case ncsoft.l2.events.L2UIClientString.EV_ResolutionChanged:
{
this.disable_bg.width = Math.round(arg1._parameter.data["NewWidth"]);
this.disable_bg.height = Math.round(arg1._parameter.data["NewHeight"]);
this.setAlign.update();
break;
}
}
return;
}
public var alert_mc:AlertPopView;
public var buy_mc:flash.display.MovieClip;
public var disable_bg:flash.display.MovieClip;
internal var setAlign:ncsoft.l2.anchor.L2UISetAlign;
}
}
// package reset
// package have
// package item
// class MainResetItemView
package beautyShop.view.reset.have.item
{
import ncsoft.l2.core.*;
public class MainResetItemView extends ncsoft.l2.core.L2UIBase
{
public function MainResetItemView()
{
super();
return;
}
public function setNamePrefix(arg1:String):void
{
this.strNamePrefix = "[" + arg1 + "] ";
return;
}
public function setNameSuffix(arg1:String):void
{
this.strNameSuffix = " " + arg1;
return;
}
public function setName(arg1:String):String
{
this.strName = this.strNamePrefix + arg1 + this.strNameSuffix;
return this.strName;
}
public function clear():void
{
return;
}
internal var strName:String;
internal var strNamePrefix:String="";
internal var strNameSuffix:String="";
}
}
// class ResetItemView
package beautyShop.view.reset.have.item
{
import beautyShop.data.*;
import beautyShop.event.*;
import scaleform.clik.events.*;
public class ResetItemView extends beautyShop.view.reset.have.item.MainResetItemView
{
public function ResetItemView()
{
super();
this.checkbox.addEventListener(scaleform.clik.events.ButtonEvent.CLICK, this.checkboxClick);
return;
}
public function setNameLable(arg1:String):void
{
if (arg1 != "")
{
this.checkbox.textField.textColor = 16768358;
this.checkbox.enabled = true;
if (beautyShop.data.BeautyShopData.nResetCount != 0)
{
this.checkbox.selected = false;
}
else
{
this.checkbox.selected = true;
}
}
else
{
this.checkbox.textField.textColor = 6710886;
}
this.checkbox.label = arg1;
return;
}
public override function clear():void
{
super.clear();
this.checkbox.label = "";
this.checkbox.enabled = false;
this.checkbox.selected = false;
return;
}
internal function checkboxClick(arg1:scaleform.clik.events.ButtonEvent):void
{
if (this.nItemType != beautyShop.data.BeautyShopData.HAIRNUM)
{
if (this.nItemType == beautyShop.data.BeautyShopData.FACENUM)
{
beautyShop.data.BeautyShopData.bResetFaceCheck = this.checkbox.selected;
}
}
else
{
beautyShop.data.BeautyShopData.bResetHairCheck = this.checkbox.selected;
}
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.RESET_SUM_ITEMPRICE_UPDATE, null, this.nItemType));
return;
}
public var checkbox:CheckBox;
public var nItemType:int;
}
}
// class ResetSubItemView
package beautyShop.view.reset.have.item
{
import flash.text.*;
public class ResetSubItemView extends beautyShop.view.reset.have.item.MainResetItemView
{
public function ResetSubItemView()
{
super();
this.clear();
return;
}
public function setNameText(arg1:String):void
{
if (arg1 != "")
{
this.name_txt.textColor = 16768358;
}
else
{
this.name_txt.textColor = 6710886;
}
this.name_txt.text = arg1;
return;
}
public override function clear():void
{
super.clear();
this.name_txt.text = "";
return;
}
public var name_txt:flash.text.TextField;
}
}
// package money
// class AdenaView
package beautyShop.view.reset.have.money
{
import beautyShop.event.*;
import beautyShop.native.*;
import flash.display.*;
import flash.events.*;
import flash.text.*;
import org.casalib.utils.*;
public class AdenaView extends flash.display.Sprite
{
public function AdenaView()
{
super();
this.clear();
this.adena_txt.addEventListener(flash.events.MouseEvent.MOUSE_OVER, this.adenaOver);
this.adena_txt.addEventListener(flash.events.MouseEvent.MOUSE_OUT, this.adenaOut);
return;
}
internal function adenaOver(arg1:flash.events.MouseEvent):void
{
if (this.nAdena != 0)
{
dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.TOOLTIP_ADENA_RIGHT, beautyShop.native.BeautySystem.getAdenaString(this.nAdena)));
}
return;
}
internal function adenaOut(arg1:flash.events.MouseEvent):void
{
dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.TOOLTIP_CLOSE));
return;
}
public function get adena():Number
{
return this.nAdena;
}
public function set adena(arg1:Number):void
{
this.nAdena = arg1;
if (this.nAdena != 0)
{
this.adena_txt.textColor = 14540253;
}
else
{
this.adena_txt.textColor = 6710886;
}
this.adena_txt.text = org.casalib.utils.NumberUtil.format(arg1, String(arg1).length, ",", "0") + " " + beautyShop.native.BeautySystem.ADENA;
return;
}
public function clear():void
{
this.adena = 0;
this.adena_txt.text = "0";
return;
}
public var adena_txt:flash.text.TextField;
internal var nAdena:Number;
}
}
// class ResetHaveItemView
package beautyShop.view.reset.have
{
import beautyShop.data.*;
import beautyShop.event.*;
import beautyShop.native.*;
import ncsoft.l2.core.*;
public class ResetHaveItemView extends ncsoft.l2.core.L2UIBase
{
public function ResetHaveItemView()
{
super();
this.init();
return;
}
internal function init():void
{
getDispacher().addEventListener(beautyShop.event.BeautyEvent.RESET_UPDATE_LIST, this.listUpdate);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.RESET_SUM_ITEMPRICE_UPDATE, this.checkBoxUpdate);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.SHOW, this.allClear);
return;
}
internal function allClear(arg1:beautyShop.event.BeautyEvent):void
{
this.hair_mc.clear();
this.hairColor_mc.clear();
this.face_mc.clear();
return;
}
internal function listUpdate(arg1:beautyShop.event.BeautyEvent):void
{
var loc1:*=arg1.data;
if (loc1["Elements"][0]["itemAdenaNum"] == null)
{
beautyShop.data.BeautyShopData.bResetHairCheck = false;
this.hair_mc.clear();
beautyShop.data.BeautyShopData.strResetHair = "";
this.hairColor_mc.clear();
beautyShop.data.BeautyShopData.strResetHairColor = "";
}
else
{
this.hair_mc.nItemType = beautyShop.data.BeautyShopData.HAIRNUM;
this.hair_mc.setNamePrefix(beautyShop.native.BeautySystem.HAIR);
this.hair_mc.setNameLable(this.hair_mc.setName(loc1["Elements"][0]["itemName"]));
beautyShop.data.BeautyShopData.strResetHair = this.hair_mc.setName(loc1["Elements"][0]["itemName"]);
this.hairColor_mc.setNamePrefix(beautyShop.native.BeautySystem.HAIRCOLOR);
this.hairColor_mc.setNameText(this.hairColor_mc.setName(loc1["Elements"][0]["colorName"]));
beautyShop.data.BeautyShopData.strResetHairColor = this.hairColor_mc.setName(loc1["Elements"][0]["colorName"]);
beautyShop.data.BeautyShopData.bResetHairCheck = this.hair_mc.checkbox.selected;
}
if (loc1["Elements"][1]["itemAdenaNum"] == null)
{
beautyShop.data.BeautyShopData.bResetFaceCheck = false;
this.face_mc.clear();
beautyShop.data.BeautyShopData.strResetFace = "";
}
else
{
beautyShop.data.BeautyShopData.bResetFaceCheck = true;
this.face_mc.nItemType = beautyShop.data.BeautyShopData.FACENUM;
this.face_mc.setNamePrefix(beautyShop.native.BeautySystem.FACE);
this.face_mc.setNameLable(this.face_mc.setName(loc1["Elements"][1]["itemName"]));
beautyShop.data.BeautyShopData.strResetFace = this.face_mc.setName(loc1["Elements"][1]["itemName"]);
beautyShop.data.BeautyShopData.bResetFaceCheck = this.face_mc.checkbox.selected;
}
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.RESET_SUM_ITEMPRICE));
this.pickupUpdate();
return;
}
internal function checkBoxUpdate(arg1:beautyShop.event.BeautyEvent):void
{
this.pickupUpdate();
return;
}
internal function pickupUpdate():void
{
var loc1:*=-1;
var loc2:*=-1;
var loc3:*=-1;
if (this.hair_mc.checkbox.selected != false)
{
loc1 = beautyShop.data.BeautyShopData.resetHairType;
loc2 = beautyShop.data.BeautyShopData.resetHairColor;
}
else
{
loc1 = beautyShop.data.BeautyShopData.objResetHairData["itemIdx"];
if (loc1 == 0)
{
loc2 = 0;
}
else
{
loc2 = beautyShop.data.BeautyShopData.objResetHairData["colorIdx"];
}
}
if (this.face_mc.checkbox.selected != false)
{
loc3 = beautyShop.data.BeautyShopData.resetFaceType;
}
else
{
loc3 = beautyShop.data.BeautyShopData.objResetFaceData["itemIdx"];
}
beautyShop.native.BeautySystem.pickedStyle(loc1, loc2, loc3);
return;
}
public var hair_mc:ResetItemView;
public var hairColor_mc:ResetSubItemView;
public var face_mc:ResetItemView;
}
}
// class ResetHaveMoneyView
package beautyShop.view.reset.have
{
import beautyShop.data.*;
import beautyShop.event.*;
import ncsoft.l2.controls.*;
import ncsoft.l2.core.*;
import scaleform.clik.events.*;
public class ResetHaveMoneyView extends ncsoft.l2.core.L2UIBase
{
public function ResetHaveMoneyView()
{
super();
this.init();
return;
}
internal function init():void
{
getDispacher().addEventListener(beautyShop.event.BeautyEvent.UPDATE_HAVEMONEY, this.updateHaveMoney);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.RESET_SUM_ITEMPRICE, this.updateSumPriceUpdate);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.RESET_SUM_ITEMPRICE_UPDATE, this.updateSumPriceUpdate);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.SHOW, this.allClear);
this.reset_btn.addEventListener(scaleform.clik.events.ButtonEvent.CLICK, this.resetClick);
return;
}
internal function allClear(arg1:beautyShop.event.BeautyEvent):void
{
this.sumMoney_mc.clear();
this.haveMoney_mc.clear();
return;
}
internal function updateHaveMoney(arg1:beautyShop.event.BeautyEvent):void
{
this.haveMoney_mc.adena = arg1.data["adenaNum"];
return;
}
internal function updateSumPriceUpdate(arg1:beautyShop.event.BeautyEvent):void
{
this.updateSumMoneyItem();
this.isUseButButton();
return;
}
internal function updateSumMoneyItem():void
{
this.sumMoney_mc.adena = beautyShop.data.BeautyShopData.getInstance().sumResetAdenaHair() + beautyShop.data.BeautyShopData.getInstance().sumResetAdenaFace();
return;
}
internal function isUseButButton():void
{
this.reset_btn.disabled = false;
if (this.sumMoney_mc.adena == 0)
{
this.reset_btn.disabled = true;
}
if (this.haveMoney_mc.adena < this.sumMoney_mc.adena)
{
this.reset_btn.disabled = true;
}
return;
}
internal function resetClick(arg1:scaleform.clik.events.ButtonEvent):void
{
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.RESET_START));
return;
}
public var reset_btn:ncsoft.l2.controls.L2UIButton;
public var sumMoney_mc:AdenaView;
public var haveMoney_mc:AdenaView;
}
}
// class BeautyResetView
package beautyShop.view.reset
{
import beautyShop.data.*;
import beautyShop.event.*;
import beautyShop.native.*;
import beautyShop.tooltip.*;
import flash.display.*;
import flash.events.*;
import ncsoft.l2.anchor.*;
import ncsoft.l2.core.*;
import ncsoft.l2.data.*;
import ncsoft.l2.events.*;
import ncsoft.l2.native.*;
public class BeautyResetView extends ncsoft.l2.core.L2UIComponentBase
{
public function BeautyResetView()
{
super();
return;
}
public override function addEvent():void
{
super.addEvent();
addEventListener(flash.events.Event.ENTER_FRAME, initUI, false, 0, true);
return;
}
protected override function configUI():void
{
this.visible = false;
this.setAlign = new ncsoft.l2.anchor.L2UISetAlign();
this.setAlign.setAnchor("rightView", this.rightView, null, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_TopRight, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_TopRight, -15, 132);
this.addEventListener(beautyShop.event.BeautyEvent.TOOLTIP_ADENA_RIGHT, this.showTooltip, false, 0, true);
this.addEventListener(beautyShop.event.BeautyEvent.TOOLTIP_MSG_RIGHT, this.showTooltip, false, 0, true);
this.addEventListener(beautyShop.event.BeautyEvent.TOOLTIP_CLOSE, this.hideTooltip, false, 0, true);
return;
}
internal function showTooltip(arg1:beautyShop.event.BeautyEvent):void
{
this.tooltip_mc.visible = true;
this.tooltip_mc.setTooltip(arg1.data, arg1.type);
return;
}
internal function hideTooltip(arg1:beautyShop.event.BeautyEvent):void
{
this.tooltip_mc.visible = false;
return;
}
public override function callbackEvent(arg1:ncsoft.l2.events.L2UIEvent):void
{
var loc1:*=arg1._parameter.type;
switch (loc1)
{
case ncsoft.l2.events.L2UIClientString.EV_OpenBeautyshopWindow:
case ncsoft.l2.events.L2UIClientString.EV_ReOpenBeautyshopWindow:
{
this.visible = false;
break;
}
case ncsoft.l2.events.L2UIClientString.EV_OpenBeautyshopResetWindow:
{
beautyShop.native.BeautySystem.init();
this.setAlign.update();
this.clear();
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.SHOW, beautyShop.data.BeautyShopData.RESETWINDOW));
beautyShop.native.BeautySystem.open(beautyShop.data.BeautyShopData.RESETWINDOW);
this.visible = true;
beautyShop.data.BeautyShopData.nResetCount = 0;
ncsoft.l2.native.L2UISystem.openUI("BeautyShop");
break;
}
case ncsoft.l2.events.L2UIClientString.EV_IsSuccessBuyingStyle:
{
if (arg1._parameter.data.isSuccess)
{
this.setAlign.beautyMoveOut();
}
break;
}
case ncsoft.l2.events.L2UIClientString.EV_EndSocialAction:
{
this.setAlign.beautyMoveIn();
break;
}
case ncsoft.l2.events.L2UIClientString.EV_CurrentUserStyle:
{
beautyShop.data.BeautyShopData.objResetHairData = arg1._parameter.data["Elements"][0];
beautyShop.data.BeautyShopData.objResetFaceData = arg1._parameter.data["Elements"][1];
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.RESET_UPDATE_LIST, arg1._parameter.data));
break;
}
case ncsoft.l2.events.L2UIClientString.EV_OldUserStyle:
{
beautyShop.data.BeautyShopData.resetHairType = arg1._parameter.data["hair"];
beautyShop.data.BeautyShopData.resetHairColor = arg1._parameter.data["hairColor"];
beautyShop.data.BeautyShopData.resetFaceType = arg1._parameter.data["face"];
break;
}
case ncsoft.l2.events.L2UIClientString.EV_ExitBeautyshop:
{
this.clear();
beautyShop.native.BeautySystem.exit();
break;
}
case ncsoft.l2.events.L2UIClientString.EV_ResolutionChanged:
{
this.setAlign.update();
break;
}
}
return;
}
internal function clear():void
{
beautyShop.data.BeautyShopData.objResetHairData = null;
beautyShop.data.BeautyShopData.objResetFaceData = null;
beautyShop.data.BeautyShopData.resetHairType = 0;
beautyShop.data.BeautyShopData.resetHairColor = 0;
beautyShop.data.BeautyShopData.resetFaceType = 0;
return;
}
public var rightView:flash.display.MovieClip;
public var tooltip_mc:beautyShop.tooltip.BeautyToolTipView;
internal var setAlign:ncsoft.l2.anchor.L2UISetAlign;
}
}
// package shop
// package buy
// package have
// class HaveMoneyView
package beautyShop.view.shop.buy.have
{
import beautyShop.data.*;
import beautyShop.event.*;
import beautyShop.native.*;
import flash.events.*;
import ncsoft.l2.controls.*;
import ncsoft.l2.core.*;
public class HaveMoneyView extends ncsoft.l2.core.L2UIComponentBase
{
public function HaveMoneyView()
{
super();
return;
}
protected override function configUI():void
{
getDispacher().addEventListener(beautyShop.event.BeautyEvent.SHOW, this.clearData);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.UPDATE_HAVEMONEY, this.updateHaveMoney);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.SUM_ITEMPRICE, this.updateSumPriceUpdate);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.SUM_ITEMPRICE_UPDATE, this.updateSumPriceUpdate);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.UPDATE_RESET, this.updateSumPriceUpdate);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.BUY_COMPLETE, this.updateSumPriceUpdate);
this.buy_btn.addEventListener(flash.events.MouseEvent.CLICK, this.buyItemButtonClick);
this.buy_btn.addEventListener(flash.events.MouseEvent.MOUSE_OVER, this.buyButtonOver);
this.buy_btn.addEventListener(flash.events.MouseEvent.MOUSE_OUT, this.buyButtonOut);
this.clear();
return;
}
internal function buyItemButtonClick(arg1:flash.events.MouseEvent):void
{
if (this.buy_btn.disabled == false)
{
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.BUY_START, null));
}
return;
}
internal function buyButtonOver(arg1:flash.events.MouseEvent):void
{
if (this.strToopTipMsg == "")
{
this.strToopTipMsg = beautyShop.native.BeautySystem.TIP_BUY_NOITEM;
}
dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.TOOLTIP_MSG_RIGHT, this.strToopTipMsg));
return;
}
internal function buyButtonOut(arg1:flash.events.MouseEvent):void
{
dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.TOOLTIP_CLOSE));
return;
}
internal function updateHaveMoney(arg1:beautyShop.event.BeautyEvent):void
{
this.haveMoney_mc.adena = arg1.data["adenaNum"];
this.haveMoney_mc.coin = arg1.data["coin"];
return;
}
internal function updateSumPriceUpdate(arg1:beautyShop.event.BeautyEvent):void
{
this.updateSumMoneyItem();
this.isUseButButton();
return;
}
internal function isUseButButton():void
{
this.buy_btn.disabled = false;
this.strToopTipMsg = beautyShop.native.BeautySystem.TIP_BUY;
if (this.sumMoney_mc.adena == 0 && this.sumMoney_mc.coin == 0)
{
this.buy_btn.disabled = true;
this.strToopTipMsg = beautyShop.native.BeautySystem.TIP_BUY_NOITEM;
}
if (this.haveMoney_mc.adena < this.sumMoney_mc.adena)
{
this.buy_btn.disabled = true;
this.strToopTipMsg = beautyShop.native.BeautySystem.TIP_BUY_NOMONEY;
}
if (this.haveMoney_mc.coin < this.sumMoney_mc.coin)
{
this.buy_btn.disabled = true;
this.strToopTipMsg = beautyShop.native.BeautySystem.TIP_BUY_NOMONEY;
}
return;
}
internal function updateSumMoneyItem():void
{
this.sumMoney_mc.adena = beautyShop.data.BeautyShopData.getInstance().sumAdenaHair()[0] + beautyShop.data.BeautyShopData.getInstance().sumAdenaFace()[0];
this.sumMoney_mc.coin = beautyShop.data.BeautyShopData.getInstance().sumAdenaHair()[1] + beautyShop.data.BeautyShopData.getInstance().sumAdenaFace()[1];
return;
}
internal function clearData(arg1:beautyShop.event.BeautyEvent):void
{
this.clear();
return;
}
public function clear():void
{
this.strToopTipMsg = beautyShop.native.BeautySystem.TIP_BUY_NOITEM;
this.haveMoney_mc.clear();
this.sumMoney_mc.clear();
this.buy_btn.disabled = true;
return;
}
public var buy_btn:ncsoft.l2.controls.L2UIButton;
public var sumMoney_mc:MoneyView;
public var haveMoney_mc:MoneyView;
internal var strToopTipMsg:String="";
}
}
// class MoneyView
package beautyShop.view.shop.buy.have
{
import beautyShop.native.*;
import org.casalib.utils.*;
public class MoneyView extends beautyShop.native.MainItemMoneyView
{
public function MoneyView()
{
super();
return;
}
public override function set adena(arg1:Number):void
{
this.nAdena = arg1;
if (this.nAdena != 0)
{
this.adena_txt.textColor = 14540253;
}
else
{
this.adena_txt.textColor = 6710886;
}
this.adena_txt.text = org.casalib.utils.NumberUtil.format(arg1, String(arg1).length, ",", "0") + " " + beautyShop.native.BeautySystem.ADENA;
return;
}
public override function set coin(arg1:int):void
{
this.nCoin = arg1;
if (this.nCoin != 0)
{
this.coin_txt.textColor = 14540253;
}
else
{
this.coin_txt.textColor = 6710886;
}
if (this.nCoin != 0)
{
this.coin_txt.text = beautyShop.native.BeautySystem.BEAUTIITEM + " x " + org.casalib.utils.NumberUtil.format(arg1, String(arg1).length, ",", "0");
}
else
{
this.coin_txt.text = "-";
}
return;
}
}
}
// package select
// class ItemView
package beautyShop.view.shop.buy.select
{
import beautyShop.data.*;
import beautyShop.event.*;
import beautyShop.native.*;
import flash.events.*;
import ncsoft.l2.controls.*;
import scaleform.clik.events.*;
public class ItemView extends beautyShop.native.MainItemMoneyView
{
public function ItemView()
{
super();
return;
}
protected override function init():void
{
super.init();
this.checkbox.addEventListener(scaleform.clik.events.ButtonEvent.CLICK, this.checkboxClick);
this.checkbox.addEventListener(flash.events.MouseEvent.MOUSE_OVER, this.checkboxOver);
this.checkbox.addEventListener(flash.events.MouseEvent.MOUSE_OUT, this.checkboxOut);
this.reset_btn.addEventListener(scaleform.clik.events.ButtonEvent.CLICK, this.resetButtonClick);
this.reset_btn.addEventListener(flash.events.MouseEvent.MOUSE_OVER, this.resetButtonOver);
this.reset_btn.addEventListener(flash.events.MouseEvent.MOUSE_OUT, this.resetButtonOut);
return;
}
public function setNameLable(arg1:String):void
{
if (arg1 != "")
{
this.checkbox.textField.textColor = 16768358;
this.checkbox.enabled = true;
this.checkbox.selected = true;
this.reset_btn.enabled = true;
}
else
{
this.checkbox.textField.textColor = 6710886;
this.reset_btn.enabled = false;
}
this.checkbox.label = arg1;
return;
}
internal function checkboxClick(arg1:scaleform.clik.events.ButtonEvent):void
{
if (this.nItemType != beautyShop.data.BeautyShopData.HAIRNUM)
{
if (this.nItemType == beautyShop.data.BeautyShopData.FACENUM)
{
beautyShop.data.BeautyShopData.bFaceCheck = this.checkbox.selected;
}
}
else
{
beautyShop.data.BeautyShopData.bHairCheck = this.checkbox.selected;
}
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.SUM_ITEMPRICE_UPDATE, null, this.nItemType));
return;
}
internal function checkboxOver(arg1:flash.events.MouseEvent):void
{
dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.TOOLTIP_ITEM_RIGHT, this.itemValue));
return;
}
internal function checkboxOut(arg1:flash.events.MouseEvent):void
{
dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.TOOLTIP_CLOSE));
return;
}
internal function resetButtonOver(arg1:flash.events.MouseEvent):void
{
dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.TOOLTIP_MSG_RIGHT, beautyShop.native.BeautySystem.TIP_BUY_RESET));
return;
}
internal function resetButtonOut(arg1:flash.events.MouseEvent):void
{
dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.TOOLTIP_CLOSE));
return;
}
internal function resetButtonClick(arg1:scaleform.clik.events.ButtonEvent):void
{
if (this.nItemType != beautyShop.data.BeautyShopData.HAIRNUM)
{
if (this.nItemType == beautyShop.data.BeautyShopData.FACENUM)
{
beautyShop.data.BeautyShopData.bFaceCheck = false;
beautyShop.data.BeautyShopData.objSelectFaceData = null;
}
}
else
{
beautyShop.data.BeautyShopData.bHairCheck = false;
beautyShop.data.BeautyShopData.objSelectHairData = null;
beautyShop.data.BeautyShopData.objSelectHairColorData = null;
}
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.UPDATE_RESET, null, this.nItemType));
return;
}
public function get itemtype():int
{
return this.nItemType;
}
public function set itemtype(arg1:int):void
{
this.nItemType = arg1;
return;
}
public override function set itemValue(arg1:Object):void
{
super.itemValue = arg1;
var loc1:*=arg1.isEvent && !(arg1.isEvent == null) ? "(" + beautyShop.native.BeautySystem.EVENT + ":" + (arg1.maxNum - arg1.usedNum) + ")" : "";
if (this.nItemType != beautyShop.data.BeautyShopData.HAIRNUM)
{
this.setNamePrefix(beautyShop.native.BeautySystem.FACE);
this.setNameSuffix(loc1);
this.setNameLable(this.setName(arg1["itemName"]));
beautyShop.data.BeautyShopData.strFace = this.setName(arg1["itemName"]);
}
else
{
this.setNamePrefix(beautyShop.native.BeautySystem.HAIR);
this.setNameSuffix(loc1);
this.setNameLable(this.setName(arg1["itemName"]));
beautyShop.data.BeautyShopData.strHair = this.setName(arg1["itemName"]);
}
return;
}
public override function clear():void
{
super.clear();
this.checkbox.label = "";
this.checkbox.enabled = false;
this.checkbox.selected = false;
this.reset_btn.enabled = false;
return;
}
public var reset_btn:ncsoft.l2.controls.L2UIButton;
public var checkbox:CheckBox;
internal var nItemType:int=-1;
}
}
// class SelectItemView
package beautyShop.view.shop.buy.select
{
import beautyShop.data.*;
import beautyShop.event.*;
import beautyShop.native.*;
import ncsoft.l2.core.*;
public class SelectItemView extends ncsoft.l2.core.L2UIBase
{
public function SelectItemView()
{
super();
this.init();
return;
}
internal function init():void
{
getDispacher().addEventListener(beautyShop.event.BeautyEvent.SHOW, this.clearData);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.POPUP_BUY, this.clearData);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.LIST_SELECT, this.updateItem);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.COLOR_SELECT, this.updateColor);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.SUM_ITEMPRICE_UPDATE, this.updateSumPriceUpdate);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.UPDATE_RESET, this.listUpdateReset);
this.hair_mc.clear();
this.hairColor_mc.clear();
this.face_mc.clear();
return;
}
internal function updateItem(arg1:beautyShop.event.BeautyEvent):void
{
if (arg1.select != beautyShop.data.BeautyShopData.HAIRNUM)
{
if (arg1.select == beautyShop.data.BeautyShopData.FACENUM)
{
this.face_mc.itemtype = beautyShop.data.BeautyShopData.FACENUM;
this.face_mc.itemValue = beautyShop.data.BeautyShopData.objSelectFaceData;
beautyShop.data.BeautyShopData.bFaceCheck = true;
}
}
else
{
this.hair_mc.itemtype = beautyShop.data.BeautyShopData.HAIRNUM;
this.hair_mc.itemValue = beautyShop.data.BeautyShopData.objSelectHairData;
this.hairColor_mc.itemValue = beautyShop.data.BeautyShopData.objSelectHairColorData;
beautyShop.data.BeautyShopData.bHairCheck = true;
}
this.sumItemPrice();
return;
}
internal function updateColor(arg1:beautyShop.event.BeautyEvent):void
{
this.hairColor_mc.itemValue = beautyShop.data.BeautyShopData.objSelectHairColorData;
this.sumItemPrice();
return;
}
internal function updateSumPriceUpdate(arg1:beautyShop.event.BeautyEvent):void
{
this.sumItemPrice();
return;
}
internal function listUpdateReset(arg1:beautyShop.event.BeautyEvent):void
{
if (arg1.select != beautyShop.data.BeautyShopData.HAIRNUM)
{
if (arg1.select == beautyShop.data.BeautyShopData.FACENUM)
{
this.face_mc.clear();
}
}
else
{
this.hair_mc.clear();
this.hairColor_mc.clear();
}
this.sumItemPrice();
return;
}
internal function sumItemPrice():void
{
var loc1:*=-1;
var loc2:*=-1;
var loc3:*=-1;
if (this.hair_mc.checkbox.selected == true)
{
loc1 = this.hair_mc.idx;
loc2 = this.hairColor_mc.idx;
}
if (this.face_mc.checkbox.selected == true)
{
loc3 = this.face_mc.idx;
}
beautyShop.native.BeautySystem.pickedStyle(loc1, loc2, loc3);
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.SUM_ITEMPRICE, null));
return;
}
internal function clearData(arg1:beautyShop.event.BeautyEvent):void
{
this.hair_mc.clear();
this.hairColor_mc.clear();
this.face_mc.clear();
return;
}
public var hair_mc:ItemView;
public var face_mc:ItemView;
public var hairColor_mc:SubItemView;
}
}
// class SubItemView
package beautyShop.view.shop.buy.select
{
import beautyShop.data.*;
import beautyShop.event.*;
import beautyShop.native.*;
import flash.events.*;
import flash.text.*;
public class SubItemView extends beautyShop.native.MainItemMoneyView
{
public function SubItemView()
{
super();
this.name_txt.addEventListener(flash.events.MouseEvent.MOUSE_OVER, this.colorOver);
this.name_txt.addEventListener(flash.events.MouseEvent.MOUSE_OUT, this.colorOut);
this.color_mc.addEventListener(flash.events.MouseEvent.MOUSE_OVER, this.colorOver);
this.color_mc.addEventListener(flash.events.MouseEvent.MOUSE_OUT, this.colorOut);
return;
}
public function setNameText(arg1:String):void
{
this.name_txt.text = arg1;
return;
}
public override function clear():void
{
super.clear();
this.name_txt.text = "";
this.color_mc.setData(null);
return;
}
internal function colorOver(arg1:flash.events.MouseEvent):void
{
if (this.itemValue["colorAdenaNum"] != null)
{
dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.TOOLTIP_COLOR_RIGHT, this.itemValue));
}
return;
}
internal function colorOut(arg1:flash.events.MouseEvent):void
{
dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.TOOLTIP_CLOSE));
return;
}
public override function set itemValue(arg1:Object):void
{
this.objItemValue = arg1;
this.setNamePrefix(beautyShop.native.BeautySystem.HAIRCOLOR);
this.setNameText(this.setName(arg1["colorName"]));
beautyShop.data.BeautyShopData.strHairColor = this.setName(arg1["colorName"]);
this.color_mc.setData(beautyShop.data.BeautyShopData.objSelectHairColorData);
this.adena = arg1["colorAdenaNum"];
this.coin = arg1["colorCoin"];
this.idx = arg1["colorIdx"];
return;
}
public var name_txt:flash.text.TextField;
public var color_mc:ColorItemRenderer;
}
}
// package contents
// class LeftView
package beautyShop.view.shop.contents
{
import beautyShop.data.*;
import beautyShop.event.*;
import flash.display.*;
import ncsoft.l2.core.*;
import scaleform.clik.data.*;
public class LeftView extends ncsoft.l2.core.L2UIBase
{
public function LeftView()
{
super();
this.init();
return;
}
internal function init():void
{
getDispacher().addEventListener(beautyShop.event.BeautyEvent.SHOW, this.clearData);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.UPDATE_LIST, this.listUpdate);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.UPDATE_RESET, this.listUpdateReset);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.BUY_COMPLETE, this.clearData);
return;
}
internal function listUpdate(arg1:beautyShop.event.BeautyEvent):void
{
var loc2:*=0;
var loc3:*=0;
var loc1:*=arg1.data;
this.face_mc.selectType = Number(loc1["itemType"]);
this.hair_mc.selectType = Number(loc1["itemType"]);
if (loc1["itemType"] != beautyShop.data.BeautyShopData.HAIRNUM)
{
if (loc1["itemType"] == beautyShop.data.BeautyShopData.FACENUM)
{
this.arrFace = loc1["Elements"];
this.arrFace.sortOn("sortingOrder");
while (loc3 < this.arrFace.length)
{
this.arrFace[loc3]["currentType"] = loc1["currentType"];
++loc3;
}
if (this.dpFace != null)
{
this.dpFace.cleanUp();
}
this.dpFace = new scaleform.clik.data.DataProvider(this.arrFace);
this.face_mc.visible = true;
this.hair_mc.visible = false;
this.hairColor_mc.visible = false;
this.bg_mc.height = 242;
this.face_mc.updateComponent(this.dpFace);
}
}
else
{
this.arrHair = loc1["Elements"];
this.arrHair.sortOn("sortingOrder");
while (loc2 < this.arrHair.length)
{
this.arrHair[loc2]["currentType"] = loc1["currentType"];
++loc2;
}
if (this.dpHair != null)
{
this.dpHair.cleanUp();
}
this.dpHair = new scaleform.clik.data.DataProvider(this.arrHair);
this.face_mc.visible = false;
this.hair_mc.visible = true;
this.hairColor_mc.visible = true;
this.bg_mc.height = 360;
this.hair_mc.updateComponent(this.dpHair);
}
return;
}
internal function listUpdateReset(arg1:beautyShop.event.BeautyEvent):void
{
if (arg1.select != beautyShop.data.BeautyShopData.HAIRNUM)
{
if (arg1.select == beautyShop.data.BeautyShopData.FACENUM)
{
this.face_mc.setIndex(-1);
}
}
else
{
this.hair_mc.setIndex(-1);
this.hairColor_mc.clear();
}
return;
}
internal function buycomplete(arg1:beautyShop.event.BeautyEvent):void
{
return;
}
internal function clearData(arg1:beautyShop.event.BeautyEvent):void
{
this.hair_mc.setIndex(-1);
this.hairColor_mc.clear();
this.face_mc.setIndex(-1);
return;
}
public var face_mc:ListItemView;
public var hair_mc:ListItemView;
public var hairColor_mc:ColorView;
public var bg_mc:flash.display.MovieClip;
internal var arrHair:Array;
internal var dpHair:scaleform.clik.data.DataProvider;
internal var arrFace:Array;
internal var dpFace:scaleform.clik.data.DataProvider;
}
}
// class RightView
package beautyShop.view.shop.contents
{
import ncsoft.l2.core.*;
public class RightView extends ncsoft.l2.core.L2UIBase
{
public function RightView()
{
super();
return;
}
}
}
// package list
// class ColorItemRenderer
package beautyShop.view.shop.list
{
import flash.display.*;
import flash.events.*;
import flash.geom.*;
import ncsoft.l2.native.*;
import scaleform.clik.controls.*;
public class ColorItemRenderer extends scaleform.clik.controls.ListItemRenderer
{
public function ColorItemRenderer()
{
super();
this.mouseChildren = false;
this._colorTransform = new flash.geom.ColorTransform();
this.default_mc.visible = false;
this.visible = false;
return;
}
public override function setData(arg1:Object):void
{
_data = arg1;
if (!arg1)
{
this.visible = false;
return;
}
this.default_mc.visible = arg1.isDefaultColor;
if (arg1.colorValue)
{
this.setColor(arg1.colorValue);
}
this.visible = true;
return;
}
public function getData():Object
{
return _data;
}
public function setColor(arg1:Number):void
{
this._colorTransform.color = arg1;
this.color_mc.transform.colorTransform = this._colorTransform;
return;
}
protected override function handleMouseRelease(arg1:flash.events.MouseEvent):void
{
super.handleMouseRelease(arg1);
ncsoft.l2.native.L2UISystem.playSound("InterfaceSound.click_03");
return;
}
public var color_mc:flash.display.MovieClip;
public var buy_mc:flash.display.MovieClip;
public var default_mc:flash.display.MovieClip;
internal var _colorTransform:flash.geom.ColorTransform;
}
}
// class ColorView
package beautyShop.view.shop.list
{
import beautyShop.data.*;
import beautyShop.event.*;
import ncsoft.l2.core.*;
import scaleform.clik.controls.*;
import scaleform.clik.data.*;
import scaleform.clik.events.*;
public class ColorView extends ncsoft.l2.core.L2UIBase
{
public function ColorView()
{
super();
this.init();
return;
}
public function init():void
{
getDispacher().addEventListener(beautyShop.event.BeautyEvent.LIST_SELECT, this.listUpdateColor);
this.list.addEventListener(scaleform.clik.events.ListEvent.ITEM_CLICK, this.colorChange);
this.list.addEventListener(scaleform.clik.events.ListEvent.ITEM_ROLL_OVER, this.handleMouseRollOver);
this.list.addEventListener(scaleform.clik.events.ListEvent.ITEM_ROLL_OUT, this.handleMouseRollOut);
return;
}
internal function handleMouseRollOver(arg1:scaleform.clik.events.ListEvent):void
{
dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.TOOLTIP_COLOR_LEFT, ColorItemRenderer(arg1.itemRenderer).getData()));
return;
}
internal function handleMouseRollOut(arg1:scaleform.clik.events.ListEvent):void
{
dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.TOOLTIP_CLOSE));
return;
}
internal function listUpdateColor(arg1:beautyShop.event.BeautyEvent):void
{
var loc1:*=arg1.data;
if (arg1.select == beautyShop.data.BeautyShopData.HAIRNUM)
{
this.arrHairColor = loc1["Elements"];
if (this.dpHairColor != null)
{
this.dpHairColor.cleanUp();
}
this.dpHairColor = new scaleform.clik.data.DataProvider(this.arrHairColor);
this.updateComponent(this.dpHairColor);
this.list.selectedIndex = 0;
}
return;
}
internal function colorChange(arg1:scaleform.clik.events.ListEvent):void
{
var loc1:*=undefined;
var loc2:*=null;
var loc3:*=0;
var loc4:*=ColorItemRenderer(arg1.itemRenderer).getData();
for (loc1 in loc4)
{
};
loc2 = ColorItemRenderer(arg1.itemRenderer).getData();
beautyShop.data.BeautyShopData.objSelectHairColorData = loc3 = ColorItemRenderer(arg1.itemRenderer).getData();
loc3;
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.COLOR_SELECT, loc2));
return;
}
public function updateComponent(arg1:scaleform.clik.data.DataProvider=null):void
{
if (arg1)
{
var loc1:*;
this.list.dataProvider = loc1 = arg1;
loc1;
this.list.validateNow();
this.list.selectedIndex = loc1 = 0;
loc1;
this.list.validateNow();
}
return;
}
public function setIndex(arg1:Number):void
{
var loc1:*;
this.list.selectedIndex = loc1 = arg1;
loc1;
this.list.validateNow();
return;
}
public function getIndex():Number
{
return this.list.selectedIndex;
}
public function clear():void
{
this.updateComponent(new scaleform.clik.data.DataProvider([]));
this.setIndex(-1);
return;
}
public var list:scaleform.clik.controls.TileList;
internal var arrHairColor:Array;
internal var dpHairColor:scaleform.clik.data.DataProvider;
}
}
// class ItemRenderer
package beautyShop.view.shop.list
{
import beautyShop.event.*;
import flash.display.*;
import flash.events.*;
import ncsoft.l2.native.*;
import ncsoft.l2.util.*;
import scaleform.clik.controls.*;
public class ItemRenderer extends scaleform.clik.controls.ListItemRenderer
{
public function ItemRenderer()
{
super();
this._itemLoader = new ncsoft.l2.util.L2UILoader();
return;
}
public override function setData(arg1:Object):void
{
_data = arg1;
this.reset();
if (!arg1)
{
return;
}
if (arg1.iconName != "")
{
this._itemLoader.load(ncsoft.l2.native.L2UIConfig.ICONPATH_ETC + arg1.iconName);
this.icon_mc.addChild(this._itemLoader.getLoader());
this.icon_mc.visible = true;
}
this.new_mc.visible = arg1.isNew;
this.event_mc.visible = arg1.isEvent;
this.bm_mc.visible = arg1.isCashItem;
this.frame_mc.visible = true;
this.bg_mc.visible = true;
if (arg1.itemIdx != arg1.currentType)
{
this.buy_mc.visible = false;
}
else
{
this.buy_mc.visible = true;
}
return;
}
public function getData():Object
{
return _data;
}
internal function reset():void
{
this.new_mc.visible = false;
this.event_mc.visible = false;
this.bm_mc.visible = false;
this.buy_mc.visible = false;
this.bg_mc.visible = false;
this.icon_mc.visible = false;
this.disable_mc.visible = false;
this.frame_mc.visible = false;
return;
}
protected override function handleMouseRelease(arg1:flash.events.MouseEvent):void
{
super.handleMouseRelease(arg1);
ncsoft.l2.native.L2UISystem.playSound("InterfaceSound.click_03");
return;
}
protected override function handleMouseRollOver(arg1:flash.events.MouseEvent):void
{
super.handleMouseRollOver(arg1);
if (!_data)
{
return;
}
dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.TOOLTIP_ITEM_LEFT, this.getData()));
return;
}
protected override function handleMouseRollOut(arg1:flash.events.MouseEvent):void
{
super.handleMouseRollOut(arg1);
if (!_data)
{
return;
}
dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.TOOLTIP_CLOSE));
return;
}
public var event_mc:flash.display.MovieClip;
public var new_mc:flash.display.MovieClip;
public var icon_mc:flash.display.MovieClip;
public var bm_mc:flash.display.MovieClip;
public var buy_mc:flash.display.MovieClip;
public var bg_mc:flash.display.MovieClip;
public var disable_mc:flash.display.MovieClip;
public var frame_mc:flash.display.MovieClip;
internal var _itemLoader:ncsoft.l2.util.L2UILoader;
}
}
// class ListItemView
package beautyShop.view.shop.list
{
import beautyShop.data.*;
import beautyShop.event.*;
import beautyShop.native.*;
import ncsoft.l2.core.*;
import scaleform.clik.controls.*;
import scaleform.clik.data.*;
import scaleform.clik.events.*;
public class ListItemView extends ncsoft.l2.core.L2UIBase
{
public function ListItemView()
{
super();
this.init();
return;
}
public function init():void
{
this.list.addEventListener(scaleform.clik.events.ListEvent.ITEM_CLICK, this.onClickList);
return;
}
public function updateComponent(arg1:scaleform.clik.data.DataProvider=null):void
{
if (arg1)
{
this.list.dataProvider = arg1;
this.list.validateNow();
}
return;
}
public function setIndex(arg1:Number):void
{
this.list.selectedIndex = arg1;
this.list.validateNow();
return;
}
public function getIndex():Number
{
return this.list.selectedIndex;
}
public function get selectType():int
{
return this.nSelectType;
}
public function set selectType(arg1:int):void
{
this.nSelectType = arg1;
return;
}
internal function onClickList(arg1:scaleform.clik.events.ListEvent):void
{
var loc1:*=undefined;
var loc2:*=null;
var loc3:*=0;
var loc4:*=ItemRenderer(arg1.itemRenderer).getData();
for (loc1 in loc4)
{
};
loc2 = ItemRenderer(arg1.itemRenderer).getData();
if (this.nSelectType != beautyShop.data.BeautyShopData.HAIRNUM)
{
if (this.nSelectType == beautyShop.data.BeautyShopData.FACENUM)
{
beautyShop.data.BeautyShopData.objSelectFaceData = loc3 = loc2;
loc3;
}
}
else
{
beautyShop.data.BeautyShopData.objSelectHairData = loc3 = loc2;
loc3;
beautyShop.data.BeautyShopData.objSelectHairColorData = loc3 = loc2["Elements"][0];
loc3;
}
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.LIST_SELECT, loc2, this.nSelectType));
if (ItemRenderer(arg1.itemRenderer).buy_mc.visible)
{
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.SHOW_SYSTEMMSG, beautyShop.native.BeautySystem.HAVE_ITEM));
}
return;
}
public var list:scaleform.clik.controls.TileList;
internal var nSelectType:Number;
}
}
// package tab
// package radio
// class BeautyRadioButton
package beautyShop.view.shop.tab.radio
{
import flash.events.*;
import scaleform.clik.controls.*;
public class BeautyRadioButton extends scaleform.clik.controls.RadioButton
{
public function BeautyRadioButton()
{
super();
return;
}
protected override function handleClick(arg1:uint=0):void
{
playSound(flash.events.MouseEvent.CLICK);
return;
}
}
}
// class TabView
package beautyShop.view.shop.tab
{
import beautyShop.data.*;
import beautyShop.event.*;
import beautyShop.native.*;
import beautyShop.view.shop.tab.radio.*;
import flash.events.*;
import flash.utils.*;
import ncsoft.l2.core.*;
import scaleform.clik.events.*;
public class TabView extends ncsoft.l2.core.L2UIBase
{
public function TabView()
{
super();
this.init();
return;
}
public function init():void
{
this.hair_btn.addEventListener(scaleform.clik.events.ButtonEvent.CLICK, this.onClickHair);
this.face_btn.addEventListener(scaleform.clik.events.ButtonEvent.CLICK, this.onClickFace);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.UPDATE_LIST, this.changeTabSelect);
return;
}
internal function changeTabSelect(arg1:beautyShop.event.BeautyEvent):void
{
if (arg1.data["itemType"] != beautyShop.data.BeautyShopData.HAIRNUM)
{
if (arg1.data["itemType"] == beautyShop.data.BeautyShopData.FACENUM)
{
this.hair_btn.selected = false;
this.face_btn.selected = true;
}
}
else
{
this.hair_btn.selected = true;
this.face_btn.selected = false;
}
return;
}
internal function onClickHair(arg1:scaleform.clik.events.ButtonEvent):void
{
beautyShop.native.BeautySystem.requestItemList(beautyShop.data.BeautyShopData.HAIRNUM);
this.disabledTab();
return;
}
internal function onClickFace(arg1:scaleform.clik.events.ButtonEvent):void
{
beautyShop.native.BeautySystem.requestItemList(beautyShop.data.BeautyShopData.FACENUM);
this.disabledTab();
return;
}
internal function disabledTab():void
{
this.hair_btn.enabled = false;
this.face_btn.enabled = false;
this.stopDisTimer();
this.disTimer = new flash.utils.Timer(2200, 1);
this.disTimer.addEventListener(flash.events.TimerEvent.TIMER_COMPLETE, this.timerComplete, false, 0, true);
this.disTimer.start();
return;
}
internal function timerComplete(arg1:flash.events.TimerEvent):void
{
this.disTimer = null;
this.hair_btn.enabled = true;
this.face_btn.enabled = true;
return;
}
internal function stopDisTimer():void
{
if (this.disTimer != null)
{
this.disTimer.stop();
this.disTimer.removeEventListener(flash.events.TimerEvent.TIMER_COMPLETE, this.timerComplete);
this.disTimer = null;
}
return;
}
public var hair_btn:beautyShop.view.shop.tab.radio.BeautyRadioButton;
public var face_btn:beautyShop.view.shop.tab.radio.BeautyRadioButton;
internal var disTimer:flash.utils.Timer;
}
}
// class BeautyShopView
package beautyShop.view.shop
{
import beautyShop.data.*;
import beautyShop.event.*;
import beautyShop.native.*;
import beautyShop.tooltip.*;
import fl.transitions.easing.*;
import flash.display.*;
import flash.events.*;
import flash.text.*;
import flash.utils.*;
import ncsoft.l2.anchor.*;
import ncsoft.l2.core.*;
import ncsoft.l2.data.*;
import ncsoft.l2.events.*;
import ncsoft.l2.native.*;
import scaleform.clik.motion.*;
import scaleform.gfx.*;
public class BeautyShopView extends ncsoft.l2.core.L2UIComponentBase
{
public function BeautyShopView()
{
super();
return;
}
protected override function init():void
{
return;
}
public override function addEvent():void
{
super.addEvent();
addEventListener(flash.events.Event.ENTER_FRAME, initUI, false, 0, true);
return;
}
protected override function configUI():void
{
trace("초기화 및 기본 셋팅 후 시작.?");
this.setAlign = new ncsoft.l2.anchor.L2UISetAlign();
this.setAlign.setAnchor("tab_mc", this.tab_mc, null, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_TopLeft, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_TopLeft, 0, 110);
this.setAlign.setAnchor("leftView", this.leftView, null, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_TopLeft, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_TopLeft, 0, 210);
this.setAlign.setAnchor("rightView", this.rightView, null, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_TopRight, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_TopRight, -15, 132);
this.setAlign.setAnchor("systemMsg", this.systemMsg, null, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_TopCenter, ncsoft.l2.data.L2UIAnchorPointType.ANCHORPOINT_TopCenter, 0, 0);
this.addEventListener(beautyShop.event.BeautyEvent.TOOLTIP_ITEM_LEFT, this.showTooltip, false, 0, true);
this.addEventListener(beautyShop.event.BeautyEvent.TOOLTIP_ITEM_RIGHT, this.showTooltip, false, 0, true);
this.addEventListener(beautyShop.event.BeautyEvent.TOOLTIP_COLOR_LEFT, this.showTooltip, false, 0, true);
this.addEventListener(beautyShop.event.BeautyEvent.TOOLTIP_COLOR_RIGHT, this.showTooltip, false, 0, true);
this.addEventListener(beautyShop.event.BeautyEvent.TOOLTIP_ADENA_RIGHT, this.showTooltip, false, 0, true);
this.addEventListener(beautyShop.event.BeautyEvent.TOOLTIP_MSG_RIGHT, this.showTooltip, false, 0, true);
this.addEventListener(beautyShop.event.BeautyEvent.TOOLTIP_CLOSE, this.hideTooltip, false, 0, true);
getDispacher().addEventListener(beautyShop.event.BeautyEvent.SHOW_SYSTEMMSG, this.showSystemMsg);
this.systemMsg.text = "";
return;
}
internal function showSystemMsg(arg1:beautyShop.event.BeautyEvent):void
{
scaleform.gfx.TextFieldEx.setVerticalAlign(this.systemMsg, scaleform.gfx.TextFieldEx.VALIGN_CENTER);
this.systemMsg.text = String(arg1.data);
this.systemMsg.alpha = 1;
this.hideText();
return;
}
internal function hideText():void
{
this.stophideTextTimer();
this.hideTextTimer = new flash.utils.Timer(1000, 1);
this.hideTextTimer.addEventListener(flash.events.TimerEvent.TIMER_COMPLETE, this.hideTextTimerComplete, false, 0, true);
this.hideTextTimer.start();
return;
}
internal function hideTextTimerComplete(arg1:flash.events.TimerEvent):void
{
var loc1:*=new scaleform.clik.motion.Tween(500, this.systemMsg, {"x":this.systemMsg.x, "y":this.systemMsg.y, "alpha":0}, {"paused":false, "ease":fl.transitions.easing.Strong.easeOut, "onComplete":this.handleTweenComplete, "loop":false});
return;
}
internal function stophideTextTimer():void
{
if (this.hideTextTimer != null)
{
this.hideTextTimer.stop();
this.hideTextTimer.removeEventListener(flash.events.TimerEvent.TIMER_COMPLETE, this.timerComplete);
this.hideTextTimer = null;
}
return;
}
internal function timerComplete(arg1:flash.events.TimerEvent):void
{
this.hideTextTimer = null;
return;
}
internal function handleTweenComplete():void
{
this.systemMsg.text = "";
return;
}
internal function endSocoalAction():void
{
this.stopEndSocoalActionTimer();
this.endActionTimer = new flash.utils.Timer(this.nEndAction, 1);
this.endActionTimer.addEventListener(flash.events.TimerEvent.TIMER_COMPLETE, this.endSocoalActionComplete);
this.endActionTimer.start();
return;
}
internal function stopEndSocoalActionTimer():void
{
if (this.endActionTimer != null)
{
this.endActionTimer.stop();
this.endActionTimer.removeEventListener(flash.events.TimerEvent.TIMER_COMPLETE, this.endSocoalActionComplete);
this.endActionTimer = null;
}
return;
}
internal function endSocoalActionComplete(arg1:flash.events.TimerEvent):void
{
this.stopEndSocoalActionTimer();
this.setAlign.beautyMoveIn();
if (beautyShop.data.BeautyShopData.nOpenType != beautyShop.data.BeautyShopData.SHOPWINNDOW)
{
if (beautyShop.data.BeautyShopData.nOpenType == beautyShop.data.BeautyShopData.RESETWINDOW)
{
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.RESET_COMPLETE, beautyShop.native.BeautySystem.POP_RESET_SUCCESS));
}
}
else
{
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.BUY_COMPLETE, beautyShop.native.BeautySystem.POP_BUY_SUCCESS));
}
return;
}
internal function showTooltip(arg1:beautyShop.event.BeautyEvent):void
{
this.tooltip_mc.visible = true;
this.tooltip_mc.setTooltip(arg1.data, arg1.type);
return;
}
internal function hideTooltip(arg1:beautyShop.event.BeautyEvent):void
{
this.tooltip_mc.visible = false;
return;
}
public override function callbackEvent(arg1:ncsoft.l2.events.L2UIEvent):void
{
var loc1:*=arg1._parameter.type;
switch (loc1)
{
case ncsoft.l2.events.L2UIClientString.EV_OpenBeautyshopWindow:
{
this.visible = true;
beautyShop.native.BeautySystem.init();
this.setAlign.update();
this.systemMsg.text = "";
beautyShop.data.BeautyShopData.objSelectHairData = null;
beautyShop.data.BeautyShopData.objSelectHairColorData = null;
beautyShop.data.BeautyShopData.objSelectFaceData = null;
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.SHOW, beautyShop.data.BeautyShopData.SHOPWINNDOW));
beautyShop.native.BeautySystem.open(beautyShop.data.BeautyShopData.SHOPWINNDOW, 0);
ncsoft.l2.native.L2UISystem.openUI("BeautyShop");
break;
}
case ncsoft.l2.events.L2UIClientString.EV_ReOpenBeautyshopWindow:
{
this.visible = true;
beautyShop.native.BeautySystem.init();
this.setAlign.update();
this.systemMsg.text = "";
beautyShop.data.BeautyShopData.objSelectHairData = null;
beautyShop.data.BeautyShopData.objSelectHairColorData = null;
beautyShop.data.BeautyShopData.objSelectFaceData = null;
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.SHOW, beautyShop.data.BeautyShopData.SHOPWINNDOW));
beautyShop.native.BeautySystem.open(beautyShop.data.BeautyShopData.SHOPWINNDOW, 1);
ncsoft.l2.native.L2UISystem.openUI("BeautyShop");
break;
}
case ncsoft.l2.events.L2UIClientString.EV_SendUserAdenaAndCoin:
{
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.UPDATE_HAVEMONEY, arg1._parameter.data));
break;
}
case ncsoft.l2.events.L2UIClientString.EV_ReceiveBeautyItemList:
{
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.UPDATE_LIST, arg1._parameter.data));
if (arg1._parameter.data["itemType"] != beautyShop.data.BeautyShopData.HAIRNUM)
{
beautyShop.data.BeautyShopData.currentFaceType = arg1._parameter.data["currentType"];
}
else
{
beautyShop.data.BeautyShopData.currentHairType = arg1._parameter.data["currentType"];
beautyShop.data.BeautyShopData.currentHairColor = arg1._parameter.data["currentColor"];
}
break;
}
case ncsoft.l2.events.L2UIClientString.EV_OpenBeautyshopResetWindow:
{
this.visible = false;
break;
}
case ncsoft.l2.events.L2UIClientString.EV_IsSuccessBuyingStyle:
{
beautyShop.data.BeautyShopData.nOpenType = arg1._parameter.data.shopType;
if (arg1._parameter.data.isSuccess != 1)
{
if (arg1._parameter.data.isSuccess != 0)
{
if (arg1._parameter.data.isSuccess == -1)
{
if (beautyShop.data.BeautyShopData.nOpenType != beautyShop.data.BeautyShopData.SHOPWINNDOW)
{
if (beautyShop.data.BeautyShopData.nOpenType == beautyShop.data.BeautyShopData.RESETWINDOW)
{
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.RESET_COMPLETE, beautyShop.native.BeautySystem.POP_NPC_FAILURE));
}
}
else
{
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.BUY_COMPLETE, beautyShop.native.BeautySystem.POP_NPC_FAILURE));
}
}
}
else if (beautyShop.data.BeautyShopData.nOpenType != beautyShop.data.BeautyShopData.SHOPWINNDOW)
{
if (beautyShop.data.BeautyShopData.nOpenType == beautyShop.data.BeautyShopData.RESETWINDOW)
{
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.RESET_COMPLETE, beautyShop.native.BeautySystem.POP_RESET_FAILURE));
}
}
else
{
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.BUY_COMPLETE, beautyShop.native.BeautySystem.POP_BUY_FAILURE));
}
}
else
{
this.setAlign.beautyMoveOut();
beautyShop.native.BeautySystem.useSocoalAction();
getDispacher().dispatchEvent(new beautyShop.event.BeautyEvent(beautyShop.event.BeautyEvent.POPUP_CLOSE));
this.endSocoalAction();
}
break;
}
case ncsoft.l2.events.L2UIClientString.EV_ExitBeautyshop:
{
beautyShop.data.BeautyShopData.objSelectHairData = null;
beautyShop.data.BeautyShopData.objSelectHairColorData = null;
beautyShop.data.BeautyShopData.objSelectFaceData = null;
break;
}
case ncsoft.l2.events.L2UIClientString.EV_ResolutionChanged:
{
this.setAlign.update();
break;
}
}
return;
}
internal const nEndAction:int=5000;
public var tab_mc:flash.display.MovieClip;
public var leftView:LeftView;
public var rightView:RightView;
public var systemMsg:flash.text.TextField;
public var tooltip_mc:beautyShop.tooltip.BeautyToolTipView;
internal var setAlign:ncsoft.l2.anchor.L2UISetAlign;
internal var hideTextTimer:flash.utils.Timer;
internal var endActionTimer:flash.utils.Timer;
}
}
// class BeautyShop
package beautyShop
{
import ncsoft.l2.core.*;
import ncsoft.l2.events.*;
import ncsoft.l2.native.*;
import ncsoft.l2.util.*;
import scaleform.gfx.*;
public class BeautyShop extends ncsoft.l2.core.L2UIDocumentBase
{
public function BeautyShop()
{
super();
ncsoft.l2.native.L2UIConfig.USE_LIBRARY = false;
ncsoft.l2.util.Debug.isActiveFlash = true;
ncsoft.l2.util.Debug.isActiveNative = true;
scaleform.gfx.Extensions.enabled = true;
this.beautyBottomView = new BeautyBottomView();
this.addChild(this.beautyBottomView);
this.beautyShopView = new BeautyShopView();
this.addChild(this.beautyShopView);
this.beautyResetView = new BeautyResetView();
this.addChild(this.beautyResetView);
this.beautyPopupView = new BeautyPopupView();
this.addChild(this.beautyPopupView);
addEventListener(ncsoft.l2.events.L2UIEventString.SOURCE_ADDED, this.addComplete);
return;
}
internal function addComplete(arg1:ncsoft.l2.events.L2FlashWindowContainerEvent):void
{
return;
}
internal var beautyPopupView:BeautyPopupView;
internal var beautyShopView:BeautyShopView;
internal var beautyResetView:BeautyResetView;
internal var beautyBottomView:BeautyBottomView;
internal var test:Test;
}
}