示例#1
0
 def _createManagers(self):
     super(LobbyEntry, self)._createManagers()
     self._varsMgr = GlobalVarsManager()
     self._soundMgr = SoundManager()
     self._colorSchemeMgr = ColorSchemeManager()
     self._eventLogMgr = EventLogManager()
     self._contextMgr = ContextMenuManager(self.proxy)
     self._popoverManager = PopoverManager(EVENT_BUS_SCOPE.LOBBY)
     self._guiItemsMgr = GuiItemsManager()
     self._voiceChatMgr = VoiceChatManager(self.proxy)
     self._utilsMgr = UtilsManager()
     self._tweenMgr = TweenManager()
     self._gameInputMgr = GameInputMgr()
     self._cacheMgr = CacheManager()
     self._tutorialMgr = TutorialManager(True, 'gui/tutorial-lobby-gui.xml')
示例#2
0
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/hangar/__init__.py
from gui.Scaleform.daapi.view.lobby.hangar.Hangar import Hangar
from gui.Scaleform.daapi.view.lobby.hangar.AmmunitionPanel import AmmunitionPanel
from gui.Scaleform.daapi.view.lobby.hangar.Crew import Crew
from gui.Scaleform.daapi.view.lobby.hangar.Params import Params
from gui.Scaleform.daapi.view.lobby.hangar.ResearchPanel import ResearchPanel
from gui.Scaleform.daapi.view.lobby.hangar.TankCarousel import TankCarousel
from gui.Scaleform.daapi.view.lobby.hangar.TechnicalMaintenance import TechnicalMaintenance
from gui.Scaleform.genConsts.CONTEXT_MENU_HANDLER_TYPE import CONTEXT_MENU_HANDLER_TYPE
from gui.Scaleform.managers.context_menu import ContextMenuManager
__all__ = ['Hangar',
 'AmmunitionPanel',
 'Crew',
 'Params',
 'ResearchPanel',
 'TankCarousel',
 'TechnicalMaintenance',
 'TmenXpPanel']
ContextMenuManager.registerHandler(CONTEXT_MENU_HANDLER_TYPE.CREW, 'gui.Scaleform.daapi.view.lobby.hangar.hangar_cm_handlers', 'CrewContextMenuHandler')
ContextMenuManager.registerHandler(CONTEXT_MENU_HANDLER_TYPE.VEHICLE, 'gui.Scaleform.daapi.view.lobby.hangar.hangar_cm_handlers', 'VehicleContextMenuHandler')
ContextMenuManager.registerHandler(CONTEXT_MENU_HANDLER_TYPE.TECHNICAL_MAINTENANCE, 'gui.Scaleform.daapi.view.lobby.hangar.hangar_cm_handlers', 'TechnicalMaintenanceCMHandler')
示例#3
0
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/messengerBar/__init__.py
from gui.Scaleform.daapi.view.lobby.messengerBar.MessengerBar import MessengerBar
from gui.Scaleform.daapi.view.lobby.messengerBar.ChannelCarousel import ChannelCarousel
from gui.Scaleform.daapi.view.lobby.messengerBar.NotificationListButton import NotificationListButton
from gui.Scaleform.daapi.view.lobby.messengerBar.ContactsListButton import ContactsListButton
from gui.Scaleform.genConsts.CONTEXT_MENU_HANDLER_TYPE import CONTEXT_MENU_HANDLER_TYPE
from gui.Scaleform.managers.context_menu import ContextMenuManager
__all__ = ['MessengerBar',
 'ChannelCarousel',
 'NotificationListButton',
 'ContactsListButton']
