Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ActionMode Class Reference
Inheritance diagram for ActionMode:
EClass AM_BaseGameMode AM_BaseTileSelect AM_MiniGame AM_NewZone AM_NoMap AM_Adv AM_BaseSim AM_BaseTerrain AM_Cinema AM_Copy AM_CreateArea AM_Deconstruct AM_Designation< T > AM_EditArea AM_EditMarker AM_ExpandArea AM_FlagCell AM_Paint AM_Picker AM_RemoveDesignation AM_Select AM_StateEditor AM_ViewMap AM_Visibility AM_Bird AM_Title

Public Member Functions

virtual int TopHeight (Point p)
 
virtual void SEExecuteSummary ()
 
virtual bool HighlightWall (Point p)
 
virtual void OnClickSubMenu (int a)
 
virtual string OnSetSubMenuButton (int a, UIButton b)
 
virtual bool IsRoofEditMode (Card c=null)
 
virtual bool IsFillMode ()
 
virtual int GetDefaultTile (Point p)
 
virtual void OnShowExtraHint (UINote n)
 
void Activate (bool toggle=true, bool forceActivate=false)
 
virtual void OnActivate ()
 
void RefreshTexts ()
 
virtual string GetSimpleText (Card c)
 
void ClearSimpleTexts ()
 
void Deactivate ()
 
virtual void OnDeactivate ()
 
virtual void OnCancel ()
 
virtual void OnBeforeUpdate ()
 
virtual void OnAfterUpdate ()
 
virtual void OnUpdateCursor ()
 
void OnRotate ()
 
void SetCursorOnMap (CursorInfo cursor)
 
void UpdateInput ()
 
void InputMovement ()
 
virtual void InputWheel (int wheel)
 
virtual void OnUpdateInput ()
 
void DoFunc (CoreConfig.GameFuncBuild func)
 
bool IsFuncPressed (CoreConfig.GameFunc func)
 
void DoFunc (CoreConfig.GameFunc func)
 
virtual void OnScroll ()
 
void TryRightClickCloseWidget ()
 
bool TryShowWidgetMenu ()
 
HitResult _HitTest (Point point, Point start)
 
virtual HitResult HitTest (Point point, Point start)
 
virtual void OnSelectStart (Point point)
 
virtual void OnSelectEnd (bool cancel)
 
virtual MeshPass GetGuidePass (Point point)
 
virtual void OnRenderTile (Point point, HitResult result, int dir)
 
void OnRenderTileFloor (Point point, HitResult result)
 
virtual bool CanProcessTiles ()
 
virtual void OnBeforeProcessTiles ()
 
virtual void OnProcessTiles (Point point, int dir)
 
virtual void OnAfterProcessTiles (Point start, Point end)
 
virtual void OnFinishProcessTiles ()
 
virtual void OnRefreshSummary (Point point, HitResult result, HitSummary summary)
 
void ShowLayer ()
 
virtual Layer OnShowLayer ()
 
void HideLayer ()
 
virtual void OnHideLayer ()
 
virtual string GetHintText ()
 
virtual void RotateUnderMouse ()
 
virtual ref string SetMouseInfo (ref string s)
 
void TogglePause ()
 
void Pause (bool sound=false)
 
void UnPause (bool sound=false)
 
void ChangeGameSpeed (int a, bool sound=false)
 

Static Public Member Functions

static void OnGameInstantiated ()
 
- 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)
 

Public Attributes

Layer layer
 
int brushRadius = 4
 

Static Public Attributes

static ActionMode DefaultMode
 
static AM_Title Title = new AM_Title()
 
static AM_Sim Sim
 
static AM_ViewZone View
 
static AM_Adv Adv
 
static AM_Region Region
 
static AM_ADV_Target AdvTarget
 
static AM_EloMap EloMap
 
static AM_Inspect Inspect
 
static AM_NoMap NoMap
 
static AM_MiniGame MiniGame
 
static AM_NewZone NewZone
 
static AM_Bird Bird
 
static AM_Mine Mine
 
static AM_Dig Dig
 
static AM_Harvest Harvest
 
static AM_Cut Cut
 
static AM_StateEditor StateEditor
 
static AM_Picker Picker
 
static AM_Copy Copy
 
static AM_Blueprint Blueprint
 
static AM_Build Build
 
static AM_CreateArea CreateArea
 
static AM_EditArea EditArea
 
static AM_ExpandArea ExpandArea
 
static AM_Deconstruct Deconstruct
 
static AM_Select Select
 
static AM_RemoveDesignation RemoveDesignation
 
static AM_ViewMap ViewMap
 
static AM_Terrain Terrain
 
static AM_Populate Populate
 
static AM_EditMarker EditMarker
 
static AM_Visibility Visibility
 
static AM_Cinema Cinema
 
static AM_Paint Paint
 
static AM_FlagCell FlagCell
 
static ActionMode LastBuildMode
 
static SourceMaterial.Row lastEditorMat
 
static bool ignoreSound
 
static float[] GameSpeeds = new float[4] { 0f, 1f, 2f, 5f }
 
static List< TCSimpleTextsimpleTexts = new List<TCSimpleText>()
 
static float hotElementTimer
 
- Static Public Attributes inherited from EClass
static Core core
 

Static Protected Attributes

static Vector3 mpos
 

Properties

static AM_Adv AdvOrRegion [get]
 
static bool IsAdv [get]
 
virtual float gameSpeed [get]
 
bool IsActive [get]
 
virtual BaseTileSelector.HitType hitType [get]
 
virtual BaseTileSelector.SelectType selectType [get]
 
virtual BaseTileSelector.BoxType boxType [get]
 
virtual bool ContinuousClick [get]
 
virtual int hitW [get]
 
virtual int hitH [get]
 
HitSummary Summary [get]
 
bool Multisize [get]
 
virtual string id [get]
 
virtual CursorInfo DefaultCursor [get]
 
virtual string idHelpTopic [get]
 
virtual string idSound [get]
 
virtual bool enableMouseInfo [get]
 
virtual bool hideBalloon [get]
 
virtual string textHintTitle [get]
 
virtual bool AllowAutoClick [get]
 
virtual bool ShowActionHint [get]
 
virtual bool ShowMouseoverTarget [get]
 
virtual AreaHighlightMode AreaHihlight [get]
 
virtual bool CanSelectTile [get]
 
virtual bool CanTargetOutsideBounds [get]
 
virtual bool ShouldPauseGame [get]
 
virtual bool FixFocus [get]
 
virtual bool HideSubWidgets [get]
 
virtual bool IsBuildMode [get]
 
virtual bool ShowBuildWidgets [get]
 
virtual BuildMenu.Mode buildMenuMode [get]
 
virtual bool ShouldHideBuildMenu [get]
 
virtual bool CanTargetFog [get]
 
virtual int CostMoney [get]
 
virtual bool AllowBuildModeShortcuts [get]
 
virtual bool AllowMiddleClickFunc [get]
 
virtual bool AllowHotbar [get]
 
virtual bool AllowGeneralInput [get]
 
virtual bool ShowMaskedThings [get]
 
virtual int SelectorHeight [get]
 
virtual bool AllowWheelZoom [get]
 
virtual float TargetZoom [get]
 
virtual BaseTileMap.CardIconMode cardIconMode [get]
 
virtual BaseGameScreen TargetGameScreen [get]
 
virtual bool IsNoMap [get]
 
virtual bool UseSubMenu [get]
 
virtual bool UseSubMenuSlider [get]
 
virtual bool SubMenuAsGroup [get]
 
virtual int SubMenuModeIndex [get]
 
virtual bool ShowExtraHint [get]
 
BaseTileSelector tileSelector [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]
 

Static Private Attributes

static float smoothX = 0f
 
static float smoothY = 0f
 
static float textTimer = 0f
 
static float focusTimer
 

Detailed Description

Definition at line 5 of file ActionMode.cs.

Member Function Documentation

◆ _HitTest()

HitResult ActionMode._HitTest ( Point  point,
Point  start 
)
inline

Definition at line 1233 of file ActionMode.cs.

1234 {
1236 {
1237 return HitResult.NoTarget;
1238 }
1239 if (!point.IsValid)
1240 {
1241 return HitResult.NoTarget;
1242 }
1243 if (!CanTargetFog && !point.cell.isSeen)
1244 {
1245 return HitResult.Default;
1246 }
1247 return HitTest(point, start);
1248 }
HitResult
Definition: HitResult.cs:2
virtual bool CanTargetOutsideBounds
Definition: ActionMode.cs:173
virtual HitResult HitTest(Point point, Point start)
Definition: ActionMode.cs:1250
virtual bool CanTargetFog
Definition: ActionMode.cs:209
bool isSeen
Definition: Cell.cs:282
bool ignoreBuildRule
Definition: CoreDebug.cs:184
Definition: EClass.cs:5
static CoreDebug debug
Definition: EClass.cs:48
bool IsInBoundsPlus
Definition: Point.cs:116
bool IsValid
Definition: Point.cs:88
Cell cell
Definition: Point.cs:51

References CanTargetFog, CanTargetOutsideBounds, Point.cell, EClass.debug, HitTest(), CoreDebug.ignoreBuildRule, Point.IsInBoundsPlus, Cell.isSeen, and Point.IsValid.

Referenced by BaseTileSelector._ProcessTile(), and BaseTileSelector.OnUpdate().

◆ Activate()

void ActionMode.Activate ( bool  toggle = true,
bool  forceActivate = false 
)
inline

Definition at line 339 of file ActionMode.cs.

340 {
341 if (TargetGameScreen != null)
342 {
344 }
345 if (EClass.scene.actionMode == this && !forceActivate)
346 {
347 if (toggle && EClass.scene.actionMode != DefaultMode)
348 {
350 }
351 return;
352 }
353 if (ignoreSound)
354 {
355 ignoreSound = false;
356 }
357 else
358 {
359 EClass.Sound.Play(idSound);
360 }
361 EInput.Consume(0);
362 ActionMode actionMode = EClass.scene.actionMode;
363 EClass.scene.actionMode = this;
364 if (actionMode != null)
365 {
366 if (actionMode.IsBuildMode && !(actionMode is AM_ViewMap))
367 {
368 LastBuildMode = actionMode;
369 }
370 actionMode.ClearSimpleTexts();
371 actionMode.OnDeactivate();
373 {
374 foreach (Card item in ((IEnumerable<Card>)EClass._map.things).Concat((IEnumerable<Card>)EClass._map.charas))
375 {
376 item.renderer.DespawnSimpleText();
377 }
378 }
379 _ = NoMap;
380 EClass.ui.RemoveLayers();
381 }
382 if (IsBuildMode)
383 {
386 }
387 else
388 {
390 }
391 if (!(this is AM_Adv))
392 {
393 EClass.ui.hud.transRight.SetActive(enable: false);
394 }
395 EClass.ui.hud.frame.SetActive(IsBuildMode && EClass.game.altUI);
396 if (hideBalloon)
397 {
398 EClass.ui.ShowBalloon(enable: false);
399 }
400 else
401 {
402 EClass.ui.ShowBalloon(!EClass.scene.hideBalloon);
403 }
404 OnActivate();
405 RefreshTexts();
406 ShowLayer();
407 EClass.ui.widgets.OnChangeActionMode();
408 EClass.ui.extraHint.OnChangeActionMode();
409 CursorSystem.leftIcon = null;
411 }
Definition: AM_Adv.cs:6
static bool ignoreSound
Definition: ActionMode.cs:83
virtual void OnActivate()
Definition: ActionMode.cs:413
virtual void OnDeactivate()
Definition: ActionMode.cs:534
static ActionMode DefaultMode
Definition: ActionMode.cs:7
virtual BaseGameScreen TargetGameScreen
Definition: ActionMode.cs:231
void RefreshTexts()
Definition: ActionMode.cs:417
void ShowLayer()
Definition: ActionMode.cs:1352
virtual bool hideBalloon
Definition: ActionMode.cs:159
void Activate(bool toggle=true, bool forceActivate=false)
Definition: ActionMode.cs:339
virtual bool IsBuildMode
Definition: ActionMode.cs:181
virtual string idSound
Definition: ActionMode.cs:155
static ActionMode LastBuildMode
Definition: ActionMode.cs:79
static AM_NoMap NoMap
Definition: ActionMode.cs:25
void ClearSimpleTexts()
Definition: ActionMode.cs:517
static void Deactivate()
Definition: BuildMenu.cs:173
static BuildMenu Instance
Definition: BuildMenu.cs:77
TerrainMenu terrainMenu
Definition: BuildMenu.cs:49
static void Activate()
Definition: BuildMenu.cs:117
Definition: Card.cs:11
bool IsGameStarted
Definition: Core.cs:84
static Game game
Definition: EClass.cs:8
static Scene scene
Definition: EClass.cs:30
static Core core
Definition: EClass.cs:6
static Map _map
Definition: EClass.cs:18
static SoundManager Sound
Definition: EClass.cs:46
static UI ui
Definition: EClass.cs:16
Definition: EInput.cs:8
static void Consume(int _skipFrame)
Definition: EInput.cs:656
bool altUI
Definition: Game.cs:261
List< Thing > things
Definition: Map.cs:49
List< Chara > charas
Definition: Map.cs:81
bool hideBalloon
Definition: Scene.cs:141
ActionMode actionMode
Definition: Scene.cs:77
void UpdateCursor()
Definition: Scene.cs:739
void Show(ActionMode _am)
Definition: TerrainMenu.cs:11

