Initialize local project and fix ranch growth synchronization

This commit is contained in:
AttilaNet
2026-11-07 22:14:49 +08:00
commit 657f5f33b5
1417 changed files with 202171 additions and 0 deletions
@@ -0,0 +1,71 @@
package net.pixvi.myr.panel.help
{
import com.greensock.TweenMax;
import flash.events.Event;
import net.pixvi.common.center.SoundCenter;
import net.pixvi.common.driver.StageDriver;
import net.pixvi.common.system.language.lang;
import net.pixvi.common.utils.Alert;
import net.pixvi.common.view.FF;
import net.pixvi.myr.element.snd.GameSound;
import net.pixvi.pfw.event.MobiEvent;
import net.pixvi.pfw.utils.Oncer;
import net.pixvi.psg.ui.PSGPopPanel;
public class BattleGuidePanel extends PSGPopPanel
{
public var ui:BattleGuidePanelUI;
public var onComplete:Function;
public var t:TweenMax;
public function BattleGuidePanel(guideStep:String = "", showTime:Number = 0.5, hideTime:Number = -1)
{
buffMode = false;
ui = new BattleGuidePanelUI(FF.getMC("ui.BattleGuide" + guideStep + "PanelUI"));
addChild(ui);
super(0.2,0.2);
StageDriver.stage.addEventListener(MobiEvent.CLICK,clickHandler);
}
public function clickHandler(e:Event) : void
{
if(ui.mc_mov.currentFrame == ui.mc_mov.totalFrames)
{
StageDriver.stage.removeEventListener(MobiEvent.CLICK,clickHandler);
Alert.yesno(lang("提示"),lang("是否需要再看一次战斗教学呢?"),againHandler,closeHandler);
return;
}
if(ui.mc_mov.currentFrame == ui.mc_mov.totalFrames)
{
ui.mc_mov.gotoAndStop(1);
}
else
{
ui.mc_mov.nextFrame();
}
SoundCenter.getIns().play(GameSound.effect_clickGAo);
}
public function againHandler(e:Event = null) : void
{
ui.mc_mov.gotoAndStop(1);
Oncer.lastRun(StageDriver.stage.addEventListener,[MobiEvent.CLICK,clickHandler]);
}
public function closeHandler(e:Event = null) : void
{
t = null;
StageDriver.stage.removeEventListener(MobiEvent.CLICK,clickHandler);
this.showOutAndRemove();
if(onComplete != null)
{
onComplete();
onComplete = null;
}
}
}
}
@@ -0,0 +1,24 @@
package net.pixvi.myr.panel.help
{
import flash.display.DisplayObject;
import flash.display.MovieClip;
import net.pixvi.pfw.ui.UIComponent;
public class BattleGuidePanelUI extends UIComponent
{
public var mc_mov:MovieClip;
public function BattleGuidePanelUI(skin:DisplayObject = null, autoViewSize:Boolean = true, w:Number = 50, h:Number = 50)
{
super(skin,autoViewSize,w,h);
}
override public function onSkinComplete() : void
{
mc_mov.stop();
mc_mov.mouseChildren = mc_mov.mouseEnabled = false;
}
}
}