mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-21 17:37:50 -05:00
Brought up to date with the private repository (feea4c7)
This commit is contained in:
1 parent
1aa738d692
commit
1b1df1ae48
7925 files changed
+2617237
-20
No files matched your search
@@ -0,0 +1,58 @@
|
||||
package avatar
|
||||
{
|
||||
import com.sbi.analytics.SBTracker;
|
||||
import flash.display.MovieClip;
|
||||
import gui.DarkenManager;
|
||||
import gui.GuiManager;
|
||||
|
||||
public class NewWorldAvatar implements INewAvatar
|
||||
{
|
||||
|
||||
public function NewWorldAvatar()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function screenInitCallback(soundBtn:MovieClip) : void
|
||||
{
|
||||
soundBtn.visible = false;
|
||||
}
|
||||
|
||||
public function get playSound() : Boolean
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function newAvatarData(type:int, avatarName:String, avatarNameIndexes:Array, avNameValidGuiCallback:Function, isShopBuy:Boolean = false) : void
|
||||
{
|
||||
SBTracker.trackPageview("/game/play/popup/avatarSwitch/buyAnimal");
|
||||
var avNameValid:Boolean = Boolean(avatarName && avatarName != "" && RegExp(/a-zA-Z0-9 /)["exec"](avatarName) == null);
|
||||
if(avNameValid)
|
||||
{
|
||||
AvatarSwitch.addNewWorldAvatar(type,avatarName,avatarNameIndexes,isShopBuy);
|
||||
}
|
||||
if(avNameValidGuiCallback != null && !AvatarSwitch.isAddingSlot)
|
||||
{
|
||||
avNameValidGuiCallback(avNameValid);
|
||||
}
|
||||
if(avNameValid)
|
||||
{
|
||||
DarkenManager.showLoadingSpiral(true);
|
||||
}
|
||||
}
|
||||
|
||||
public function hideConnectingMsg() : void
|
||||
{
|
||||
}
|
||||
|
||||
public function nameTypeScreenDone() : void
|
||||
{
|
||||
GuiManager.closeAvatarCreator();
|
||||
}
|
||||
|
||||
public function logInForCreateAvatarData() : void
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user