References EClass._map, Scene.actionMode, BaseGameScreen.Activate(), BuildMenu.Activate(), Activate(), Game.altUI, Map.charas, ClearSimpleTexts(), EInput.Consume(), EClass.core, BuildMenu.Deactivate(), DefaultMode, EClass.game, hideBalloon, Scene.hideBalloon, idSound, ignoreSound, BuildMenu.Instance, IsBuildMode, Core.IsGameStarted, item, LastBuildMode, NoMap, OnActivate(), OnDeactivate(), RefreshTexts(), EClass.scene, TerrainMenu.Show(), ShowLayer(), EClass.Sound, TargetGameScreen, BuildMenu.terrainMenu, Map.things, EClass.ui, and Scene.UpdateCursor().

Referenced by AM_Sim._OnUpdateInput(), Activate(), Deactivate(), DoFunc(), LayerNewZone.Embark(), HotItemActionMode.Execute(), Scene.Init(), LayerGacha.OnAfterInit(), LayerHoard.OnAfterInit(), ELayer.OnBeforeAddLayer(), AM_CreateArea.OnCancel(), AM_ExpandArea.OnCancel(), UIHangIcon.OnClick(), LayerNewZone.OnClickExit(), BuildMenu.OnClickPicker(), LayerGacha.OnKill(), LayerHoard.OnKill(), TraitBlueprint.OnRead(), AM_Paint.OnUpdateInput(), TraitViewMap.OnUse(), BuildMenu.RefreshCategoryArea(), AM_Copy.RefreshMenu(), ZoneInspector.RefreshScreen(), AM_Paint.SetPainter(), BuildMenu.Toggle(), Scene.ToggleBirdView(), and UpdateInput().

◆ CanProcessTiles()

virtual bool ActionMode.CanProcessTiles ( )
inlinevirtual

Reimplemented in AM_Designation< T >.

Definition at line 1318 of file ActionMode.cs.

1319 {
1320 if (Multisize && Summary.countValid != hitW * hitH)
1321 {
1322 return false;
1323 }
1324 return true;
1325 }
virtual int hitW
Definition: ActionMode.cs:131
virtual int hitH
Definition: ActionMode.cs:133
HitSummary Summary
Definition: ActionMode.cs:135
bool Multisize
Definition: ActionMode.cs:138
int countValid
Definition: HitSummary.cs:10

References HitSummary.countValid, hitH, hitW, Multisize, and Summary.

Referenced by BaseTileSelector.OnUpdate(), and BaseTileSelector.TryProcessTiles().

◆ ChangeGameSpeed()

void ActionMode.ChangeGameSpeed ( int  a,
bool  sound = false 
)
inline

Definition at line 1479 of file ActionMode.cs.

1480 {
1481 if (EClass.game.gameSpeedIndex != a)
1482 {
1483 if (sound)
1484 {
1485 SE.Play("tick" + a);
1486 }
1487 EClass.game.gameSpeedIndex = a;
1488 if (a != 0)
1489 {
1490 EClass.game.lastGameSpeedIndex = a;
1491 }
1493 }
1494 }
int gameSpeedIndex
Definition: Game.cs:223
static void RefreshHighlights()

References EClass.game, Game.gameSpeedIndex, and WidgetHotbar.RefreshHighlights().

Referenced by HotItemSpeed.OnClick(), Pause(), and UnPause().

◆ ClearSimpleTexts()

void ActionMode.ClearSimpleTexts ( )
inline

Definition at line 517 of file ActionMode.cs.

518 {
519 foreach (TCSimpleText simpleText in simpleTexts)
520 {
521 if (simpleText != null)
522 {
523 PoolManager.Despawn(simpleText);
524 }
525 }
526 simpleTexts.Clear();
527 }
static List< TCSimpleText > simpleTexts
Definition: ActionMode.cs:95
static void Despawn(Component c)
Definition: PoolManager.cs:128

References PoolManager.Despawn(), and simpleTexts.

Referenced by Activate(), and RefreshTexts().

◆ Deactivate()

◆ DoFunc() [1/2]

void ActionMode.DoFunc ( CoreConfig::GameFunc  func)
inline

Definition at line 1101 of file ActionMode.cs.

1102 {
1104 switch (func)
1105 {
1106 default:
1107 return;
1108 case CoreConfig.GameFunc.OpenAllyInv:
1109 if (!EClass.pc.HasNoGoal || (targetChara != null && !targetChara.IsPCFaction))
1110 {
1111 return;
1112 }
1114 {
1115 if (!EClass.ui.IsInventoryOpen)
1116 {
1117 SE.PopInventory();
1118 }
1119 EClass.ui.ToggleInventory();
1120 }
1121 else if (targetChara != null && EClass.pc.Dist(targetChara) <= 1)
1122 {
1123 LayerInventory.CreateContainer(targetChara);
1124 }
1125 break;
1126 case CoreConfig.GameFunc.EmptyHand:
1127 EInput.action = EAction.EmptyHand;
1128 return;
1129 case CoreConfig.GameFunc.Fire:
1130 if (EInput.keyFire.Update(forcePress: true))
1131 {
1132 EInput.action = EAction.Fire;
1133 return;
1134 }
1135 break;
1136 case CoreConfig.GameFunc.SwitchHotbar:
1138 break;
1139 case CoreConfig.GameFunc.PropertySearch:
1140 EClass.ui.widgets.Toggle("Search")?.SoundActivate();
1141 break;
1142 case CoreConfig.GameFunc.Talk:
1143 if (!EClass.pc.HasNoGoal || targetChara == null || targetChara.hostility <= Hostility.Enemy || targetChara.IsPC || EClass.pc.Dist(targetChara) > 2)
1144 {
1145 return;
1146 }
1147 ACT.Chat.Perform(EClass.pc, targetChara);
1148 break;
1149 case CoreConfig.GameFunc.AllAction:
1150 if (!EClass.ui.isPointerOverUI)
1151 {
1153 }
1154 return;
1155 case CoreConfig.GameFunc.ToggleBuild:
1157 {
1158 SE.Beep();
1159 Msg.Say("invalidAction");
1160 return;
1161 }
1162 BuildMenu.Toggle();
1163 break;
1164 case CoreConfig.GameFunc.ShowJournal:
1165 {
1166 LayerJournal layerJournal = EClass.ui.ToggleLayer<LayerJournal>();
1167 if ((bool)layerJournal)
1168 {
1169 layerJournal.windows[0].SetRect(EClass.core.refs.rects.center);
1170 layerJournal.Delay();
1171 }
1172 break;
1173 }
1174 case CoreConfig.GameFunc.ShowInv:
1175 EClass.ui.ToggleInventory(delay: true);
1176 break;
1177 case CoreConfig.GameFunc.ShowChara:
1178 {
1179 LayerChara layerChara = EClass.ui.ToggleLayer<LayerChara>();
1180 if ((bool)layerChara)
1181 {
1182 layerChara.SetChara(EClass.pc);
1183 layerChara.windows[0].SetRect(EClass.core.refs.rects.center);
1184 layerChara.Delay();
1185 }
1186 break;
1187 }
1188 case CoreConfig.GameFunc.ShowAbility:
1189 EClass.ui.ToggleAbility(delay: true);
1190 break;
1191 case CoreConfig.GameFunc.ToggleNoRoof:
1192 EClass.game.config.noRoof = !EClass.game.config.noRoof;
1193 break;
1194 case CoreConfig.GameFunc.ToggleZoom:
1195 Adv.ToggleZoom();
1196 break;
1197 case CoreConfig.GameFunc.EmuShift:
1198 case CoreConfig.GameFunc.EmuAlt:
1199 return;
1200 }
1201 EInput.Consume();
1202 }
EAction
Definition: EAction.cs:2
Hostility
Definition: Hostility.cs:2
Definition: ACT.cs:6
static ActChat Chat
Definition: ACT.cs:9
void ToggleZoom()
Definition: AM_Adv.cs:1060
void ShowAllAction()
Definition: AM_Adv.cs:1014
override bool Perform()
Definition: ActChat.cs:9
static AM_Adv Adv
Definition: ActionMode.cs:15
static void Toggle()
Definition: BuildMenu.cs:93
Point pos
Definition: Card.cs:55
int Dist(Card c)
Definition: Card.cs:6777
Definition: Chara.cs:10
override bool IsPC
Definition: Chara.cs:597
override bool IsPCFaction
Definition: Chara.cs:656
bool HasNoGoal
Definition: Chara.cs:821
Hostility hostility
Definition: Chara.cs:276
RectData center
Definition: CoreRef.cs:162
Rects rects
Definition: CoreRef.cs:345
CoreRef refs
Definition: Core.cs:51
static Zone _zone
Definition: EClass.cs:20
static Chara pc
Definition: EClass.cs:14
bool Update(bool forcePress=false)
Definition: EInput.cs:215
static KeyboardPress keyFire
Definition: EInput.cs:249
bool noRoof
Definition: Game.cs:27
Config config
Definition: Game.cs:215
LayerChara SetChara(Chara c)
Definition: LayerChara.cs:9
static LayerInventory CreateContainer(Card owner)
List< Window > windows
Definition: Layer.cs:116
void Delay(float duration=0.05f)
Definition: Layer.cs:597
Definition: Msg.cs:5
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Definition: Msg.cs:58
Chara TargetChara
Definition: PointTarget.cs:41
bool Equals(int _x, int _z)
Definition: Point.cs:924
PointTarget mouseTarget
Definition: Scene.cs:129
static WidgetCurrentTool Instance
bool CanEnterBuildModeAnywhere
Definition: Zone.cs:449

References EClass._zone, Adv, Zone.CanEnterBuildModeAnywhere, CoreRef.Rects.center, ACT.Chat, Game.config, EInput.Consume(), EClass.core, LayerInventory.CreateContainer(), Layer.Delay(), Card.Dist(), Point.Equals(), EClass.game, Chara.HasNoGoal, Chara.hostility, WidgetCurrentTool.Instance, Chara.IsPC, Chara.IsPCFaction, EInput.keyFire, Scene.mouseTarget, Game.Config.noRoof, EClass.pc, ActChat.Perform(), Card.pos, PointTarget.pos, CoreRef.rects, Core.refs, Msg.Say(), EClass.scene, LayerChara.SetChara(), AM_Adv.ShowAllAction(), WidgetCurrentTool.SwitchPage(), PointTarget.TargetChara, BuildMenu.Toggle(), AM_Adv.ToggleZoom(), EClass.ui, EInput.KeyboardPress.Update(), and Layer.windows.

◆ DoFunc() [2/2]

void ActionMode.DoFunc ( CoreConfig::GameFuncBuild  func)
inline

Definition at line 1033 of file ActionMode.cs.

1034 {
1035 switch (func)
1036 {
1037 case CoreConfig.GameFuncBuild.ExitBuildMode:
1039 break;
1040 case CoreConfig.GameFuncBuild.ToggleFreepos:
1042 break;
1043 case CoreConfig.GameFuncBuild.ToggleRoof:
1045 break;
1046 case CoreConfig.GameFuncBuild.ToggleSlope:
1048 break;
1049 case CoreConfig.GameFuncBuild.Rotate:
1050 OnRotate();
1051 break;
1052 case CoreConfig.GameFuncBuild.ToggleWall:
1054 break;
1055 case CoreConfig.GameFuncBuild.TogglePicker:
1056 if (Picker.CanActivate)
1057 {
1058 Picker.Activate();
1059 }
1060 break;
1061 case CoreConfig.GameFuncBuild.SnapFreepos:
1063 break;
1064 case CoreConfig.GameFuncBuild.ToggleBuildLight:
1066 break;
1067 }
1069 }
bool CanActivate
Definition: AM_Picker.cs:33
static AM_Picker Picker
Definition: ActionMode.cs:43
void OnRotate()
Definition: ActionMode.cs:560
void ToggleShowRoof()
Definition: Scene.cs:869
void ToggleShowWall()
Definition: Scene.cs:903
void ToggleLight()
Definition: Scene.cs:875
void ToggleSlope()
Definition: Scene.cs:915
void ToggleFreePos()
Definition: Scene.cs:892
void ToggleSnapFreePos()
Definition: Scene.cs:881

