mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-21 01: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
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,68 @@
|
||||
package game.fashionShow
|
||||
{
|
||||
import avatar.AccessoryState;
|
||||
import avatar.Avatar;
|
||||
import avatar.AvatarUtility;
|
||||
import avatar.AvatarView;
|
||||
import collection.AccItemCollection;
|
||||
import com.sbi.graphics.LayerAnim;
|
||||
import item.Item;
|
||||
|
||||
public class FashionShowAvatarEditorView extends AvatarView
|
||||
{
|
||||
|
||||
public function FashionShowAvatarEditorView()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
override public function init(param1:Avatar, param2:Function = null, param3:Function = null, param4:Boolean = false, param5:Boolean = false) : void
|
||||
{
|
||||
_avatar = param1;
|
||||
_avatar.addEventListener("OnAvatarChanged",avatarChanged,false,0,true);
|
||||
_layerAnim = LayerAnim.getNew();
|
||||
_layerAnim.avDefId = _avatar.avTypeId;
|
||||
_layerAnim.layers = AvatarUtility.layerArrayForItemsAndColors(param1.inventoryClothing.itemCollection,param1.colors,param1.avInvId,param1.roomType);
|
||||
this.addChild(_layerAnim.bitmap);
|
||||
}
|
||||
|
||||
override public function destroy(param1:Boolean = false) : void
|
||||
{
|
||||
this.removeChild(_layerAnim.bitmap);
|
||||
_avatar.removeEventListener("OnAvatarChanged",avatarChanged);
|
||||
LayerAnim.destroy(_layerAnim);
|
||||
_layerAnim = null;
|
||||
}
|
||||
|
||||
public function get colors() : Array
|
||||
{
|
||||
return _avatar.colors;
|
||||
}
|
||||
|
||||
public function set colors(param1:Array) : void
|
||||
{
|
||||
_avatar.colors = param1;
|
||||
}
|
||||
|
||||
public function get accState() : AccessoryState
|
||||
{
|
||||
return _avatar.accState;
|
||||
}
|
||||
|
||||
public function get clothingItemArray() : AccItemCollection
|
||||
{
|
||||
return _avatar.inventoryClothing.itemCollection;
|
||||
}
|
||||
|
||||
public function showAccessory(param1:Item, param2:Function = null) : void
|
||||
{
|
||||
_avatar.accStateShowAccessory(param1,param2);
|
||||
}
|
||||
|
||||
public function hideAccessory(param1:Item) : void
|
||||
{
|
||||
_avatar.accStateHideAccessory(param1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
package game.fashionShow
|
||||
{
|
||||
import avatar.AvatarView;
|
||||
import collection.AccItemCollection;
|
||||
|
||||
public class FashionShowPlayer
|
||||
{
|
||||
|
||||
public var pId:int;
|
||||
|
||||
public var positionIndex:int;
|
||||
|
||||
public var sfsId:int;
|
||||
|
||||
public var dbId:int;
|
||||
|
||||
public var _active:Boolean;
|
||||
|
||||
public var customAvId:int;
|
||||
|
||||
public var avtView:AvatarView;
|
||||
|
||||
public var bCorrect:Boolean;
|
||||
|
||||
public var playerBodyModList:AccItemCollection;
|
||||
|
||||
public var userName:String;
|
||||
|
||||
public function FashionShowPlayer()
|
||||
{
|
||||
super();
|
||||
playerBodyModList = null;
|
||||
positionIndex = -1;
|
||||
_active = false;
|
||||
customAvId = -1;
|
||||
}
|
||||
|
||||
public function destroy() : void
|
||||
{
|
||||
var _loc1_:int = 0;
|
||||
if(playerBodyModList)
|
||||
{
|
||||
_loc1_ = 0;
|
||||
while(_loc1_ < playerBodyModList.length)
|
||||
{
|
||||
playerBodyModList.getAccItem(_loc1_).destroy();
|
||||
playerBodyModList.setAccItem(_loc1_,null);
|
||||
_loc1_++;
|
||||
}
|
||||
playerBodyModList = null;
|
||||
}
|
||||
if(avtView)
|
||||
{
|
||||
avtView.destroy();
|
||||
avtView = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user