|
发表于 2010-2-22 10:39:15
|
显示全部楼层
地图部分应该在这里面吧~~
[codes=actionscript]
// Sprite 21879
#initclip
if (!SC2.Dashboard.Lobby.MatchSettings) {
if (!SC2) {
_global.SC2 = new Object ()
}
if (!SC2.Dashboard) {
_global.SC2.Dashboard = new Object ()
}
if (!SC2.Dashboard.Lobby) {
_global.SC2.Dashboard.Lobby = new Object ()
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
} extends LIBRARY.Interfaces.Notebook.PageMovieClip
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.onLoad = function () {
this.m_title.text = Strings.LOBBY_MATCH_SETTINGS
this.m_scrollBar.addEventListener("scroll",this,"ScrollbarChanged")
this.m_zoomButton.addEventListener("click",this,"ZoomButtonClicked")
this.m_thumbnailParams = new SC2.Generics.MapThumbnailParams()
static var m_loaded:Boolean = true
if ((SC2.Singletons.Game.S2GameLobby.GetPhase() >= Protocol.BSN.Battlenet.Client.S2GameDefines.Statics.GAMEPHASE_LOBBY) && (SC2.Singletons.Game.S2GameLobby.GetFullLink() != undefined)) {
SC2.Singletons.Game.S2GameLobby.GetFullLink().GetPrimaryHandle()
SC2.Singletons.Maps.S2Maps.GetS2Map(SC2.Singletons.Game.S2GameLobby.GetFullLink().GetPrimaryHandle().m_id,SC2.Singletons.Game.S2GameLobby.GetFullLink().GetPrimaryHandle().m_version,new LIBRARY.Utilities.Callback(this.onLoadMapCallback,this))
}
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.onLoadMapCallback = function (success) {
this.m_mapInfo = success.m_mapInfo
this.m_thumbnailParams.FillFromS2MapInfo(this.m_mapInfo)
this.m_mapName.text = BattlenetAPI.GetMapHeaderString(this.m_mapInfo.m_handle,this.m_mapInfo.m_mapName)
this.m_author.text = BATTLENET.Utilities.Name.FormatFullToonName(this.m_mapInfo.m_authorName.m_name)
this.m_genres.m_textField.text = Strings.GAMES_GENRE
this.m_genres.m_dropdown.updateLabel = this.m_locUpdateLabelFunc
this.m_genres.m_dropdown.addEventListener("change",this,"GenreChanged")
this.m_gameTypes.m_textField.text = Strings.GAMES_GAMETYPE
this.m_gameTypes.m_dropdown.updateLabel = this.m_locUpdateLabelFunc
SC2.Singletons.Maps.S2Maps.CreateGenreList(this.m_mapInfo)
this.m_genres.m_dropdown.dataProvider = SC2.Singletons.Maps.S2Maps.CreateGenreList(this.m_mapInfo)
if (!SC2.Singletons.Game.S2GameLobby.IsPrivate()) {
this.m_genres.m_dropdown.disabled = true
}
if (!SC2.Singletons.Game.S2GameLobby.IsPrivate()) {
this.m_gameTypes.m_dropdown.disabled = true
}
new SC2.Containers.Maps.S2MapVariantId(this.m_mapInfo.m_variants[SC2.Singletons.Game.S2GameLobby.GetVariantIndex()].m_variantId)
new SC2.Containers.Maps.S2MapVariantId(this.m_mapInfo.m_variants[SC2.Singletons.Game.S2GameLobby.GetVariantIndex()].m_variantId).genre
0
break //Goto(736)
0++
while (0++ < SC2.Singletons.Maps.S2Maps.CreateGenreList(this.m_mapInfo).length){
if (SC2.Singletons.Maps.S2Maps.CreateGenreList(this.m_mapInfo)[0++].m_genre == new SC2.Containers.Maps.S2MapVariantId(this.m_mapInfo.m_variants[SC2.Singletons.Game.S2GameLobby.GetVariantIndex()].m_variantId).genre) {
this.m_genres.m_dropdown.selectedIndex = 0++
break //Goto(762)
}
}
this.m_gameTypes.m_dropdown.dataProvider
0
break //Goto(779)
0++
while (0++ < this.m_gameTypes.m_dropdown.dataProvider.length){
if (this.m_gameTypes.m_dropdown.dataProvider[0++].m_index == SC2.Singletons.Game.S2GameLobby.GetVariantIndex()) {
this.m_gameTypes.m_dropdown.selectedIndex = 0++
this.SetGameTypeTooltip(Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT(this.m_gameTypes.m_dropdown.selectedItem))
break //Goto(840)
}
}
this.m_gameTypes.m_dropdown.addEventListener("change",this,"GameTypeChanged")
this.Layout()
static var m_doneInitialLayout:Boolean = true
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.ActivatePage = function () {
this.m_pageImplementation.ActivatePage()
static var _visible:Boolean = true
this.Layout()
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.DeactivatePage = function () {
this.m_pageImplementation.DeactivatePage()
static var _visible:Boolean = false
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.Layout = function () {
if (!this.m_loaded) {
return undefined
}
SC2.Singletons.Game.S2GameLobby.GetGameSlot()
SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()
2
this.m_gameTypes
static var m_ignoreDropdownCallback:Boolean = true
if (SC2.Singletons.Game.S2GameLobby.IsPrivate() && (SC2.Singletons.Game.S2GameLobby.IsHost() && (!SC2.Singletons.Game.S2GameLobby.IsAttribsLocked()))) {
this.m_genres.m_dropdown.disabled = false
this.m_gameTypes.m_dropdown.disabled = false
} else {
this.m_genres.m_dropdown.disabled = true
this.m_gameTypes.m_dropdown.disabled = true
}
0
break //Goto(1024)
0++
while (0++ < SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances().length){
SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress()
SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++]
if (SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].IsVisible()) {
SC2.Singletons.Game.S2GameLobby.GetAttribute(SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress())
this.m_gameAttributeDropdowns[SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress()]
if (this.m_gameAttributeDropdowns[SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress()] == undefined) {
this.m_genres.duplicateMovieClip(SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress(),this.m_mainDropDownHolder.getNextHighestDepth())
this.m_gameAttributeDropdowns[SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress()] = this.m_genres.duplicateMovieClip(SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress(),this.m_mainDropDownHolder.getNextHighestDepth())
var that = this
static var m_loaded:Boolean = false
this.m_genres.duplicateMovieClip(SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress(),this.m_mainDropDownHolder.getNextHighestDepth()).m_attribute = SC2.Singletons.Game.S2GameLobby.GetAttribute(SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress())
this.m_genres.duplicateMovieClip(SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress(),this.m_mainDropDownHolder.getNextHighestDepth()).m_currentInstance = SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++]
this.m_genres.duplicateMovieClip(SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress(),this.m_mainDropDownHolder.getNextHighestDepth()).onLoad = function () {
this.m_dropdown.updateLabel = that.m_locUpdateLabelFunc
this.m_dropdown.dataProvider = this.m_attribute.GetOptions()
delete(this.m_attribute)
this.m_dropdown.selectedIndex = this.m_currentInstance.GetEntryIndex()
this.m_dropdown.addEventListener("change",that,"GameAttributeChanged")
this.m_dropdown.disabled = (!(this.m_currentInstance.IsChangeable() && SC2.Singletons.Game.S2GameLobby.IsPrivate())) || SC2.Singletons.Game.S2GameLobby.IsAttribsLocked()
delete(this.m_currentInstance)
static var m_loaded:Boolean = true
}
}
this.m_genres.duplicateMovieClip(SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress(),this.m_mainDropDownHolder.getNextHighestDepth())._x = this.m_gameTypes._x
this.m_genres.duplicateMovieClip(SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress(),this.m_mainDropDownHolder.getNextHighestDepth())._y = this.m_gameTypes._y + this.m_clipSpacing
this.m_genres.duplicateMovieClip(SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress(),this.m_mainDropDownHolder.getNextHighestDepth()).m_textField.text = SC2.Singletons.Game.S2GameLobby.GetAttribute(SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress()).GetVisual() + ":"
if (this.m_genres.duplicateMovieClip(SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress(),this.m_mainDropDownHolder.getNextHighestDepth()).m_loaded == true) {
this.m_genres.duplicateMovieClip(SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress(),this.m_mainDropDownHolder.getNextHighestDepth()).m_dropdown.selectedIndex = SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetEntryIndex()
this.m_genres.duplicateMovieClip(SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress(),this.m_mainDropDownHolder.getNextHighestDepth()).m_dropdown.disabled = !(SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].IsChangeable() && SC2.Singletons.Game.S2GameLobby.IsPrivate())
}
2++
this.m_genres.duplicateMovieClip(SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress(),this.m_mainDropDownHolder.getNextHighestDepth())
} else {
this.m_gameAttributeDropdowns[SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress()]
if (this.m_gameAttributeDropdowns[SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress()] != undefined) {
this.m_gameAttributeDropdowns[SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress()].m_dropdown.removeEventListener("change",this,"GameAttributeChanged")
this.m_gameAttributeDropdowns[SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress()].removeMovieClip()
delete(this.m_gameAttributeDropdowns.SC2.Singletons.Game.S2GameLobby.GetGameSlot().GetSortedInstances()[0++].GetAddress())
}
}
}
(2++) * this.m_clipSpacing
if ((2++) * this.m_clipSpacing > this.m_mask._height) {
this.m_scrollBar.setScrollProperties(20,0,((2++) * this.m_clipSpacing) - this.m_mask._height)
this.m_scrollBar._visible = true
} else {
this.m_scrollBar._visible = false
}
static var m_ignoreDropdownCallback:Boolean = false
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.PopulateGameTypes = function () {
new Array ()
this.m_mapInfo.m_variants
0
break //Goto(1395)
0++
while (0++ < this.m_mapInfo.m_variants.length){
this.m_mapInfo.m_variants[0++]
new SC2.Containers.Maps.S2MapHandle(this.m_mapInfo.m_variants[0++].m_mapHandle.m_id,this.m_mapInfo.m_variants[0++].m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.m_mapInfo.m_variants[0++].m_variantId,new SC2.Containers.Maps.S2MapHandle(this.m_mapInfo.m_variants[0++].m_mapHandle.m_id,this.m_mapInfo.m_variants[0++].m_mapHandle.m_version))
if (this.m_genres.m_dropdown.selectedItem.m_genre == new SC2.Containers.Maps.S2MapVariantId(this.m_mapInfo.m_variants[0++].m_variantId,new SC2.Containers.Maps.S2MapHandle(this.m_mapInfo.m_variants[0++].m_mapHandle.m_id,this.m_mapInfo.m_variants[0++].m_mapHandle.m_version)).genre) {
if (new SC2.Containers.Maps.S2MapVariantId(this.m_mapInfo.m_variants[0++].m_variantId,new SC2.Containers.Maps.S2MapHandle(this.m_mapInfo.m_variants[0++].m_mapHandle.m_id,this.m_mapInfo.m_variants[0++].m_mapHandle.m_version)).gameType == "Custom") {
this.m_mapInfo.m_variants[0++]
} else {
new Array ().push(this.m_mapInfo.m_variants[0++])
}
}
}
if (this.m_mapInfo.m_variants[0++] != undefined) {
new Array ().push(this.m_mapInfo.m_variants[0++])
}
this.m_gameTypes.m_dropdown.dataProvider = new Array ()
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.SetGameTypeTooltip = function (variant) {
if (variant.m_variantDescription != undefined) {
this.m_gameTypes.m_dropdown.SetTooltip(BattlenetAPI.GetMapHeaderString(variant.m_mapHandle,variant.m_variantDescription))
} else {
this.m_gameTypes.m_dropdown.SetTooltip(undefined)
}
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.ZoomButtonClicked = function () {
new SC2.Dialogs.PopupMapDialogInit()
new SC2.Dialogs.PopupMapDialogInit().m_thumbnailParams = this.m_thumbnailParams
new SC2.Dialogs.PopupMapDialogInit().m_depthRule = LIBRARY.Interfaces.Windows.Containers.WindowBaseInit.ALWAYS_ON_TOP
new SC2.Dialogs.PopupMapDialogInit().m_listeners = [this]
LIBRARY.Interfaces.Windows.WindowManager.CreateWindow("Windows-WindowDialog",new SC2.Dialogs.PopupMapDialogInit(),false)
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.GenreChanged = function (event) {
if (this.m_ignoreDropdownCallback) {
return undefined
}
switch(this.m_genres.m_dropdown.selectedItem.m_genre){
case Melee :
break //Goto(1665)
case CoopSkirmish :
break //Goto(1665)
default :
break //Goto(1665)
}
this.m_genres.m_dropdown.SetTooltip(Strings.GAMES_GENRE_MELEE_TOOLTIP)
this.m_genres.m_dropdown.SetTooltip(Strings.GAMES_GENRE_COOP_TOOLTIP)
this.m_genres.m_dropdown.SetTooltip(Strings.GAMES_GENRE_OTHER_TOOLTIP)
this.PopulateGameTypes()
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.GameTypeChanged = function (event) {
if (this.m_ignoreDropdownCallback) {
return undefined
}
event.data
this.SetGameTypeTooltip(event.data)
BATTLENET.Invoke.S2GameLobby.VariantChange(event.data.m_index)
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.GameAttributeChanged = function (event) {
if (this.m_ignoreDropdownCallback) {
return undefined
}
BATTLENET.Invoke.S2GameLobby.ChangeGameAttribute(event.data)
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.ScrollbarChanged = function (event) {
this.m_mainDropDownHolder._y = this.m_dropDownHolderYCoord - event.position
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.PhaseLockSlots = function () {
this.Layout()
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.LobbyGameIsNowOpen = function () {
if ((!this.m_loaded) || (!this._visible)) {
return undefined
}
this.m_genres.m_dropdown.disabled = true
this.m_gameTypes.m_dropdown.disabled = true
this.Layout()
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.LobbyNeedsLayout = function () {
if ((!this.m_loaded) || (!this._visible)) {
return undefined
}
this.Layout()
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.LobbyHost = function () {
if ((!this.m_loaded) || (!this._visible)) {
return undefined
}
if (SC2.Singletons.Game.S2GameLobby.IsHost() && SC2.Singletons.Game.S2GameLobby.IsPrivate()) {
this.m_genres.m_dropdown.disabled = false
this.m_gameTypes.m_dropdown.disabled = false
} else {
this.m_genres.m_dropdown.disabled = true
this.m_gameTypes.m_dropdown.disabled = true
}
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.LobbyInfo = function () {
if ((!this.m_loaded) || (this.m_doneInitialLayout)) {
return undefined
}
SC2.Singletons.Game.S2GameLobby.GetFullLink().GetPrimaryHandle()
SC2.Singletons.Maps.S2Maps.GetS2Map(SC2.Singletons.Game.S2GameLobby.GetFullLink().GetPrimaryHandle().m_id,SC2.Singletons.Game.S2GameLobby.GetFullLink().GetPrimaryHandle().m_version,new LIBRARY.Utilities.Callback(this.onLoadMapCallback,this))
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.LobbyVariantChangeNotify = function (variantIndex) {
if ((!this.m_loaded) || (!this._visible)) {
return undefined
}
static var m_ignoreDropdownCallback:Boolean = true
this.m_mapInfo.m_variants[SC2.Singletons.Game.S2GameLobby.GetVariantIndex()]
new SC2.Containers.Maps.S2MapVariantId(this.m_mapInfo.m_variants[SC2.Singletons.Game.S2GameLobby.GetVariantIndex()].m_variantId,SC2.Singletons.Game.S2GameLobby.GetFullLink().GetPrimaryHandle())
0
break //Goto(2039)
0++
while (0++ < this.m_genres.m_dropdown.dataProvider.length){
if (this.m_genres.m_dropdown.dataProvider[0++].m_genre == new SC2.Containers.Maps.S2MapVariantId(this.m_mapInfo.m_variants[SC2.Singletons.Game.S2GameLobby.GetVariantIndex()].m_variantId,SC2.Singletons.Game.S2GameLobby.GetFullLink().GetPrimaryHandle()).genre) {
this.m_genres.m_dropdown.selectedIndex = 0++
break //Goto(2079)
}
}
this.PopulateGameTypes()
0
break //Goto(2092)
0++
while (0++ < this.m_gameTypes.m_dropdown.dataProvider.length){
if (this.m_gameTypes.m_dropdown.dataProvider[0++].m_index == this.m_mapInfo.m_variants[SC2.Singletons.Game.S2GameLobby.GetVariantIndex()].m_index) {
this.m_gameTypes.m_dropdown.selectedIndex = 0++
break //Goto(2132)
}
}
static var m_ignoreDropdownCallback:Boolean = false
}
_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype.onMouseWheel = function (delta, target) {
if (this._visible && (this.hitTest(_root._xmouse,_root._ymouse,false) && (this.m_scrollBar._visible))) {
Mouse.getTopMostEntity()
while (Mouse.getTopMostEntity()){
if (Mouse.getTopMostEntity() == this) {
(delta) * this.m_scrollBar.availableHeight / this.SCROLLBAR_INCREMENTS
this.m_scrollBar.position = this.m_scrollBar.position - ((delta) * this.m_scrollBar.availableHeight / this.SCROLLBAR_INCREMENTS)
break //Goto(2218)
}
Mouse.getTopMostEntity()._parent
}
}
}
ASSetPropFlags (_global.SC2.Dashboard.Lobby.MatchSettings = function () {
super[undefined]()
this.m_gameAttributeDropdowns = new Object ()
this.m_locUpdateLabelFunc = function () {
if (this.selectedItem instanceof BATTLENET.Containers.Game.Attributes.Option) {
BATTLENET.Containers.Game.Attributes.Option(this.selectedItem)
this.label = BATTLENET.Containers.Game.Attributes.Option(this.selectedItem).GetVisual()
}
else if (this.selectedItem instanceof Protocol.BSN.Battlenet.Event.S2Maps.S2MapVariantInfo_STRUCT) {
this.selectedItem
new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)
new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version))
this.label = new SC2.Containers.Maps.S2MapVariantId(this.selectedItem.m_variantId,new SC2.Containers.Maps.S2MapHandle(this.selectedItem.m_mapHandle.m_id,this.selectedItem.m_mapHandle.m_version)).gameTypeLocalizedString
}
else if (this.selectedItem instanceof String || (typeof(this.selectedItem) == "string")) {
this.label = this.selectedItem
}
else if (this.selectedItem.m_visual instanceof String || (typeof(this.selectedItem.m_visual) == "string")) {
this.label = String(this.selectedItem.m_visual)
} else {
LIBRARY.Utilities.Log.Fail("Dashboard.Lobby.MatchSettings.m_locUpdateLabelFunc: unknown selectedItem type: LIBRARY.Utilities.Log type=3",LIBRARY.Utilities.StringDisplayFormat.Serialize(this.selectedItem,true),typeof(this.selectedItem))
}
}
this.m_genres = this.m_mainDropDownHolder.m_genres
this.m_gameTypes = this.m_mainDropDownHolder.m_gameTypes
this.m_scrollBar.position = 0
this.m_scrollBar._visible = false
this.m_dropDownHolderYCoord = this.m_mainDropDownHolder._y
this.m_clipSpacing = this.m_gameTypes._y - this.m_genres._y
static var m_ignoreDropdownCallback:Boolean = false
static var m_loaded:Boolean = false
static var m_doneInitialLayout:Boolean = false
SC2.Singletons.Game.S2GameLobby.AddListener(this)
Mouse.addListener(this)
}.prototype,null,1)
static var SCROLLBAR_INCREMENTS:Number = 10
}
#endinitclip
[/codes] |
|