コード例 #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));
 }