gui: scrollbar improvements

This commit is contained in:
Turánszki János
2022-07-06 10:50:24 +02:00
parent b944465263
commit 196eb3ec38
5 changed files with 42 additions and 29 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ void PaintToolWindow::Create(EditorComponent* editor)
this->editor = editor;
wi::gui::Window::Create("Paint Tool Window");
SetSize(XMFLOAT2(410, 610));
SetSize(XMFLOAT2(360, 540));
float x = 105;
float y = 0;
@@ -80,7 +80,7 @@ void PaintToolWindow::Create(EditorComponent* editor)
y += step + 5;
infoLabel.Create("Paint Tool is disabled.");
infoLabel.SetSize(XMFLOAT2(400 - 20, 100));
infoLabel.SetSize(XMFLOAT2(GetScale().x - 20, 100));
infoLabel.SetPos(XMFLOAT2(10, y));
infoLabel.SetColor(wi::Color::Transparent());
AddWidget(&infoLabel);