Skip to content

Commit 65a0c38

Browse files
committed
feat(test): maj Testing
1 parent 331e4d8 commit 65a0c38

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Testing/MyScene.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using SharpEngine.Core.Input;
55
using SharpEngine.Core.Manager;
66
using SharpEngine.Core.Math;
7+
using SharpEngine.Core.Renderer;
78
using SharpEngine.Core.Utils;
89
using SharpEngine.Core.Widget;
910

@@ -17,6 +18,7 @@ public class MyScene : Scene
1718
public MyScene()
1819
{
1920
AddWidget(new LineInput(new Vec2(500), font: "RAYLIB_DEFAULT", fontSize: 25));
21+
AddWidget(new MultiLineInput(new Vec2(500, 200), font: "RAYLIB_DEFAULT", fontSize: 25));
2022

2123
AddWidget(new TextureButton(new Vec2(200), texture: "portal"));
2224
}
@@ -35,4 +37,12 @@ public override void Update(float deltaTime)
3537
((LineInput)Widgets[0]).Secret = !((LineInput)Widgets[0]).Secret;
3638
}
3739
}
40+
41+
public override void Draw()
42+
{
43+
base.Draw();
44+
45+
SERender.DrawRectangle(500, 5, 98, 123, Color.Black, InstructionSource.UI, 8);
46+
SERender.DrawRectangle(5.4f, 5.1f, 98, 123f, Color.Red, InstructionSource.UI, 8);
47+
}
3848
}

0 commit comments

Comments
 (0)