remove debug panel

This commit is contained in:
GenZmeY 2021-06-14 07:59:50 +03:00
parent 7b45442e8c
commit 5152ac150f

View File

@ -103,228 +103,6 @@ function string WaveText()
} }
} }
function DrawRectPreviewWithText(float X, float Y, float WH, int Shape, float FontScalar)
{
local float TextWidth;
local float TextHeight;
Owner.CurrentStyle.DrawRectBox(X, Y, WH, WH, 16, Shape);
Canvas.SetDrawColor(250, 250, 250, 255);
Canvas.TextSize(String(Shape), TextWidth, TextHeight, FontScalar, FontScalar);
Owner.CurrentStyle.DrawTextShadow(String(Shape), X + (WH - TextWidth)/2, Y + (WH - TextHeight)/2, 1, FontScalar);
}
function DrawRectPreview(float FontScalar)
{
local float BoxWH, BoxWHD;
local float XPos, YPos, X, Y;
local float Width, Height;
local float XPosCenter, YPosCenter;
local int Shape;
local int i, j;
local int R, G, B;
XPosCenter = Canvas.ClipX * 0.5;
YPosCenter = Canvas.ClipY * 0.5;
Width = Canvas.ClipX * 0.4;
Height = Canvas.ClipY * 0.4;
BoxWH = Width / 13;
BoxWHD = BoxWH * 0.5;
X = XPosCenter - Width * 0.8;
Y = YPosCenter - Height * 0.9;
XPos = X;
YPos = Y;
R += 15; G += 15; B += 15;
Canvas.SetDrawColor(R, G, B, 200);
Shape = 0;
DrawRectPreviewWithText(XPos, YPos, BoxWH, Shape, FontScalar);
XPos += BoxWH + BoxWHD;
R += 15; G += 15; B += 15;
Canvas.SetDrawColor(R, G, B, 200);
Shape = 100;
DrawRectPreviewWithText(XPos, YPos, BoxWH, Shape, FontScalar);
XPos += BoxWH + BoxWHD;
R += 15; G += 15; B += 15;
Canvas.SetDrawColor(R, G, B, 200);
Shape = 110;
DrawRectPreviewWithText(XPos, YPos, BoxWH, Shape, FontScalar);
XPos += BoxWH + BoxWHD;
R += 15; G += 15; B += 15;
Canvas.SetDrawColor(R, G, B, 200);
Shape = 111;
DrawRectPreviewWithText(XPos, YPos, BoxWH, Shape, FontScalar);
XPos += BoxWH + BoxWHD;
R += 15; G += 15; B += 15;
Canvas.SetDrawColor(R, G, B, 200);
Shape = 120;
DrawRectPreviewWithText(XPos, YPos, BoxWH, Shape, FontScalar);
XPos += BoxWH + BoxWHD;
R += 15; G += 15; B += 15;
Canvas.SetDrawColor(R, G, B, 200);
Shape = 121;
DrawRectPreviewWithText(XPos, YPos, BoxWH, Shape, FontScalar);
XPos += BoxWH + BoxWHD;
YPos += BoxWH + BoxWHD;
XPos = X;
i = 130;
R = 200; G = 15; B = 15;
for (j = 0; j < 4; ++j)
{
R -= 30;
Canvas.SetDrawColor(R, G, B, 200);
DrawRectPreviewWithText(XPos, YPos, BoxWH, i + j, FontScalar);
YPos += BoxWH + BoxWHD;
}
YPos = Y + BoxWH + BoxWHD;
XPos += BoxWH + BoxWHD;
i = 140;
R = 15; G = 200; B = 15;
for (j = 0; j < 4; ++j)
{
G -= 30;
Canvas.SetDrawColor(R, G, B, 200);
DrawRectPreviewWithText(XPos, YPos, BoxWH, i + j, FontScalar);
YPos += BoxWH + BoxWHD;
}
YPos = Y + BoxWH + BoxWHD;
XPos += BoxWH + BoxWHD;
i = 150;
R = 15; G = 15; B = 200;
for (j = 0; j < 4; ++j)
{
B -= 30;
Canvas.SetDrawColor(R, G, B, 200);
DrawRectPreviewWithText(XPos, YPos, BoxWH, i + j, FontScalar);
YPos += BoxWH + BoxWHD;
}
YPos = Y + BoxWH + BoxWHD;
XPos += BoxWH + BoxWHD;
i = 160;
R = 200; G = 200; B = 15;
for (j = 0; j < 4; ++j)
{
R -= 30; G -= 30;
Canvas.SetDrawColor(R, G, B, 200);
DrawRectPreviewWithText(XPos, YPos, BoxWH, i + j, FontScalar);
YPos += BoxWH + BoxWHD;
}
YPos = Y + BoxWH + BoxWHD;
XPos += BoxWH + BoxWHD;
i = 170;
R = 15; G = 200; B = 200;
for (j = 0; j < 4; ++j)
{
G -= 30; B -= 30;
Canvas.SetDrawColor(R, G, B, 200);
DrawRectPreviewWithText(XPos, YPos, BoxWH, i + j, FontScalar);
YPos += BoxWH + BoxWHD;
}
YPos = Y + BoxWH + BoxWHD;
XPos += BoxWH + BoxWHD;
i = 180;
R = 200; G = 15; B = 200;
for (j = 0; j < 4; ++j)
{
R -= 30; B -= 30;
Canvas.SetDrawColor(R, G, B, 200);
DrawRectPreviewWithText(XPos, YPos, BoxWH, i + j, FontScalar);
YPos += BoxWH + BoxWHD;
}
YPos = Y + BoxWH + BoxWHD;
XPos += BoxWH + BoxWHD;
i = 190;
R = 200; G = 100; B = 15;
for (j = 0; j < 4; ++j)
{
R -= 30; G -= 15;
Canvas.SetDrawColor(R, G, B, 200);
DrawRectPreviewWithText(XPos, YPos, BoxWH, i + j, FontScalar);
YPos += BoxWH + BoxWHD;
}
YPos = Y + BoxWH + BoxWHD;
XPos += BoxWH + BoxWHD;
i = 200;
R = 100; G = 200; B = 15;
for (j = 0; j < 4; ++j)
{
R -= 15; G -= 30;
Canvas.SetDrawColor(R, G, B, 200);
DrawRectPreviewWithText(XPos, YPos, BoxWH, i + j, FontScalar);
YPos += BoxWH + BoxWHD;
}
YPos = Y + BoxWH + BoxWHD;
XPos += BoxWH + BoxWHD;
i = 210;
R = 15; G = 100; B = 200;
for (j = 0; j < 4; ++j)
{
G -= 15; B -= 30;
Canvas.SetDrawColor(R, G, B, 200);
DrawRectPreviewWithText(XPos, YPos, BoxWH, i + j, FontScalar);
YPos += BoxWH + BoxWHD;
}
YPos = Y + BoxWH + BoxWHD;
XPos += BoxWH + BoxWHD;
i = 220;
R = 100; G = 15; B = 200;
for (j = 0; j < 4; ++j)
{
R -= 15; B -= 30;
Canvas.SetDrawColor(R, G, B, 200);
DrawRectPreviewWithText(XPos, YPos, BoxWH, i + j, FontScalar);
YPos += BoxWH + BoxWHD;
}
YPos = Y + BoxWH + BoxWHD;
XPos += BoxWH + BoxWHD;
i = 230;
R = 15; G = 200; B = 100;
for (j = 0; j < 4; ++j)
{
G -= 30; B -= 15;
Canvas.SetDrawColor(R, G, B, 200);
DrawRectPreviewWithText(XPos, YPos, BoxWH, i + j, FontScalar);
YPos += BoxWH + BoxWHD;
}
YPos = Y + BoxWH + BoxWHD;
XPos += BoxWH + BoxWHD;
i = 240;
R = 200; G = 15; B = 100;
for (j = 0; j < 4; ++j)
{
R -= 30; B -= 15;
Canvas.SetDrawColor(R, G, B, 200);
DrawRectPreviewWithText(XPos, YPos, BoxWH, i + j, FontScalar);
YPos += BoxWH + BoxWHD;
}
YPos = Y + BoxWH + BoxWHD;
XPos += BoxWH + BoxWHD;
}
function DrawMenu() function DrawMenu()
{ {
local string S; local string S;
@ -397,12 +175,6 @@ function DrawMenu()
Canvas.TextSize("ABC", XL, YL, FontScalar, FontScalar); Canvas.TextSize("ABC", XL, YL, FontScalar, FontScalar);
BorderSize = Owner.HUDOwner.ScaledBorderSize; BorderSize = Owner.HUDOwner.ScaledBorderSize;
if (true)
{
DrawRectPreview(FontScalar);
return;
}
// Server Info // Server Info
XPosCenter = Canvas.ClipX * 0.5; XPosCenter = Canvas.ClipX * 0.5;
Width = Canvas.ClipX * 0.4; // Full Box Width Width = Canvas.ClipX * 0.4; // Full Box Width