3 TextListboxWidget m_WgtValues;
8 void HudDebugWinCharLevels(
Widget widget_root)
10 m_WgtValues = TextListboxWidget.Cast( widget_root.FindAnyWidget(
"txl_CharLevels_Values") );
18 void ~HudDebugWinCharLevels()
64 PluginDeveloperSync developer_sync = PluginDeveloperSync.Cast(
GetPlugin( PluginDeveloperSync ) );
69 ref Param1<bool> params =
new Param1<bool>( state );
72 player.RPCSingleParam(
ERPCs.DEV_LEVELS_UPDATE, params,
true );
81 developer_sync.EnableUpdate( state,
ERPCs.DEV_LEVELS_UPDATE, player );
99 PluginDeveloperSync developer_sync = PluginDeveloperSync.Cast(
GetPlugin( PluginDeveloperSync ) );
104 if ( developer_sync.m_PlayerLevelsSynced.Count() > 0 )
107 for (
int i = 0; i < developer_sync.m_PlayerLevelsSynced.Count(); i++ )
109 string bar = MiscGameplayFunctions.ValueToBar(developer_sync.m_PlayerLevelsSynced.Get( i ).GetValue2());
110 AddValue( developer_sync.m_PlayerLevelsSynced.Get( i ).GetName(), developer_sync.m_PlayerLevelsSynced.Get( i ).GetValue().ToString() ,bar );
118 void AddValue(
string title,
string value,
string value2 )
120 int index = m_WgtValues.AddItem( title, NULL, 0 );
121 m_WgtValues.SetItem( index, value, NULL, 1 );
122 m_WgtValues.SetItem( index, value2, NULL, 2 );
127 m_WgtValues.ClearItems();