Initialize local project and fix ranch growth synchronization
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
package net.pixvi.myr.panel.team
|
||||
{
|
||||
import flash.display.DisplayObject;
|
||||
import net.pixvi.common.effect.effects.LightingEffect;
|
||||
import net.pixvi.myr.element.mon.MonsterVo;
|
||||
import net.pixvi.pfw.ui.UIComponent;
|
||||
import net.pixvi.pfw.ui.controls.PiBitTextField;
|
||||
import net.pixvi.pfw.utils.Paster;
|
||||
|
||||
public class MonCardMidUI extends UIComponent
|
||||
{
|
||||
|
||||
public var text_level:PiBitTextField;
|
||||
|
||||
public var ui_cardView:MonCardMidViewUI;
|
||||
|
||||
public function MonCardMidUI(skin:DisplayObject = null, autoViewSize:Boolean = true, w:Number = 50, h:Number = 50)
|
||||
{
|
||||
super(skin,autoViewSize,w,h);
|
||||
}
|
||||
|
||||
override public function reset() : void
|
||||
{
|
||||
this.visible = false;
|
||||
}
|
||||
|
||||
public function onData(mon:MonsterVo) : void
|
||||
{
|
||||
ui_cardView.onData(mon);
|
||||
var tpString:String = "";
|
||||
if(mon.tplevel > 0)
|
||||
{
|
||||
tpString = Paster.font("+" + mon.tplevel.toString(),"#ff77bd",22);
|
||||
}
|
||||
this.visible = true;
|
||||
text_level.htmlText = Paster.font("LV:",null,22) + mon.level + tpString;
|
||||
}
|
||||
|
||||
public function showJoin() : void
|
||||
{
|
||||
new LightingEffect().startEffect(this);
|
||||
}
|
||||
|
||||
public function showOut(out:Boolean = true) : void
|
||||
{
|
||||
if(out)
|
||||
{
|
||||
ui_cardView.img.alpha = 0.5;
|
||||
}
|
||||
else
|
||||
{
|
||||
ui_cardView.img.alpha = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
package net.pixvi.myr.panel.team
|
||||
{
|
||||
import flash.display.DisplayObject;
|
||||
import flash.display.Sprite;
|
||||
import net.pixvi.myr.center.ImgCenter;
|
||||
import net.pixvi.myr.element.mon.MonsterVo;
|
||||
import net.pixvi.pfw.display.PiSprite;
|
||||
import net.pixvi.pfw.ui.UIComponent;
|
||||
import net.pixvi.pfw.ui.containers.PiImgContainer;
|
||||
|
||||
public class MonCardMidViewUI extends UIComponent
|
||||
{
|
||||
|
||||
public var container_element:PiImgContainer;
|
||||
|
||||
public var container_front:PiImgContainer;
|
||||
|
||||
public var container_mon:Sprite;
|
||||
|
||||
public var container_star:PiImgContainer;
|
||||
|
||||
public var mc_mask:Sprite;
|
||||
|
||||
public var img:PiSprite;
|
||||
|
||||
public function MonCardMidViewUI(skin:DisplayObject = null, autoViewSize:Boolean = true, w:Number = 50, h:Number = 50)
|
||||
{
|
||||
super(skin,autoViewSize,w,h);
|
||||
}
|
||||
|
||||
override public function onSkinComplete() : void
|
||||
{
|
||||
container_element.setSize(48,50);
|
||||
container_front.setSize(170,185);
|
||||
container_star.setSize(110,34);
|
||||
container_mon.mask = mc_mask;
|
||||
}
|
||||
|
||||
public function onData(mon:MonsterVo) : void
|
||||
{
|
||||
if(img != null)
|
||||
{
|
||||
img.dispose();
|
||||
}
|
||||
img = ImgCenter.getMonFullCardImg(mon.skinShowType,mon.getEquipTypes(),true);
|
||||
img.x += mon.getCardFix().x - 9;
|
||||
img.y += mon.getCardFix().y - 9;
|
||||
container_star.loadNetBitImg(ImgCenter.getStarImg(mon.showStar));
|
||||
container_element.loadNetBitImg(ImgCenter.getMonElement(mon.element));
|
||||
container_front.loadNetBitImg(ImgCenter.getMonMidCardFront(mon.quality));
|
||||
container_mon.addChild(img);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,137 @@
|
||||
package net.pixvi.myr.panel.team
|
||||
{
|
||||
import flash.display.DisplayObject;
|
||||
import flash.display.Sprite;
|
||||
import flash.events.Event;
|
||||
import net.pixvi.common.center.SoundCenter;
|
||||
import net.pixvi.common.system.language.lang;
|
||||
import net.pixvi.common.utils.Gesturer;
|
||||
import net.pixvi.myr.center.Master;
|
||||
import net.pixvi.myr.element.mon.MonsterVo;
|
||||
import net.pixvi.myr.element.snd.GameSound;
|
||||
import net.pixvi.myr.element.team.TeamPositionVo;
|
||||
import net.pixvi.myr.event.MYREvent;
|
||||
import net.pixvi.pfw.ui.controls.PiBitTextField;
|
||||
import net.pixvi.pfw.ui.controls.PiListItem;
|
||||
import net.pixvi.pfw.utils.Paster;
|
||||
import net.pixvi.pfw.utils.broadcast.GlobalBroadcast;
|
||||
import net.pixvi.psg.ui.controller.PiLightButton;
|
||||
|
||||
public class TeamListItem extends PiListItem
|
||||
{
|
||||
|
||||
public var mc_lock:Sprite;
|
||||
|
||||
public var mc_empty:Sprite;
|
||||
|
||||
public var ui_card:MonCardMidUI;
|
||||
|
||||
public var text_unlocklv:PiBitTextField;
|
||||
|
||||
public var mc_explore:Sprite;
|
||||
|
||||
public var ges:Gesturer;
|
||||
|
||||
public function TeamListItem(skin:DisplayObject = null, auto:Boolean = true, w:Number = 50, h:Number = 50)
|
||||
{
|
||||
super(skin,auto,w,h);
|
||||
}
|
||||
|
||||
override public function onSkinComplete() : void
|
||||
{
|
||||
super.onSkinComplete();
|
||||
ges = new Gesturer(this);
|
||||
ges.passTapWhenLongPressMode = true;
|
||||
}
|
||||
|
||||
override public function onData(value:Object) : void
|
||||
{
|
||||
var mon:MonsterVo = null;
|
||||
showEmpty();
|
||||
mc_explore.visible = false;
|
||||
var vo:TeamPositionVo = value as TeamPositionVo;
|
||||
if(Master.level >= vo.unlockLevel)
|
||||
{
|
||||
if(vo.hasMonster)
|
||||
{
|
||||
mc_empty.visible = true;
|
||||
mon = vo.monster;
|
||||
ui_card.onData(mon);
|
||||
if(TeamPanel.getIns().updateMonId == mon.id)
|
||||
{
|
||||
TeamPanel.getIns().updateMonId = -1;
|
||||
ui_card.showJoin();
|
||||
}
|
||||
if(mon.inExploreTeam)
|
||||
{
|
||||
ui_card.showOut(true);
|
||||
mc_explore.visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
ui_card.showOut(false);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
mc_empty.visible = true;
|
||||
}
|
||||
this.mouseChildren = this.mouseEnabled = true;
|
||||
PiLightButton.btnTouchLight.setDisplay(this);
|
||||
text_unlocklv.visible = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
mc_lock.visible = true;
|
||||
text_unlocklv.visible = true;
|
||||
text_unlocklv.htmlText = lang("{0} 级解锁",Paster.font(vo.unlockLevel.toString(),"#56FFF5"));
|
||||
this.mouseChildren = this.mouseEnabled = false;
|
||||
}
|
||||
super.onData(value);
|
||||
ges.addEventListener(Gesturer.TAP_OVER,clickHandler);
|
||||
ges.addEventListener(Gesturer.LONG_PRESS,pressHandler);
|
||||
ges.start();
|
||||
GlobalBroadcast.addEventListener(MYREvent.MONSTER_NUM_CHANGE,numChangeHandler);
|
||||
GlobalBroadcast.addEventListener(MYREvent.MONSTER_EQUIP_CHANGE,numChangeHandler);
|
||||
}
|
||||
|
||||
public function numChangeHandler(e:MYREvent = null) : void
|
||||
{
|
||||
var vo:TeamPositionVo = data as TeamPositionVo;
|
||||
if((e.data.mon as MonsterVo).id == vo.monsterId)
|
||||
{
|
||||
ui_card.onData(e.data.mon);
|
||||
}
|
||||
}
|
||||
|
||||
public function clickHandler(e:Event = null) : void
|
||||
{
|
||||
SoundCenter.getIns().play(GameSound.effect_click_mon);
|
||||
sendSelect();
|
||||
}
|
||||
|
||||
public function pressHandler(e:Event = null) : void
|
||||
{
|
||||
var vo:TeamPositionVo = data as TeamPositionVo;
|
||||
if(vo.hasMonster)
|
||||
{
|
||||
dispatchEvent(new MYREvent(MYREvent.VIEW_MON,vo.monsterId,true));
|
||||
}
|
||||
}
|
||||
|
||||
public function showEmpty() : void
|
||||
{
|
||||
PiLightButton.btnTouchLight.removeDisplay(this);
|
||||
ui_card.reset();
|
||||
mc_empty.visible = mc_lock.visible = false;
|
||||
}
|
||||
|
||||
override public function dispose() : void
|
||||
{
|
||||
super.dispose();
|
||||
GlobalBroadcast.removeEventListener(MYREvent.MONSTER_NUM_CHANGE,numChangeHandler);
|
||||
GlobalBroadcast.removeEventListener(MYREvent.MONSTER_EQUIP_CHANGE,numChangeHandler);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,370 @@
|
||||
package net.pixvi.myr.panel.team
|
||||
{
|
||||
import com.greensock.TweenMax;
|
||||
import flash.events.Event;
|
||||
import net.pixvi.common.center.PopCenter;
|
||||
import net.pixvi.common.system.language.lang;
|
||||
import net.pixvi.common.utils.Alert;
|
||||
import net.pixvi.myr.GameSetting;
|
||||
import net.pixvi.myr.center.AchiCenter;
|
||||
import net.pixvi.myr.center.GuideCenter;
|
||||
import net.pixvi.myr.center.ImgCenter;
|
||||
import net.pixvi.myr.center.Master;
|
||||
import net.pixvi.myr.center.MonsterCenter;
|
||||
import net.pixvi.myr.center.Table;
|
||||
import net.pixvi.myr.center.TeamCenter;
|
||||
import net.pixvi.myr.element.achi.AchiType;
|
||||
import net.pixvi.myr.element.guide.GMain;
|
||||
import net.pixvi.myr.element.guide.GSub;
|
||||
import net.pixvi.myr.element.mon.MonsterVo;
|
||||
import net.pixvi.myr.element.team.TeamPositionVo;
|
||||
import net.pixvi.myr.element.team.TeamVo;
|
||||
import net.pixvi.myr.event.MYREvent;
|
||||
import net.pixvi.myr.panel.monster.MonsterSelectPanel;
|
||||
import net.pixvi.myr.panel.monster.MonsterViewPanel;
|
||||
import net.pixvi.pfw.utils.Oncer;
|
||||
import net.pixvi.pfw.utils.Saver;
|
||||
import net.pixvi.pfw.utils.broadcast.GlobalBroadcast;
|
||||
import net.pixvi.pfw.utils.core.Singleton;
|
||||
import net.pixvi.psg.driver.GuideDriver;
|
||||
import net.pixvi.psg.ui.PSGPopPanel;
|
||||
|
||||
public class TeamPanel extends PSGPopPanel
|
||||
{
|
||||
|
||||
public var ui:TeamPanelUI = new TeamPanelUI();
|
||||
|
||||
public var curSelectVo:TeamPositionVo;
|
||||
|
||||
public var curTeamName:String = "0";
|
||||
|
||||
public var updateMonId:Number = 0;
|
||||
|
||||
public var teamMode:int = 0;
|
||||
|
||||
public var alerts:Array = [];
|
||||
|
||||
public function TeamPanel()
|
||||
{
|
||||
addChild(ui);
|
||||
super(GameSetting.PanelTransTime,GameSetting.PanelTransTime);
|
||||
ui.btn_close.onClick(closeHandler);
|
||||
ui.switch_tab.setValues("teamA","teamB","teamC");
|
||||
ui.switch_tab.addEventListener("piselect",tabSelectHandler);
|
||||
}
|
||||
|
||||
public static function getIns() : TeamPanel
|
||||
{
|
||||
return Singleton.getInstanceOrCreate(TeamPanel) as TeamPanel;
|
||||
}
|
||||
|
||||
public function modeBattleTeam() : void
|
||||
{
|
||||
ui.switch_tab.visible = true;
|
||||
ui.text_teamStar.visible = false;
|
||||
ui.text_teamMsg.visible = false;
|
||||
ui.mc_starbg.visible = false;
|
||||
teamMode = 0;
|
||||
if(ui.text_teamStar2 != null)
|
||||
{
|
||||
ui.text_teamStar2.visible = false;
|
||||
}
|
||||
if(ui.mc_starbg2 != null)
|
||||
{
|
||||
ui.mc_starbg2.visible = false;
|
||||
}
|
||||
showData(Master.curBattleTeam);
|
||||
ui.switch_tab.selectByValue(Master.curBattleTeam);
|
||||
}
|
||||
|
||||
public function modeOtherTeam(teamname:String, msg:String) : void
|
||||
{
|
||||
ui.switch_tab.visible = false;
|
||||
ui.text_teamStar.visible = true;
|
||||
ui.text_teamMsg.visible = true;
|
||||
ui.text_teamMsg.text = msg;
|
||||
teamMode = 1;
|
||||
if(ui.text_teamStar2 != null)
|
||||
{
|
||||
ui.text_teamStar2.visible = false;
|
||||
}
|
||||
if(ui.mc_starbg2 != null)
|
||||
{
|
||||
ui.mc_starbg2.visible = false;
|
||||
}
|
||||
showData(teamname);
|
||||
update();
|
||||
}
|
||||
|
||||
public function tabSelectHandler(e:Event = null) : void
|
||||
{
|
||||
Master.curBattleTeam = ui.switch_tab.value.toString();
|
||||
Saver.saveAuto(Master.id + "battleTeam",Master.curBattleTeam);
|
||||
showData(ui.switch_tab.value.toString());
|
||||
}
|
||||
|
||||
public function showData(teamName:String = "") : void
|
||||
{
|
||||
curTeamName = teamName;
|
||||
ui.list_team.setDatas(TeamCenter.getIns().getTeamPositionArr(curTeamName));
|
||||
ui.list_team.addEventListener("piselect",selectHandler);
|
||||
ui.list_team.addEventListener(MYREvent.VIEW_MON,viewMonsterHandler);
|
||||
}
|
||||
|
||||
private function viewMonsterHandler(e:MYREvent = null) : void
|
||||
{
|
||||
MonsterViewPanel.getIns().curvo = MonsterCenter.getIns().getMonById(int(e.data));
|
||||
MonsterViewPanel.getIns().popIn();
|
||||
}
|
||||
|
||||
public function selectHandler(e:Event) : void
|
||||
{
|
||||
curSelectVo = ui.list_team.curSelectedItemData as TeamPositionVo;
|
||||
var selectMonsterType:int = 0;
|
||||
if(curSelectVo.hasMonster)
|
||||
{
|
||||
selectMonsterType = curSelectVo.monster.type;
|
||||
}
|
||||
if(teamMode == 0)
|
||||
{
|
||||
MonsterSelectPanel.getIns().modeTeam(ui.switch_tab.value.toString(),selectMonsterType);
|
||||
}
|
||||
else
|
||||
{
|
||||
MonsterSelectPanel.getIns().modeTeam(curTeamName,selectMonsterType);
|
||||
}
|
||||
MonsterSelectPanel.getIns().popIn();
|
||||
MonsterSelectPanel.getIns().addEventListener("complete",selectCompleteHandler);
|
||||
}
|
||||
|
||||
public function selectCompleteHandler(e:Event = null) : void
|
||||
{
|
||||
MonsterSelectPanel.getIns().removeEventListener("complete",selectCompleteHandler);
|
||||
if(MonsterSelectPanel.selectedComplete)
|
||||
{
|
||||
if(MonsterSelectPanel.selectedMonster == null)
|
||||
{
|
||||
monOff(curSelectVo.position);
|
||||
}
|
||||
else
|
||||
{
|
||||
monOn(curSelectVo.position,MonsterSelectPanel.selectedMonster.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function monOn(position:int, mid:Number) : void
|
||||
{
|
||||
var allstar:int = TeamCenter.getIns().getTeamAllStar(curTeamName);
|
||||
var vo:MonsterVo = MonsterCenter.getIns().getMonById(mid);
|
||||
var replaceStar:int = 0;
|
||||
if(curSelectVo.monster != null)
|
||||
{
|
||||
replaceStar = curSelectVo.monster.star;
|
||||
}
|
||||
if(Table.team_info.teamStar[curTeamName] != 0 && allstar + vo.star - replaceStar > Table.team_info.teamStar[curTeamName])
|
||||
{
|
||||
Alert.showMsg(lang("已经超出了阵容的星级上限。"));
|
||||
return;
|
||||
}
|
||||
this.mouseChildren = this.mouseEnabled = false;
|
||||
TeamCenter.getIns().monOn(curTeamName,position,mid,monOnHandler);
|
||||
}
|
||||
|
||||
private function monOnHandler() : void
|
||||
{
|
||||
var teamvo:TeamVo = null;
|
||||
var fullgold:Boolean = false;
|
||||
var i:int = 0;
|
||||
var mon:MonsterVo = null;
|
||||
updateMonId = MonsterSelectPanel.selectedMonster.id;
|
||||
this.mouseChildren = this.mouseEnabled = true;
|
||||
Oncer.lastRun(ui.list_team.refresh);
|
||||
curSelectVo = null;
|
||||
if(Table.setting.open_goldTeam && !GuideCenter.getIns().checkFin(GSub.ACHI_fullGold))
|
||||
{
|
||||
teamvo = TeamCenter.getIns().getTeamByTeamName(curTeamName);
|
||||
if(teamvo != null)
|
||||
{
|
||||
fullgold = true;
|
||||
for(i = 0; i < 4; )
|
||||
{
|
||||
if(teamvo.monsters[i] <= 0)
|
||||
{
|
||||
fullgold = false;
|
||||
break;
|
||||
}
|
||||
mon = MonsterCenter.getIns().getMonById(teamvo.monsters[i]);
|
||||
if(mon.level < 10 || mon.quality < 4)
|
||||
{
|
||||
fullgold = false;
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
if(fullgold)
|
||||
{
|
||||
GuideCenter.getIns().fin(GSub.ACHI_fullGold);
|
||||
AchiCenter.getIns().autoCheck(AchiType.NONE,true);
|
||||
}
|
||||
}
|
||||
}
|
||||
guide();
|
||||
update();
|
||||
}
|
||||
|
||||
private function monOff(position:int) : void
|
||||
{
|
||||
this.mouseChildren = this.mouseEnabled = false;
|
||||
TeamCenter.getIns().monOff(curTeamName,position,monOffHandler);
|
||||
}
|
||||
|
||||
private function monOffHandler() : void
|
||||
{
|
||||
this.mouseChildren = this.mouseEnabled = true;
|
||||
updateMonId = 0;
|
||||
Oncer.lastRun(ui.list_team.refresh);
|
||||
curSelectVo = null;
|
||||
guide();
|
||||
update();
|
||||
}
|
||||
|
||||
public function closeHandler(e:Event = null) : void
|
||||
{
|
||||
showOut();
|
||||
GlobalBroadcast.removeEventListener("androidBack",AndroidBackHandler);
|
||||
openPanel.popInWith(this);
|
||||
}
|
||||
|
||||
override public function init() : void
|
||||
{
|
||||
guide();
|
||||
ImgCenter.addFsMask(this);
|
||||
GlobalBroadcast.addEventListener("androidBack",AndroidBackHandler);
|
||||
}
|
||||
|
||||
private function AndroidBackHandler(e:Event = null) : void
|
||||
{
|
||||
if(PopCenter.getIns().topPanel == this)
|
||||
{
|
||||
closeHandler();
|
||||
}
|
||||
}
|
||||
|
||||
private function guide() : void
|
||||
{
|
||||
if(GuideCenter.getIns().checkCur(GMain.addMonToTeam2))
|
||||
{
|
||||
GuideCenter.getIns().fin(GMain.addMonToTeam2,false);
|
||||
GuideDriver.getIns().guideDisplay(ui.list_team.itemArray[0],"ui.guideicon_addMonToTeam2",true);
|
||||
}
|
||||
else if(GuideCenter.getIns().checkCur(GMain.addMonToTeam4))
|
||||
{
|
||||
GuideCenter.getIns().fin(GMain.addMonToTeam4);
|
||||
GuideDriver.getIns().guideDisplay(ui.btn_close,"",true);
|
||||
}
|
||||
}
|
||||
|
||||
override public function reset() : void
|
||||
{
|
||||
}
|
||||
|
||||
public function update() : void
|
||||
{
|
||||
var allstar:int = 0;
|
||||
var t:TweenMax = null;
|
||||
var pos:TeamPositionVo = null;
|
||||
if(ui.text_teamStar2 != null)
|
||||
{
|
||||
ui.text_teamStar2.visible = false;
|
||||
}
|
||||
if(ui.mc_starbg2 != null)
|
||||
{
|
||||
ui.mc_starbg2.visible = false;
|
||||
}
|
||||
if(teamMode == 1)
|
||||
{
|
||||
if(Table.team_info.teamStar[curTeamName] > 0)
|
||||
{
|
||||
if(Table.team_info.teamMonTypes != null && Table.team_info.teamMonTypes[curTeamName] != null)
|
||||
{
|
||||
ui.text_teamStar.text = Table.team_info.teamMonTypesDes[curTeamName].name;
|
||||
if(Table.team_info.teamMonTypesDes[curTeamName].star != null)
|
||||
{
|
||||
if(ui.text_teamStar2 != null)
|
||||
{
|
||||
ui.text_teamStar2.visible = true;
|
||||
ui.text_teamStar2.text = Table.team_info.teamMonTypesDes[curTeamName].star;
|
||||
}
|
||||
if(ui.mc_starbg2 != null)
|
||||
{
|
||||
ui.mc_starbg2.visible = true;
|
||||
}
|
||||
}
|
||||
ui.mc_starbg.gotoAndStop(2);
|
||||
}
|
||||
else
|
||||
{
|
||||
allstar = TeamCenter.getIns().getTeamAllStar(curTeamName);
|
||||
ui.text_teamStar.text = allstar + "/" + Table.team_info.teamStar[curTeamName];
|
||||
ui.mc_starbg.gotoAndStop(1);
|
||||
}
|
||||
ui.text_teamStar.visible = true;
|
||||
ui.mc_starbg.visible = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.text_teamStar.visible = false;
|
||||
ui.mc_starbg.visible = false;
|
||||
}
|
||||
}
|
||||
while(alerts.length > 0)
|
||||
{
|
||||
t = alerts.shift();
|
||||
t.progress(1);
|
||||
t.kill();
|
||||
}
|
||||
var res:Object = TeamCenter.getIns().checkTeamLegal(curTeamName);
|
||||
if(res != null)
|
||||
{
|
||||
if(res is Array)
|
||||
{
|
||||
for each(var item:TeamListItem in ui.list_team.itemArray)
|
||||
{
|
||||
if(item.data != null)
|
||||
{
|
||||
pos = item.data as TeamPositionVo;
|
||||
}
|
||||
if(pos != null && pos.monster != null && (res as Array).indexOf(pos.monster) != -1)
|
||||
{
|
||||
alerts.push(TweenMax.from(item,0.3,{
|
||||
"tint":16711680,
|
||||
"yoyo":true,
|
||||
"repeat":20
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(res is int)
|
||||
{
|
||||
alerts.push(TweenMax.from(ui.text_teamMsg,0.3,{
|
||||
"tint":16711680,
|
||||
"yoyo":true,
|
||||
"repeat":20
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override public function dispose() : void
|
||||
{
|
||||
if(!buffMode)
|
||||
{
|
||||
ui.list_team.dispose();
|
||||
}
|
||||
updateMonId = 0;
|
||||
super.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
package net.pixvi.myr.panel.team
|
||||
{
|
||||
import flash.display.DisplayObject;
|
||||
import flash.display.MovieClip;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.element.snd.GameSound;
|
||||
import net.pixvi.pfw.ui.UIComponent;
|
||||
import net.pixvi.pfw.ui.controls.PiBitTextField;
|
||||
import net.pixvi.pfw.ui.controls.PiDataList;
|
||||
import net.pixvi.psg.ui.controller.PiLightButton;
|
||||
import net.pixvi.psg.ui.controller.PiLightSwitch;
|
||||
|
||||
public class TeamPanelUI extends UIComponent
|
||||
{
|
||||
|
||||
public var btn_close:PiLightButton;
|
||||
|
||||
public var switch_tab:PiLightSwitch;
|
||||
|
||||
public var list_team:PiDataList;
|
||||
|
||||
public var text_teamMsg:PiBitTextField;
|
||||
|
||||
public var text_teamStar:PiBitTextField;
|
||||
|
||||
public var mc_starbg:MovieClip;
|
||||
|
||||
public var text_teamStar2:PiBitTextField;
|
||||
|
||||
public var mc_starbg2:MovieClip;
|
||||
|
||||
public function TeamPanelUI(skin:DisplayObject = null, auto:Boolean = true, w:Number = 50, h:Number = 50)
|
||||
{
|
||||
skin = FF.getMC("ui.TeamPanelUI");
|
||||
super(skin,auto,w,h);
|
||||
}
|
||||
|
||||
override public function onSkinComplete() : void
|
||||
{
|
||||
list_team.itemClass = TeamListItem;
|
||||
if(text_teamStar2 != null)
|
||||
{
|
||||
text_teamStar2.visible = false;
|
||||
}
|
||||
if(mc_starbg2 != null)
|
||||
{
|
||||
text_teamStar2.visible = false;
|
||||
}
|
||||
mc_starbg.stop();
|
||||
btn_close.sound_click = GameSound.effect_click_close1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user