22 static PluginConfigEmotesProfile GetInstance()
24 return PluginConfigEmotesProfile.Cast(
GetPlugin(PluginConfigEmotesProfile) );
31 protected CfgParamInt GetNewCfgParamInt(
int value )
33 CfgParamInt param =
new CfgParamInt(
"" );
34 param.SetValue( value );
41 protected CfgParamInt SetInt(
string key,
int value )
43 CfgParamInt param = CfgParamInt.Cast( GetParamByName( key,
CFG_TYPE_INT ) );
44 param.SetValue( value );
49 protected int GetInt(
string key )
51 if ( ParamExist(key) )
53 CfgParamInt param = CfgParamInt.Cast( GetParamByName( key,
CFG_TYPE_INT ) );
54 return param.GetValue();
58 if ( m_DefaultValues.Contains(key) )
60 CfgParamInt default_param = CfgParamInt.Cast( m_DefaultValues.Get( key ) );
61 return SetInt( key, default_param.GetValue() ).GetValue();
65 return SetInt( key, 0 ).GetValue();
73 void PluginConfigEmotesProfile()
78 m_DefaultValues.Insert( EmoteSlots.EMOTE_1.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_GREETING) );
79 m_DefaultValues.Insert( EmoteSlots.EMOTE_2.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_SOS) );
80 m_DefaultValues.Insert( EmoteSlots.EMOTE_3.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_HEART) );
81 m_DefaultValues.Insert( EmoteSlots.EMOTE_4.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_TAUNT) );
82 m_DefaultValues.Insert( EmoteSlots.EMOTE_5.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_SURRENDER) );
83 m_DefaultValues.Insert( EmoteSlots.EMOTE_6.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_TAUNTKISS) );
84 m_DefaultValues.Insert( EmoteSlots.EMOTE_7.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_POINT) );
85 m_DefaultValues.Insert( EmoteSlots.EMOTE_8.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_TAUNTELBOW) );
86 m_DefaultValues.Insert( EmoteSlots.EMOTE_9.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_THUMB) );
87 m_DefaultValues.Insert( EmoteSlots.EMOTE_10.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_THROAT) );
88 m_DefaultValues.Insert( EmoteSlots.EMOTE_11.ToString(), GetNewCfgParamInt(
EmoteConstants.ID_EMOTE_SUICIDE) );
106 return GetInt( EmoteSlots.EMOTE_1.ToString() );
109 void SetEmoteSlot1(
int emoted_id )
111 SetInt( EmoteSlots.EMOTE_1.ToString(), emoted_id );
116 return GetInt( EmoteSlots.EMOTE_2.ToString() );
119 void SetEmoteSlot2(
int emoted_id )
121 SetInt( EmoteSlots.EMOTE_2.ToString(), emoted_id );
126 return GetInt( EmoteSlots.EMOTE_3.ToString() );
129 void SetEmoteSlot3(
int emoted_id )
131 SetInt( EmoteSlots.EMOTE_3.ToString(), emoted_id );
136 return GetInt( EmoteSlots.EMOTE_4.ToString() );
139 void SetEmoteSlot4(
int emoted_id )
141 SetInt( EmoteSlots.EMOTE_4.ToString(), emoted_id );
146 return GetInt( EmoteSlots.EMOTE_5.ToString() );
149 void SetEmoteSlot5(
int emoted_id )
151 SetInt( EmoteSlots.EMOTE_5.ToString(), emoted_id );
156 return GetInt( EmoteSlots.EMOTE_6.ToString() );
159 void SetEmoteSlot6(
int emoted_id )
161 SetInt( EmoteSlots.EMOTE_6.ToString(), emoted_id );
166 return GetInt( EmoteSlots.EMOTE_7.ToString() );
169 void SetEmoteSlot7(
int emoted_id )
171 SetInt( EmoteSlots.EMOTE_7.ToString(), emoted_id );
176 return GetInt( EmoteSlots.EMOTE_8.ToString() );
179 void SetEmoteSlot8(
int emoted_id )
181 SetInt( EmoteSlots.EMOTE_8.ToString(), emoted_id );
186 return GetInt( EmoteSlots.EMOTE_9.ToString() );
189 void SetEmoteSlot9(
int emoted_id )
191 SetInt( EmoteSlots.EMOTE_9.ToString(), emoted_id );
196 return GetInt( EmoteSlots.EMOTE_10.ToString() );
199 void SetEmoteSlot10(
int emoted_id )
201 SetInt( EmoteSlots.EMOTE_10.ToString(), emoted_id );
206 return GetInt( EmoteSlots.EMOTE_11.ToString() );
209 void SetEmoteSlot11(
int emoted_id )
211 SetInt( EmoteSlots.EMOTE_11.ToString(), emoted_id );
224 int GetEmoteFromSlot(
string slot)