Elin Modding Docs Doc
Loading...
Searching...
No Matches
InvOwner Class Reference
Inheritance diagram for InvOwner:
EClass InvOwnerAlly InvOwnerAutoCombatBar InvOwnerCopyShop InvOwnerDraglet InvOwnerEquip InvOwnerHotbar InvOwnerShop InvOwnerToolbelt

Classes

class  ErrorMessage
 
class  ForceGiveData
 
class  Interaction
 
class  ListInteraction
 
class  Transaction
 

Public Member Functions

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)
 
bool OnDrag (DragItemCard.DragInfo from, DragItemCard.DragInfo to, bool execute, bool cancel=false)
 
virtual void OnProcess (Thing t)
 
bool CanOpenContainer (Thing t)
 
InvOwner.ListInteraction ListInteractions (ButtonGrid b, bool context)
 
bool TryHold (Thing t)
 
virtual void ListInteractions (InvOwner.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)
 

Public Attributes

bool includeChildren
 
CurrencyType currency
 
PriceType priceType
 
HomeResource homeResource
 
Card owner
 
Card Container
 
List< ButtonGridbuttons = new List<ButtonGrid>()
 

Static Public Attributes

static InvOwner.ForceGiveData forceGive = new InvOwner.ForceGiveData()
 
static InvOwner Trader
 
static InvOwner Main
 
static float clickTimer
 
- Static Public Attributes inherited from EClass
static Core core
 

Properties

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 rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
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)
 

Detailed Description

Definition at line 6 of file InvOwner.cs.

Constructor & Destructor Documentation

◆ InvOwner()

InvOwner.InvOwner ( Card owner,
Card container = null,
CurrencyType _currency = CurrencyType::None,
PriceType _price = PriceType::Default )

Definition at line 327 of file InvOwner.cs.

Member Function Documentation

◆ AllowDrop()

virtual bool InvOwner.AllowDrop ( Thing t)
virtual

Definition at line 129 of file InvOwner.cs.

◆ AllowHold()

virtual bool InvOwner.AllowHold ( Thing t)
virtual

Definition at line 59 of file InvOwner.cs.

◆ AllowMoved()

virtual bool InvOwner.AllowMoved ( Thing t)
virtual

Definition at line 77 of file InvOwner.cs.

◆ AutoUse()

void InvOwner.AutoUse ( ButtonGrid button,
bool repeat = false )

Definition at line 1272 of file InvOwner.cs.

◆ BuildUICurrency()

virtual void InvOwner.BuildUICurrency ( UICurrency uiCurrency,
bool canReroll = false )
virtual

Definition at line 191 of file InvOwner.cs.

◆ CanAltClick()

virtual bool InvOwner.CanAltClick ( ButtonGrid b)
virtual

Definition at line 699 of file InvOwner.cs.

◆ CanCtrlClick()

virtual bool InvOwner.CanCtrlClick ( ButtonGrid b)
virtual

Definition at line 681 of file InvOwner.cs.

◆ CanOpenContainer()

bool InvOwner.CanOpenContainer ( Thing t)

Definition at line 903 of file InvOwner.cs.

◆ CanShiftClick()

virtual bool InvOwner.CanShiftClick ( ButtonGrid b,
bool rightMouse = false )
virtual

Definition at line 597 of file InvOwner.cs.

◆ CreateDefaultContainer()

virtual Thing InvOwner.CreateDefaultContainer ( )
virtual

Definition at line 155 of file InvOwner.cs.

◆ GetAutoUseLang()

virtual string InvOwner.GetAutoUseLang ( ButtonGrid button)
virtual

Definition at line 1238 of file InvOwner.cs.

◆ GetPrice()

virtual int InvOwner.GetPrice ( Thing t,
CurrencyType currency,
int num,
bool sell )
virtual

Definition at line 1321 of file InvOwner.cs.

◆ GetShitDestOwner()

InvOwner InvOwner.GetShitDestOwner ( ButtonGrid b,
bool rightMouse = false )

Definition at line 521 of file InvOwner.cs.

◆ GetTextAltClick()

virtual string InvOwner.GetTextAltClick ( ButtonGrid b)
virtual

Definition at line 705 of file InvOwner.cs.

◆ GetTextCtrlClick()

virtual string InvOwner.GetTextCtrlClick ( ButtonGrid b)
virtual

