color CLR_BG = C'13,17,23';
color CLR_BG2 = C'20,25,32';
color CLR_TEXT = C'242,244,247';
color CLR_SUB = C'190,196,205';
color CLR_GREEN = C'25,190,80';
color CLR_RED = C'235,48,55';
color CLR_BLUE = C'35,100,205';
color CLR_ORANGE = C'245,170,0';
color CLR_YELLOW = C'245,185,0';
color CLR_BUTTON = C'43,49,59';
void CreateButton(string name, string text, int x, int y, int w, int h,
color bg=C'43,49,59', color fg=clrWhite, int fontSize=11)
{
if(ObjectFind(0, name) >= 0)
ObjectDelete(0, name);
void CreateRect(string name, int x, int y, int w, int h,
color bg=C'20,25,32', color border=C'75,84,96')
{
if(ObjectFind(0, name) >= 0)
ObjectDelete(0, name);
void CreateValueLabel(string name, string text, int x, int y, int size=12,
color clr=C'242,244,247')
{
CreateLabel(name, text, x, y, size, clr, ANCHOR_LEFT_UPPER);
}
void CreateCardTitle(string name, string text, int x, int y, int w, color clr)
{
CreateLabel(name, text, x + w/2, y, 13, clr, ANCHOR_UPPER);
}