215 {
217 {
218 EditBoxWidget ebw = EditBoxWidget.Cast(w);
220 return true;
221 }
223 {
226 SliderWidget sw = SliderWidget.Cast(w);
227 PlayerBase player = PlayerBase.Cast(
g_Game.GetPlayer());
228 for (
int i = 0; i < player.m_PlayerStats.GetPCO().
Get().
Count(); i++)
229 {
230 string label = player.m_PlayerStats.GetPCO().Get().Get(i).GetLabel();
231 if(label == stat_name)
232 {
233 float statMin = player.m_PlayerStats.GetPCO().Get().Get(i).GetMin();
234 float statMax = player.m_PlayerStats.GetPCO().Get().Get(i).GetMax();
235 float current_value_norm = sw.GetCurrent() / 100;
236 float current_value_abs = statMin + (statMax - statMin) * current_value_norm;
237
239 }
240 }
241
242 if(finished)
244 }
245
246 return false;
247 }
void RPCChangeStat(string stat, float value)
ref map< EditBoxWidget, string > m_StatValuesInput
ref map< SliderWidget, string > m_SliderWidgets