References Activate(), AM_Picker.CanActivate, DefaultMode, OnRotate(), Picker, WidgetHotbar.RefreshHighlights(), EClass.scene, Scene.ToggleFreePos(), Scene.ToggleLight(), Scene.ToggleShowRoof(), Scene.ToggleShowWall(), Scene.ToggleSlope(), and Scene.ToggleSnapFreePos().

Referenced by AM_Adv._OnUpdateInput(), and UpdateInput().

◆ GetDefaultTile()

virtual int ActionMode.GetDefaultTile ( Point  p)
inlinevirtual

Reimplemented in AM_Adv.

Definition at line 321 of file ActionMode.cs.

322 {
323 return 0;
324 }

Referenced by OnRenderTile(), and OnRenderTileFloor().

◆ GetGuidePass()

virtual MeshPass ActionMode.GetGuidePass ( Point  point)
inlinevirtual

Reimplemented in AM_BaseTerrain, AM_Deconstruct, and AM_RemoveDesignation.

Definition at line 1263 of file ActionMode.cs.

1264 {
1265 if ((!point.HasNonWallBlock && !point.HasBlockRecipe && point.IsSeen) || (point.sourceBlock.tileType.Invisible && !IsBuildMode))
1266 {
1268 }
1270 }
ScreenGuide guide
static BaseGameScreen screen
Definition: EClass.cs:32
bool IsSeen
Definition: Point.cs:318
SourceBlock.Row sourceBlock
Definition: Point.cs:63
bool HasBlockRecipe
Definition: Point.cs:205
bool HasNonWallBlock
Definition: Point.cs:182
MeshPass passGuideBlock
Definition: ScreenGuide.cs:5
MeshPass passGuideFloor
Definition: ScreenGuide.cs:7

References BaseGameScreen.guide, Point.HasBlockRecipe, Point.HasNonWallBlock, IsBuildMode, Point.IsSeen, ScreenGuide.passGuideBlock, ScreenGuide.passGuideFloor, EClass.screen, and Point.sourceBlock.

Referenced by PartialMap.Apply(), OnRenderTile(), and OnRenderTileFloor().

◆ GetHintText()

virtual string ActionMode.GetHintText ( )
inlinevirtual

Reimplemented in AM_BaseGameMode.

Definition at line 1387 of file ActionMode.cs.

1388 {
1389 string text = textHintTitle.IsEmpty(Lang.Get(id)) + " - ";
1390 BaseTileSelector baseTileSelector = EClass.screen.tileSelector;
1391 ActionMode actionMode = EClass.scene.actionMode;
1392 if (!layer)
1393 {
1394 text = ((actionMode == Inspect && Inspect.target != null) ? "hintMoveTarget".lang() : ((selectType == BaseTileSelector.SelectType.Single) ? (text + "hintSelectSingle".lang()) : ((baseTileSelector.start != null) ? (text + "hintSelectEnd".lang()) : (text + "hintSelectStart".lang()))));
1395 }
1396 else
1397 {
1398 if (actionMode == Build)
1399 {
1400 text += "hintBuild".lang();
1401 }
1402 if (actionMode == CreateArea)
1403 {
1404 text += "hintCreateArea".lang();
1405 }
1406 }
1407 if (actionMode == Build && Build.recipe != null && baseTileSelector.start == null)
1408 {
1410 {
1411 text = text + " " + "hintRotate".lang();
1412 }
1413 if (Build.MaxAltitude > 0)
1414 {
1415 text = text + " " + "hintAltitude2".lang();
1416 }
1417 }
1418 return text;
1419 }
Recipe recipe
Definition: AM_Build.cs:10
int MaxAltitude
Definition: AM_Build.cs:63
static AM_Inspect Inspect
Definition: ActionMode.cs:23
virtual BaseTileSelector.SelectType selectType
Definition: ActionMode.cs:125
virtual string textHintTitle
Definition: ActionMode.cs:161
Layer layer
Definition: ActionMode.cs:97
static AM_Build Build
Definition: ActionMode.cs:49
static AM_CreateArea CreateArea
Definition: ActionMode.cs:51
BaseTileSelector tileSelector
Definition: Lang.cs:6
static string Get(string id)
Definition: Lang.cs:91
virtual bool CanRotate
Definition: Recipe.cs:282

References Scene.actionMode, Build, Recipe.CanRotate, CreateArea, Lang.Get(), Inspect, layer, AM_Build.MaxAltitude, AM_Build.recipe, EClass.scene, EClass.screen, selectType, BaseTileSelector.start, textHintTitle, and BaseGameScreen.tileSelector.

Referenced by ActionHint.UpdateText().

◆ GetSimpleText()

virtual string ActionMode.GetSimpleText ( Card  c)
inlinevirtual

Reimplemented in AM_EditMarker.

Definition at line 508 of file ActionMode.cs.

509 {
510 if (c.trait is TraitRoomPlate && c.Cell.room != null)
511 {
512 return "#" + c.Cell.room.data.group;
513 }
514 return null;
515 }
int group
Definition: AreaData.cs:18
AreaData data
Definition: BaseArea.cs:29
Trait trait
Definition: Card.cs:49
Cell Cell
Definition: Card.cs:1931
Room room
Definition: Cell.cs:102

References Card.Cell, BaseArea.data, AreaData.group, Cell.room, and Card.trait.

Referenced by RefreshTexts().

◆ HideLayer()

void ActionMode.HideLayer ( )
inline

Definition at line 1375 of file ActionMode.cs.

1376 {
1377 EClass.ui.RemoveLayer(layer);
1379 EClass.ui.hud.hint.UpdateText();
1380 OnHideLayer();
1381 }
virtual void OnHideLayer()
Definition: ActionMode.cs:1383
static CursorInfo Select
Definition: CursorSystem.cs:58
static void SetCursor(CursorInfo info=null, int _priority=0)

References layer, OnHideLayer(), CursorSystem.Select, CursorSystem.SetCursor(), and EClass.ui.

◆ HighlightWall()

virtual bool ActionMode.HighlightWall ( Point  p)
inlinevirtual

Reimplemented in AM_Adv.

Definition at line 297 of file ActionMode.cs.

298 {
299 return false;
300 }

Referenced by OnRenderTile().

◆ HitTest()

virtual HitResult ActionMode.HitTest ( Point  point,
Point  start 
)
inlinevirtual

◆ InputMovement()

void ActionMode.InputMovement ( )
inline

Definition at line 934 of file ActionMode.cs.

935 {
936 float num = 0f;
937 float num2 = 0f;
938 Vector2 axis = EInput.axis;
939 bool flag = !EClass.core.IsGameStarted;
941 {
942 if (Input.GetKey(KeyCode.LeftShift))
943 {
944 axis *= 3f;
945 }
947 {
948 Vector2 zero = Vector2.zero;
949 if (mpos.x < 16f)
950 {
951 zero.x -= 1f;
952 }
953 if (mpos.x > (float)(Screen.width - 16))
954 {
955 zero.x += 1f;
956 }
957 if (mpos.y < 8f)
958 {
959 zero.y -= 1f;
960 }
961 if (mpos.y > (float)(Screen.height - 8))
962 {
963 zero.y += 1f;
964 }
965 if (zero != Vector2.zero)
966 {
967 axis += zero * (EClass.core.config.camera.sensEdge * 2f);
968 }
969 }
970 EInput.hasAxisMoved = axis != Vector2.zero;
972 if (Adv.IsActive)
973 {
974 _ = Adv.zoomOut;
975 }
976 if (EInput.buttonScroll != null && EInput.buttonScroll.pressing && (flag || !EClass.ui.BlockActions))
977 {
978 num = EInput.dragAmount.x * (0.1f + EClass.core.config.camera.sensDrag);
979 num2 = EInput.dragAmount.y * (0.1f + EClass.core.config.camera.sensDrag);
981 {
982 num *= -1f;
983 }
985 {
986 num2 *= -1f;
987 }
989 {
990 EInput.hasAxisMoved = true;
991 }
992 }
994 {
995 EClass.screen.zoomPos = Vector3.zero;
996 }
997 if (EInput.wheel != 0 && !InputModuleEX.GetComponentOf<UIScrollView>())
998 {
1000 }
1001 }
1002 float momentum = EClass.core.config.camera.momentum;
1003 if (momentum > 0f && EInput.axis == Vector2.zero)
1004 {
1005 smoothX = Mathf.Lerp(smoothX, num, Time.smoothDeltaTime * momentum);
1006 smoothY = Mathf.Lerp(smoothY, num2, Time.smoothDeltaTime * momentum);
1007 }
1008 else
1009 {
1010 smoothX = num;
1011 smoothY = num2;
1012 }
1013 EClass.screen.ScrollMouse(smoothX * 0.1f, smoothY * 0.1f);
1014 if (EInput.hasAxisMoved)
1015 {
1016 OnScroll();
1017 EClass.screen.ScrollAxis(axis);
1018 }
1019 }
bool zoomOut
Definition: AM_Adv.cs:103
virtual void InputWheel(int wheel)
Definition: ActionMode.cs:1021
static float smoothY
Definition: ActionMode.cs:87
virtual void OnScroll()
Definition: ActionMode.cs:1204
static Vector3 mpos
Definition: ActionMode.cs:91
static float smoothX
Definition: ActionMode.cs:85
virtual bool FixFocus
Definition: ActionMode.cs:177
bool IsActive
Definition: ActionMode.cs:121
void ScrollAxis(Vector3 axis, bool direct=false)
void ScrollMouse(float x, float y)
bool pressing
Definition: ButtonState.cs:35
CameraConfig camera
Definition: CoreConfig.cs:604
CoreConfig config
Definition: Core.cs:70
static int wheel
Definition: EInput.cs:289
static bool hasMouseMoved
Definition: EInput.cs:311
static Vector2 axis
Definition: EInput.cs:331
static ButtonState buttonScroll
Definition: EInput.cs:359
static ButtonState rightMouse
Definition: EInput.cs:351
static bool hasAxisMoved
Definition: EInput.cs:271

References Scene.actionMode, Adv, EInput.axis, EInput.buttonScroll, CoreConfig.camera, Core.config, EClass.core, CoreConfig.CameraConfig.edgeScroll, FixFocus, EInput.hasAxisMoved, EInput.hasMouseMoved, InputWheel(), CoreConfig.CameraConfig.invertX, CoreConfig.CameraConfig.invertY, IsActive, IsBuildMode, Core.IsGameStarted, CoreConfig.CameraConfig.momentum, mpos, OnScroll(), ButtonState.pressing, EInput.rightMouse, EClass.scene, EClass.screen, BaseGameScreen.ScrollAxis(), BaseGameScreen.ScrollMouse(), CoreConfig.CameraConfig.sensDrag, smoothX, smoothY, EClass.ui, EInput.wheel, and AM_Adv.zoomOut.

Referenced by LayerEmbark.Update(), and UpdateInput().

◆ InputWheel()

virtual void ActionMode.InputWheel ( int  wheel)
inlinevirtual

Definition at line 1021 of file ActionMode.cs.

1022 {
1023 if (AllowWheelZoom)
1024 {
1026 }
1027 }
virtual bool AllowWheelZoom
Definition: ActionMode.cs:225
void ModTargetZoomIndex(int a)

References AllowWheelZoom, BaseGameScreen.ModTargetZoomIndex(), and EClass.screen.

Referenced by InputMovement().

◆ IsFillMode()

virtual bool ActionMode.IsFillMode ( )
inlinevirtual

Definition at line 316 of file ActionMode.cs.

317 {
318 return false;
319 }

Referenced by BaseTileSelector.OnUpdate(), BaseTileSelector.RefreshMouseInfo(), and BaseTileSelector.TryProcessTiles().

◆ IsFuncPressed()

bool ActionMode.IsFuncPressed ( CoreConfig::GameFunc  func)
inline

Definition at line 1071 of file ActionMode.cs.