ContextMenuManager.registerHandler(CONTEXT_MENU_HANDLER_TYPE.CHANNEL_LIST, 'gui.Scaleform.daapi.view.lobby.messengerBar.ChannelListContextMenuHandler', 'ChannelListContextMenuHandler')
示例#4
0
#Embedded file name: scripts/client/messenger/gui/Scaleform/view/__init__.py
from gui.Scaleform.framework import GroupedViewSettings, ViewTypes, ViewSettings
from gui.Scaleform.framework import ScopeTemplates
from gui.Scaleform.framework.package_layout import PackageBusinessHandler
from gui.Scaleform.genConsts.CONTACTS_ALIASES import CONTACTS_ALIASES
from gui.Scaleform.genConsts.CONTEXT_MENU_HANDLER_TYPE import CONTEXT_MENU_HANDLER_TYPE
from gui.Scaleform.managers.context_menu import ContextMenuManager
from gui.app_loader.settings import APP_NAME_SPACE
from gui.shared import EVENT_BUS_SCOPE
from gui.shared.utils.functions import getViewName
ACCOUNT_NAME_MIN_CHARS_LENGTH = 2
ACCOUNT_NAME_MAX_CHARS_LENGTH = 24
ContextMenuManager.registerHandler(CONTEXT_MENU_HANDLER_TYPE.CONTACTS_GROUP, 'messenger.gui.Scaleform.data.contacts_cm_handlers', 'SimpleContactsCMHandler')
ContextMenuManager.registerHandler(CONTEXT_MENU_HANDLER_TYPE.PLAYER_CONTACTS, 'messenger.gui.Scaleform.data.contacts_cm_handlers', 'PlayerContactsCMHandler')

class MESSENGER_VIEW_ALIAS(object):
    FAQ_WINDOW = 'messenger/faqWindow'
    CHANNEL_MANAGEMENT_WINDOW = 'messenger/channelsManagementWindow'
    LAZY_CHANNEL_WINDOW = 'messenger/lazyChannelWindow'
    LOBBY_CHANNEL_WINDOW = 'messenger/lobbyChannelWindow'
    CONNECT_TO_SECURE_CHANNEL_WINDOW = 'messenger/connectToSecureChannelWindow'
    CHANNEL_COMPONENT = 'channelComponent'


def getViewSettings():
    from gui.Scaleform.genConsts.CONTACTS_ALIASES import CONTACTS_ALIASES
    from messenger.gui.Scaleform.view.ChannelComponent import ChannelComponent
    from messenger.gui.Scaleform.view.ChannelsManagementWindow import ChannelsManagementWindow
    from messenger.gui.Scaleform.view.ConnectToSecureChannelWindow import ConnectToSecureChannelWindow
    from messenger.gui.Scaleform.view.FAQWindow import FAQWindow
    from messenger.gui.Scaleform.view.LazyChannelWindow import LazyChannelWindow
示例#5
0
# 2015.11.18 11:54:25 Støední Evropa (bìžný èas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/prb_windows/__init__.py
from gui.Scaleform.daapi.settings.views import VIEW_ALIAS
from gui.Scaleform.framework import ViewSettings, GroupedViewSettings, ViewTypes
from gui.Scaleform.framework import ScopeTemplates
from gui.Scaleform.framework.package_layout import PackageBusinessHandler
from gui.Scaleform.genConsts.CONTEXT_MENU_HANDLER_TYPE import CONTEXT_MENU_HANDLER_TYPE
from gui.Scaleform.genConsts.PREBATTLE_ALIASES import PREBATTLE_ALIASES
from gui.Scaleform.managers.context_menu import ContextMenuManager
from gui.app_loader.settings import APP_NAME_SPACE
from gui.shared import EVENT_BUS_SCOPE
from gui.shared.utils.functions import getViewName
ContextMenuManager.registerHandler(CONTEXT_MENU_HANDLER_TYPE.PREBATTLE_USER, 'gui.Scaleform.daapi.view.lobby.prb_windows.PrebattleUserCMHandler', 'PrebattleUserCMHandler')

