Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
UILinkPoint.cs
Go to the documentation of this file.
1using System;
3
4namespace Terraria.UI.Gamepad;
5
6public class UILinkPoint
7{
8 public int ID;
9
10 public bool Enabled;
11
13
14 public int Left;
15
16 public int Right;
17
18 public int Up;
19
20 public int Down;
21
22 public int Page { get; private set; }
23
24 public event Func<string> OnSpecialInteracts;
25
26 public UILinkPoint(int id, bool enabled, int left, int right, int up, int down)
27 {
28 ID = id;
29 Enabled = enabled;
30 Left = left;
31 Right = right;
32 Up = up;
33 Down = down;
34 }
35
36 public void SetPage(int page)
37 {
38 Page = page;
39 }
40
41 public void Unlink()
42 {
43 Left = -3;
44 Right = -4;
45 Up = -1;
46 Down = -2;
47 }
48
49 public string SpecialInteractions()
50 {
51 if (this.OnSpecialInteracts != null)
52 {
53 return this.OnSpecialInteracts();
54 }
55 return string.Empty;
56 }
57}
UILinkPoint(int id, bool enabled, int left, int right, int up, int down)