Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TraitDrawingPaper.cs
Go to the documentation of this file.
2{
3 public override bool PointFilter => true;
4
5 public override float Scale => 2f;
6
7 public override TraitPainter.Type CanvasType => TraitPainter.Type.Paper;
8
9 public override void TrySetAct(ActPlan p)
10 {
11 base.TrySetAct(p);
12 if (p.altAction)
13 {
14 p.TrySetAct("actPaint", delegate
15 {
16 EClass.ui.AddLayer<LayerPixelPaint>().SetCanvas(this);
17 return false;
18 }, owner);
19 }
20 }
21}
bool altAction
Definition: ActPlan.cs:155
bool TrySetAct(string lang, Func< bool > onPerform, Card tc, CursorInfo cursor=null, int dist=1, bool isHostileAct=false, bool localAct=true, bool canRepeat=false)
Definition: ActPlan.cs:344
Definition: EClass.cs:5
static UI ui
Definition: EClass.cs:16
Layer AddLayer(string id)
Definition: Layer.cs:337
override bool PointFilter
override void TrySetAct(ActPlan p)
override TraitPainter.Type CanvasType
override float Scale
Card owner
Definition: Trait.cs:26