1072 {
1075 {
1076 return input.middleClick == func;
1077 }
1079 {
1080 return input.middlePressLong == func;
1081 }
1082 if (EInput.mouse3.clicked)
1083 {
1084 return input.mouse3Click == func;
1085 }
1087 {
1088 return input.mouse3PressLong == func;
1089 }
1090 if (EInput.mouse4.clicked)
1091 {
1092 return input.mouse4Click == func;
1093 }
1095 {
1096 return input.mouse4PressLong == func;
1097 }
1098 return false;
1099 }
bool clicked
Definition: ButtonState.cs:37
bool pressedLong
Definition: ButtonState.cs:64
InputSetting input
Definition: CoreConfig.cs:602
static ButtonState middleMouse
Definition: EInput.cs:353
static ButtonState mouse4
Definition: EInput.cs:357
static ButtonState mouse3
Definition: EInput.cs:355

References ButtonState.clicked, Core.config, EClass.core, CoreConfig.input, EInput.middleMouse, EInput.mouse3, EInput.mouse4, and ButtonState.pressedLong.

Referenced by WidgetSearch.Update().

◆ IsRoofEditMode()

◆ OnActivate()

virtual void ActionMode.OnActivate ( )
inlinevirtual

Reimplemented in AM_Adv, AM_ADV_Target, AM_Bird, AM_Cinema, AM_Copy, AM_Designation< T >, AM_EloMap, AM_NewZone, AM_NoMap, AM_Paint, AM_ViewMap, and AM_ViewZone.

Definition at line 413 of file ActionMode.cs.

414 {
415 }

Referenced by Activate().

◆ OnAfterProcessTiles()

virtual void ActionMode.OnAfterProcessTiles ( Point  start,
Point  end 
)
inlinevirtual

Reimplemented in AM_BaseTerrain, AM_Copy, AM_CreateArea, and AM_Designation< T >.

Definition at line 1335 of file ActionMode.cs.

1336 {
1337 }

Referenced by BaseTileSelector.TryProcessTiles().

◆ OnAfterUpdate()

virtual void ActionMode.OnAfterUpdate ( )
inlinevirtual

Reimplemented in AM_Adv.

Definition at line 550 of file ActionMode.cs.

551 {
552 }

Referenced by Scene.OnUpdate().

◆ OnBeforeProcessTiles()

virtual void ActionMode.OnBeforeProcessTiles ( )
inlinevirtual

Reimplemented in AM_Designation< T >.

Definition at line 1327 of file ActionMode.cs.

1328 {
1329 }

Referenced by BaseTileSelector.TryProcessTiles().

◆ OnBeforeUpdate()

virtual void ActionMode.OnBeforeUpdate ( )
inlinevirtual

Reimplemented in AM_Adv.

Definition at line 546 of file ActionMode.cs.

547 {
548 }

Referenced by Scene.OnUpdate().

◆ OnCancel()

virtual void ActionMode.OnCancel ( )
inlinevirtual

Reimplemented in AM_BaseGameMode, AM_Copy, AM_CreateArea, AM_ExpandArea, and AM_ViewMap.

Definition at line 538 of file ActionMode.cs.

539 {
540 if (!IsBuildMode || EClass.core.config.input.rightClickExitBuildMode || Input.GetKey(KeyCode.Escape))
541 {
542 Deactivate();
543 }
544 }
void Deactivate()
Definition: ActionMode.cs:529

References Core.config, EClass.core, Deactivate(), CoreConfig.input, IsBuildMode, and CoreConfig.InputSetting.rightClickExitBuildMode.

Referenced by BaseTileSelector.OnUpdate().

◆ OnClickSubMenu()

virtual void ActionMode.OnClickSubMenu ( int  a)
inlinevirtual

Reimplemented in AM_Copy, AM_Deconstruct, AM_FlagCell, AM_Populate, and AM_Terrain.

Definition at line 302 of file ActionMode.cs.

303 {
304 }

Referenced by TerrainMenu.Show().

◆ OnDeactivate()

virtual void ActionMode.OnDeactivate ( )
inlinevirtual

Reimplemented in AM_Adv, AM_Bird, AM_Cinema, AM_Copy, AM_CreateArea, AM_EditMarker, AM_ExpandArea, AM_NoMap, AM_Paint, and AM_ViewMap.

Definition at line 534 of file ActionMode.cs.

535 {
536 }

Referenced by Activate().

◆ OnFinishProcessTiles()

virtual void ActionMode.OnFinishProcessTiles ( )
inlinevirtual

Definition at line 1339 of file ActionMode.cs.

1340 {
1341 }

Referenced by BaseTileSelector.TryProcessTiles().

◆ OnGameInstantiated()

static void ActionMode.OnGameInstantiated ( )
inlinestatic

Definition at line 247 of file ActionMode.cs.

248 {
249 LastBuildMode = null;
250 Sim = new AM_Sim();
251 View = new AM_ViewZone();
252 Adv = new AM_Adv();
253 AdvTarget = new AM_ADV_Target();
254 Region = new AM_Region();
255 NoMap = new AM_NoMap();
256 MiniGame = new AM_MiniGame();
257 EloMap = new AM_EloMap();
258 NewZone = new AM_NewZone();
259 Select = new AM_Select();
260 Inspect = new AM_Inspect();
261 Bird = new AM_Bird();
263 Mine = new AM_Mine();
264 Dig = new AM_Dig();
265 Harvest = new AM_Harvest();
266 Cut = new AM_Cut();
267 Copy = new AM_Copy();
268 Blueprint = new AM_Blueprint();
269 Build = new AM_Build();
270 Picker = new AM_Picker();
273 EditArea = new AM_EditArea();
277 ViewMap = new AM_ViewMap();
278 Terrain = new AM_Terrain();
279 Populate = new AM_Populate();
282 Cinema = new AM_Cinema();
283 FlagCell = new AM_FlagCell();
284 Paint = new AM_Paint();
285 }
Definition: AM_Cut.cs:2
Definition: AM_Dig.cs:2
Definition: AM_Sim.cs:2
static AM_Copy Copy
Definition: ActionMode.cs:45
static AM_RemoveDesignation RemoveDesignation
Definition: ActionMode.cs:61
static AM_Select Select
Definition: ActionMode.cs:59
static AM_Sim Sim
Definition: ActionMode.cs:11
static AM_Cut Cut
Definition: ActionMode.cs:39
static AM_Paint Paint
Definition: ActionMode.cs:75
static AM_Harvest Harvest
Definition: ActionMode.cs:37
static AM_ADV_Target AdvTarget
Definition: ActionMode.cs:19
static AM_StateEditor StateEditor
Definition: ActionMode.cs:41
static AM_ViewMap ViewMap
Definition: ActionMode.cs:63
static AM_ExpandArea ExpandArea
Definition: ActionMode.cs:55
static AM_NewZone NewZone
Definition: ActionMode.cs:29
static AM_EditArea EditArea
Definition: ActionMode.cs:53
static AM_Populate Populate
Definition: ActionMode.cs:67
static AM_Blueprint Blueprint
Definition: ActionMode.cs:47
static AM_FlagCell FlagCell
Definition: ActionMode.cs:77
static AM_Visibility Visibility
Definition: ActionMode.cs:71
static AM_Dig Dig
Definition: ActionMode.cs:35
static AM_Terrain Terrain
Definition: ActionMode.cs:65
static AM_Deconstruct Deconstruct
Definition: ActionMode.cs:57
static AM_Cinema Cinema
Definition: ActionMode.cs:73
static AM_ViewZone View
Definition: ActionMode.cs:13
static AM_Bird Bird
Definition: ActionMode.cs:31
static AM_EditMarker EditMarker
Definition: ActionMode.cs:69
static AM_Mine Mine
Definition: ActionMode.cs:33
Definition: EloMap.cs:8
Definition: Region.cs:7

References Adv, AdvTarget, Bird, Blueprint, Build, Cinema, Copy, CreateArea, Cut, Deconstruct, DefaultMode, Dig, EditArea, EditMarker, ExpandArea, FlagCell, Harvest, Inspect, LastBuildMode, Mine, NewZone, NoMap, Paint, Picker, Populate, RemoveDesignation, Select, Sim, StateEditor, Terrain, View, ViewMap, and Visibility.

Referenced by Game.OnGameInstantiated().

◆ OnHideLayer()

virtual void ActionMode.OnHideLayer ( )
inlinevirtual

Definition at line 1383 of file ActionMode.cs.

1384 {
1385 }

Referenced by HideLayer().

◆ OnProcessTiles()

virtual void ActionMode.OnProcessTiles ( Point  point,
int  dir 
)
inlinevirtual

◆ OnRefreshSummary()

virtual void ActionMode.OnRefreshSummary ( Point  point,
HitResult  result,
HitSummary  summary 
)
inlinevirtual

Reimplemented in AM_Designation< T >, and AM_Select.

Definition at line 1343 of file ActionMode.cs.

1344 {
1345 if (result == HitResult.Valid || result == HitResult.Warning)
1346 {
1347 summary.money += CostMoney;
1348 summary.countValid++;
1349 }
1350 }
virtual int CostMoney
Definition: ActionMode.cs:211

References CostMoney, and HitSummary.countValid.

Referenced by BaseTileSelector._ProcessTile().

◆ OnRenderTile()

virtual void ActionMode.OnRenderTile ( Point  point,
HitResult  result,
int  dir 
)
inlinevirtual

Reimplemented in AM_Adv, AM_BaseTerrain, AM_Copy, AM_Picker, AM_Region, and AM_ViewZone.

Definition at line 1272 of file ActionMode.cs.

1273 {
1274 if (result != HitResult.NoTarget && point.IsValid && (point.IsSeen || CanTargetFog))
1275 {
1276 MeshPass guidePass = GetGuidePass(point);
1277 int num = (int)result;
1278 if (tileSelector.start != null && result == HitResult.Default)
1279 {
1280 num = 2;
1281 }
1282 Vector3 vector = point.Position();
1283 if (num == 0)
1284 {
1285 num = GetDefaultTile(point);
1286 }
1287 guidePass.Add(vector.x, vector.y, vector.z - 0.01f, num, 0.3f);
1288 if (!IsRoofEditMode() && point.HasWallOrFence && !point.cell.hasDoor && HighlightWall(point))
1289 {
1290 EClass.screen.guide.DrawWall(point, EClass.Colors.blockColors.Passive, useMarkerPass: true);
1291 }
1292 if (IsBuildMode && EClass.screen.tileSelector.start == null && point.Installed != null && Inspect.IsActive)
1293 {
1294 point.Installed.trait.OnRenderTile(point, result, dir);
1295 }
1296 }
1297 }
virtual MeshPass GetGuidePass(Point point)
Definition: ActionMode.cs:1263
virtual bool IsRoofEditMode(Card c=null)
Definition: ActionMode.cs:311
virtual bool HighlightWall(Point p)
Definition: ActionMode.cs:297
virtual int GetDefaultTile(Point p)
Definition: ActionMode.cs:321
BaseTileSelector tileSelector
Definition: ActionMode.cs:245
bool hasDoor
Definition: Cell.cs:258
BlockColors blockColors
static ColorProfile Colors
Definition: EClass.cs:38
void Add(Point point, float tile=0f, float color=0f)
Definition: MeshPass.cs:122
Thing Installed
Definition: Point.cs:303
ref Vector3 Position(int height)
Definition: Point.cs:524
bool HasWallOrFence
Definition: Point.cs:155
void DrawWall(Point point, int color, bool useMarkerPass=false, float offsetZ=0f)
Definition: ScreenGuide.cs:42
virtual void OnRenderTile(Point point, HitResult result, int dir)
Definition: Trait.cs:655

References MeshPass.Add(), ColorProfile.blockColors, CanTargetFog, Point.cell, EClass.Colors, ScreenGuide.DrawWall(), GetDefaultTile(), GetGuidePass(), BaseGameScreen.guide, Cell.hasDoor, Point.HasWallOrFence, HighlightWall(), Inspect, Point.Installed, IsBuildMode, IsRoofEditMode(), Point.IsSeen, Point.IsValid, Trait.OnRenderTile(), ColorProfile.BlockColors.Passive, Point.Position(), EClass.screen, BaseTileSelector.start, tileSelector, BaseGameScreen.tileSelector, and Card.trait.

Referenced by BaseTileSelector._ProcessTile().

◆ OnRenderTileFloor()

void ActionMode.OnRenderTileFloor ( Point  point,
HitResult  result 
)
inline

Definition at line 1299 of file ActionMode.cs.

1300 {
1301 if (result != HitResult.NoTarget && point.IsValid && (point.IsSeen || CanTargetFog))
1302 {
1303 MeshPass guidePass = GetGuidePass(point);
1304 int num = (int)result;
1305 if (tileSelector.start != null && result == HitResult.Default)
1306 {
1307 num = 2;
1308 }
1309 Vector3 vector = point.Position(point.cell.height);
1310 if (num == 0)
1311 {
1312 num = GetDefaultTile(point);
1313 }
1314 guidePass.Add(vector.x, vector.y, vector.z - 0.01f, num, 0.3f);
1315 }
1316 }
byte height
Definition: Cell.cs:72

