Ejemplo n.º 1
0
def getTooltipBuilders():
    return (AdvancedDataBuilder(
        TOOLTIPS_CONSTANTS.INVENTORY_BATTLE_BOOSTER,
        TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
        battle_booster.BattleBoosterBlockTooltipData(
            contexts.InventoryBattleBoosterContext()),
        advanced.HangarBoosterAdvanced(
            contexts.InventoryBattleBoosterContext())),
            AdvancedDataBuilder(
                TOOLTIPS_CONSTANTS.BATTLE_BOOSTER,
                TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                battle_booster.BattleBoosterBlockTooltipData(
                    contexts.HangarContext()),
                advanced.HangarBoosterAdvanced(contexts.HangarContext())),
            AdvancedDataBuilder(
                TOOLTIPS_CONSTANTS.SHOP_BATTLE_BOOSTER,
                TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                battle_booster.BattleBoosterBlockTooltipData(
                    contexts.ShopBattleBoosterContext()),
                advanced.HangarBoosterAdvanced(
                    contexts.ShopBattleBoosterContext())),
            AdvancedDataBuilder(
                TOOLTIPS_CONSTANTS.BATTLE_BOOSTER_COMPARE,
                TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                battle_booster.BattleBoosterBlockTooltipData(
                    contexts.VehCmpConfigurationContext()),
                advanced.HangarBoosterAdvanced(
                    contexts.VehCmpConfigurationContext())),
            DataBuilder(TOOLTIPS_CONSTANTS.BOOSTERS_BOOSTER_INFO,
                        TOOLTIPS_CONSTANTS.BOOSTERS_BOOSTER_INFO_UI,
                        boosters.BoosterTooltipData(
                            contexts.BoosterContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.BOOSTERS_SHOP,
                TOOLTIPS_CONSTANTS.BOOSTERS_BOOSTER_INFO_UI,
                boosters.BoosterTooltipData(contexts.ShopBoosterContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.BOOSTERS_QUESTS,
                TOOLTIPS_CONSTANTS.BOOSTERS_BOOSTER_INFO_UI,
                boosters.BoosterTooltipData(contexts.QuestsBoosterContext())))
Ejemplo n.º 2
0
     'complex':
     None
 },
 TOOLTIPS_CONSTANTS.SQUAD_RESTRICTIONS_INFO: {
     'tooltip':
     TOOLTIPS_CONSTANTS.SQUAD_RESTRICTIONS_INFO_UI,
     'method':
     common.SquadRestrictionsInfo(
         contexts.SquadRestrictionContext(None)).buildToolTip,
     'complex':
     None
 },
 TOOLTIPS_CONSTANTS.BOOSTERS_BOOSTER_INFO: {
     'tooltip': TOOLTIPS_CONSTANTS.BOOSTERS_BOOSTER_INFO_UI,
     'method':
     boosters.BoosterTooltipData(contexts.BoosterContext()).buildToolTip,
     'complex': None
 },
 TOOLTIPS_CONSTANTS.BOOSTERS_SHOP: {
     'tooltip': TOOLTIPS_CONSTANTS.BOOSTERS_BOOSTER_INFO_UI,
     'method': boosters.BoosterTooltipData(
         contexts.ShopBoosterContext()).buildToolTip,
     'complex': None
 },
 TOOLTIPS_CONSTANTS.BOOSTERS_QUESTS: {
     'tooltip': TOOLTIPS_CONSTANTS.BOOSTERS_BOOSTER_INFO_UI,
     'method': boosters.BoosterTooltipData(
         contexts.QuestsBoosterContext()).buildToolTip,
     'complex': None
 },
 TOOLTIPS_CONSTANTS.VEHICLE_FILTER: {
Ejemplo n.º 3
0
def getTooltipBuilders():
    return (AdvancedDataBuilder(TOOLTIPS_CONSTANTS.INVENTORY_BATTLE_BOOSTER,
                                TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                                battle_booster.BattleBoosterBlockTooltipData(
                                    contexts.InventoryBattleBoosterContext()),
                                advanced.HangarBoosterAdvanced(
                                    contexts.InventoryBattleBoosterContext()),
                                condition=_advancedBlockCondition(
                                    contexts.InventoryBattleBoosterContext())),
            AdvancedDataBuilder(TOOLTIPS_CONSTANTS.AWARD_BATTLE_BOOSTER,
                                TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                                battle_booster.BattleBoosterBlockTooltipData(
                                    contexts.AwardBattleBoosterContext()),
                                advanced.HangarBoosterAdvanced(
                                    contexts.AwardBattleBoosterContext()),
                                condition=_advancedBlockCondition(
                                    contexts.AwardBattleBoosterContext())),
            AdvancedDataBuilder(
                TOOLTIPS_CONSTANTS.EPIC_AWARD_BATTLE_BOOSTER,
                TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                battle_booster.EpicBattleBoosterBlockTooltipData(
                    contexts.AwardBattleBoosterContext()),
                advanced.HangarBoosterAdvanced(
                    contexts.AwardBattleBoosterContext()),
                condition=_advancedBlockCondition(
                    contexts.AwardBattleBoosterContext())),
            AdvancedDataBuilder(TOOLTIPS_CONSTANTS.SHOP_BATTLE_BOOSTER,
                                TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                                battle_booster.BattleBoosterBlockTooltipData(
                                    contexts.ShopBattleBoosterContext()),
                                advanced.HangarBoosterAdvanced(
                                    contexts.ShopBattleBoosterContext()),
                                condition=_advancedBlockCondition(
                                    contexts.ShopBattleBoosterContext())),
            AdvancedDataBuilder(
                TOOLTIPS_CONSTANTS.BATTLE_BOOSTER_BLOCK,
                TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                battle_booster.BattleBoosterBlockTooltipData(
                    contexts.HangarContext()),
                advanced.HangarBoosterAdvanced(contexts.HangarContext()),
                condition=_advancedBlockCondition(contexts.HangarContext())),
            AdvancedDataBuilder(
                TOOLTIPS_CONSTANTS.NATION_CHANGE_BATTLE_BOOSTER,
                TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                battle_booster.BattleBoosterBlockTooltipData(
                    contexts.NationChangeHangarContext()),
                advanced.HangarBoosterAdvanced(
                    contexts.NationChangeHangarContext()),
                condition=_advancedBlockCondition(
                    contexts.NationChangeHangarContext())),
            AdvancedDataBuilder(TOOLTIPS_CONSTANTS.DEFAULT_BATTLE_BOOSTER,
                                TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                                battle_booster.BattleBoosterBlockTooltipData(
                                    contexts.BattleBoosterContext()),
                                advanced.HangarBoosterAdvanced(
                                    contexts.BattleBoosterContext()),
                                condition=_advancedBlockCondition(
                                    contexts.BattleBoosterContext())),
            AdvancedDataBuilder(TOOLTIPS_CONSTANTS.BATTLE_BOOSTER_COMPARE,
                                TOOLTIPS_CONSTANTS.BLOCKS_DEFAULT_UI,
                                battle_booster.BattleBoosterBlockTooltipData(
                                    contexts.VehCmpConfigurationContext()),
                                advanced.HangarBoosterAdvanced(
                                    contexts.VehCmpConfigurationContext()),
                                condition=_advancedBlockCondition(
                                    contexts.VehCmpConfigurationContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.BOOSTERS_BOOSTER_INFO,
                TOOLTIPS_CONSTANTS.BOOSTERS_BOOSTER_INFO_UI,
                boosters.BoosterTooltipData(contexts.BoosterInfoContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.CLAN_RESERVE_INFO,
                TOOLTIPS_CONSTANTS.BOOSTERS_BOOSTER_INFO_UI,
                boosters.BoosterTooltipData(contexts.ClanReserveContext())),
            DataBuilder(TOOLTIPS_CONSTANTS.BOOSTER,
                        TOOLTIPS_CONSTANTS.BOOSTERS_BOOSTER_INFO_UI,
                        boosters.BoosterTooltipData(
                            contexts.BoosterContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.SHOP_BOOSTER,
                TOOLTIPS_CONSTANTS.BOOSTERS_BOOSTER_INFO_UI,
                boosters.BoosterTooltipData(contexts.ShopBoosterContext())),
            DataBuilder(
                TOOLTIPS_CONSTANTS.BOOSTERS_QUESTS,
                TOOLTIPS_CONSTANTS.BOOSTERS_BOOSTER_INFO_UI,
                boosters.BoosterTooltipData(contexts.QuestsBoosterContext())))