395 {
396 if ( GetInventory().AttachmentCount() > 0)
397 {
398 ItemBase attachment =
ItemBase.Cast( GetInventory().GetAttachmentFromIndex(0) );
399
400 if ( attachment )
401 {
402
403 for (int i = 1; i <= 3; i++)
404 {
405 HideSelection("s" + i + "_charge");
406 }
407
408
409 string proxy_to_show =
string.Format(
"s%1_charge",
GetState() );
410
411 ShowSelection( proxy_to_show );
412 }
413 }
414 }
int GetState()
returns one of STATE_...