Initialize local project and fix ranch growth synchronization
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
package net.pixvi.myr
|
||||
{
|
||||
import flash.geom.Rectangle;
|
||||
|
||||
public class GameSetting
|
||||
{
|
||||
|
||||
public static var Y_DISTANCE_SCALE:Number = 0.5;
|
||||
|
||||
public static var attackImgWaitTime:int = 300;
|
||||
|
||||
public static var MainUITopHeight:int = 44;
|
||||
|
||||
public static var MainUIBottomHeight:int = 60;
|
||||
|
||||
public static var BottomMenuSpace:Number = 23;
|
||||
|
||||
public static var PanelTransTime:Number = 0.3;
|
||||
|
||||
public static var BattleStartCD:int = 7;
|
||||
|
||||
public function GameSetting()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public static function fixDragRecWithMainUI(rec:Rectangle, scaleY:Number = 1, checkHeight:Boolean = true) : void
|
||||
{
|
||||
if(rec.height != 0 || !checkHeight)
|
||||
{
|
||||
rec.y -= GameSetting.MainUIBottomHeight / scaleY;
|
||||
rec.height += (GameSetting.MainUIBottomHeight + GameSetting.MainUITopHeight) / scaleY;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user