CSL_Traffic.UI.RoadCustomizerPanel.SpawnEntry C# (CSharp) Method

SpawnEntry() protected method

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);
        }