Commit 61d5b9c5 authored by Maxim Schedriviy's avatar Maxim Schedriviy

Merge branch 'wot-1.6.1.4' into 'wot-1.6.1.4'

update: "showPromoPremVehicle" options

See merge request !57
parents 12fae59b 83c0f33c
Pipeline #99920081 passed with stage
in 0 seconds
......@@ -59,7 +59,7 @@
"type": "extrafield",
"formats": [
{
// Background image, left part
// Background image, left part.
// Фоновая картинка, левая часть.
"x": 66,
"y": 193,
......@@ -67,7 +67,7 @@
"format": "<img src='xvm://res/icons/clock/clockBg.png' width='160' height='80'>"
},
{
// Background image, right part
// Background image, right part.
// Фоновая картинка, правая часть.
"x": 390,
"y": 193,
......
......@@ -21,6 +21,7 @@ from skeletons.gui.shared import IItemsCache
from gui.Scaleform.daapi.view.meta.MessengerBarMeta import MessengerBarMeta
from messenger.gui.Scaleform.lobby_entry import LobbyEntry
from gui.game_control.hero_tank_controller import HeroTankController
from gui.game_control.calendar_controller import _HeroAdventActionHelper
from gui.promo.hangar_teaser_widget import TeaserViewer
from gui.game_control.PromoController import PromoController
from gui.game_control.AwardController import ProgressiveRewardHandler
......@@ -196,6 +197,13 @@ def updateSettings(base, self):
return
base(self)
# need remove after new year event
@overrideMethod(_HeroAdventActionHelper, '_HeroAdventActionHelper__updateInfo')
def updateInfo(base, self, vehicleCD, endTimestamp):
if not config.get('hangar/showPromoPremVehicle', True):
return
base(self, vehicleCD, endTimestamp)
# hide display pop-up messages in the hangar
@overrideMethod(TeaserViewer, 'show')
def show(base, self, teaserData, promoCount):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment