예제 #1
0
        bool Execute(int index, string rgb)
        {
            uint value;

            try
            {
                value = Convert.ToUInt32(rgb, 16);
            }
            catch (Exception)
            {
                PrintError("Wrong color value");
                return(false);
            }

            CColorCode[] values = (CColorCode[])Enum.GetValues(typeof(CColorCode));
            if (index >= 0 && index < values.Length)
            {
                Color color = CColorUtils.FromRGB(value);
                CEditorSkin.SetColor(values[index], color);

                Print("{0}: {1}", index, CStringUtils.C(values[index].ToString(), values[index]));
            }
            else
            {
                PrintError("Wrong index");
                Execute();
            }

            return(true);
        }
예제 #2
0
 protected override Color CreateLevelDebug()
 {
     return(CColorUtils.FromRGB(0xdee4ed));
 }
예제 #3
0
 protected override Color CreateLevelInfo()
 {
     return(CColorUtils.FromRGB(0xb4c974));
 }
예제 #4
0
 protected override Color CreateLevelWarning()
 {
     return(CColorUtils.FromRGB(0xffcf85));
 }
예제 #5
0
 protected override Color CreateLevelError()
 {
     return(CColorUtils.FromRGB(0xff6f5d));
 }
예제 #6
0
 protected override Color CreateErrorUnknownCommand()
 {
     return(CColorUtils.FromRGB(0xe1614e));
 }
예제 #7
0
 protected override Color CreateTableVar()
 {
     return(CColorUtils.FromRGB(0xb4c974));
 }
예제 #8
0
 protected override Color CreatePlain()
 {
     return(CColorUtils.FromRGB(0x243e57));
 }
예제 #9
0
 protected override Color CreateTableCommand()
 {
     return(CColorUtils.FromRGB(0xffcf85));
 }
예제 #10
0
 protected override Color CreatePlain()
 {
     return(CColorUtils.FromRGB(0xb8c4d0));
 }
예제 #11
0
 protected override Color CreateClear()
 {
     return(CColorUtils.FromRGB(0x383838));
 }
예제 #12
0
 protected override Color CreateLink()
 {
     return(CColorUtils.FromRGB(0x193562));
 }
예제 #13
0
 protected override Color CreateLevelCritical()
 {
     return(CColorUtils.FromRGB(0xbe2323));
 }
예제 #14
0
 protected override Color CreateError()
 {
     return(CColorUtils.FromRGB(0xbe2323));
 }
예제 #15
0
 protected override Color CreateLevelVerbose()
 {
     return(CColorUtils.FromRGB(0xb8c4d0));
 }
예제 #16
0
 protected override Color CreateLink()
 {
     return(CColorUtils.FromRGB(0x6ba1ff));
 }
예제 #17
0
 protected override Color CreateTableCommandDisabled()
 {
     return(CColorUtils.FromRGB(0xb8c4d0));
 }