3 ref multiMap<int, string> m_NotifiersLabel;
4 ref multiMap<int, int> m_NotifiersIndexColor;
6 private ref multiMap<int, string> m_NotifiersIcons;
8 void PluginPlayerStatus()
10 m_NotifiersLabel =
new multiMap<int, string>;
11 m_NotifiersIndexColor =
new multiMap<int, int>;
13 m_NotifiersIcons =
new multiMap<int, string>;
16 m_NotifiersIcons.Insert(
NTFKEY_SICK,
"iconHealth" );
23 void SetNotifier(
int key,
int index = 9,
string label =
"",
int color = 0xFFFFFFFF )
27 if ( m_NotifiersLabel.HasKey( key ) )
29 m_NotifiersLabel.Remove( key );
30 m_NotifiersIndexColor.Remove( key );
35 m_NotifiersLabel.Insert( key, label );
36 m_NotifiersIndexColor.Insert( key, index );
37 m_NotifiersIndexColor.Insert( key, color );
42 void DisplayTendency(
int key,
int tendency,
int status = 1 )
48 if ( m_NotifiersIcons.HasKey( key ) )
50 string icon_name = m_NotifiersIcons.Get( key ).Get( icon_index );
57 hud.DisplayNotifier( key, tendency, status );
64 void SetBadge(
int key,
int value )
74 hud.DisplayBadge( key, value );
80 void SetStamina(
int value ,
int range )
89 hud.SetStamina(
Math.Clamp( value, 0, range ), range );
94 void SetStance(
int value )
102 hud.DisplayStance( value );