Example #1
0
def showI18nInfoDialog(i18nKey, callback, meta = None):
    if g_sessionProvider.isBattleUILoaded():
        customMsg = None
        if meta is not None:
            customMsg.getMessage()
        showInformationDialog(i18nKey, callback, customMessage=customMsg, ns='battle')
    else:
        showDialog(I18nInfoDialogMeta(i18nKey, meta=meta), callback)
def showI18nInfoDialog(i18nKey, callback, meta = None):
    if g_appLoader.getSpaceID() == GUI_GLOBAL_SPACE_ID.BATTLE and not GUI_SETTINGS.useAS3Battle:
        customMsg = None
        if meta is not None:
            customMsg.getMessage()
        showInformationDialog(i18nKey, callback, customMessage=customMsg, ns='battle')
    else:
        showDialog(I18nInfoDialogMeta(i18nKey, meta=meta), callback)
    return
def showI18nInfoDialog(i18nKey, callback, meta = None):
    if g_battleContext.isInBattle:
        customMsg = None
        if meta is not None:
            customMsg.getMessage()
        showInformationDialog(i18nKey, callback, customMessage=customMsg, ns='battle')
    else:
        showDialog(I18nInfoDialogMeta(i18nKey, meta=meta), callback)
    return
Example #4
0
def showI18nInfoDialog(i18nKey, callback, meta=None):
    if g_battleContext.isInBattle:
        customMsg = None
        if meta is not None:
            customMsg.getMessage()
        showInformationDialog(i18nKey,
                              callback,
                              customMessage=customMsg,
                              ns='battle')
    else:
        showDialog(I18nInfoDialogMeta(i18nKey, meta=meta), callback)
    return
def showI18nInfoDialog(i18nKey, callback, meta=None):
    if g_appLoader.getSpaceID(
    ) == GUI_GLOBAL_SPACE_ID.BATTLE and not GUI_SETTINGS.useAS3Battle:
        customMsg = None
        if meta is not None:
            customMsg.getMessage()
        showInformationDialog(i18nKey,
                              callback,
                              customMessage=customMsg,
                              ns='battle')
    else:
        showDialog(I18nInfoDialogMeta(i18nKey, meta=meta), callback)
    return