forked from ReClassNET/ReClass.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMatrix3x3Node.cs
More file actions
36 lines (29 loc) · 777 Bytes
/
Matrix3x3Node.cs
File metadata and controls
36 lines (29 loc) · 777 Bytes
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
using System.Drawing;
using ReClassNET.Controls;
using ReClassNET.UI;
namespace ReClassNET.Nodes
{
public class Matrix3x3Node : BaseMatrixNode
{
public override int ValueTypeSize => sizeof(float);
public override int MemorySize => 9 * ValueTypeSize;
public override void GetUserInterfaceInfo(out string name, out Image icon)
{
name = "Matrix 3x3";
icon = Properties.Resources.B16x16_Button_Matrix_3x3;
}
public override Size Draw(DrawContext context, int x2, int y2)
{
return DrawMatrixType(context, x2, y2, "Matrix (3x3)", 3, 3);
}
protected override int CalculateValuesHeight(DrawContext context)
{
return 3 * context.Font.Height;
}
public override void Update(HotSpot spot)
{
base.Update(spot);
Update(spot, 9);
}
}
}