-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
ModExtensions.cs
48 lines (39 loc) · 1.09 KB
/
ModExtensions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//using Microsoft.Xna.Framework.Graphics;
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;
//namespace HEROsMod
//{
// class ModExtensions
// {
// internal List<ModExtension> ModExtensionList = new List<ModExtension>();
// public ModExtensions()
// {
// ModExtensionList = new List<ModExtension>();
// }
// internal void AddButton(Texture2D texture, Action buttonClickedAction, Action groupUpdated, Func<string> tooltip)
// {
// ModExtensionList.Add(new ModExtension(buttonClickedAction, groupUpdated, texture, tooltip));
// }
// }
// class ModExtension
// {
// Action ButtonClicked;
// Action GroupUpdated;
// Texture2D ButtonTexture;
// Func<string> ButtonTooltip;
// public ModExtension(Action buttonClicked, Action groupUpdated, Texture2D buttonTexture, Func<string> buttonTooltip)
// {
// ButtonClicked = buttonClicked;
// GroupUpdated = groupUpdated;
// ButtonTexture = buttonTexture;
// ButtonTooltip = buttonTooltip;
// }
// }
//}
///*
// Client Only
//Buttons: Texture, Tooltip, Click Action
//*/