References MeshPass.Add(), CanTargetFog, Point.cell, GetDefaultTile(), GetGuidePass(), Cell.height, Point.IsSeen, Point.IsValid, Point.Position(), BaseTileSelector.start, and tileSelector.

◆ OnRotate()

void ActionMode.OnRotate ( )
inline

Definition at line 560 of file ActionMode.cs.

561 {
563 }
virtual void RotateUnderMouse()
Definition: ActionMode.cs:1421

References RotateUnderMouse().

Referenced by DoFunc().

◆ OnScroll()

virtual void ActionMode.OnScroll ( )
inlinevirtual

Reimplemented in AM_ViewZone.

Definition at line 1204 of file ActionMode.cs.

1205 {
1206 }

Referenced by InputMovement().

◆ OnSelectEnd()

virtual void ActionMode.OnSelectEnd ( bool  cancel)
inlinevirtual

Reimplemented in AM_Copy.

Definition at line 1259 of file ActionMode.cs.

1260 {
1261 }

Referenced by BaseTileSelector.OnUpdate(), and BaseTileSelector.TryProcessTiles().

◆ OnSelectStart()

virtual void ActionMode.OnSelectStart ( Point  point)
inlinevirtual

Reimplemented in AM_Copy, AM_CreateArea, and AM_ExpandArea.

Definition at line 1255 of file ActionMode.cs.

1256 {
1257 }

Referenced by BaseTileSelector.OnUpdate().

◆ OnSetSubMenuButton()

virtual string ActionMode.OnSetSubMenuButton ( int  a,
UIButton  b 
)
inlinevirtual

Reimplemented in AM_Copy, AM_Deconstruct, AM_FlagCell, AM_Populate, and AM_Terrain.

Definition at line 306 of file ActionMode.cs.

307 {
308 return null;
309 }

Referenced by TerrainMenu.Show().

◆ OnShowExtraHint()

virtual void ActionMode.OnShowExtraHint ( UINote  n)
inlinevirtual

Definition at line 326 of file ActionMode.cs.

327 {
328 string[] list = Lang.GetList("exhint_" + GetType().Name);
329 if (list != null)
330 {
331 string[] array = list;
332 foreach (string text in array)
333 {
334 n.AddText("NoteText_extrahint", text, Color.white);
335 }
336 }
337 }
static string[] GetList(string id)
Definition: Lang.cs:114
UIItem AddText(string text, FontColor color=FontColor.DontChange)
Definition: UINote.cs:113

References UINote.AddText(), Color, and Lang.GetList().

Referenced by ExtraHint.Refresh().

◆ OnShowLayer()

virtual Layer ActionMode.OnShowLayer ( )
inlinevirtual

Definition at line 1370 of file ActionMode.cs.

1371 {
1372 return null;
1373 }

Referenced by ShowLayer().

◆ OnUpdateCursor()

virtual void ActionMode.OnUpdateCursor ( )
inlinevirtual

Reimplemented in AM_Adv, AM_CreateArea, AM_Deconstruct, AM_EditArea, AM_ExpandArea, AM_Picker, AM_RemoveDesignation, and AM_StateEditor.

Definition at line 554 of file ActionMode.cs.

555 {
556 CursorSystem.leftIcon = null;
558 }

References CursorSystem.SetCursor().

Referenced by UI.OnChangeLayer(), and Scene.UpdateCursor().

◆ OnUpdateInput()

virtual void ActionMode.OnUpdateInput ( )
inlinevirtual

Reimplemented in AM_BaseGameMode, AM_BaseTerrain, AM_Bird, AM_Cinema, AM_Copy, AM_Paint, and AM_Select.

Definition at line 1029 of file ActionMode.cs.

1030 {
1031 }

Referenced by UpdateInput().

◆ Pause()

void ActionMode.Pause ( bool  sound = false)
inline

Definition at line 1469 of file ActionMode.cs.

1470 {
1471 ChangeGameSpeed(1, sound);
1472 }
void ChangeGameSpeed(int a, bool sound=false)
Definition: ActionMode.cs:1479

References ChangeGameSpeed().

Referenced by Scene.FocusAndPause().

◆ RefreshTexts()

void ActionMode.RefreshTexts ( )
inline

Definition at line 417 of file ActionMode.cs.

418 {
420 {
421 return;
422 }
425 {
426 foreach (Spatial child in EClass._zone.children)
427 {
428 if (!child.destryoed)
429 {
430 Sprite sprite = null;
431 if (child.isRandomSite && !child.isConquered && child.visitCount > 0)
432 {
434 }
435 else if (child.isConquered)
436 {
438 }
439 else if (!child.IsPlayerFaction && child is Zone_Field && child.isDeathLocation)
440 {
441 sprite = EClass.core.refs.tcs.spriteDeath;
442 }
443 if ((bool)sprite)
444 {
445 TCSimpleText tCSimpleText = TCSimpleText.SpawnIcon(sprite);
446 simpleTexts.Add(tCSimpleText);
447 Cell cell = child.RegionPos.cell;
448 tCSimpleText.transform.position = cell.GetPoint().PositionTopdown() + EClass.setting.render.tc.simpleTextPos;
449 }
450 }
451 }
452 }
454 {
455 return;
456 }
457 foreach (Card item in ((IEnumerable<Card>)EClass._map.things).Concat((IEnumerable<Card>)EClass._map.charas))
458 {
459 string simpleText = GetSimpleText(item);
460 if (!simpleText.IsEmpty())
461 {
462 TCSimpleText tCSimpleText2 = TCSimpleText.Spawn();
463 Popper.SetText(tCSimpleText2.tm, simpleText);
464 simpleTexts.Add(tCSimpleText2);
465 tCSimpleText2.transform.position = item.pos.Position() + EClass.setting.render.tc.simpleTextPos;
466 }
467 }
468 if (!Application.isEditor)
469 {
470 return;
471 }
472 foreach (KeyValuePair<int, int> backerObj in EClass._map.backerObjs)
473 {
474 SourceBacker.Row row = EClass.sources.backers.map[backerObj.Value];
475 string text = "Backer:" + row.id + "/" + row.Name;
476 if (row.isStatic != 0)
477 {
478 text = "★" + text;
479 }
480 TCSimpleText tCSimpleText3 = TCSimpleText.Spawn();
481 Popper.SetText(tCSimpleText3.tm, text);
482 simpleTexts.Add(tCSimpleText3);
483 Cell cell2 = EClass._map.GetCell(backerObj.Key);
484 tCSimpleText3.transform.position = cell2.GetPoint().Position() + EClass.setting.render.tc.simpleTextPos;
485 }
486 foreach (Card card in EClass._map.Cards)
487 {
488 if (!card.isBackerContent)
489 {
490 continue;
491 }
492 SourceBacker.Row row2 = EClass.sources.backers.map.TryGetValue(card.c_idBacker);
493 if (row2 != null)
494 {
495 string text2 = "Backer:" + row2.id + "/" + row2.Name;
496 if (row2.isStatic != 0)
497 {
498 text2 = "★" + text2;
499 }
500 TCSimpleText tCSimpleText4 = TCSimpleText.Spawn();
501 Popper.SetText(tCSimpleText4.tm, text2);
502 simpleTexts.Add(tCSimpleText4);
503 tCSimpleText4.transform.position = card.renderer.position + EClass.setting.render.tc.simpleTextPos;
504 }
505 }
506 }
virtual bool ShowMaskedThings
Definition: ActionMode.cs:221
virtual string GetSimpleText(Card c)
Definition: ActionMode.cs:508
Definition: Cell.cs:7
Point GetPoint()
Definition: Cell.cs:1101
Sprite spriteConquer
Definition: CoreRef.cs:244
Sprite spriteDeath
Definition: CoreRef.cs:246
Sprite spriteVisited
Definition: CoreRef.cs:242
TCs tcs
Definition: CoreRef.cs:337
static SourceManager sources
Definition: EClass.cs:42
static GameSetting setting
Definition: EClass.cs:34
RenderSetting render
Definition: GameSetting.cs:301
Cell GetCell(int index)
Definition: Map.cs:881
IEnumerable< Card > Cards
Definition: Map.cs:135
Dictionary< int, int > backerObjs
Definition: Map.cs:67
ref Vector3 PositionTopdown()
Definition: Point.cs:545
Definition: Popper.cs:6
Popper SetText(string s, Color c=default(Color))
Definition: Popper.cs:28
SourceBacker backers
bool isRandomSite
Definition: Spatial.cs:334
bool isDeathLocation
Definition: Spatial.cs:418
bool IsPlayerFaction
Definition: Spatial.cs:443
virtual bool IsRegion
Definition: Spatial.cs:501
bool destryoed
Definition: Spatial.cs:45
bool isConquered
Definition: Spatial.cs:382
virtual Point RegionPos
Definition: Spatial.cs:546
int visitCount
Definition: Spatial.cs:154
List< Spatial > children
Definition: Spatial.cs:37
static TCSimpleText SpawnIcon(Sprite sprite=null)
Definition: TCSimpleText.cs:16
static TCSimpleText Spawn()
Definition: TCSimpleText.cs:11
TextMesh tm
Definition: TCSimpleText.cs:5

References EClass._map, EClass._zone, Map.backerObjs, SourceManager.backers, card, Map.Cards, Point.cell, Map.charas, Spatial.children, ClearSimpleTexts(), EClass.core, Spatial.destryoed, Map.GetCell(), Cell.GetPoint(), GetSimpleText(), IsBuildMode, Spatial.isConquered, Spatial.isDeathLocation, Core.IsGameStarted, Spatial.IsPlayerFaction, Spatial.isRandomSite, Spatial.IsRegion, SourceBacker.Row.isStatic, item, SourceBacker.Row.Name, Point.Position(), Point.PositionTopdown(), Core.refs, Spatial.RegionPos, GameSetting.render, Popper.SetText(), EClass.setting, ShowMaskedThings, GameSetting.RenderSetting.TCSetting.simpleTextPos, simpleTexts, EClass.sources, TCSimpleText.Spawn(), TCSimpleText.SpawnIcon(), CoreRef.TCs.spriteConquer, CoreRef.TCs.spriteDeath, CoreRef.TCs.spriteVisited, GameSetting.RenderSetting.tc, CoreRef.tcs, Map.things, TCSimpleText.tm, and Spatial.visitCount.

Referenced by Activate(), and UpdateInput().

◆ RotateUnderMouse()

virtual void ActionMode.RotateUnderMouse ( )
inlinevirtual

Reimplemented in AM_Copy.

Definition at line 1421 of file ActionMode.cs.

1422 {
1423 SE.Rotate();
1424 Point hitPoint = Scene.HitPoint;
1425 if (!hitPoint.IsValid)
1426 {
1427 return;
1428 }
1429 hitPoint.cell.RotateAll();
1430 if (EClass.debug.enable)
1431 {
1432 hitPoint.growth?.Grow(100);
1433 if (hitPoint.Installed?.trait is TraitSeed)
1434 {
1435 (hitPoint.Installed.trait as TraitSeed).TrySprout(force: true);
1436 }
1437 }
1438 }
void RotateAll()
Definition: Cell.cs:1489
bool enable
Definition: CoreDebug.cs:285
void Grow(int mtp=1)
Definition: GrowSystem.cs:321
Definition: Point.cs:9
GrowSystem growth
Definition: Point.cs:77
Definition: Scene.cs:8
static Point HitPoint
Definition: Scene.cs:21

References Point.cell, EClass.debug, CoreDebug.enable, GrowSystem.Grow(), Point.growth, Scene.HitPoint, Point.Installed, Point.IsValid, Cell.RotateAll(), and Card.trait.

Referenced by OnRotate().

◆ SEExecuteSummary()

virtual void ActionMode.SEExecuteSummary ( )
inlinevirtual

Reimplemented in AM_BaseTerrain.

Definition at line 292 of file ActionMode.cs.

293 {
294 SE.Play("plan");
295 }

Referenced by BaseTileSelector.ExecuteSummary().

◆ SetCursorOnMap()

◆ SetMouseInfo()

virtual ref string ActionMode.SetMouseInfo ( ref string  s)
inlinevirtual

Reimplemented in AM_Select.

Definition at line 1440 of file ActionMode.cs.

1441 {
1442 return ref s;
1443 }

Referenced by BaseTileSelector.RefreshMouseInfo().

◆ ShowLayer()

