162 {
163 int new_index =
m_Tabs.Count();
166 TextWidget control_text = TextWidget.Cast( control.FindAnyWidget( "Tab_Control_x_Title" ) );
167
168 tab.SetName( "Tab_" + new_index );
169 control.SetName( "Tab_Control_" + new_index );
170 control_text.SetName( "Tab_Control_" + new_index + "_Title" );
171 control.FindAnyWidget( "Tab_Control_x_Background" ).SetName( "Tab_Control_" + new_index + "_Background" );
172
173 control_text.SetText(
name );
174
175 control.SetHandler( this );
177 m_Tabs.Insert( new_index, tab );
178
180
181 return new_index;
182 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
proto native WorkspaceWidget GetWorkspace()
proto native CGame GetGame()