def getViewSettings():
    from gui.Scaleform.daapi.view.lobby.prb_windows import invite_windows
    from gui.Scaleform.daapi.view.lobby.prb_windows.BattleSessionList import BattleSessionList
    from gui.Scaleform.daapi.view.lobby.prb_windows.BattleSessionWindow import BattleSessionWindow
    from gui.Scaleform.daapi.view.lobby.prb_windows.CompanyListView import CompanyListView
    from gui.Scaleform.daapi.view.lobby.prb_windows.CompanyMainWindow import CompanyMainWindow
    from gui.Scaleform.daapi.view.lobby.prb_windows.CompanyRoomView import CompanyRoomView
    from gui.Scaleform.daapi.view.lobby.SendInvitesWindow import SendInvitesWindow
    from gui.Scaleform.daapi.view.lobby.prb_windows.SquadPromoWindow import SquadPromoWindow
    from gui.Scaleform.daapi.view.lobby.prb_windows.SquadView import SquadView
    from gui.Scaleform.daapi.view.lobby.prb_windows.SquadWindow import SquadWindow
    from gui.Scaleform.daapi.view.lobby.prb_windows.SwitchPeripheryWindow import SwitchPeripheryWindow
    return (GroupedViewSettings(PREBATTLE_ALIASES.SEND_INVITES_WINDOW_PY, SendInvitesWindow, 'sendInvitesWindow.swf', ViewTypes.WINDOW, '', PREBATTLE_ALIASES.SEND_INVITES_WINDOW_PY, ScopeTemplates.DEFAULT_SCOPE, True),
     GroupedViewSettings(PREBATTLE_ALIASES.AUTO_INVITE_WINDOW_PY, invite_windows.AutoInviteWindow, 'receivedInviteWindow.swf', ViewTypes.WINDOW, 'receivedInviteWindow', None, ScopeTemplates.DEFAULT_SCOPE, True),
     GroupedViewSettings(PREBATTLE_ALIASES.SQUAD_WINDOW_PY, SquadWindow, 'squadWindow.swf', ViewTypes.WINDOW, '', PREBATTLE_ALIASES.SQUAD_WINDOW_PY, ScopeTemplates.DEFAULT_SCOPE, True),
     GroupedViewSettings(PREBATTLE_ALIASES.COMPANY_WINDOW_PY, CompanyMainWindow, 'companyMainWindow.swf', ViewTypes.WINDOW, '', PREBATTLE_ALIASES.COMPANY_WINDOW_PY, ScopeTemplates.DEFAULT_SCOPE, True),
     GroupedViewSettings(PREBATTLE_ALIASES.BATTLE_SESSION_ROOM_WINDOW_PY, BattleSessionWindow, 'battleSessionWindow.swf', ViewTypes.WINDOW, '', PREBATTLE_ALIASES.BATTLE_SESSION_ROOM_WINDOW_PY, ScopeTemplates.DEFAULT_SCOPE, True),
示例#6
0
#Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/rally/__init__.py
from gui.Scaleform.genConsts.CONTEXT_MENU_HANDLER_TYPE import CONTEXT_MENU_HANDLER_TYPE
from gui.Scaleform.managers.context_menu import ContextMenuManager
__author__ = 'd_dichkovsky'
ContextMenuManager.registerHandler(CONTEXT_MENU_HANDLER_TYPE.UNIT_USER, 'gui.Scaleform.daapi.view.lobby.rally.UnitUserCMHandler', 'UnitUserCMHandler')

class NavigationStack(object):
    __stacks = {}

    @classmethod
    def clear(cls, key):
        if key in cls.__stacks:
            cls.__stacks[key] = []

    @classmethod
    def exclude(cls, key, flashAlias):
        items = cls.__stacks.get(key, [])[:]
        for item in items:
            if item[0] == flashAlias:
                cls.__stacks[key].remove(item)

    @classmethod
    def hasHistory(cls, key):
        if key in cls.__stacks:
            return len(cls.__stacks[key])
        return 0

    @classmethod
    def current(cls, key):
        if key in cls.__stacks and len(cls.__stacks[key]):
            return cls.__stacks[key][-1]
示例#7
0
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/__init__.py
from gui.Scaleform.genConsts.CONTEXT_MENU_HANDLER_TYPE import CONTEXT_MENU_HANDLER_TYPE
from gui.Scaleform.managers.context_menu import ContextMenuManager
ContextMenuManager.registerHandler(CONTEXT_MENU_HANDLER_TYPE.APPEAL_USER, 'gui.Scaleform.daapi.view.lobby.user_cm_handlers', 'AppealCMHandler')
ContextMenuManager.registerHandler(CONTEXT_MENU_HANDLER_TYPE.BASE_USER, 'gui.Scaleform.daapi.view.lobby.user_cm_handlers', 'BaseUserCMHandler')
示例#8
0
#Embedded file name: scripts/client/gui/Scaleform/daapi/view/__init__.py
from gui.Scaleform.genConsts.CONTEXT_MENU_HANDLER_TYPE import CONTEXT_MENU_HANDLER_TYPE
from gui.Scaleform.managers.context_menu import ContextMenuManager
ContextMenuManager.registerHandler(
    CONTEXT_MENU_HANDLER_TYPE.APPEAL_USER,
    'gui.Scaleform.daapi.view.lobby.user_cm_handlers', 'AppealCMHandler')
ContextMenuManager.registerHandler(
    CONTEXT_MENU_HANDLER_TYPE.BASE_USER,
    'gui.Scaleform.daapi.view.lobby.user_cm_handlers', 'BaseUserCMHandler')
示例#9
0
#Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/techtree/__init__.py
from gui.Scaleform.framework.package_layout import PackageBusinessHandler
from gui.Scaleform.genConsts.CONTEXT_MENU_HANDLER_TYPE import CONTEXT_MENU_HANDLER_TYPE
from gui.Scaleform.managers.context_menu import ContextMenuManager
from gui.Scaleform.daapi.settings.views import VIEW_ALIAS
from gui.Scaleform.framework import ViewSettings, ViewTypes, ScopeTemplates
from gui.app_loader.settings import APP_NAME_SPACE
from gui.shared import EVENT_BUS_SCOPE, g_eventBus
from gui.shared.events import LoadEvent
ContextMenuManager.registerHandler(
    CONTEXT_MENU_HANDLER_TYPE.RESEARCH_VEHICLE,
    'gui.Scaleform.daapi.view.lobby.techtree.research_cm_handlers',
    'ResearchVehicleContextMenuHandler')
ContextMenuManager.registerHandler(
    CONTEXT_MENU_HANDLER_TYPE.RESEARCH_ITEM,
    'gui.Scaleform.daapi.view.lobby.techtree.research_cm_handlers',
    'ResearchItemContextMenuHandler')


def getViewSettings():
    from gui.Scaleform.daapi.view.lobby.techtree.Research import Research
    from gui.Scaleform.daapi.view.lobby.techtree.TechTree import TechTree
    return (ViewSettings(VIEW_ALIAS.LOBBY_TECHTREE, TechTree, 'techtree.swf',
                         ViewTypes.LOBBY_SUB, VIEW_ALIAS.LOBBY_TECHTREE,
                         ScopeTemplates.DEFAULT_SCOPE, True),
            ViewSettings(VIEW_ALIAS.LOBBY_RESEARCH, Research, 'research.swf',
                         ViewTypes.LOBBY_SUB, VIEW_ALIAS.LOBBY_RESEARCH,
                         ScopeTemplates.DEFAULT_SCOPE, True))


def getBusinessHandlers():
示例#10
0
#Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/prb_windows/__init__.py
from gui.Scaleform.framework import ViewSettings, GroupedViewSettings, ViewTypes
from gui.Scaleform.framework import ScopeTemplates
from gui.Scaleform.framework.package_layout import PackageBusinessHandler
from gui.Scaleform.genConsts.CONTEXT_MENU_HANDLER_TYPE import CONTEXT_MENU_HANDLER_TYPE
from gui.Scaleform.genConsts.PREBATTLE_ALIASES import PREBATTLE_ALIASES
from gui.Scaleform.managers.context_menu import ContextMenuManager
from gui.app_loader.settings import APP_NAME_SPACE
from gui.shared import EVENT_BUS_SCOPE
from gui.shared.utils.functions import getViewName
ContextMenuManager.registerHandler(
    CONTEXT_MENU_HANDLER_TYPE.PREBATTLE_USER,
    'gui.Scaleform.daapi.view.lobby.prb_windows.PrebattleUserCMHandler',
    'PrebattleUserCMHandler')


def getViewSettings():
    from gui.Scaleform.daapi.view.lobby.prb_windows.BattleSessionList import BattleSessionList
    from gui.Scaleform.daapi.view.lobby.prb_windows.BattleSessionWindow import BattleSessionWindow
    from gui.Scaleform.daapi.view.lobby.prb_windows.PrbSendInvitesWindow import PrbSendInvitesWindow
    from gui.Scaleform.daapi.view.lobby.prb_windows import invite_windows
    from gui.Scaleform.daapi.view.lobby.prb_windows.SquadWindow import SquadWindow
    from gui.Scaleform.daapi.view.lobby.prb_windows.CompanyListView import CompanyListView
    from gui.Scaleform.daapi.view.lobby.prb_windows.CompanyMainWindow import CompanyMainWindow
    from gui.Scaleform.daapi.view.lobby.prb_windows.CompanyRoomView import CompanyRoomView
    from gui.Scaleform.daapi.view.lobby.prb_windows.SquadView import SquadView
    return (GroupedViewSettings(PREBATTLE_ALIASES.SEND_INVITES_WINDOW_PY,
                                PrbSendInvitesWindow,
                                'prbSendInvitesWindow.swf', ViewTypes.WINDOW,
                                '', PREBATTLE_ALIASES.SEND_INVITES_WINDOW_PY,
                                ScopeTemplates.DEFAULT_SCOPE, True),
示例#11
0
#Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/messengerBar/__init__.py
from gui.Scaleform.daapi.view.lobby.messengerBar.MessengerBar import MessengerBar
from gui.Scaleform.daapi.view.lobby.messengerBar.ChannelCarousel import ChannelCarousel
from gui.Scaleform.daapi.view.lobby.messengerBar.NotificationListButton import NotificationListButton
from gui.Scaleform.daapi.view.lobby.messengerBar.ContactsListButton import ContactsListButton
from gui.Scaleform.genConsts.CONTEXT_MENU_HANDLER_TYPE import CONTEXT_MENU_HANDLER_TYPE
from gui.Scaleform.managers.context_menu import ContextMenuManager
__all__ = [
    'MessengerBar', 'ChannelCarousel', 'NotificationListButton',
    'ContactsListButton'
]
ContextMenuManager.registerHandler(
    CONTEXT_MENU_HANDLER_TYPE.CHANNEL_LIST,
    'gui.Scaleform.daapi.view.lobby.messengerBar.ChannelListContextMenuHandler',
    'ChannelListContextMenuHandler')
示例#12
0
#Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/cyberSport/__init__.py
from gui.Scaleform.daapi.settings.views import VIEW_ALIAS
from gui.Scaleform.framework.package_layout import PackageBusinessHandler
from gui.Scaleform.genConsts.CONTEXT_MENU_HANDLER_TYPE import CONTEXT_MENU_HANDLER_TYPE
from gui.Scaleform.genConsts.CYBER_SPORT_ALIASES import CYBER_SPORT_ALIASES
from gui.Scaleform.framework import GroupedViewSettings, ViewTypes, ViewSettings
from gui.Scaleform.framework import ScopeTemplates
from gui.Scaleform.managers.context_menu import ContextMenuManager
from gui.app_loader.settings import APP_NAME_SPACE
from gui.shared import EVENT_BUS_SCOPE
from gui.shared.events import ShowDialogEvent
ContextMenuManager.registerHandler(CONTEXT_MENU_HANDLER_TYPE.CLUB_STAFF, 'gui.Scaleform.daapi.view.lobby.cyberSport.ClubUserCMHandler', 'ClubUserCMHandler')

class PLAYER_GUI_STATUS(object):
    NORMAL = 0
    READY = 2
    BATTLE = 3
    LOCKED = 4
    CREATOR = 5


class SLOT_LABEL(object):
    DEFAULT = ''
    LOCKED = 'freezed'
    CLOSED = 'locked'
    NOT_AVAILABLE = 'notAvailable'
    NOT_ALLOWED = 'notAllowed'
    EMPTY = 'emptySlot'
    REQUIRED = 'required'

示例#13
0
#Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/rally/__init__.py
from gui.Scaleform.genConsts.CONTEXT_MENU_HANDLER_TYPE import CONTEXT_MENU_HANDLER_TYPE
from gui.Scaleform.managers.context_menu import ContextMenuManager
__author__ = 'd_dichkovsky'
ContextMenuManager.registerHandler(
    CONTEXT_MENU_HANDLER_TYPE.UNIT_USER,
    'gui.Scaleform.daapi.view.lobby.rally.UnitUserCMHandler',
    'UnitUserCMHandler')


class NavigationStack(object):
    __stacks = {}

    @classmethod
    def clear(cls, key):
        if key in cls.__stacks:
            cls.__stacks[key] = []

    @classmethod
    def exclude(cls, key, flashAlias):
        items = cls.__stacks.get(key, [])[:]
        for item in items:
            if item[0] == flashAlias:
                cls.__stacks[key].remove(item)

    @classmethod
    def hasHistory(cls, key):
        if key in cls.__stacks:
            return len(cls.__stacks[key])
        return 0
示例#14
0
#Embedded file name: scripts/client/messenger/gui/Scaleform/view/__init__.py
from gui.Scaleform.framework import GroupedViewSettings, ViewTypes, ViewSettings
from gui.Scaleform.framework import ScopeTemplates
from gui.Scaleform.framework.package_layout import PackageBusinessHandler
from gui.Scaleform.genConsts.CONTACTS_ALIASES import CONTACTS_ALIASES
from gui.Scaleform.genConsts.CONTEXT_MENU_HANDLER_TYPE import CONTEXT_MENU_HANDLER_TYPE
from gui.Scaleform.managers.context_menu import ContextMenuManager
from gui.app_loader.settings import APP_NAME_SPACE
from gui.shared import EVENT_BUS_SCOPE
from gui.shared.utils.functions import getViewName
ACCOUNT_NAME_MIN_CHARS_LENGTH = 2
ACCOUNT_NAME_MAX_CHARS_LENGTH = 24
ContextMenuManager.registerHandler(
    CONTEXT_MENU_HANDLER_TYPE.CONTACTS_GROUP,
    'messenger.gui.Scaleform.data.contacts_cm_handlers',
    'SimpleContactsCMHandler')
ContextMenuManager.registerHandler(
    CONTEXT_MENU_HANDLER_TYPE.PLAYER_CONTACTS,
    'messenger.gui.Scaleform.data.contacts_cm_handlers',
    'PlayerContactsCMHandler')


class MESSENGER_VIEW_ALIAS(object):
    FAQ_WINDOW = 'messenger/faqWindow'
    CHANNEL_MANAGEMENT_WINDOW = 'messenger/channelsManagementWindow'
    LAZY_CHANNEL_WINDOW = 'messenger/lazyChannelWindow'
    LOBBY_CHANNEL_WINDOW = 'messenger/lobbyChannelWindow'
    CONNECT_TO_SECURE_CHANNEL_WINDOW = 'messenger/connectToSecureChannelWindow'
    CHANNEL_COMPONENT = 'channelComponent'

示例#15
0
文件: __init__.py 项目: webiumsk/WoT
from gui.Scaleform.managers.context_menu import ContextMenuManager
from gui.shared.gui_items import GUI_ITEM_TYPE, GUI_ITEM_TYPE_NAMES
from items import getTypeInfoByName
from items.vehicles import VEHICLE_CLASS_TAGS
import nations
TREE_SHARED_REL_FILE_PATH = 'gui/flash/techtree/tree-shared.xml'
NATION_TREE_REL_FILE_PATH = 'gui/flash/techtree/%s-tree.xml'
USE_XML_DUMPING = False
_VEHICLE_TYPE_NAME = GUI_ITEM_TYPE_NAMES[GUI_ITEM_TYPE.VEHICLE]
_RESEARCH_ITEMS = (GUI_ITEM_TYPE.GUN,
 GUI_ITEM_TYPE.TURRET,
 GUI_ITEM_TYPE.RADIO,
 GUI_ITEM_TYPE.ENGINE,
 GUI_ITEM_TYPE.CHASSIS)
MAX_PATH_LIMIT = 5
ContextMenuManager.registerHandler(CONTEXT_MENU_HANDLER_TYPE.RESEARCH_VEHICLE, 'gui.Scaleform.daapi.view.lobby.techtree.research_cm_handlers', 'ResearchVehicleContextMenuHandler')
ContextMenuManager.registerHandler(CONTEXT_MENU_HANDLER_TYPE.RESEARCH_ITEM, 'gui.Scaleform.daapi.view.lobby.techtree.research_cm_handlers', 'ResearchItemContextMenuHandler')

class NODE_STATE:
    LOCKED = 1
    NEXT_2_UNLOCK = 2
    UNLOCKED = 4
    ENOUGH_XP = 8
    ENOUGH_MONEY = 16
    IN_INVENTORY = 32
    WAS_IN_BATTLE = 64
    ELITE = 128
    PREMIUM = 256
    SELECTED = 512
    AUTO_UNLOCKED = 1024
    INSTALLED = 2048
示例#16
0
# 2016.02.14 12:39:20 Støední Evropa (bìžný èas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/cyberSport/__init__.py
from gui.Scaleform.daapi.settings.views import VIEW_ALIAS
from gui.Scaleform.framework.package_layout import PackageBusinessHandler
from gui.Scaleform.genConsts.CONTEXT_MENU_HANDLER_TYPE import CONTEXT_MENU_HANDLER_TYPE
from gui.Scaleform.genConsts.CYBER_SPORT_ALIASES import CYBER_SPORT_ALIASES
from gui.Scaleform.framework import GroupedViewSettings, ViewTypes, ViewSettings
from gui.Scaleform.framework import ScopeTemplates
from gui.Scaleform.managers.context_menu import ContextMenuManager
from gui.app_loader.settings import APP_NAME_SPACE
from gui.shared import EVENT_BUS_SCOPE
from gui.shared.events import ShowDialogEvent
ContextMenuManager.registerHandler(CONTEXT_MENU_HANDLER_TYPE.CLUB_STAFF, 'gui.Scaleform.daapi.view.lobby.cyberSport.ClubUserCMHandler', 'ClubUserCMHandler')

class PLAYER_GUI_STATUS(object):
    NORMAL = 0
    READY = 2
    BATTLE = 3
    LOCKED = 4
    CREATOR = 5


class SLOT_LABEL(object):
    DEFAULT = ''
    LOCKED = 'freezed'
    CLOSED = 'locked'
    NOT_AVAILABLE = 'notAvailable'
    NOT_ALLOWED = 'notAllowed'
    EMPTY = 'emptySlot'
    REQUIRED = 'required'
示例#17
0
#Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/hangar/__init__.py
from gui.Scaleform.daapi.view.lobby.hangar.Hangar import Hangar
from gui.Scaleform.daapi.view.lobby.hangar.AmmunitionPanel import AmmunitionPanel
from gui.Scaleform.daapi.view.lobby.hangar.Crew import Crew
from gui.Scaleform.daapi.view.lobby.hangar.Params import Params
from gui.Scaleform.daapi.view.lobby.hangar.ResearchPanel import ResearchPanel
from gui.Scaleform.daapi.view.lobby.hangar.TankCarousel import TankCarousel
from gui.Scaleform.daapi.view.lobby.hangar.TechnicalMaintenance import TechnicalMaintenance
from gui.Scaleform.genConsts.CONTEXT_MENU_HANDLER_TYPE import CONTEXT_MENU_HANDLER_TYPE
from gui.Scaleform.managers.context_menu import ContextMenuManager
__all__ = [
    'Hangar', 'AmmunitionPanel', 'Crew', 'Params', 'ResearchPanel',
    'TankCarousel', 'TechnicalMaintenance', 'TmenXpPanel'
]
ContextMenuManager.registerHandler(
    CONTEXT_MENU_HANDLER_TYPE.CREW,
    'gui.Scaleform.daapi.view.lobby.hangar.hangar_cm_handlers',
    'CrewContextMenuHandler')
ContextMenuManager.registerHandler(
    CONTEXT_MENU_HANDLER_TYPE.VEHICLE,
    'gui.Scaleform.daapi.view.lobby.hangar.hangar_cm_handlers',
    'VehicleContextMenuHandler')
ContextMenuManager.registerHandler(
    CONTEXT_MENU_HANDLER_TYPE.TECHNICAL_MAINTENANCE,
    'gui.Scaleform.daapi.view.lobby.hangar.hangar_cm_handlers',
    'TechnicalMaintenanceCMHandler')