void ActionMode.ShowLayer ( )
inline

Definition at line 1352 of file ActionMode.cs.

1353 {
1354 layer = OnShowLayer();
1355 if (layer != null)
1356 {
1358 }
1359 else
1360 {
1362 }
1363 if ((bool)EClass.core.screen.tileSelector)
1364 {
1366 }
1367 EClass.ui.hud.hint.Refresh();
1368 }
virtual Layer OnShowLayer()
Definition: ActionMode.cs:1370
virtual CursorInfo DefaultCursor
Definition: ActionMode.cs:151
BaseGameScreen screen
Definition: Core.cs:67

References EClass.core, DefaultCursor, layer, BaseTileSelector.OnChangeActionMode(), OnShowLayer(), Core.screen, CursorSystem.SetCursor(), BaseGameScreen.tileSelector, and EClass.ui.

Referenced by Activate().

◆ TogglePause()

void ActionMode.TogglePause ( )
inline

Definition at line 1445 of file ActionMode.cs.

1446 {
1447 if (IsAdv)
1448 {
1449 EClass.core.config.game.autopause = !EClass.core.config.game.autopause;
1451 {
1452 SE.Play("tick0");
1453 }
1454 else
1455 {
1456 SE.Play("tick1");
1457 }
1458 }
1459 else if (EClass.game.gameSpeedIndex != 0)
1460 {
1461 Pause(sound: true);
1462 }
1463 else
1464 {
1465 UnPause(sound: true);
1466 }
1467 }
static bool IsAdv
Definition: ActionMode.cs:117
void UnPause(bool sound=false)
Definition: ActionMode.cs:1474
new GameConfig game
Definition: CoreConfig.cs:596

References CoreConfig.GameConfig.autopause, Core.config, EClass.core, CoreConfig.game, EClass.game, Game.gameSpeedIndex, IsAdv, Pause, and UnPause().

◆ TopHeight()

virtual int ActionMode.TopHeight ( Point  p)
inlinevirtual

Reimplemented in AM_Terrain.

Definition at line 287 of file ActionMode.cs.

288 {
289 return -1;
290 }

Referenced by BaseTileSelector.RefreshMouseInfo().

◆ TryRightClickCloseWidget()

void ActionMode.TryRightClickCloseWidget ( )
inline

Definition at line 1208 of file ActionMode.cs.

1209 {
1210 Widget componentOf = InputModuleEX.GetComponentOf<Widget>();
1211 if ((bool)componentOf && componentOf.RightClickToClose)
1212 {
1213 componentOf.Close();
1214 }
1215 }
Definition: Widget.cs:7
virtual bool RightClickToClose
Definition: Widget.cs:208
void Close()
Definition: Widget.cs:319

References Widget.Close(), and Widget.RightClickToClose.

◆ TryShowWidgetMenu()

bool ActionMode.TryShowWidgetMenu ( )
inline

Definition at line 1217 of file ActionMode.cs.

1218 {
1219 Widget componentOf = InputModuleEX.GetComponentOf<Widget>();
1220 if ((bool)componentOf && componentOf.CanShowContextMenu())
1221 {
1222 if (componentOf.RightClickToClose)
1223 {
1224 componentOf.Close();
1225 return true;
1226 }
1227 componentOf.ShowContextMenu();
1228 return true;
1229 }
1230 return false;
1231 }
void ShowContextMenu()
Definition: Widget.cs:601
virtual bool CanShowContextMenu()
Definition: Widget.cs:596

References Widget.CanShowContextMenu(), Widget.Close(), Widget.RightClickToClose, and Widget.ShowContextMenu().

Referenced by UpdateInput().

◆ UnPause()

void ActionMode.UnPause ( bool  sound = false)
inline

Definition at line 1474 of file ActionMode.cs.

1475 {
1477 }
int lastGameSpeedIndex
Definition: Game.cs:225

References ChangeGameSpeed(), EClass.game, and Game.lastGameSpeedIndex.

Referenced by TogglePause().

◆ UpdateInput()

void ActionMode.UpdateInput ( )
inline

Definition at line 570 of file ActionMode.cs.

571 {
572 mpos = Input.mousePosition;
573 if (!IsNoMap)
574 {
576 if ((bool)WidgetMouseover.Instance)
577 {
579 }
580 }
581 if (LayerAbility.hotElement != null)
582 {
586 {
588 {
590 SE.SelectHotitem();
591 }
592 else
593 {
594 ButtonGrid componentOf = InputModuleEX.GetComponentOf<ButtonGrid>();
595 if ((bool)componentOf && componentOf.invOwner != null && componentOf.invOwner.owner == EClass.pc && (componentOf.card == null || componentOf.card.trait is TraitAbility) && !(componentOf.invOwner is InvOwnerEquip))
596 {
597 if (componentOf.card != null)
598 {
599 componentOf.card.Destroy();
600 }
601 SE.Equip();
603 Thing thing = ThingGen.Create("ability");
604 int num = ((componentOf.invOwner is InvOwnerHotbar) ? 1 : 0);
605 componentOf.invOwner.Container.AddThing(thing, tryStack: false, componentOf.index, num);
606 thing.c_idAbility = hotElement.source.alias;
607 thing.invY = num;
608 thing.invX = componentOf.index;
609 WidgetCurrentTool.dirty = true;
610 }
611 else
612 {
613 SE.BeepSmall();
614 }
615 }
617 }
619 {
621 }
622 }
623 else
624 {
625 hotElementTimer = 0f;
626 }
628 if (EClass.ui.isPointerOverUI && (EInput.leftMouse.down || EInput.rightMouse.down || (EClass.core.config.ui.autoFocusWindow && !Input.GetMouseButton(0))))
629 {
630 LayerInventory componentOf2 = InputModuleEX.GetComponentOf<LayerInventory>();
631 if (componentOf2 != null)
632 {
633 LayerInventory layerInventory = LayerInventory.GetLayer(InputModuleEX.GetComponentOf<ButtonGrid>()?.card);
634 if ((bool)layerInventory)
635 {
636 LayerInventory.highlightInv = layerInventory.invs[0].owner;
637 }
638 if (focusTimer > 0.1f)
639 {
640 if (EClass.ui.layerFloat.layers.Contains(componentOf2) && !layerInventory)
641 {
642 componentOf2.transform.SetAsLastSibling();
643 }
644 LayerAbility componentOf3 = InputModuleEX.GetComponentOf<LayerAbility>();
645 if (componentOf3 != null && EClass.ui.layerFloat.layers.Contains(componentOf3))
646 {
647 componentOf3.transform.SetAsLastSibling();
648 }
649 focusTimer = 0f;
650 }
651 }
652 }
653 if ((EInput.isShiftDown && Input.GetMouseButton(0)) || (EInput.rightMouse.dragging2 && !Input.GetMouseButtonDown(1) && Input.GetMouseButton(1)))
654 {
655 bool rightMouse = !Input.GetMouseButtonDown(1) && Input.GetMouseButton(1);
656 ButtonGrid componentOf4 = InputModuleEX.GetComponentOf<ButtonGrid>();
657 if (componentOf4 != null && componentOf4.invOwner != null && componentOf4.card != null && componentOf4.invOwner.CanShiftClick(componentOf4, rightMouse) && EClass.ui.AllowInventoryInteractions)
658 {
659 componentOf4.invOwner.OnShiftClick(componentOf4, rightMouse);
660 }
661 }
663 {
664 LayerInventory componentOf5 = InputModuleEX.GetComponentOf<LayerInventory>();
665 if (componentOf5 != null && EClass.ui.layerFloat.layers.Contains(componentOf5) && EInput.rightMouse.down && !componentOf5.mainInv && !InputModuleEX.GetComponentOf<UIButton>() && !componentOf5.windows[0].saveData.noRightClickClose)
666 {
667 componentOf5.Close();
668 }
669 if (EClass.ui.contextMenu.isActive)
670 {
671 EClass.ui.contextMenu.currentMenu.Hide();
673 Layer.rightClicked = false;
674 }
675 if (DropdownGrid.IsActive && !EClass.ui.GetLayer<LayerInfo>())
676 {
679 Layer.rightClicked = false;
680 }
681 }
683 {
684 EInput.Consume();
685 }
687 bool flag = (EInput.mouse3.clicked && input.mouse3Click == CoreConfig.GameFunc.AllAction) || (EInput.mouse4.clicked && input.mouse4Click == CoreConfig.GameFunc.AllAction) || (EInput.mouse3.pressedLong && input.mouse3PressLong == CoreConfig.GameFunc.AllAction) || (EInput.mouse4.pressedLong && input.mouse4PressLong == CoreConfig.GameFunc.AllAction);
689 {
690 UIButton componentOf6 = InputModuleEX.GetComponentOf<UIButton>();
691 if ((bool)componentOf6 && componentOf6.CanMiddleClick() && (flag || EInput.middleMouse.clicked || EInput.middleMouse.pressedLong))
692 {
693 componentOf6.OnMiddleClick(flag);
694 }
695 }
696 if ((bool)EClass.ui.contextMenu.currentMenu)
697 {
698 UIContextMenu.timeSinceClosed = 0f;
699 }
700 else
701 {
702 UIContextMenu.timeSinceClosed += Time.deltaTime;
703 }
704 if (EClass.ui.currentDrag != null)
705 {
706 EClass.ui.OnDrag();
708 {
709 if (Input.GetMouseButton(0) && EInput.rightMouse.down)
710 {
711 EClass.ui.OnDragSpecial();
712 }
713 else
714 {
716 }
717 }
718 }
719 ButtonState middleMouse = EInput.middleMouse;
720 if (middleMouse.pressedLongAction != null)
721 {
722 if (middleMouse.pressedLong)
723 {
724 middleMouse.pressedLongAction();
725 middleMouse.pressedLongAction = null;
726 }
727 else if (!EInput.middleMouse.pressing)
728 {
729 middleMouse.pressedLongAction = null;
730 }
731 }
732 EClass.ui.UpdateInput();
733 if (EInput.action == EAction.Mute)
734 {
736 }
737 if (AllowGeneralInput && !EClass.ui.IsDragging)
738 {
739 if (Input.GetKeyDown(KeyCode.Tab) && !EClass.debug.debugInput && !EClass.ui.BlockInput && !EInput.waitReleaseAnyKey)
740 {
741 if (!EClass.ui.IsInventoryOpen)
742 {
743 SE.PopInventory();
744 }
745 EClass.ui.ToggleInventory();
746 }
747 if (!EClass.ui.BlockInput && !IsBuildMode && !EInput.waitReleaseAnyKey)
748 {
749 switch (EInput.action)
750 {
751 case EAction.MenuChara:
752 EClass.ui.ToggleLayer<LayerChara>()?.SetChara(EClass.pc);
753 break;
754 case EAction.MenuJournal:
755 EClass.ui.ToggleLayer<LayerJournal>();
756 break;
757 case EAction.MenuAbility:
758 if (!EClass.debug.enable)
759 {
760 EClass.ui.ToggleAbility();
761 }
762 break;
763 case EAction.MenuInventory:
764 EClass.ui.ToggleInventory();
765 break;
766 }
767 }
768 if (!FixFocus)
769 {
771 }
772 if (!EClass.ui.canvas.enabled && EInput.IsAnyKeyDown())
773 {
774 EClass.ui.ToggleCanvas();
775 EInput.Consume();
776 return;
777 }
778 }
779 if (EInput.action == EAction.Examine && !IsBuildMode)
780 {
781 ButtonGrid componentOf7 = InputModuleEX.GetComponentOf<ButtonGrid>();
782 Card card = null;
783 if ((bool)componentOf7 && componentOf7.card != null)
784 {
785 card = componentOf7.card;
786 }
787 if (card == null)
788 {
789 UIItem componentOf8 = InputModuleEX.GetComponentOf<UIItem>();
790 if ((bool)componentOf8 && componentOf8.refObj is Thing)
791 {
792 card = (Thing)componentOf8.refObj;
793 }
794 }
795 if (card == null)
796 {
797 LayerCraft layerCraft = EClass.ui.GetLayer<LayerCraft>();
798 if ((bool)layerCraft)
799 {
800 card = layerCraft.product;
801 }
802 }
803 if (card != null)
804 {
805 if ((bool)EClass.ui.GetLayer<LayerInfo>())
806 {
807 EClass.ui.RemoveLayer<LayerInfo>();
808 }
809 EClass.ui.AddLayer<LayerInfo>().Set(card, _examine: true);
810 }
811 }
813 {
815 }
816 if (EClass.ui.BlockActions)
817 {
818 return;
819 }
820 if (AllowBuildModeShortcuts && Input.GetKeyDown(KeyCode.Q) && Picker.CanActivate)
821 {
823 }
825 {
826 Point hitPoint = Scene.HitPoint;
827 bool flag2 = EInput.wheel > 0;
828 if (EClass.scene.mouseTarget.card != null)
829 {
831 if (card2.isThing && card2.IsInstalled)
832 {
833 SourceMaterial.Row currentMat = (card2.isDyed ? card2.DyeMat : card2.material);
834 List<SourceMaterial.Row> source = EClass.sources.materials.rows.Where((SourceMaterial.Row m) => m.thing == currentMat.thing).ToList();
836 {
837 source = EClass.sources.materials.rows;
838 }
839 SourceMaterial.Row row = (flag2 ? source.NextItem(currentMat) : source.PrevItem(currentMat));
840 if (row == null)
841 {
842 row = card2.DyeMat;
843 }
844 if (EInput.isAltDown)
845 {
846 row = lastEditorMat;
847 }
848 if (card2.isDyed)
849 {
850 card2.Dye(row);
851 }
852 else
853 {
854 card2.ChangeMaterial(row);
855 }
856 lastEditorMat = row;
857 Msg.Say(row.GetName() + "(" + row.alias + ")");
858 }
859 }
860 else if (hitPoint.HasObj)
861 {
862 SourceMaterial.Row matObj = hitPoint.cell.matObj;
863 List<SourceMaterial.Row> rows = EClass.sources.materials.rows;
864 SourceMaterial.Row row2 = (flag2 ? rows.NextItem(matObj) : rows.PrevItem(matObj));
865 if (EInput.isAltDown)
866 {
867 row2 = lastEditorMat;
868 }
869 hitPoint.cell.objMat = (byte)row2.id;
870 lastEditorMat = row2;
871 Msg.Say(row2.GetName());
872 }
873 EInput.Consume();
874 }
876 {
877 if (EInput.hotkey != -1)
878 {
879 WidgetCurrentTool.Instance.Select(EInput.hotkey, fromHotkey: true);
881 }
882 else if (!EClass.debug.enable && EInput.functionkey != -1)
883 {
885 if ((bool)hotbarExtra)
886 {
887 hotbarExtra.TryUse(EInput.functionkey);
888 }
889 }
890 }
892 if (EClass.debug.enable)
893 {
895 }
897 if (textTimer > 0.1f)
898 {
899 textTimer = 0f;
900 RefreshTexts();
901 }
903 {
905 {
906 DoFunc(input.b_middleClick);
907 }
909 {
912 }
914 {
915 DoFunc(input.b_mouse3Click);
916 }
917 else if (EInput.mouse3.pressedLong)
918 {
921 }
923 {
924 DoFunc(input.b_mouse4Click);
925 }
926 else if (EInput.mouse4.pressedLong)
927 {
930 }
931 }
932 }
void UpdatePlans()
Definition: AM_Adv.cs:410
virtual bool AllowBuildModeShortcuts
Definition: ActionMode.cs:213
static float hotElementTimer
Definition: ActionMode.cs:103
static float textTimer
Definition: ActionMode.cs:89
virtual void OnUpdateInput()
Definition: ActionMode.cs:1029
bool TryShowWidgetMenu()
Definition: ActionMode.cs:1217
virtual bool AllowGeneralInput
Definition: ActionMode.cs:219
virtual bool AllowHotbar
Definition: ActionMode.cs:217
void InputMovement()
Definition: ActionMode.cs:934
void DoFunc(CoreConfig.GameFuncBuild func)
Definition: ActionMode.cs:1033
static SourceMaterial.Row lastEditorMat
Definition: ActionMode.cs:81
virtual bool IsNoMap
Definition: ActionMode.cs:233
static AM_Adv AdvOrRegion
Definition: ActionMode.cs:106
static float focusTimer
Definition: ActionMode.cs:101
SourceElement.Row source
Definition: ButtonAbility.cs:8
Card card
Definition: ButtonGrid.cs:24
InvOwner invOwner
Definition: ButtonGrid.cs:28
bool dragging2
Definition: ButtonState.cs:45
void Consume()
Definition: ButtonState.cs:184
Action pressedLongAction
Definition: ButtonState.cs:61
static void SetNormalRarity(bool fixedMat=false)
virtual bool isThing
Definition: Card.cs:1957
SourceMaterial.Row DyeMat
Definition: Card.cs:1816
SourceMaterial.Row material
Definition: Card.cs:1927
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
Definition: Card.cs:2838
Thing AddThing(string id, int lv=-1)
Definition: Card.cs:2901
void Dye(string idMat)
Definition: Card.cs:5267
bool isDyed
Definition: Card.cs:430
void Destroy()
Definition: Card.cs:4538
bool IsInstalled
Definition: Card.cs:2241
SourceMaterial.Row matObj
Definition: Cell.cs:1036
GameFuncBuild b_mouse4PressLong
Definition: CoreConfig.cs:257
GameFuncBuild b_middlePressLong
Definition: CoreConfig.cs:249
GameFuncBuild b_mouse3Click
Definition: CoreConfig.cs:251
GameFuncBuild b_mouse3PressLong
Definition: CoreConfig.cs:253
GameFuncBuild b_middleClick
Definition: CoreConfig.cs:247
GameFuncBuild b_mouse4Click
Definition: CoreConfig.cs:255
new UISetting ui
Definition: CoreConfig.cs:588
DebugHotkey debugHotkeys
Definition: CoreDebug.cs:142
void UpdateInput()
Definition: CoreDebug.cs:840
bool godBuild
Definition: CoreDebug.cs:303
Definition: Core.cs:14
CoreDebug debug
Definition: Core.cs:31
static float delta
Definition: Core.cs:17
static bool IsActive
Definition: DropdownGrid.cs:8
static DropdownGrid Instance
Definition: DropdownGrid.cs:10
void Deactivate()
static Player player
Definition: EClass.cs:12
static bool IsAnyKeyDown(bool includeAxis=true, bool _skipframe=true)
Definition: EInput.cs:619
static bool isCancel
Definition: EInput.cs:378
static bool isCtrlDown
Definition: EInput.cs:263
static bool isAltDown
Definition: EInput.cs:265
static ButtonState buttonCtrl
Definition: EInput.cs:361
static ButtonState leftMouse
Definition: EInput.cs:349
static bool isShiftDown
Definition: EInput.cs:261
static int functionkey
Definition: EInput.cs:285
static bool waitReleaseAnyKey
Definition: EInput.cs:317
static int hotkey
Definition: EInput.cs:283
static EAction action
Definition: EInput.cs:259
static TaskBuild taskBuild
Definition: HotItemHeld.cs:7
virtual void OnShiftClick(ButtonGrid b, bool rightMouse=false)
Definition: InvOwner.cs:944
Card Container
Definition: InvOwner.cs:540
virtual bool CanShiftClick(ButtonGrid b, bool rightMouse=false)
Definition: InvOwner.cs:981
static ButtonAbility hotElement
Definition: LayerAbility.cs:23
static void ClearHotElement()
Thing product
Definition: LayerCraft.cs:20
static LayerDrama Instance
Definition: LayerDrama.cs:20
List< UIInventory > invs
static LayerInventory GetLayer(Card t)
static void Close(Thing t)
void SetCurrentHotItem(HotItem item)
Definition: Player.cs:2046
void Update(Point _pos)
Definition: PointTarget.cs:52
bool HasObj
Definition: Point.cs:137
void ToggleMuteBGM()
Definition: Scene.cs:963
SourceMaterial materials
static Thing Create(string id, int idMat=-1, int lv=-1)
Definition: ThingGen.cs:53
Definition: Thing.cs:8
virtual bool CanMiddleClick()
Definition: UIButton.cs:212
virtual void OnMiddleClick(bool forceClick)
Definition: UIButton.cs:217
Definition: UIItem.cs:5
object refObj
Definition: UIItem.cs:30
void Select(int index, bool fromHotkey=false)
static WidgetHotbar HotbarExtra
Definition: WidgetHotbar.cs:40
void TryUse(int index)
static WidgetMouseover Instance

