Elin Modding Docs Doc
Loading...
Searching...
No Matches
Progress_Custom.cs
1using System;
2
3// Token: 0x020001E2 RID: 482
5{
6 // Token: 0x17000395 RID: 917
7 // (get) Token: 0x06000DE7 RID: 3559 RVA: 0x0006A775 File Offset: 0x00068975
8 public override bool CancelWhenMoved
9 {
10 get
11 {
12 return this.cancelWhenMoved;
13 }
14 }
15
16 // Token: 0x17000396 RID: 918
17 // (get) Token: 0x06000DE8 RID: 3560 RVA: 0x0006A77D File Offset: 0x0006897D
18 public override bool CancelWhenDamaged
19 {
20 get
21 {
22 return this.cancelWhenDamaged;
23 }
24 }
25
26 // Token: 0x17000397 RID: 919
27 // (get) Token: 0x06000DE9 RID: 3561 RVA: 0x0006A785 File Offset: 0x00068985
28 public override int MaxProgress
29 {
30 get
31 {
32 return this.maxProgress;
33 }
34 }
35
36 // Token: 0x17000398 RID: 920
37 // (get) Token: 0x06000DEA RID: 3562 RVA: 0x0006A78D File Offset: 0x0006898D
38 public override bool ShowProgress
39 {
40 get
41 {
42 return this.showProgress;
43 }
44 }
45
46 // Token: 0x17000399 RID: 921
47 // (get) Token: 0x06000DEB RID: 3563 RVA: 0x0006A795 File Offset: 0x00068995
48 public override int Interval
49 {
50 get
51 {
52 return this.interval;
53 }
54 }
55
56 // Token: 0x1700039A RID: 922
57 // (get) Token: 0x06000DEC RID: 3564 RVA: 0x0006A79D File Offset: 0x0006899D
58 public override string TextHint
59 {
60 get
61 {
62 return this.textHint;
63 }
64 }
65
66 // Token: 0x06000DED RID: 3565 RVA: 0x0006A7A5 File Offset: 0x000689A5
67 public override bool CanProgress()
68 {
69 Func<bool> func = this.canProgress;
70 return func == null || func();
71 }
72
73 // Token: 0x06000DEE RID: 3566 RVA: 0x0006A7B8 File Offset: 0x000689B8
74 public override void OnProgress()
75 {
76 Action<Progress_Custom> action = this.onProgress;
77 if (action == null)
78 {
79 return;
80 }
81 action(this);
82 }
83
84 // Token: 0x06000DEF RID: 3567 RVA: 0x0006A7CB File Offset: 0x000689CB
85 public override void OnProgressComplete()
86 {
87 Action action = this.onProgressComplete;
88 if (action == null)
89 {
90 return;
91 }
92 action();
93 }
94
95 // Token: 0x06000DF0 RID: 3568 RVA: 0x0006A7DD File Offset: 0x000689DD
96 public override void OnBeforeProgress()
97 {
98 Action action = this.onBeforeProgress;
99 if (action == null)
100 {
101 return;
102 }
103 action();
104 }
105
106 // Token: 0x06000DF1 RID: 3569 RVA: 0x0006A7EF File Offset: 0x000689EF
107 public override void OnProgressBegin()
108 {
109 Action action = this.onProgressBegin;
110 if (action == null)
111 {
112 return;
113 }
114 action();
115 }
116
117 // Token: 0x06000DF2 RID: 3570 RVA: 0x0006A801 File Offset: 0x00068A01
118 public Progress_Custom SetDuration(int max, int _interval = 2)
119 {
120 this.maxProgress = max;
121 this.interval = _interval;
122 return this;
123 }
124
125 // Token: 0x04000D2A RID: 3370
126 public string textHint;
127
128 // Token: 0x04000D2B RID: 3371
129 public int maxProgress = 20;
130
131 // Token: 0x04000D2C RID: 3372
132 public int interval = 2;
133
134 // Token: 0x04000D2D RID: 3373
135 public bool cancelWhenMoved = true;
136
137 // Token: 0x04000D2E RID: 3374
138 public bool cancelWhenDamaged = true;
139
140 // Token: 0x04000D2F RID: 3375
141 public bool showProgress = true;
142
143 // Token: 0x04000D30 RID: 3376
144 public Func<bool> canProgress;
145
146 // Token: 0x04000D31 RID: 3377
147 public Action onBeforeProgress;
148
149 // Token: 0x04000D32 RID: 3378
150 public Action onProgressComplete;
151
152 // Token: 0x04000D33 RID: 3379
153 public Action onProgressBegin;
154
155 // Token: 0x04000D34 RID: 3380
156 public Action<Progress_Custom> onProgress;
157}