Elin Decompiled Documentation EA 23.343.5 Nightly
Loading...
Searching...
No Matches
InvOwnerChoose Class Reference
Inheritance diagram for InvOwnerChoose:
InvOwner EClass

Public Member Functions

 InvOwnerChoose (Card owner, Card container=null, CurrencyType _currency=CurrencyType.None)
 
override bool ShouldShowGuide (Thing t)
 
override bool AllowMoved (Thing t)
 
override bool OnCancelDrag (DragItemCard.DragInfo from)
 
override void OnClick (ButtonGrid button)
 
override void OnRightClick (ButtonGrid button)
 
override void OnRightPressed (ButtonGrid button)
 
bool Process (ButtonGrid button)
 
- Public Member Functions inherited from InvOwner
virtual bool AllowHold (Thing t)
 
virtual bool AllowMoved (Thing t)
 
virtual bool ShouldShowGuide (Thing t)
 
virtual bool AllowDrop (Thing t)
 
virtual Thing CreateDefaultContainer ()
 
virtual void BuildUICurrency (UICurrency uiCurrency, bool canReroll=false)
 
bool IsWeightOver (Thing t)
 
 InvOwner (Card owner, Card container=null, CurrencyType _currency=CurrencyType.None, PriceType _price=PriceType.Default)
 
void Init ()
 
virtual void OnInit ()
 
virtual void OnClick (ButtonGrid button)
 
virtual void OnRightClick (ButtonGrid button)
 
virtual void OnRightPressed (ButtonGrid button)
 
InvOwner GetShitDestOwner (ButtonGrid b, bool rightMouse=false)
 
virtual void OnShiftClick (ButtonGrid b, bool rightMouse=false)
 
virtual bool CanShiftClick (ButtonGrid b, bool rightMouse=false)
 
virtual string GetTextShiftClick (ButtonGrid b)
 
virtual void OnCtrlClick (ButtonGrid button)
 
virtual bool CanCtrlClick (ButtonGrid b)
 
virtual string GetTextCtrlClick (ButtonGrid b)
 
virtual void OnAltClick (ButtonGrid button)
 
virtual bool CanAltClick (ButtonGrid b)
 
virtual string GetTextAltClick (ButtonGrid b)
 
void Grab (DragItemCard.DragInfo from)
 
Thing PutBack (DragItemCard.DragInfo from)
 
void OnStartDrag (DragItemCard.DragInfo from)
 
virtual bool OnCancelDrag (DragItemCard.DragInfo from)
 
virtual bool OnDrag (DragItemCard.DragInfo from, DragItemCard.DragInfo to, bool execute, bool cancel=false)
 
virtual void OnProcess (Thing t)
 
bool CanOpenContainer (Thing t)
 
ListInteraction ListInteractions (ButtonGrid b, bool context)
 
bool TryHold (Thing t)
 
virtual void ListInteractions (ListInteraction list, Thing t, Trait trait, ButtonGrid b, bool context)
 
virtual string GetAutoUseLang (ButtonGrid button)
 
void AutoUse (ButtonGrid button, bool repeat=false)
 
void ShowContextMenu (ButtonGrid button)
 
virtual int GetPrice (Thing t, CurrencyType currency, int num, bool sell)
 
virtual string GetTextDetail (Thing t, CurrencyType currency, int num, bool sell)
 
virtual void OnWriteNote (ButtonGrid button, UINote n)
 
virtual string IDCostIcon (Thing t)
 
virtual bool IsFailByCurse (Thing t)
 

Properties

override bool UseGuide [get]
 
- Properties inherited from InvOwner
static bool HasTrader [get]
 
static bool FreeTransfer [get]
 
virtual bool AllowAutouse [get]
 
virtual bool AllowContext [get]
 
virtual bool AllowSell [get]
 
virtual bool AlwaysShowTooltip [get]
 
virtual bool UseGuide [get]
 
virtual bool AllowTransfer [get]
 
virtual bool AllowDropOnDrag [get]
 
virtual string langTransfer [get]
 
virtual int destInvY [get]
 
virtual bool HasTransaction [get]
 
virtual bool CopyOnTransfer [get]
 
virtual bool SingleTarget [get]
 
bool UseHomeResource [get]
 
bool IsMagicChest [get]
 
List< ThingThings [get]
 
Chara Chara [get]
 
ContainerType ContainerType [get]
 
virtual bool InvertSell [get]
 
virtual int numDragGrid [get]
 
virtual bool ShowNew [get]
 
virtual bool DenyImportant [get]
 