References EInput.action, Scene.actionMode, Activate(), Card.AddThing(), AdvOrRegion, AllowBuildModeShortcuts, AllowGeneralInput, AllowHotbar, CoreConfig.UISetting.autoFocusWindow, CoreConfig.InputSetting.b_middleClick, CoreConfig.InputSetting.b_middlePressLong, CoreConfig.InputSetting.b_mouse3Click, CoreConfig.InputSetting.b_mouse3PressLong, CoreConfig.InputSetting.b_mouse4Click, CoreConfig.InputSetting.b_mouse4PressLong, EInput.buttonCtrl, AM_Picker.CanActivate, UIButton.CanMiddleClick(), InvOwner.CanShiftClick(), ButtonGrid.card, card, PointTarget.card, Point.cell, Card.ChangeMaterial(), LayerAbility.ClearHotElement(), ButtonState.clicked, LayerInventory.Close(), Core.config, ButtonState.Consume(), EInput.Consume(), InvOwner.Container, EClass.core, ThingGen.Create(), DropdownGrid.Deactivate(), Core.debug, EClass.debug, CoreDebug.debugHotkeys, Core.delta, Card.Destroy(), DoFunc(), CoreConfig.GameConfig.doubleClickToHold, ButtonState.down, ButtonState.dragging2, Card.Dye(), Card.DyeMat, CoreDebug.enable, FixFocus, focusTimer, EInput.functionkey, CoreConfig.game, LayerInventory.GetLayer(), CoreDebug.godBuild, Point.HasObj, Scene.HitPoint, WidgetHotbar.HotbarExtra, LayerAbility.hotElement, hotElementTimer, EInput.hotkey, SourceMaterial.Row.id, ButtonGrid.index, CoreConfig.input, InputMovement(), DropdownGrid.Instance, LayerDrama.Instance, WidgetCurrentTool.Instance, WidgetMouseover.Instance, ButtonGrid.invOwner, LayerInventory.invs, DropdownGrid.IsActive, EInput.isAltDown, EInput.IsAnyKeyDown(), IsBuildMode, EInput.isCancel, EInput.isCtrlDown, Card.isDyed, Card.IsInstalled, IsNoMap, EInput.isShiftDown, Card.isThing, Point.IsValid, lastEditorMat, EInput.leftMouse, Card.material, SourceManager.materials, Cell.matObj, EInput.middleMouse, EInput.mouse3, EInput.mouse4, CoreConfig.InputSetting.mouse4Click, CoreConfig.InputSetting.mouse4PressLong, Scene.mouseTarget, mpos, UIButton.OnMiddleClick(), InvOwner.OnShiftClick(), OnUpdateInput(), EClass.pc, Picker, EClass.player, ButtonState.pressedLong, ButtonState.pressedLongAction, ButtonState.pressing, LayerCraft.product, UIItem.refObj, WidgetMouseover.Refresh(), RefreshTexts(), EInput.rightMouse, Msg.Say(), EClass.scene, WidgetCurrentTool.Select(), Player.SetCurrentHotItem(), CardBlueprint.SetNormalRarity(), ButtonAbility.source, EClass.sources, WidgetCurrentTool.SwitchPage(), HotItemHeld.taskBuild, textTimer, SourceMaterial.Row.thing, Scene.ToggleMuteBGM(), TryShowWidgetMenu(), WidgetHotbar.TryUse(), CoreConfig.ui, EClass.ui, PointTarget.Update(), CoreDebug.UpdateInput(), AM_Adv.UpdatePlans(), EInput.waitReleaseAnyKey, EInput.wheel, and Layer.windows.

Referenced by Scene.OnUpdate().

Member Data Documentation

◆ Adv

◆ AdvTarget

AM_ADV_Target ActionMode.AdvTarget
static

Definition at line 19 of file ActionMode.cs.

Referenced by OnGameInstantiated().

◆ Bird

◆ Blueprint

AM_Blueprint ActionMode.Blueprint
static

Definition at line 47 of file ActionMode.cs.

Referenced by OnGameInstantiated(), and TraitBlueprint.OnRead().

◆ brushRadius

◆ Build

◆ Cinema

◆ Copy

◆ CreateArea

AM_CreateArea ActionMode.CreateArea
static

◆ Cut

AM_Cut ActionMode.Cut
static

◆ Deconstruct

AM_Deconstruct ActionMode.Deconstruct
static

◆ DefaultMode

◆ Dig

◆ EditArea

◆ EditMarker

AM_EditMarker ActionMode.EditMarker
static

◆ EloMap

AM_EloMap ActionMode.EloMap
static

Definition at line 21 of file ActionMode.cs.

Referenced by Widget.Config.IsInRightMode(), and LayerNewZone.OnClickExit().

