CrabUI
Loading...
Searching...
No Matches
CSharp
Client
CUI Test
FillMethods
Random
Palette swap.cs
1
// using System;
2
// using System.Reflection;
3
// using System.Runtime.CompilerServices;
4
// using System.Collections.Generic;
5
// using System.Collections.Immutable;
6
// using System.Linq;
7
8
// using Barotrauma;
9
// using HarmonyLib;
10
// using Microsoft.Xna.Framework;
11
// using Microsoft.Xna.Framework.Graphics;
12
13
// using CrabUI;
14
15
// namespace CrabUITest
16
// {
17
// public partial class RandomTest : FillMethods
18
// {
19
20
// public static void PaletteSwap(CUIComponent Main)
21
// {
22
// CUIFrame frame = new CUIFrame()
23
// {
24
// Absolute = new CUINullRect(0, 0, 100, 100),
25
// Anchor = CUIAnchor.Center,
26
// };
27
28
// frame["button1"] = new CUIButton("blue")
29
// {
30
// AddOnMouseDown = (e) => CUIPalette = CUIPalette.DarkBlue,
31
// Anchor = CUIAnchor.CenterLeft,
32
// };
33
34
// frame["button2"] = new CUIButton("red")
35
// {
36
// AddOnMouseDown = (e) => CUIPalette = CUIPalette.DarkRed,
37
// Anchor = CUIAnchor.CenterRight,
38
// };
39
40
// Main.Append(frame);
41
// }
42
43
44
// }
45
// }
Generated by
1.12.0