Beispiel #1
0
        public string TranslateName(IconName name, IconVariant variant)
        {
            string n;
            string v = "";

            switch (variant)
            {
            case IconVariant.Outline:
                v = "-outline";
                break;

            case IconVariant.Default:
            default:
                break;
            }

            switch (name)
            {
            case IconName.Home:
                n = "home";
                break;

            default:
                n = "help";
                break;
            }

            return($"{n}{v}");
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Enabled != false)
            {
                hash ^= Enabled.GetHashCode();
            }
            if (AvatarType != 0)
            {
                hash ^= AvatarType.GetHashCode();
            }
            hash ^= slot_.GetHashCode();
            if (BundleName.Length != 0)
            {
                hash ^= BundleName.GetHashCode();
            }
            if (AssetName.Length != 0)
            {
                hash ^= AssetName.GetHashCode();
            }
            if (GroupName.Length != 0)
            {
                hash ^= GroupName.GetHashCode();
            }
            if (SortOrder != 0)
            {
                hash ^= SortOrder.GetHashCode();
            }
            if (UnlockType != 0)
            {
                hash ^= UnlockType.GetHashCode();
            }
            hash ^= promoType_.GetHashCode();
            if (UnlockBadgeType != 0)
            {
                hash ^= UnlockBadgeType.GetHashCode();
            }
            if (IapSku.Length != 0)
            {
                hash ^= IapSku.GetHashCode();
            }
            if (UnlockBadgeLevel != 0)
            {
                hash ^= UnlockBadgeLevel.GetHashCode();
            }
            if (IconName.Length != 0)
            {
                hash ^= IconName.GetHashCode();
            }
            if (UnlockPlayerLevel != 0)
            {
                hash ^= UnlockPlayerLevel.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public Spell(CastRoutine cast,
              AlterCastActionOnSetParams alterCastOnSetParams,
              SpellName name,
              School school,
              TargetingType targetingType,
              IconName icon,
              ClassType classType,
              string description,
              bool isCantrip,
              int rangeInSquares,
              int level,
              SpellScaler scaler)
 {
     this.cast = cast;
     this.alterCastOnSetParams = alterCastOnSetParams;
     this.name           = name;
     this.school         = school;
     this.targetingType  = targetingType;
     this.icon           = icon;
     this.classType      = classType;
     this.description    = description;
     this.isCantrip      = isCantrip;
     this.rangeInSquares = rangeInSquares;
     this.level          = level;
     this.scaler         = scaler;
 }
Beispiel #4
0
        private void OnGUI()
        {
            minSize  = maxSize = new Vector2(400, 90);
            position = new Rect(new Vector2((float)Screen.currentResolution.width / 2 - minSize.x / 2,
                                            (float)Screen.currentResolution.height / 2 - minSize.y / 2), minSize);

            GUI.color = MightyColorUtilities.Brighter;

            GUILayout.BeginVertical(MightyStyles.White);
            GUILayout.BeginVertical(MightyStyles.SimpleDarkBox);
            GUILayout.FlexibleSpace();

            GUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();

            GUILayout.BeginVertical();
            GUILayout.FlexibleSpace();
            GUI.color = Color.white;
            GUILayout.Box(MightyGUIUtilities.DrawIcon(IconName.Loading(m_iconIndex)));
            GUILayout.FlexibleSpace();
            GUILayout.EndVertical();

            GUILayout.Space(10);

            GUILayout.BeginVertical();
            GUILayout.FlexibleSpace();

            GUI.color = MightyColorUtilities.Yellow;
            GUILayout.Label(APPLYING_VALUES, MightyStyles.BigBoldLabelStyle);
            GUI.color = Color.white;
            GUILayout.FlexibleSpace();
            GUILayout.EndVertical();

            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();

            GUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();
            GUI.color = Color.white;
            GUILayout.Label(m_infoLabel, MightyStyles.InfoLabelStyle);
            GUILayout.Label(m_indexLabel, MightyStyles.InfoLabelStyle);
            if (m_displayProgression)
            {
                GUILayout.Label(SLASH, MightyStyles.InfoLabelStyle);
                GUILayout.Label(m_countLabel, MightyStyles.InfoLabelStyle);
            }

            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();

            GUILayout.FlexibleSpace();
            GUILayout.EndVertical();
            GUILayout.EndVertical();
        }
Beispiel #5
0
        private void OnGUI()
        {
            minSize  = new Vector2(400, 90);
            position = new Rect(new Vector2((float)Screen.currentResolution.width / 2 - minSize.x / 2,
                                            (float)Screen.currentResolution.height / 2 - minSize.y / 2), minSize);

            GUI.color = new Color(0.66f, 0.66f, 0.66f);

            GUILayout.BeginVertical(GUIStyleUtility.White);
            GUILayout.BeginVertical(GUIStyleUtility.SimpleDarkBox);
            GUILayout.FlexibleSpace();

            GUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();

            GUILayout.BeginVertical();
            GUILayout.FlexibleSpace();
            GUI.color = Color.white;
            GUILayout.Box(EditorDrawUtility.DrawIcon(IconName.Loading(m_iconIndex)));
            GUILayout.FlexibleSpace();
            GUILayout.EndVertical();

            GUILayout.Space(10);

            GUILayout.BeginVertical();
            GUILayout.FlexibleSpace();
            GUI.color = new Color32(255, 190, 37, 255);
            GUILayout.Label(APPLYING_VALUES, GUIStyleUtility.BigBoldLabelStyle);
            GUI.color = Color.white;
            GUILayout.FlexibleSpace();
            GUILayout.EndVertical();

            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();

            GUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();
            GUI.color = Color.white;
            GUILayout.Label(m_infoLabel, GUIStyleUtility.InfoLabelStyle);
            GUILayout.Label(m_indexLabel, GUIStyleUtility.InfoLabelStyle);
            if (m_displayProgression)
            {
                GUILayout.Label(SLASH, GUIStyleUtility.InfoLabelStyle);
                GUILayout.Label(m_countLabel, GUIStyleUtility.InfoLabelStyle);
            }

            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();

            GUILayout.FlexibleSpace();
            GUILayout.EndVertical();
            GUILayout.EndVertical();
        }
Beispiel #6
0
 public Domain.Link ToDomain(bool needUser)
 {
     return(new() {
         Id = Id,
         User = new Ref <Domain.User>(UserId, needUser ? User?.ToDomain() : null),
         Title = new Title(Title),
         Subtitle = new Subtitle(Subtitle),
         IconName = new IconName(IconName),
         Href = new Href(Href),
         CreatedAt = CreatedAt,
     });
 }
Beispiel #7
0
 private new void Start()
 {
     button = GetComponent <Button>();
     if (inspectorIconList != null && inspectorIconList.Length > 0)
     {
         IconName[] array = inspectorIconList;
         for (int i = 0; i < array.Length; i++)
         {
             IconName iconName = array[i];
             iconList.Add(iconName.name, iconName.sprite);
         }
     }
     Reset_m_HrefInfos();
 }
Beispiel #8
0
        public override string GetIconName(IconName iconName, IconStyle iconStyle)
        {
            if (names.TryGetValue(iconName, out var value))
            {
                if (iconStyle == IconStyle.Regular && outlineNameOverrides.TryGetValue(value, out var valueOverride))
                {
                    return(valueOverride);
                }

                return(value);
            }

            return(null);
        }
Beispiel #9
0
    public Sprite SpriteFromIconName(IconName name)
    {
        Sprite ret = errorSprite;

        foreach (InventoryIconMapping mapping in inventoryIconMappings)
        {
            if (mapping.iconName == name)
            {
                ret = mapping.sprite;
                break;
            }
        }

        return(ret);
    }
        public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
        {
            output.TagName = "";
            var containerTag = new TagBuilder("span");

            containerTag.AddCssClass("slds-icon_container");
            containerTag.AddCssClass($"slds-icon-{IconSprite.ToString().ToLower()}-{IconName.ToLower()}");

            containerTag.Attributes.Add("title", Title);
            var svgTag = new TagBuilder("svg");

            svgTag.AddCssClass("slds-icon");


            var assistiveTextTag = new TagBuilder("span");

            assistiveTextTag.AddCssClass("slds-assistive-text");
            assistiveTextTag.InnerHtml.Append(Title);

            if (output.Attributes.TryGetAttribute("class", out var @class))
            {
                svgTag.AddCssClass(@class.Value.ToString());
            }


            if (IconColor != IconColor.None)
            {
                svgTag.AddCssClass($"slds-icon-text-{IconColor.ToString().ToLower()}");
            }

            if (IconSize != IconSize.None)
            {
                svgTag.AddCssClass(sizes[IconSize]);
            }

            var useTag = new TagBuilder("use");

            useTag.Attributes.Add("xlink:href", $"/assets/icons/{IconSprite.ToString().ToLower()}-sprite/svg/symbols.svg#{IconName}");

            svgTag.InnerHtml.AppendHtml(useTag);
            containerTag.InnerHtml
            .AppendHtml(svgTag)
            .AppendHtml(assistiveTextTag);

            output.Content.SetHtmlContent(containerTag);

            // return base.ProcessAsync(context, output);
        }
Beispiel #11
0
        public string ToSQL()
        {
            string sql = "REPLACE INTO gameobjectcache VALUES (";

            sql += Entry + ", ";
            sql += (int)Type + ", ";
            sql += DisplayID + ", ";
            sql += Name.ToSQL() + ", ";
            sql += "'" + IconName.ToSQL() + "',";
            sql += "'" + CastCaption.ToSQL() + "',";
            sql += "'" + UnkString.ToSQL() + "',";
            sql += Data.ToSQL() + ", ";
            sql += Size + ", ";
            sql += QuestItems.ToSQL() + ", ";
            sql += Exp + ");";
            return(sql);
        }
Beispiel #12
0
        private void Form1_Load(object sender, EventArgs e)
        {
            string   XMLFilePath = "./SpellIcon.xml";
            XElement doc = XElement.Load(XMLFilePath);
            IEnumerable <XElement> nodes = doc.Elements();
            string IconID, IconName;

            IconName = "";
            IconID   = "";

            foreach (var node in nodes)
            {
                IconID   = node.Element("ID").Value;
                IconName = node.Element("SpellIcon").Value;

                _dict.TryAdd(IconName.ToLower(), IconID);
            }
        }
Beispiel #13
0
        // General Things
        public static void LoadSpellIconLibrary()
        {
            // SpellIcon
            string   XMLFilePath = "./Library/SpellIcon.xml";
            XElement doc = XElement.Load(XMLFilePath);
            IEnumerable <XElement> nodes = doc.Elements();
            string IconID, IconName;

            IconName = "";
            IconID   = "";

            foreach (var node in nodes)
            {
                IconID   = node.Element("ID").Value;
                IconName = node.Element("SpellIcon").Value;

                _DicSpellIcon.TryAdd(IconName.ToLower(), IconID);
            }
        }
Beispiel #14
0
        public string ToSQL()
        {
            string sql = "REPLACE INTO creaturecache VALUES (";

            sql += Entry + ", ";
            sql += "'" + Name.ToSQL() + "', ";
            sql += "'" + SubName.ToSQL() + "',";
            sql += "'" + IconName.ToSQL() + "',";
            sql += (int)TypeFlags1 + ", ";
            sql += (int)TypeFlags2 + ", ";
            sql += (int)Type + ", ";
            sql += (int)Family + ", ";
            sql += (int)Rank + ", ";
            sql += KillCredit1 + ", ";
            sql += KillCredit2 + ", ";
            //sql += DisplayIDs.ToSQL() + ", ";
            sql += HealthModifier + ", ";
            sql += ManaModifier + ", ";
            sql += (RacialLeader ? 1 : 0) + ", ";
            sql += QuestItems.ToSQL() + ", ";
            sql += MovementID + ", ";
            sql += Exp + ");";
            return(sql);
        }
Beispiel #15
0
 public string toTSV()
 {
     return(Id + "\t" + Race + "\t" + Gender + "\t" + PClass + "\t" + Name + "\t" + Chained + "\t" + Detail + "\t" + IconName.ToLowerInvariant());
 }
Beispiel #16
0
        public override string GetIconName(IconName iconName, IconStyle iconStyle)
        {
            names.TryGetValue(iconName, out var name);

            return(name);
        }
Beispiel #17
0
 public string toCSV()
 {
     return(HZ + ";" + Template + ";" + PetName + ";" + Id + ";" + Name + ";" + IconName.ToLowerInvariant());
 }
Beispiel #18
0
 public abstract void Set(IconName name, string newName);
Beispiel #19
0
 public string TranslateName(IconName name)
 {
     return(TranslateName(name, IconVariant.Default));
 }
Beispiel #20
0
 /// <summary>
 /// Get an icon with name and size
 /// </summary>
 /// <param name="iconName">Icon name</param>
 /// <param name="iconSize">Icon size</param>
 public static BitmapImage GetIcon(IconName iconName, IconSize iconSize)
 {
     return(GetIcon(GetIconSize(iconSize), GetIconName(iconName)));
 }
Beispiel #21
0
 public abstract string Get(IconName name);
Beispiel #22
0
        protected void UpdateQuadImage()
        {
            m_OutputText = GetOutputText();
            m_ImagesVertexIndex.Clear();
            IEnumerator enumerator = s_Regex.Matches(m_OutputText).GetEnumerator();

            try
            {
                while (enumerator.MoveNext())
                {
                    Match match = (Match)enumerator.Current;
                    int   index = match.Index;
                    int   item  = index * 4 + 3;
                    m_ImagesVertexIndex.Add(item);
                    m_ImagesPool.RemoveAll((Image image) => image == null);
                    if (m_ImagesPool.Count == 0)
                    {
                        GetComponentsInChildren(m_ImagesPool);
                    }
                    if (m_ImagesVertexIndex.Count > m_ImagesPool.Count)
                    {
                        GameObject gameObject = DefaultControls.CreateImage(default(DefaultControls.Resources));
                        gameObject.layer = base.gameObject.layer;
                        RectTransform rectTransform = gameObject.transform as RectTransform;
                        if ((bool)rectTransform)
                        {
                            rectTransform.SetParent(base.rectTransform);
                            rectTransform.localPosition = Vector3.zero;
                            rectTransform.localRotation = Quaternion.identity;
                            rectTransform.localScale    = Vector3.one;
                        }
                        m_ImagesPool.Add(gameObject.GetComponent <Image>());
                    }
                    string value  = match.Groups[1].Value;
                    Image  image2 = m_ImagesPool[m_ImagesVertexIndex.Count - 1];
                    if ((image2.sprite == null || image2.sprite.name != value) && inspectorIconList != null && inspectorIconList.Length > 0)
                    {
                        IconName[] array = inspectorIconList;
                        for (int i = 0; i < array.Length; i++)
                        {
                            IconName iconName = array[i];
                            if (iconName.name == value)
                            {
                                image2.sprite = iconName.sprite;
                                break;
                            }
                        }
                    }
                    image2.rectTransform.sizeDelta = new Vector2((float)base.fontSize * ImageScalingFactor, (float)base.fontSize * ImageScalingFactor);
                    image2.enabled = true;
                    if (positions.Count == m_ImagesPool.Count)
                    {
                        image2.rectTransform.anchoredPosition = positions[m_ImagesVertexIndex.Count - 1];
                    }
                }
            }
            finally
            {
                IDisposable disposable;
                if ((disposable = enumerator as IDisposable) != null)
                {
                    disposable.Dispose();
                }
            }
            for (int j = m_ImagesVertexIndex.Count; j < m_ImagesPool.Count; j++)
            {
                if ((bool)m_ImagesPool[j])
                {
                    m_ImagesPool[j].gameObject.SetActive(value: false);
                    m_ImagesPool[j].gameObject.hideFlags = HideFlags.HideAndDontSave;
                    culled_ImagesPool.Add(m_ImagesPool[j].gameObject);
                    m_ImagesPool.Remove(m_ImagesPool[j]);
                }
            }
            if (culled_ImagesPool.Count > 1)
            {
                clearImages = true;
            }
        }
Beispiel #23
0
        /// <summary>
        /// Get icon filename
        /// </summary>
        /// <param name="icon">Icon</param>
        private static string GetIconName(IconName icon)
        {
            switch (icon)
            {
            case IconName.Exit:
                return("application-exit-2");

            case IconName.Internet:
                return("applications-internet-2");

            case IconName.System:
                return("applications-system-3");

            case IconName.AppointmentNew:
                return("appointment-new");

            case IconName.AppointmentSoon:
                return("appointment-soon");

            case IconName.ArchiveFiles:
                return("archive-insert-2");

            case IconName.ArrowDown:
                return("arrow-down-3");

            case IconName.ArrowLeft:
                return("arrow-left-3");

            case IconName.ArrowRight:
                return("arrow-right-3");

            case IconName.ArrowUp:
                return("arrow-up-3");

            case IconName.Star:
                return("bookmark-2");

            case IconName.Bookmark:
                return("bookmark-5");

            case IconName.BookmarkNew:
                return("bookmark-new-7");

            case IconName.Clock:
                return("clock-2");

            case IconName.Colors:
                return("colorize");

            case IconName.Configure:
                return("configure-5");

            case IconName.Db:
                return("db");

            case IconName.DbAdd:
                return("db_add-2");

            case IconName.DbCommit:
                return("db_comit-2");

            case IconName.DbRemove:
                return("db_remove-2");

            case IconName.DbStatus:
                return("db_status-2");

            case IconName.DbUpdate:
                return("db_update-2");

            case IconName.Apply:
                return("dialog-apply");

            case IconName.Close:
                return("dialog-close");

            case IconName.Error:
                return("dialog-error-4");

            case IconName.Key:
                return("dialog-password-2");

            case IconName.Warning:
                return("dialog-warning-2");

            case IconName.Decrypt:
                return("document-decrypt");

            case IconName.Encrypt:
                return("document-encrypt");

            case IconName.Document:
                return("document-new");

            case IconName.DocumentNew:
                return("document-new-8");

            case IconName.DocumentOpen:
                return("document-open-8");

            case IconName.Print:
                return("document-print");

            case IconName.DocumentProperties:
                return("document-properties-2");

            case IconName.Save:
                return("document-save-5");

            case IconName.SaveAll:
                return("document-save-all");

            case IconName.SaveAs:
                return("document-save-as-3");

            case IconName.Send:
                return("document-send");

            case IconName.Download:
                return("download");

            case IconName.DocumentEdit:
                return("edit-6");

            case IconName.Clear:
                return("edit-clear-2");

            case IconName.Copy:
                return("edit-copy-3");

            case IconName.Cut:
                return("edit-cut");

            case IconName.Delete:
                return("edit-delete-3");

            case IconName.Find:
                return("edit-find-5");

            case IconName.Paste:
                return("edit-paste-3");

            case IconName.Rename:
                return("edit-rename");

            case IconName.Package:
                return("emblem-package-2");

            case IconName.Urgent:
                return("emblem-urgent");

            case IconName.Home:
                return("go-home-6");

            case IconName.Help:
                return("help");

            case IconName.Info:
                return("help-contents");

            case IconName.Hint:
                return("help-hint");

            case IconName.Add:
                return("list-add-4");

            case IconName.Remove:
                return("list-remove-4");

            case IconName.Play:
                return("media-playback-start");

            case IconName.Record:
                return("media-record-5");

            case IconName.ChartLine:
                return("office-chart-line");

            case IconName.ChartPie:
                return("office-chart-pie");

            case IconName.Terminal:
                return("openterm");

            case IconName.Plugin:
                return("preferences-plugin");

            case IconName.Settings:
                return("system-settings");

            case IconName.Trash:
                return("trash-empty-3");

            case IconName.Display:
                return("video-display");

            case IconName.Calendar:
                return("view-calendar");

            case IconName.Filter:
                return("view-filter");

            case IconName.Refresh:
                return("view-refresh");

            default:
                throw new NotSupportedException();
            }
        }
Beispiel #24
0
 public void updateIcon(PictureBox control, IconName name)
 {
     control.Load(getIcon(name));
     control.BackColor = Color.Transparent;
 }
Beispiel #25
0
        public String getIcon(IconName name)
        {
            switch (name)
            {
                case IconName.ANNOUNCER: return "http://i.imgur.com/wBG9R4o.png";
                case IconName.ENVELOPE: return "http://i.imgur.com/VPgOCNV.png";
            }

            return "none";
        }
Beispiel #26
0
        protected string GetOutputText()
        {
            s_TextBuilder.Length = 0;
            int num = 0;

            fixedString = text;
            if (inspectorIconList != null && inspectorIconList.Length > 0)
            {
                IconName[] array = inspectorIconList;
                for (int i = 0; i < array.Length; i++)
                {
                    IconName iconName = array[i];
                    if (iconName.name != null && iconName.name != "")
                    {
                        fixedString = fixedString.Replace(iconName.name, "<quad name=" + iconName.name + " size=" + base.fontSize + " width=1 />");
                    }
                }
            }
            int         num2       = 0;
            IEnumerator enumerator = s_HrefRegex.Matches(fixedString).GetEnumerator();

            try
            {
                while (enumerator.MoveNext())
                {
                    Match match = (Match)enumerator.Current;
                    s_TextBuilder.Append(fixedString.Substring(num, match.Index - num));
                    s_TextBuilder.Append("<color=" + hyperlinkColor + ">");
                    Group group = match.Groups[1];
                    if (isCreating_m_HrefInfos)
                    {
                        HrefInfo hrefInfo = new HrefInfo();
                        hrefInfo.startIndex = s_TextBuilder.Length * 4;
                        hrefInfo.endIndex   = (s_TextBuilder.Length + match.Groups[2].Length - 1) * 4 + 3;
                        hrefInfo.name       = group.Value;
                        HrefInfo item = hrefInfo;
                        m_HrefInfos.Add(item);
                    }
                    else if (m_HrefInfos.Count > 0)
                    {
                        m_HrefInfos[num2].startIndex = s_TextBuilder.Length * 4;
                        m_HrefInfos[num2].endIndex   = (s_TextBuilder.Length + match.Groups[2].Length - 1) * 4 + 3;
                        num2++;
                    }
                    s_TextBuilder.Append(match.Groups[2].Value);
                    s_TextBuilder.Append("</color>");
                    num = match.Index + match.Length;
                }
            }
            finally
            {
                IDisposable disposable;
                if ((disposable = enumerator as IDisposable) != null)
                {
                    disposable.Dispose();
                }
            }
            if (isCreating_m_HrefInfos)
            {
                isCreating_m_HrefInfos = false;
            }
            s_TextBuilder.Append(fixedString.Substring(num, fixedString.Length - num));
            return(s_TextBuilder.ToString());
        }
Beispiel #27
0
 private void Refresh()
 {
     IconName.NextLoadingIndex(ref m_iconIndex);
     Repaint();
 }
Beispiel #28
0
 /// <summary>
 /// Retrieves information about the specified pre-defined icon.
 /// </summary>
 /// <param name="iconName">One of the pre-defined cursors.</param>
 /// <param name="iconInfo">
 /// A pointer to an <see cref="IconInfo"/> structure. The function fills in the structure's members.
 /// </param>
 /// <returns>
 /// If the function succeeds, the return value is true and the function
 /// fills in the members of the specified <see cref="IconInfo"/> structure.<para/>
 /// If the function fails, the return value is false.
 /// To get extended error information, call <see cref="Marshal.GetLastWin32Error"/>.
 /// </returns>
 public static bool GetIconInfo(IconName iconName, out IconInfo iconInfo)
 {
     return(GetIconInfo(new IntPtr((int)iconName), out iconInfo));
 }
Beispiel #29
0
        public override string Get(IconName iconName)
        {
            names.TryGetValue(iconName, out var value);

            return(value);
        }
Beispiel #30
0
 public override string ToString()
 {///temporary limit time to be max int to prevent parsing errors on not updated tera.core, then limit to max uint after update.
     return(AbnormalId + "\t" + _type + "\t" + AbType + "\t" + IsBuff + "\t" + Method + "\t" + (Time > int.MaxValue ? int.MaxValue : Time) + "\t" + Tick + "\t" + Amount.ToString("R", CultureInfo.InvariantCulture) + "\t" + Name + "\t" + Itemid + "\t" + ItemName + "\t" + Tooltip + "\t" + IconName.ToLowerInvariant() + "\t" + EffectIcon.ToLowerInvariant() + "\t" + IsShow);
 }
Beispiel #31
0
 public override void Set(IconName name, string newName)
 {
     names[name] = newName;
 }
Beispiel #32
0
 /// <summary>
 /// Loads the specified icon resource from the executable (.exe)
 /// file associated with an application instance.
 /// </summary>
 /// <param name="iconName">One of the pre-defined icons to be loaded.</param>
 /// <returns>
 /// If the function succeeds, the return value is a handle to the newly loaded icon.<para/>
 /// If the function fails, the return value is <see cref="IntPtr.Zero"/>.
 /// To get extended error information, call <see cref="Marshal.GetLastWin32Error"/>.
 /// </returns>
 public static IntPtr LoadIcon(IconName iconName)
 {
     return(LoadIcon(IntPtr.Zero, new IntPtr((int)iconName)));
 }