From 33d1237c693e80c58cd33395f8ad073627ed1be9 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Mon, 7 Jun 2021 00:58:05 +0300 Subject: [PATCH] feat: new style for boxes --- ScoreboardExt/Classes/GUIStyleBase.uc | 28 +++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/ScoreboardExt/Classes/GUIStyleBase.uc b/ScoreboardExt/Classes/GUIStyleBase.uc index b8f05e4..635f878 100644 --- a/ScoreboardExt/Classes/GUIStyleBase.uc +++ b/ScoreboardExt/Classes/GUIStyleBase.uc @@ -596,12 +596,36 @@ final function DrawRectBox( float X, float Y, float Width, float Height, int Edg DrawCornerTex(Edge,0); break; - // case 4: + case 4: // // |\____/| // | | // \______/ - // break; + + // Top left + Canvas.SetPos(X,Y); + DrawCornerTex(Edge,1); + + // Top right + Canvas.SetPos(X+Width-Edge,Y); + DrawCornerTex(Edge,0); + + // Bottom right + Canvas.SetPos(X+Width-Edge,Y+Height-Edge); + DrawCornerTex(Edge,3); + + // Mid Fill + Canvas.SetPos(X,Y+Edge); + DrawWhiteBox(Width,Height-Edge*2); + + // Bottom Fill + Canvas.SetPos(X+Edge,Y+Height-Edge); + DrawWhiteBox(Width-Edge*2,Edge); + + // Bottom left + Canvas.SetPos(X,Y+Height-Edge); + DrawCornerTex(Edge,2); + break; default: // ______