InvOwner destInvOwner [get]
 
string IDCurrency [get]
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from EClass
static int rndSeed (int a, int seed)
 
static int rnd (long a)
 
static int rnd (int a)
 
static int curve (long _a, int start, int step, int rate=75)
 
static int sqrt (int a)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 
- Public Attributes inherited from InvOwner
bool includeChildren
 
CurrencyType currency
 
PriceType priceType
 
HomeResource homeResource
 
Card owner
 
Card Container
 
List< ButtonGridbuttons = new List<ButtonGrid>()
 
- Static Public Attributes inherited from InvOwner
static ForceGiveData forceGive = new ForceGiveData()
 
static InvOwner Trader
 
static InvOwner Main
 
static float clickTimer
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 1 of file InvOwnerChoose.cs.

Constructor & Destructor Documentation

◆ InvOwnerChoose()

InvOwnerChoose.InvOwnerChoose ( Card  owner,
Card  container = null,
CurrencyType  _currency = CurrencyType::None 
)
inline

Definition at line 5 of file InvOwnerChoose.cs.

6 : base(owner, container, _currency)
7 {
8 }
Card owner
Definition: InvOwner.cs:533

Member Function Documentation

◆ AllowMoved()

override bool InvOwnerChoose.AllowMoved ( Thing  t)
inlinevirtual

Reimplemented from InvOwner.

Definition at line 15 of file InvOwnerChoose.cs.

16 {
17 return false;
18 }

◆ OnCancelDrag()

override bool InvOwnerChoose.OnCancelDrag ( DragItemCard::DragInfo  from)
inlinevirtual

Reimplemented from InvOwner.

Definition at line 20 of file InvOwnerChoose.cs.

21 {
22 return false;
23 }

◆ OnClick()

override void InvOwnerChoose.OnClick ( ButtonGrid  button)
inlinevirtual

Reimplemented from InvOwner.

Definition at line 25 of file InvOwnerChoose.cs.

26 {
27 Process(button);
28 }
bool Process(ButtonGrid button)

References Process().

◆ OnRightClick()

override void InvOwnerChoose.OnRightClick ( ButtonGrid  button)
inlinevirtual

Reimplemented from InvOwner.

Definition at line 30 of file InvOwnerChoose.cs.

31 {
32 Process(button);
33 }

References Process().

◆ OnRightPressed()

override void InvOwnerChoose.OnRightPressed ( ButtonGrid  button)
inlinevirtual

Reimplemented from InvOwner.

Definition at line 35 of file InvOwnerChoose.cs.

36 {
37 }

◆ Process()

bool InvOwnerChoose.Process ( ButtonGrid  button)
inline

Definition at line 39 of file InvOwnerChoose.cs.

40 {
41 if (!button || button.card == null || button.card.parent != owner)
42 {
43 return false;
44 }
45 owner.ChangeMaterial("onyx");
50 return true;
51 }
Card card
Definition: ButtonGrid.cs:24
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
Definition: Card.cs:3217
ICardParent parent
Definition: Card.cs:56
Point pos
Definition: Card.cs:60
Trait trait
Definition: Card.cs:54
ThingContainer things
Definition: Card.cs:39
virtual Thing Thing
Definition: Card.cs:2110
void PickOrDrop(Point p, string idThing, int idMat=-1, int num=1, bool msg=true)
Definition: Chara.cs:4557
Definition: EClass.cs:6
static Chara pc
Definition: EClass.cs:15
static UI ui
Definition: EClass.cs:17
void CloseLayers()
Definition: Layer.cs:488
void DestroyAll(Func< Thing, bool > funcExclude=null)
virtual bool OnUse(Chara c)
Definition: Trait.cs:1210

References ButtonGrid.card, Card.ChangeMaterial(), Layer.CloseLayers(), ThingContainer.DestroyAll(), Trait.OnUse(), InvOwner.owner, Card.parent, EClass.pc, Chara.PickOrDrop(), Card.pos, Card.Thing, Card.things, Card.trait, and EClass.ui.

Referenced by OnClick(), and OnRightClick().

◆ ShouldShowGuide()

override bool InvOwnerChoose.ShouldShowGuide ( Thing  t)
inlinevirtual

Reimplemented from InvOwner.

Definition at line 10 of file InvOwnerChoose.cs.

11 {
12 return t.parent == owner;
13 }

References InvOwner.owner.

Property Documentation

◆ UseGuide

override bool InvOwnerChoose.UseGuide
get

Definition at line 3 of file InvOwnerChoose.cs.


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