예제 #1
0
 private bool ToggleItemEnabled(GUITickBox tickBox)
 {
     Facepunch.Steamworks.Workshop.Item item = tickBox.UserData as Facepunch.Steamworks.Workshop.Item;
     if (tickBox.Selected)
     {
         tickBox.Selected = SteamManager.EnableWorkShopItem(item, false);
     }
     else
     {
         tickBox.Selected = !SteamManager.DisableWorkShopItem(item);
     }
     return(true);
 }