Started dropdown and added sliders

This commit is contained in:
Booklordofthedings 2024-10-16 13:58:58 +02:00
parent 9e7330d47c
commit f6c0049e78
9 changed files with 243 additions and 13 deletions

View file

@ -34,6 +34,7 @@ class MainScreen : Screen
AddChild("Toolbar", toAdd);
AddChild("Button", new Button(new (val) => {Console.WriteLine("Hellau :)");}));
AddChild("dd", new Dropdown(new (val) => {Console.WriteLine("Hellau :)");}));
AddChild("Label", new Label("LMAO"));
AddChild("CBox", new Checkbox("Box"));
@ -42,6 +43,9 @@ class MainScreen : Screen
r.Label.Add(new .("Two"));
r.Label.Add(new .("Three"));
AddChild("radio", r);
AddChild("hslider", new HSlider());
AddChild("vslider", new VSlider());
Layout = new (val, width) =>
{
@ -51,7 +55,11 @@ class MainScreen : Screen
val.Component("Button");
val.Component("CBox", 5);
val.Linebreak();
val.Component("radio");
val.Component("radio", 5);
val.Component("hslider");
val.Component("vslider");
val.Linebreak();
val.Component("dd", 5);
};
}
}