protected SpawnEntry ( string name, string tooltip, string thumbnail, UITextureAtlas atlas, bool enabled, bool grouped ) : UIButton | ||
name | string | |
tooltip | string | |
thumbnail | string | |
atlas | UITextureAtlas | |
enabled | bool | |
grouped | bool | |
return | UIButton |
protected UIButton SpawnEntry(string name, string tooltip, string thumbnail, UITextureAtlas atlas, bool enabled, bool grouped)
{
if (atlas == null)
{
atlas = this.m_atlas;
}
if (string.IsNullOrEmpty(thumbnail) || atlas[thumbnail] == null)
{
thumbnail = "ThumbnailBuildingDefault";
}
return this.CreateButton(name, tooltip, name, -1, atlas, null, enabled, grouped);
}