CrabUI
Loading...
Searching...
No Matches
CUIMultiButtonTest.cs
1using System;
2using System.Reflection;
3using System.Runtime.CompilerServices;
4using System.Collections.Generic;
5using System.Collections.Immutable;
6using System.Linq;
7
8using Barotrauma;
9using HarmonyLib;
10using Microsoft.Xna.Framework;
11using Microsoft.Xna.Framework.Graphics;
12using System.IO;
13
14using CrabUI;
15
16namespace CrabUITest
17{
18 public partial class ComponentTest : FillMethods
19 {
20 public static void CUIMultiButton(CUIComponent Host)
21 {
22 CUIFrame frame = new CUIFrame(0.6f, 0.2f, 0.3f, 0.4f);
23
25 {
26 Absolute = new CUINullRect(x: 100, y: 100),
27 Options = new string[]{
28 "bebebe", "jujuju", "123", "321"
29 },
30 Selected = "bebebe",
31 };
32
33 frame.Append(mb);
34
35 Host.Append(frame);
36 }
37 }
38}
Base class for all components.
virtual CUIComponent Append(CUIComponent child, string name=null, [CallerMemberName] string memberName="")
Adds children to the end of the list.
Draggable and resizable container for other components.
Definition CUIFrame.cs:16
Button with multiple options which are rotating when you click.
Rectangle with float?
Definition CUIRect.cs:104