Ejemplo n.º 1
0
 public string GetLabel(Rect rect)
 {
     if (this.NumSelectedObjects > 0)
     {
         return(WorldInspectPaneUtility.AdjustedLabelFor(this.Selected, rect));
     }
     if (this.SelectedTile >= 0)
     {
         return(Find.WorldGrid[this.SelectedTile].biome.LabelCap);
     }
     return("error");
 }
        public string GetLabel(Rect rect)
        {
            string result;

            if (this.NumSelectedObjects > 0)
            {
                result = WorldInspectPaneUtility.AdjustedLabelFor(this.Selected, rect);
            }
            else if (this.SelectedTile >= 0)
            {
                result = Find.WorldGrid[this.SelectedTile].biome.LabelCap;
            }
            else
            {
                result = "error";
            }
            return(result);
        }