Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
LayerInteraction.Page Class Reference

Public Member Functions

Item Add (object target, string text, string idSprite, Action action, int priority=0, bool auto=false)
 
Item Add (object target, string text, Func< bool > valueFunc, Action< bool > action)
 

Public Attributes

UIButton button
 
Area area
 
List< Itemitems = new List<Item>()
 

Detailed Description

Definition at line 16 of file LayerInteraction.cs.

Member Function Documentation

◆ Add() [1/2]

Item LayerInteraction.Page.Add ( object  target,
string  text,
Func< bool >  valueFunc,
Action< bool >  action 
)
inline

Definition at line 39 of file LayerInteraction.cs.

40 {
41 Action action2 = delegate
42 {
43 SE.Click();
44 action(!valueFunc());
45 };
46 Item item = new Item
47 {
48 target = target,
49 textFunc = () => text.lang() + " (" + (valueFunc() ? "on" : "off") + ")",
50 action = action2,
51 reload = true
52 };
53 items.Add(item);
54 return item;
55 }

References item, and LayerInteraction.Page.items.

◆ Add() [2/2]

Item LayerInteraction.Page.Add ( object  target,
string  text,
string  idSprite,
Action  action,
int  priority = 0,
bool  auto = false 
)
inline

Definition at line 24 of file LayerInteraction.cs.

25 {
26 Item item = new Item
27 {
28 target = target,
29 text = text,
30 idSprite = idSprite,
31 action = action,
32 priority = priority,
33 auto = auto
34 };
35 items.Add(item);
36 return item;
37 }

References item, and LayerInteraction.Page.items.

Referenced by LayerInteraction.GetPage(), and LayerInteraction.Show().

Member Data Documentation

◆ area

Area LayerInteraction.Page.area

Definition at line 20 of file LayerInteraction.cs.

◆ button

UIButton LayerInteraction.Page.button

Definition at line 18 of file LayerInteraction.cs.

Referenced by LayerInteraction.Show().

◆ items

List<Item> LayerInteraction.Page.items = new List<Item>()

The documentation for this class was generated from the following file: