コード例 #1
0
ファイル: GraphicIcon.cs プロジェクト: dmorigin/se_mod_vis
 bool configIcon(string key, string value, Configuration.Options options)
 {
     iconName_ = value;
     icon_     = Icon.getIcon(value);
     if (icon_ == null)
     {
         log(Console.LogType.Error, $"Invalid icon name:{value}");
         return(false);
     }
     return(true);
 }
コード例 #2
0
            bool configIcon(string key, string value, Configuration.Options options)
            {
                iconName_ = value;
                icon_     = Icon.getIcon(iconName_);

                if (options.Count >= 1)
                {
                    iconColor_    = options.asColor(0, Template.FontColor);
                    iconUseColor_ = true;
                }
                else
                {
                    iconUseColor_ = false;
                }

                return(true);
            }