Add the NumIconsToShow metric.
This commit is contained in:
@@ -1447,6 +1447,7 @@ AfterSetCommand=%TextBannerAfterSet
|
|||||||
[WheelNotifyIcon]
|
[WheelNotifyIcon]
|
||||||
ShowTraining=false
|
ShowTraining=false
|
||||||
BlinkPlayersBest=true
|
BlinkPlayersBest=true
|
||||||
|
NumIconsToShow=2
|
||||||
|
|
||||||
# 04 #
|
# 04 #
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
static ThemeMetric<bool> SHOW_TRAINING ("WheelNotifyIcon","ShowTraining");
|
static ThemeMetric<bool> SHOW_TRAINING ("WheelNotifyIcon","ShowTraining");
|
||||||
static ThemeMetric<bool> BLINK_BEST_ICON ("WheelNotifyIcon","BlinkPlayersBest");
|
static ThemeMetric<bool> BLINK_BEST_ICON ("WheelNotifyIcon","BlinkPlayersBest");
|
||||||
|
static ThemeMetric<int> NUM_ICONS_TO_SHOW ("WheelNotifyIcon","NumIconsToShow");
|
||||||
|
|
||||||
WheelNotifyIcon::WheelNotifyIcon()
|
WheelNotifyIcon::WheelNotifyIcon()
|
||||||
{
|
{
|
||||||
@@ -57,9 +58,7 @@ void WheelNotifyIcon::SetFlags( Flags flags )
|
|||||||
m_vIconsToShow.push_back( empty );
|
m_vIconsToShow.push_back( empty );
|
||||||
}
|
}
|
||||||
|
|
||||||
// crop to most important 2
|
m_vIconsToShow.resize( min(m_vIconsToShow.size(), static_cast<unsigned int>(NUM_ICONS_TO_SHOW)) );
|
||||||
// todo: Let themer handle this? -aj
|
|
||||||
m_vIconsToShow.resize( min(m_vIconsToShow.size(),2u) );
|
|
||||||
|
|
||||||
// Broadcast Set message so items can react. (futures) -aj
|
// Broadcast Set message so items can react. (futures) -aj
|
||||||
//Message msg("Set");
|
//Message msg("Set");
|
||||||
|
|||||||
Reference in New Issue
Block a user