public void Select(Garment g) { if (currentGarment != null) { currentGarment.Hide(); } currentGarment = g; g.Show(); }
/*! * Display the named garment on the avatar. This function will only display the clothing * if it has already been loaded. * * @see LoadGarment HideGarment */ public virtual void ShowGarment(String name) { Garment g = closet.Find(name); if (g != null) { if (!g.IsLoaded) { g.Load(null); } else { g.Show(); } currentGarment = g; } else { SharedWorld.LogError("Cannot find garment " + name); } }