forked from ReClassNET/ReClass.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVector4Node.cs
More file actions
36 lines (29 loc) · 740 Bytes
/
Vector4Node.cs
File metadata and controls
36 lines (29 loc) · 740 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 Vector4Node : BaseMatrixNode
{
public override int ValueTypeSize => sizeof(float);
public override int MemorySize => 4 * ValueTypeSize;
public override void GetUserInterfaceInfo(out string name, out Image icon)
{
name = "Vector4";
icon = Properties.Resources.B16x16_Button_Vector_4;
}
public override Size Draw(DrawContext context, int x2, int y2)
{
return DrawVectorType(context, x2, y2, "Vector4", 4);
}
protected override int CalculateValuesHeight(DrawContext context)
{
return 0;
}
public override void Update(HotSpot spot)
{
base.Update(spot);
Update(spot, 4);
}
}
}