Пример #1
0
        private SA_HyperLabel CreateLabel(string title, string icon, string iconFolder)
        {
            var image = SA_EditorAssets.GetTextureAtPath(iconFolder + icon);
            var label = new SA_HyperLabel(new GUIContent(title, image), SA_EditorStyles.DescribtionLabelStyle);

            label.SetMouseOverColor(SA_PluginSettingsWindowStyles.SelectedElementColor);
            return(label);
        }
Пример #2
0
 public static Texture2D GetSocialIcon(string iconName)
 {
     return(SA_EditorAssets.GetTextureAtPath(SOCIAL_ICONS_PATH + iconName));
 }
Пример #3
0
 public static Texture2D GetGenericIcon(string iconName)
 {
     return(SA_EditorAssets.GetTextureAtPath(GENERIC_ICONS_PATH + iconName));
 }
Пример #4
0
 public static Texture2D GetAboutIcon(string iconName)
 {
     return(SA_EditorAssets.GetTextureAtPath(ABOUT_ICONS_PATH + iconName));
 }
Пример #5
0
 public static Texture2D GetSocialIcon(string iconName)
 {
     return(SA_EditorAssets.GetTextureAtPath(k_SocialIconsPath + iconName));
 }
Пример #6
0
 public static Texture2D GetGenericIcon(string iconName)
 {
     return(SA_EditorAssets.GetTextureAtPath(k_GeneticIconsPath + iconName));
 }