Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
EloMapTileSelector Class Reference
Inheritance diagram for EloMapTileSelector:
EMono

Public Member Functions

void OnUpdateInput ()
 

Public Attributes

EloMapActor actor
 
SpriteRenderer srHighlight
 
SpriteRenderer srHighlight2
 
SpriteRenderer srEmbarkPoint
 
int gx
 
int gy
 
bool hasTargetChanged
 
string textMouseOver
 

Properties

EloMap elomap [get]
 
STETilemap fogmap [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]
 

Additional Inherited Members

- Static Public Member Functions inherited from EMono
static int rnd (int a)
 
- Static Public Attributes inherited from EMono
static Core core
 

Detailed Description

Definition at line 5 of file EloMapTileSelector.cs.

Member Function Documentation

◆ OnUpdateInput()

void EloMapTileSelector.OnUpdateInput ( )
inline

Definition at line 31 of file EloMapTileSelector.cs.

32 {
33 int mouseGridX = TilemapUtils.GetMouseGridX(fogmap, EMono.scene.cam);
34 int mouseGridY = TilemapUtils.GetMouseGridY(fogmap, EMono.scene.cam);
35 if (elomap.GetCell(mouseGridX, mouseGridY) != null && (mouseGridX != gx || mouseGridY != gy))
36 {
37 gx = mouseGridX;
38 gy = mouseGridY;
39 hasTargetChanged = true;
40 textMouseOver = "";
41 Zone zone = elomap.GetZone(gx, gy);
42 if (zone != null)
43 {
44 textMouseOver = textMouseOver + " " + zone.Name;
45 }
46 srHighlight.transform.position = TilemapUtils.GetGridWorldPos(fogmap, gx, gy);
47 }
48 else
49 {
50 hasTargetChanged = false;
51 }
52 bool enable = !EMono.ui.isPointerOverUI;
53 srHighlight.SetActive(enable);
54 srHighlight2.SetActive(enable: false);
55 srEmbarkPoint.SetActive(enable: false);
56 }
Definition: EMono.cs:4
static Scene scene
Definition: EMono.cs:27
static UI ui
Definition: EMono.cs:15
SpriteRenderer srHighlight
SpriteRenderer srEmbarkPoint
SpriteRenderer srHighlight2
Cell GetCell(Point pos)
Definition: EloMap.cs:273
Zone GetZone(Point p)
Definition: EloMap.cs:420
Camera cam
Definition: Scene.cs:37
virtual string Name
Definition: Spatial.cs:495
Definition: Zone.cs:12

References Scene.cam, elomap, fogmap, EloMap.GetCell(), EloMap.GetZone(), gx, gy, hasTargetChanged, Spatial.Name, EMono.scene, srEmbarkPoint, srHighlight, srHighlight2, textMouseOver, and EMono.ui.

Member Data Documentation

◆ actor

EloMapActor EloMapTileSelector.actor

Definition at line 7 of file EloMapTileSelector.cs.

◆ gx

int EloMapTileSelector.gx

Definition at line 16 of file EloMapTileSelector.cs.

Referenced by OnUpdateInput().

◆ gy

int EloMapTileSelector.gy

Definition at line 19 of file EloMapTileSelector.cs.

Referenced by OnUpdateInput().

◆ hasTargetChanged

bool EloMapTileSelector.hasTargetChanged

Definition at line 22 of file EloMapTileSelector.cs.

Referenced by OnUpdateInput().

◆ srEmbarkPoint

SpriteRenderer EloMapTileSelector.srEmbarkPoint

Definition at line 13 of file EloMapTileSelector.cs.

Referenced by OnUpdateInput().

◆ srHighlight

SpriteRenderer EloMapTileSelector.srHighlight

Definition at line 9 of file EloMapTileSelector.cs.

Referenced by UI.Hide(), OnUpdateInput(), and UI.Show().

◆ srHighlight2

SpriteRenderer EloMapTileSelector.srHighlight2

Definition at line 11 of file EloMapTileSelector.cs.

Referenced by OnUpdateInput().

◆ textMouseOver

string EloMapTileSelector.textMouseOver

Definition at line 25 of file EloMapTileSelector.cs.

Referenced by OnUpdateInput().

Property Documentation

◆ elomap

EloMap EloMapTileSelector.elomap
get

Definition at line 27 of file EloMapTileSelector.cs.

Referenced by OnUpdateInput().

◆ fogmap

STETilemap EloMapTileSelector.fogmap
get

Definition at line 29 of file EloMapTileSelector.cs.

Referenced by OnUpdateInput().


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