Definition at line 687 of file InvOwner.cs.

◆ GetTextDetail()

virtual string InvOwner.GetTextDetail ( Thing t,
CurrencyType currency,
int num,
bool sell )
virtual

Definition at line 1327 of file InvOwner.cs.

◆ GetTextShiftClick()

virtual string InvOwner.GetTextShiftClick ( ButtonGrid b)
virtual

Definition at line 669 of file InvOwner.cs.

◆ Grab()

void InvOwner.Grab ( DragItemCard.DragInfo from)

Definition at line 711 of file InvOwner.cs.

◆ IDCostIcon()

virtual string InvOwner.IDCostIcon ( Thing t)
virtual

Definition at line 1390 of file InvOwner.cs.

◆ Init()

void InvOwner.Init ( )

Definition at line 340 of file InvOwner.cs.

◆ IsFailByCurse()

virtual bool InvOwner.IsFailByCurse ( Thing t)
virtual

Definition at line 1406 of file InvOwner.cs.

◆ IsWeightOver()

bool InvOwner.IsWeightOver ( Thing t)

Definition at line 307 of file InvOwner.cs.

◆ ListInteractions() [1/2]

InvOwner.ListInteraction InvOwner.ListInteractions ( ButtonGrid b,
bool context )

Definition at line 918 of file InvOwner.cs.

◆ ListInteractions() [2/2]

virtual void InvOwner.ListInteractions ( InvOwner.ListInteraction list,
Thing t,
Trait trait,
ButtonGrid b,
bool context )
virtual

Definition at line 1099 of file InvOwner.cs.

◆ OnAltClick()

virtual void InvOwner.OnAltClick ( ButtonGrid button)
virtual

Definition at line 693 of file InvOwner.cs.

◆ OnCancelDrag()

virtual bool InvOwner.OnCancelDrag ( DragItemCard.DragInfo from)
virtual

Definition at line 772 of file InvOwner.cs.

◆ OnClick()

virtual void InvOwner.OnClick ( ButtonGrid button)
virtual

Definition at line 360 of file InvOwner.cs.

◆ OnCtrlClick()

virtual void InvOwner.OnCtrlClick ( ButtonGrid button)
virtual

Definition at line 675 of file InvOwner.cs.

◆ OnDrag()

bool InvOwner.OnDrag ( DragItemCard.DragInfo from,
DragItemCard.DragInfo to,
bool execute,
bool cancel = false )

Definition at line 783 of file InvOwner.cs.

◆ OnInit()

virtual void InvOwner.OnInit ( )
virtual

Definition at line 355 of file InvOwner.cs.

◆ OnProcess()

virtual void InvOwner.OnProcess ( Thing t)
virtual

Definition at line 898 of file InvOwner.cs.

◆ OnRightClick()

virtual void InvOwner.OnRightClick ( ButtonGrid button)
virtual

Definition at line 475 of file InvOwner.cs.

◆ OnRightPressed()

virtual void InvOwner.OnRightPressed ( ButtonGrid button)
virtual

Definition at line 489 of file InvOwner.cs.

◆ OnShiftClick()

virtual void InvOwner.OnShiftClick ( ButtonGrid b,
bool rightMouse = false )
virtual

Definition at line 565 of file InvOwner.cs.

◆ OnStartDrag()

void InvOwner.OnStartDrag ( DragItemCard.DragInfo from)

Definition at line 757 of file InvOwner.cs.

◆ OnWriteNote()

virtual void InvOwner.OnWriteNote ( ButtonGrid button,
UINote n )
virtual

Definition at line 1341 of file InvOwner.cs.

◆ PutBack()

Thing InvOwner.PutBack ( DragItemCard.DragInfo from)

Definition at line 727 of file InvOwner.cs.

◆ ShouldShowGuide()

virtual bool InvOwner.ShouldShowGuide ( Thing t)
virtual

Definition at line 103 of file InvOwner.cs.

◆ ShowContextMenu()

void InvOwner.ShowContextMenu ( ButtonGrid button)

Definition at line 1298 of file InvOwner.cs.

◆ TryHold()

bool InvOwner.TryHold ( Thing t)

Definition at line 1074 of file InvOwner.cs.

Member Data Documentation

◆ buttons

List<ButtonGrid> InvOwner.buttons = new List<ButtonGrid>()

