Example #1
0
 def setSystemValue(self, value):
     key = 'KEY_NONE'
     if value is not None:
         key = getBigworldNameFromKey(getBigworldKey(value))
     LOG_DEBUG('Settings key command', self.settingName, value, key)
     if self.settingName == 'CMD_VOICECHAT_MUTE' and isPlayerAccount():
         self.app.gameInputManager.updateChatKeyHandlers(value)
     CommandMapping.g_instance.remove(self.settingName)
     CommandMapping.g_instance.add(self.settingName, key)
     return
Example #2
0
 def setSystemValue(self, value):
     key = 'KEY_NONE'
     if value is not None:
         key = getBigworldNameFromKey(getBigworldKey(value))
     LOG_DEBUG('Settings key command', self.settingName, value, key)
     if self.settingName == 'CMD_VOICECHAT_MUTE' and isPlayerAccount():
         self.app.gameInputManager.updateChatKeyHandlers(value)
     CommandMapping.g_instance.remove(self.settingName)
     CommandMapping.g_instance.add(self.settingName, key)
     return
Example #3
0
def onFlashChange(event):
    key = getBigworldNameFromKey(event.key)
    if key == 'KEY_NUMPAD0':
        g_guiFlash.updateComponent('testSprite', {'index': 10})
        LOG_NOTE('guiFlash [UPDATE] testSprite: index = 10')
    elif key == 'KEY_NUMPAD1':
        g_guiFlash.updateComponent('testSprite', {'index': 0})
        LOG_NOTE('guiFlash [UPDATE] testSprite: index = 0')
    elif key == 'KEY_NUMPAD2':
        g_guiFlash.updateComponent('testSprite', {'visible': False})
        LOG_NOTE('guiFlash [UPDATE] testSprite: visible = False')
    elif key == 'KEY_NUMPAD3':
        g_guiFlash.updateComponent('testSprite', {'visible': True})
        LOG_NOTE('guiFlash [UPDATE] testSprite: visible = True')
Example #4
0
def onhandleKeyEvent(event):
    key = getBigworldNameFromKey(event.key)
    if key == 'KEY_F10':
        g_appLoader.getDefLobbyApp().loadView(ViewLoadParams(_alias, None))
    return None
Example #5
0
def on_key_event(event):
    key = getBigworldNameFromKey(event.key)
    if key == 'KEY_F10':
        app = g_appLoader.getApp().loadView(
            ViewLoadParams(_window_alias, _window_alias))
Example #6
0
def onhandleKeyEvent(event):
    key = getBigworldNameFromKey(event.key)
    if key == "KEY_F10":
        g_appLoader.getApp().loadView(SettingsUIWindow.NAME,
                                      SettingsUIWindow.NAME)
    return None
Example #7
0
def on_handle_key_event(event):
    key = getBigworldNameFromKey(event.key)

    if key == 'KEY_F10':
        g_appLoader.getApp().loadView(SFViewLoadParams(_alias))
def onhandleKeyEvent(event):
	key = getBigworldNameFromKey(event.key)
	if key == "KEY_F10":
		g_appLoader.getApp().loadView(SettingsUIWindow.NAME, SettingsUIWindow.NAME)
	return None