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