Definition at line 1442 of file InvOwner.cs.

◆ clickTimer

float InvOwner.clickTimer
static

Definition at line 1421 of file InvOwner.cs.

◆ Container

Card InvOwner.Container

Definition at line 1439 of file InvOwner.cs.

◆ currency

CurrencyType InvOwner.currency

Definition at line 1427 of file InvOwner.cs.

◆ forceGive

InvOwner.ForceGiveData InvOwner.forceGive = new InvOwner.ForceGiveData()
static

Definition at line 1412 of file InvOwner.cs.

◆ homeResource

HomeResource InvOwner.homeResource

Definition at line 1433 of file InvOwner.cs.

◆ includeChildren

bool InvOwner.includeChildren

Definition at line 1424 of file InvOwner.cs.

◆ Main

InvOwner InvOwner.Main
static

Definition at line 1418 of file InvOwner.cs.

◆ owner

Card InvOwner.owner

Definition at line 1436 of file InvOwner.cs.

◆ priceType

PriceType InvOwner.priceType

Definition at line 1430 of file InvOwner.cs.

◆ Trader

InvOwner InvOwner.Trader
static

Definition at line 1415 of file InvOwner.cs.

Property Documentation

◆ AllowAutouse

virtual bool InvOwner.AllowAutouse
get

Definition at line 30 of file InvOwner.cs.

◆ AllowContext

virtual bool InvOwner.AllowContext
get

Definition at line 40 of file InvOwner.cs.

◆ AllowDropOnDrag

virtual bool InvOwner.AllowDropOnDrag
get

Definition at line 120 of file InvOwner.cs.

◆ AllowSell

virtual bool InvOwner.AllowSell
get

Definition at line 50 of file InvOwner.cs.

◆ AllowTransfer

virtual bool InvOwner.AllowTransfer
get

Definition at line 110 of file InvOwner.cs.

◆ AlwaysShowTooltip

virtual bool InvOwner.AlwaysShowTooltip
get

Definition at line 84 of file InvOwner.cs.

◆ Chara

Chara InvOwner.Chara
get

Definition at line 248 of file InvOwner.cs.

◆ ContainerType

ContainerType InvOwner.ContainerType
get

Definition at line 258 of file InvOwner.cs.

◆ CopyOnTransfer

virtual bool InvOwner.CopyOnTransfer
get

Definition at line 172 of file InvOwner.cs.

◆ DenyImportant

virtual bool InvOwner.DenyImportant
get

Definition at line 298 of file InvOwner.cs.

◆ destInvOwner

InvOwner InvOwner.destInvOwner
get

Definition at line 314 of file InvOwner.cs.

◆ destInvY

virtual int InvOwner.destInvY
get

Definition at line 146 of file InvOwner.cs.

◆ FreeTransfer

bool InvOwner.FreeTransfer
staticget

Definition at line 20 of file InvOwner.cs.

◆ HasTrader

bool InvOwner.HasTrader
staticget

Definition at line 10 of file InvOwner.cs.

◆ HasTransaction

virtual bool InvOwner.HasTransaction
get

Definition at line 162 of file InvOwner.cs.

◆ IDCurrency

string InvOwner.IDCurrency
get

Definition at line 1397 of file InvOwner.cs.

◆ InvertSell

virtual bool InvOwner.InvertSell
get

Definition at line 268 of file InvOwner.cs.

◆ IsMagicChest

bool InvOwner.IsMagicChest
get

Definition at line 224 of file InvOwner.cs.

◆ langTransfer

virtual string InvOwner.langTransfer
get

Definition at line 136 of file InvOwner.cs.

◆ numDragGrid

virtual int InvOwner.numDragGrid
get

Definition at line 278 of file InvOwner.cs.

◆ ShowNew

virtual bool InvOwner.ShowNew
get

Definition at line 288 of file InvOwner.cs.

◆ SingleTarget

virtual bool InvOwner.SingleTarget
get

Definition at line 182 of file InvOwner.cs.

◆ Things

List<Thing> InvOwner.Things
get

Definition at line 234 of file InvOwner.cs.

◆ UseGuide

virtual bool InvOwner.UseGuide
get

Definition at line 94 of file InvOwner.cs.

◆ UseHomeResource

bool InvOwner.UseHomeResource
get

Definition at line 214 of file InvOwner.cs.


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