Esempio n. 1
0
        public ProgressBar(GUIControl parent)
            : base("", parent)
        {
            size=	new Size2(120, 32);
            pHorizontal=	true;
            pProgress=	0f;
            pAutoLabel=	true;
            pProgressColors=	new GUIColorPacket
            (
                new Color(0, 200, 0),
                new Color(230, 230, 230),
                new Color(0, 200, 150),
                new Color(0, 150, 150)
            );
            pProgressLeftColors=	new GUIColorPacket
            (
                new Color(200, 0, 0),
                new Color(100, 100, 100),
                new Color(200, 100, 50),
                new Color(200, 0, 0)
            );

            pAutoAdjustSize=	false;
            pBGColors.normal=	new Color(25, 25, 25);
            pBGColors.disabled=	new Color(0, 0, 0);

            addEvent("onProgressChanged");
            addEvent("onProgressColorsChanged");
            addEvent("onProgressLeftColorsChanged");
        }
Esempio n. 2
0
        public Label(string pmText, GUIControl pmParent)
            : base(pmParent)
        {
            pText=	pmText.Replace("\t", "    ");
            pFGColors=	new GUIColorPacket
            (
                new Color(0, 0, 0),
                new Color(100, 100, 100),
                new Color(0, 0, 0),
                new Color(0, 0, 0)
            );
            pAutoAdjustSize=	true;

            addEvent("onTextChanged");
            addEvent("onFGColorsChanged");
        }
Esempio n. 3
0
 public Border()
 {
     bounds=	Rectangle.EMPTY;
     colors=	new GUIColorPacket
     (
         new Color(0, 0, 0),
         new Color(0, 0, 0),
         new Color(0, 0, 0),
         new Color(0, 0, 0)
     );
     secondSetColors=	new GUIColorPacket
     (
         new Color(255, 255, 255),
         new Color(255, 255, 255),
         new Color(255, 255, 255),
         new Color(255, 255, 255)
     );
     borderSize=	1f;
     style=	BorderStyle.SOLID;
 }