Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
TCUI Class Reference
Inheritance diagram for TCUI:
TC EMono TCExtraUI TCText TCExtraProgress

Public Member Functions

override void OnDraw (ref Vector3 pos)
 
void DrawImmediate (ref Vector3 pos)
 
- Public Member Functions inherited from TC
void SetOwner (CardRenderer r)
 
virtual void OnSetOwner ()
 
virtual void OnDraw (ref Vector3 pos)
 
void Kill ()
 
virtual void OnKill ()
 

Protected Member Functions

virtual void Awake ()
 

Protected Attributes

Vector3 lastPos
 

Properties

override bool isUI [get]
 
override Vector3 FixPos [get]
 
- Properties inherited from TC
Card owner [get]
 
virtual bool isUI [get]
 
virtual Vector3 FixPos [get]
 
- Properties inherited from EMono
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 Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SoundManager Sound [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static CoreDebug debug [get]
 

Private Attributes

RectTransform _rect
 

Additional Inherited Members

- Static Public Member Functions inherited from EMono
static int rnd (int a)
 
- Public Attributes inherited from TC
CardRenderer render
 
- Static Public Attributes inherited from TC
static GameSetting.RenderSetting.TCSetting _setting
 
- Static Public Attributes inherited from EMono
static Core core
 

Detailed Description

Definition at line 3 of file TCUI.cs.

Member Function Documentation

◆ Awake()

virtual void TCUI.Awake ( )
inlineprotectedvirtual

Definition at line 13 of file TCUI.cs.

14 {
15 _rect = this.Rect();
16 }
RectTransform _rect
Definition: TCUI.cs:5

References _rect.

◆ DrawImmediate()

void TCUI.DrawImmediate ( ref Vector3  pos)
inline

Definition at line 35 of file TCUI.cs.

36 {
37 Vector3 position = Camera.main.WorldToScreenPoint(pos);
38 position.z = 0f;
39 position += FixPos * EMono.screen.Zoom;
40 _rect.position = position;
41 }
Definition: EMono.cs:4
static BaseGameScreen screen
Definition: EMono.cs:29
override Vector3 FixPos
Definition: TCUI.cs:11

References FixPos, EMono.screen, and BaseGameScreen.Zoom.

◆ OnDraw()

override void TCUI.OnDraw ( ref Vector3  pos)
inlinevirtual

Reimplemented from TC.

Definition at line 18 of file TCUI.cs.

19 {
20 GameObject go = base.gameObject;
21 Vector3 _pos = pos;
22 EMono.core.actionsLateUpdate.Add(delegate
23 {
24 if (go != null)
25 {
26 lastPos = _pos;
27 Vector3 position = Camera.main.WorldToScreenPoint(_pos);
28 position.z = 0f;
29 position += FixPos * EMono.screen.Zoom;
30 _rect.position = position;
31 }
32 });
33 }
List< Action > actionsLateUpdate
Definition: BaseCore.cs:29
static Core core
Definition: EMono.cs:5
Vector3 lastPos
Definition: TCUI.cs:7

References BaseCore.actionsLateUpdate, EMono.core, FixPos, lastPos, EMono.screen, and BaseGameScreen.Zoom.

Member Data Documentation

◆ _rect

RectTransform TCUI._rect
private

Definition at line 5 of file TCUI.cs.

Referenced by Awake().

◆ lastPos

Vector3 TCUI.lastPos
protected

Definition at line 7 of file TCUI.cs.

Referenced by OnDraw().

Property Documentation

◆ FixPos

override Vector3 TCUI.FixPos
get

Definition at line 11 of file TCUI.cs.

Referenced by DrawImmediate(), and OnDraw().

◆ isUI

override bool TCUI.isUI
get

Definition at line 9 of file TCUI.cs.


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