public void Tool5() { Engine.Initialize("Tool5", 960, 720, new Configuration() { EnabledCoreModules = CoreModules.Default | CoreModules.Tool }); ToolHelper.Name = "Tool5"; ToolHelper.Size = new Vector2F(250, 350); ToolHelper.AddComponent(new ProgressBar("ProgressBar", 0f, 1f) { AddProgressValue = true }); var group = new Group(); group.AddComponent(new Text("A")); group.AddComponent(new Text("B")); group.AddComponent(new Text("C")); ToolHelper.AddComponent(group); var collapsing = new CollapsingHeader("Collapsing"); collapsing.AddComponent(new Button("A")); collapsing.AddComponent(new Button("B")); collapsing.AddComponent(new Button("C")); ToolHelper.AddComponent(collapsing); var tooltip = new Tooltip(); tooltip.AddComponent(new ArrowButton("1", ToolDir.Down)); tooltip.AddComponent(new ArrowButton("2", ToolDir.Left)); tooltip.AddComponent(new ArrowButton("3", ToolDir.Right)); tooltip.AddComponent(new ArrowButton("4", ToolDir.Up)); ToolHelper.AddComponent(tooltip); ToolHelper.AddComponent(new SingleRadioButton("Single1")); ToolHelper.AddComponent(new SingleRadioButton("Single2")); ToolHelper.AddComponent(new MultiRadioButton(("Multi1", 0), ("Multi2", 1), ("Multi3", 2))); ToolHelper.AddComponent(new InputTextMultiLine("MultiLine", "Text", new Vector2F(300, 200))); while (Engine.DoEvents()) { ToolHelper.Update(); Engine.Update(); if (Engine.Keyboard.GetKeyState(Key.Escape) == ButtonState.Push) { break; } } Engine.Terminate(); }