◆ ExpandArea

◆ FlagCell

◆ focusTimer

float ActionMode.focusTimer
staticprivate

Definition at line 101 of file ActionMode.cs.

Referenced by UpdateInput().

◆ GameSpeeds

float [] ActionMode.GameSpeeds = new float[4] { 0f, 1f, 2f, 5f }
static

Definition at line 93 of file ActionMode.cs.

◆ Harvest

AM_Harvest ActionMode.Harvest
static

Definition at line 37 of file ActionMode.cs.

Referenced by OnGameInstantiated().

◆ hotElementTimer

float ActionMode.hotElementTimer
static

Definition at line 103 of file ActionMode.cs.

Referenced by UpdateInput().

◆ ignoreSound

bool ActionMode.ignoreSound
static

Definition at line 83 of file ActionMode.cs.

Referenced by Activate().

◆ Inspect

◆ LastBuildMode

ActionMode ActionMode.LastBuildMode
static

Definition at line 79 of file ActionMode.cs.

Referenced by Activate(), OnGameInstantiated(), and BuildMenu.Toggle().

◆ lastEditorMat

SourceMaterial.Row ActionMode.lastEditorMat
static

Definition at line 81 of file ActionMode.cs.

Referenced by UpdateInput().

◆ layer

Layer ActionMode.layer

◆ Mine

◆ MiniGame

AM_MiniGame ActionMode.MiniGame
static

Definition at line 27 of file ActionMode.cs.

◆ mpos

Vector3 ActionMode.mpos
staticprotected

Definition at line 91 of file ActionMode.cs.

Referenced by InputMovement(), and UpdateInput().

◆ NewZone

AM_NewZone ActionMode.NewZone
static

Definition at line 29 of file ActionMode.cs.

Referenced by Widget.Config.IsInRightMode(), and OnGameInstantiated().

◆ NoMap

◆ Paint

AM_Paint ActionMode.Paint
static

Definition at line 75 of file ActionMode.cs.

Referenced by OnGameInstantiated(), and TraitPainter.OnUse().

◆ Picker

◆ Populate

AM_Populate ActionMode.Populate
static

◆ Region

AM_Region ActionMode.Region
static

◆ RemoveDesignation

AM_RemoveDesignation ActionMode.RemoveDesignation
static

◆ Select

AM_Select ActionMode.Select
static

◆ Sim

◆ simpleTexts

List<TCSimpleText> ActionMode.simpleTexts = new List<TCSimpleText>()
static

Definition at line 95 of file ActionMode.cs.

Referenced by ClearSimpleTexts(), and RefreshTexts().

◆ smoothX

float ActionMode.smoothX = 0f
staticprivate

Definition at line 85 of file ActionMode.cs.

Referenced by InputMovement().

◆ smoothY

float ActionMode.smoothY = 0f
staticprivate

Definition at line 87 of file ActionMode.cs.

Referenced by InputMovement().

◆ StateEditor

AM_StateEditor ActionMode.StateEditor
static

◆ Terrain

AM_Terrain ActionMode.Terrain
static

◆ textTimer

float ActionMode.textTimer = 0f
staticprivate

Definition at line 89 of file ActionMode.cs.

Referenced by UpdateInput().

◆ Title

AM_Title ActionMode.Title = new AM_Title()
static

Definition at line 9 of file ActionMode.cs.

Referenced by Scene.Init(), TileSelectorElona.OnUpdateInput(), and LayerEmbark.Update().

◆ View

AM_ViewZone ActionMode.View
static

Definition at line 13 of file ActionMode.cs.

Referenced by Scene.Init(), Widget.Config.IsInRightMode(), and OnGameInstantiated().

◆ ViewMap

AM_ViewMap ActionMode.ViewMap
static

◆ Visibility

AM_Visibility ActionMode.Visibility
static

Property Documentation

◆ AdvOrRegion

AM_Adv ActionMode.AdvOrRegion
staticget

Definition at line 105 of file ActionMode.cs.

106 {
107 get
108 {
109 if (!EClass._zone.IsRegion)
110 {
111 return Adv;
112 }
113 return Region;
114 }
115 }
static AM_Region Region
Definition: ActionMode.cs:17

Referenced by UpdateInput().

◆ AllowAutoClick

virtual bool ActionMode.AllowAutoClick
get

Definition at line 163 of file ActionMode.cs.

Referenced by BaseTileSelector.OnUpdate().

◆ AllowBuildModeShortcuts

virtual bool ActionMode.AllowBuildModeShortcuts
get

Definition at line 213 of file ActionMode.cs.

Referenced by UpdateInput().

◆ AllowGeneralInput

virtual bool ActionMode.AllowGeneralInput
get

Definition at line 219 of file ActionMode.cs.

Referenced by UpdateInput().

◆ AllowHotbar

virtual bool ActionMode.AllowHotbar
get

Definition at line 217 of file ActionMode.cs.

Referenced by UpdateInput().

◆ AllowMiddleClickFunc

virtual bool ActionMode.AllowMiddleClickFunc
get

Definition at line 215 of file ActionMode.cs.

◆ AllowWheelZoom

virtual bool ActionMode.AllowWheelZoom
get

Definition at line 225 of file ActionMode.cs.

Referenced by InputWheel().

◆ AreaHihlight

virtual AreaHighlightMode ActionMode.AreaHihlight
get

Definition at line 169 of file ActionMode.cs.

Referenced by Area.OnHoverArea(), BaseTileSelector.OnUpdate(), and PointTarget.Update().

◆ boxType

virtual BaseTileSelector.BoxType ActionMode.boxType
get

Definition at line 127 of file ActionMode.cs.

◆ buildMenuMode

virtual BuildMenu.Mode ActionMode.buildMenuMode
get

Definition at line 185 of file ActionMode.cs.

186 {
187 get
188 {
189 if (!IsBuildMode)
190 {
191 return BuildMenu.Mode.None;
192 }
193 return BuildMenu.Mode.Hide;
194 }
195 }

◆ CanSelectTile

virtual bool ActionMode.CanSelectTile
get

Definition at line 171 of file ActionMode.cs.

Referenced by BaseTileSelector.OnUpdate().

◆ CanTargetFog

virtual bool ActionMode.CanTargetFog
get

Definition at line 209 of file ActionMode.cs.

Referenced by _HitTest(), OnRenderTile(), and OnRenderTileFloor().

◆ CanTargetOutsideBounds

virtual bool ActionMode.CanTargetOutsideBounds
get

Definition at line 173 of file ActionMode.cs.

Referenced by _HitTest().

◆ cardIconMode

virtual BaseTileMap.CardIconMode ActionMode.cardIconMode
get

Definition at line 229 of file ActionMode.cs.

Referenced by BaseTileMap.Draw(), and TileMapElona.Draw().

◆ ContinuousClick

virtual bool ActionMode.ContinuousClick
get

Definition at line 129 of file ActionMode.cs.

Referenced by BaseTileSelector.OnUpdate().

◆ CostMoney

virtual int ActionMode.CostMoney
get

◆ DefaultCursor

virtual CursorInfo ActionMode.DefaultCursor
get

Definition at line 151 of file ActionMode.cs.

Referenced by ShowLayer().

◆ enableMouseInfo

virtual bool ActionMode.enableMouseInfo
get

Definition at line 157 of file ActionMode.cs.

Referenced by BaseTileSelector.RefreshMouseInfo().

◆ FixFocus

virtual bool ActionMode.FixFocus
get

Definition at line 177 of file ActionMode.cs.

Referenced by InputMovement(), and UpdateInput().

◆ gameSpeed

virtual float ActionMode.gameSpeed
get

◆ hideBalloon

virtual bool ActionMode.hideBalloon
get

Definition at line 159 of file ActionMode.cs.

Referenced by Activate().

◆ HideSubWidgets

virtual bool ActionMode.HideSubWidgets
get

Definition at line 179 of file ActionMode.cs.

◆ hitH

virtual int ActionMode.hitH
get

Definition at line 133 of file ActionMode.cs.

Referenced by CanProcessTiles().

◆ hitType

virtual BaseTileSelector.HitType ActionMode.hitType
get

Definition at line 123 of file ActionMode.cs.

Referenced by BaseTileSelector.OnUpdate().

◆ hitW

virtual int ActionMode.hitW
get

Definition at line 131 of file ActionMode.cs.

Referenced by CanProcessTiles().

◆ id

virtual string ActionMode.id
get

Definition at line 149 of file ActionMode.cs.

◆ idHelpTopic

virtual string ActionMode.idHelpTopic
get

Definition at line 153 of file ActionMode.cs.

◆ idSound

virtual string ActionMode.idSound
get

Definition at line 155 of file ActionMode.cs.

Referenced by Activate().

◆ IsActive

◆ IsAdv

bool ActionMode.IsAdv
staticget

◆ IsBuildMode

◆ IsNoMap

virtual bool ActionMode.IsNoMap
get

Definition at line 233 of file ActionMode.cs.

Referenced by UpdateInput().

◆ Multisize

bool ActionMode.Multisize
get

Definition at line 137 of file ActionMode.cs.

138 {
139 get
140 {
141 if (hitW == 1)
142 {
143 return hitW != 1;
144 }
145 return true;
146 }
147 }

Referenced by CanProcessTiles().

◆ SelectorHeight

virtual int ActionMode.SelectorHeight
get

Definition at line 223 of file ActionMode.cs.

◆ selectType

virtual BaseTileSelector.SelectType ActionMode.selectType
get

Definition at line 125 of file ActionMode.cs.

Referenced by GetHintText(), and BaseTileSelector.OnUpdate().

◆ ShouldHideBuildMenu

virtual bool ActionMode.ShouldHideBuildMenu
get

Definition at line 197 of file ActionMode.cs.

198 {
199 get
200 {
201 if (IsBuildMode)
202 {
203 return tileSelector.start != null;
204 }
205 return false;
206 }
207 }

◆ ShouldPauseGame

virtual bool ActionMode.ShouldPauseGame
get

Definition at line 175 of file ActionMode.cs.

Referenced by LayerMiniGame.OnUpdateInput().

◆ ShowActionHint

virtual bool ActionMode.ShowActionHint
get

Definition at line 165 of file ActionMode.cs.

Referenced by ActionHint.Refresh(), and ActionHint.UpdateText().

◆ ShowBuildWidgets

virtual bool ActionMode.ShowBuildWidgets
get

Definition at line 183 of file ActionMode.cs.

Referenced by Widget.Config.IsInRightMode(), and Widget.IsInRightMode().

◆ ShowExtraHint

virtual bool ActionMode.ShowExtraHint
get

Definition at line 243 of file ActionMode.cs.

Referenced by ExtraHint.OnChangeActionMode().

◆ ShowMaskedThings

virtual bool ActionMode.ShowMaskedThings
get

Definition at line 221 of file ActionMode.cs.

Referenced by BaseTileMap.DrawTile(), and RefreshTexts().

◆ ShowMouseoverTarget

virtual bool ActionMode.ShowMouseoverTarget
get

Definition at line 167 of file ActionMode.cs.

Referenced by PointTarget.Update().

◆ SubMenuAsGroup

virtual bool ActionMode.SubMenuAsGroup
get

Definition at line 239 of file ActionMode.cs.

Referenced by TerrainMenu.Show().

◆ SubMenuModeIndex

virtual int ActionMode.SubMenuModeIndex
get

Definition at line 241 of file ActionMode.cs.

Referenced by TerrainMenu.Show().

◆ Summary

HitSummary ActionMode.Summary
get

Definition at line 135 of file ActionMode.cs.

Referenced by CanProcessTiles().

◆ TargetGameScreen

virtual BaseGameScreen ActionMode.TargetGameScreen
get

Definition at line 231 of file ActionMode.cs.

Referenced by Activate().

◆ TargetZoom

virtual float ActionMode.TargetZoom
get

Definition at line 227 of file ActionMode.cs.

◆ textHintTitle

virtual string ActionMode.textHintTitle
get

Definition at line 161 of file ActionMode.cs.

Referenced by GetHintText().

◆ tileSelector

BaseTileSelector ActionMode.tileSelector
get

Definition at line 245 of file ActionMode.cs.

Referenced by OnRenderTile(), and OnRenderTileFloor().

◆ UseSubMenu

virtual bool ActionMode.UseSubMenu
get

Definition at line 235 of file ActionMode.cs.

Referenced by TerrainMenu.Show().

◆ UseSubMenuSlider

virtual bool ActionMode.UseSubMenuSlider
get

Definition at line 237 of file ActionMode.cs.

Referenced by TerrainMenu.Show().


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