407 {
408 if ( GetInventory().AttachmentCount() > 0)
409 {
410 ItemBase attachment =
ItemBase.Cast( GetInventory().GetAttachmentFromIndex(0) );
411
412 if ( attachment )
413 {
414
415 for (int i = 1; i <= 3; i++)
416 {
417 HideSelection("s" + i + "_charge");
418 }
419
420
421 string proxy_to_show =
string.Format(
"s%1_charge",
GetState() );
422
423 ShowSelection( proxy_to_show );
424 }
425 }
426 }
int GetState()
returns one of STATE_...