コード例 #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)
コード例 #2
0
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
コード例 #3
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
コード例 #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
コード例 #5
0
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