当前位置: 首页>>代码示例>>Python>>正文


Python context_menu.ContextMenuManager类代码示例

本文整理汇总了Python中gui.Scaleform.managers.context_menu.ContextMenuManager的典型用法代码示例。如果您正苦于以下问题:Python ContextMenuManager类的具体用法?Python ContextMenuManager怎么用?Python ContextMenuManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了ContextMenuManager类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: Evropa

# 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'
开发者ID:webiumsk,项目名称:WOT-0.9.14-CT,代码行数:30,代码来源:__init__.py

示例2:

# 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')
开发者ID:krzcho,项目名称:WOTDecompiled,代码行数:12,代码来源:__init__.py

示例3: MESSENGER_VIEW_ALIAS

#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
开发者ID:kblw,项目名称:wot_client,代码行数:31,代码来源:__init__.py

示例4: Evropa

# 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),
开发者ID:webiumsk,项目名称:WOT-0.9.12,代码行数:31,代码来源:__init__.py

示例5: NavigationStack

#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]
开发者ID:kblw,项目名称:wot_client,代码行数:31,代码来源:__init__.py

示例6:

# 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')
开发者ID:krzcho,项目名称:WOTDecompiled,代码行数:5,代码来源:__init__.py

示例7:

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
开发者ID:webiumsk,项目名称:WoT,代码行数:31,代码来源:__init__.py


注:本文中的gui.Scaleform.managers.context_menu.ContextMenuManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。