Elin Decompiled Documentation EA 23.307 Stable
Loading...
Searching...
No Matches
TraitDrawingPaper.cs
Go to the documentation of this file.
2{
3 public override bool PointFilter => true;
4
5 public override bool UsePortraitFilter => false;
6
7 public override float Scale => 2f;
8
9 public override TraitPainter.Type CanvasType => TraitPainter.Type.Paper;
10
11 public override void TrySetAct(ActPlan p)
12 {
13 base.TrySetAct(p);
14 if (p.altAction)
15 {
16 p.TrySetAct("actPaint", delegate
17 {
18 EClass.ui.AddLayer<LayerPixelPaint>().SetCanvas(this);
19 return false;
20 }, owner);
21 }
22 }
23}
bool altAction
Definition: ActPlan.cs:158
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:372
Definition: EClass.cs:6
static UI ui
Definition: EClass.cs:17
Layer AddLayer(string id)
Definition: Layer.cs:337
override bool PointFilter
override bool UsePortraitFilter
override void TrySetAct(ActPlan p)
override TraitPainter.Type CanvasType
override float Scale
Card owner
Definition: Trait.cs:28