Elin Decompiled Documentation EA 23.251 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 rndSeed (int a, int seed)
 
static int rnd (long a)
 
static int rnd (int a)
 
static int curve (int _a, int start, int step, int rate=75)
 
static int sqrt (int a)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 

Public Attributes

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 1266 of file ActionMode.cs.

1267 {
1269 {
1270 return HitResult.NoTarget;
1271 }
1272 if (!point.IsValid)
1273 {
1274 return HitResult.NoTarget;
1275 }
1276 if (!CanTargetFog && !point.cell.isSeen)
1277 {
1278 return HitResult.Default;
1279 }
1280 return HitTest(point, start);
1281 }
HitResult
Definition: HitResult.cs:2
virtual bool CanTargetOutsideBounds
Definition: ActionMode.cs:173
virtual HitResult HitTest(Point point, Point start)
Definition: ActionMode.cs:1283
virtual bool CanTargetFog
Definition: ActionMode.cs:209
bool isSeen
Definition: Cell.cs:282
bool ignoreBuildRule
Definition: CoreDebug.cs:185
Definition: EClass.cs:6
static CoreDebug debug
Definition: EClass.cs:49
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:1385
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:9
static Scene scene
Definition: EClass.cs:31
static Core core
Definition: EClass.cs:7
static Map _map
Definition: EClass.cs:19
static SoundManager Sound
Definition: EClass.cs:47
static UI ui
Definition: EClass.cs:17
Definition: EInput.cs:8
static void Consume(int _skipFrame)
Definition: EInput.cs:656
bool altUI
Definition: Game.cs:267
List< Thing > things
Definition: Map.cs:49
List< Chara > charas
Definition: Map.cs:81
bool hideBalloon
Definition: Scene.cs:147
ActionMode actionMode
Definition: Scene.cs:79
void UpdateCursor()
Definition: Scene.cs:755
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 1351 of file ActionMode.cs.

1352 {
1353 if (Multisize && Summary.countValid != hitW * hitH)
1354 {
1355 return false;
1356 }
1357 return true;
1358 }
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 1512 of file ActionMode.cs.

1513 {
1514 if (EClass.game.gameSpeedIndex != a)
1515 {
1516 if (sound)
1517 {
1518 SE.Play("tick" + a);
1519 }
1520 EClass.game.gameSpeedIndex = a;
1521 if (a != 0)
1522 {
1523 EClass.game.lastGameSpeedIndex = a;
1524 }
1526 }
1527 }
int gameSpeedIndex
Definition: Game.cs:229
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 1131 of file ActionMode.cs.

1132 {
1134 switch (func)
1135 {
1136 default:
1137 return;
1138 case CoreConfig.GameFunc.OpenAllyInv:
1139 if (!EClass.pc.HasNoGoal || (targetChara != null && !targetChara.IsPCFaction))
1140 {
1141 return;
1142 }
1144 {
1145 if (!EClass.ui.IsInventoryOpen)
1146 {
1147 SE.PopInventory();
1148 }
1149 EClass.ui.ToggleInventory();
1150 }
1151 else if (targetChara != null && EClass.pc.Dist(targetChara) <= 1)
1152 {
1153 LayerInventory.CreateContainer(targetChara);
1154 }
1155 break;
1156 case CoreConfig.GameFunc.EmptyHand:
1157 EInput.action = EAction.EmptyHand;
1158 return;
1159 case CoreConfig.GameFunc.Fire:
1160 if (EInput.keyFire.Update(forcePress: true))
1161 {
1162 EInput.action = EAction.Fire;
1163 return;
1164 }
1165 break;
1166 case CoreConfig.GameFunc.SwitchHotbar:
1168 break;
1169 case CoreConfig.GameFunc.PropertySearch:
1170 EClass.ui.widgets.Toggle("Search")?.SoundActivate();
1171 break;
1172 case CoreConfig.GameFunc.Talk:
1173 if (!EClass.pc.HasNoGoal || targetChara == null || targetChara.hostility <= Hostility.Enemy || targetChara.IsPC || EClass.pc.Dist(targetChara) > 2)
1174 {
1175 return;
1176 }
1177 ACT.Chat.Perform(EClass.pc, targetChara);
1178 break;
1179 case CoreConfig.GameFunc.AllAction:
1180 if (!EClass.ui.isPointerOverUI)
1181 {
1183 }
1184 return;
1185 case CoreConfig.GameFunc.ToggleBuild:
1187 {
1188 SE.Beep();
1189 Msg.Say("invalidAction");
1190 return;
1191 }
1192 BuildMenu.Toggle();
1193 break;
1194 case CoreConfig.GameFunc.ShowJournal:
1195 {
1196 LayerJournal layerJournal = EClass.ui.ToggleLayer<LayerJournal>();
1197 if ((bool)layerJournal)
1198 {
1199 layerJournal.windows[0].SetRect(EClass.core.refs.rects.center);
1200 layerJournal.Delay();
1201 }
1202 break;
1203 }
1204 case CoreConfig.GameFunc.ToggleLog:
1206 break;
1207 case CoreConfig.GameFunc.ShowInv:
1208 EClass.ui.ToggleInventory(delay: true);
1209 break;
1210 case CoreConfig.GameFunc.ShowChara:
1211 {
1212 LayerChara layerChara = EClass.ui.ToggleLayer<LayerChara>();
1213 if ((bool)layerChara)
1214 {
1215 layerChara.SetChara(EClass.pc);
1216 layerChara.windows[0].SetRect(EClass.core.refs.rects.center);
1217 layerChara.Delay();
1218 }
1219 break;
1220 }
1221 case CoreConfig.GameFunc.ShowAbility:
1222 EClass.ui.ToggleAbility(delay: true);
1223 break;
1224 case CoreConfig.GameFunc.ToggleNoRoof:
1225 EClass.game.config.noRoof = !EClass.game.config.noRoof;
1226 break;
1227 case CoreConfig.GameFunc.ToggleZoom:
1228 Adv.ToggleZoom();
1229 break;
1230 case CoreConfig.GameFunc.EmuShift:
1231 case CoreConfig.GameFunc.EmuAlt:
1232 return;
1233 }
1234 EInput.Consume();
1235 }
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:59
int Dist(Card c)
Definition: Card.cs:7697
Definition: Chara.cs:10
override bool IsPC
Definition: Chara.cs:612
override bool IsPCFaction
Definition: Chara.cs:671
bool HasNoGoal
Definition: Chara.cs:1000
Hostility hostility
Definition: Chara.cs:291
RectData center
Definition: CoreRef.cs:166
Rects rects
Definition: CoreRef.cs:361
CoreRef refs
Definition: Core.cs:51
static Zone _zone
Definition: EClass.cs:21
static Chara pc
Definition: EClass.cs:15
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:218
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:960
PointTarget mouseTarget
Definition: Scene.cs:135
static WidgetCurrentTool Instance
static void ToggleLog()
bool CanEnterBuildModeAnywhere
Definition: Zone.cs:458

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(), WidgetMainText.ToggleLog(), AM_Adv.ToggleZoom(), EClass.ui, EInput.KeyboardPress.Update(), and Layer.windows.

◆ DoFunc() [2/2]

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

Definition at line 1063 of file ActionMode.cs.

1064 {
1065 switch (func)
1066 {
1067 case CoreConfig.GameFuncBuild.ExitBuildMode:
1069 break;
1070 case CoreConfig.GameFuncBuild.ToggleFreepos:
1072 break;
1073 case CoreConfig.GameFuncBuild.ToggleRoof:
1075 break;
1076 case CoreConfig.GameFuncBuild.ToggleSlope:
1078 break;
1079 case CoreConfig.GameFuncBuild.Rotate:
1080 OnRotate();
1081 break;
1082 case CoreConfig.GameFuncBuild.ToggleWall:
1084 break;
1085 case CoreConfig.GameFuncBuild.TogglePicker:
1086 if (Picker.CanActivate)
1087 {
1088 Picker.Activate();
1089 }
1090 break;
1091 case CoreConfig.GameFuncBuild.SnapFreepos:
1093 break;
1094 case CoreConfig.GameFuncBuild.ToggleBuildLight:
1096 break;
1097 }
1099 }
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:885
void ToggleShowWall()
Definition: Scene.cs:919
void ToggleLight()
Definition: Scene.cs:891
void ToggleSlope()
Definition: Scene.cs:931
void ToggleFreePos()
Definition: Scene.cs:908
void ToggleSnapFreePos()
Definition: Scene.cs:897

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 1296 of file ActionMode.cs.

1297 {
1298 if ((!point.HasNonWallBlock && !point.HasBlockRecipe && point.IsSeen) || (point.sourceBlock.tileType.Invisible && !IsBuildMode))
1299 {
1301 }
1303 }
ScreenGuide guide
static BaseGameScreen screen
Definition: EClass.cs:33
bool IsSeen
Definition: Point.cs:342
SourceBlock.Row sourceBlock
Definition: Point.cs:63
bool HasBlockRecipe
Definition: Point.cs:217
bool HasNonWallBlock
Definition: Point.cs:194
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 1420 of file ActionMode.cs.

1421 {
1422 string text = textHintTitle.IsEmpty(Lang.Get(id)) + " - ";
1423 BaseTileSelector baseTileSelector = EClass.screen.tileSelector;
1424 ActionMode actionMode = EClass.scene.actionMode;
1425 if (!layer)
1426 {
1427 text = ((actionMode == Inspect && Inspect.target != null) ? "hintMoveTarget".lang() : ((selectType == BaseTileSelector.SelectType.Single) ? (text + "hintSelectSingle".lang()) : ((baseTileSelector.start != null) ? (text + "hintSelectEnd".lang()) : (text + "hintSelectStart".lang()))));
1428 }
1429 else
1430 {
1431 if (actionMode == Build)
1432 {
1433 text += "hintBuild".lang();
1434 }
1435 if (actionMode == CreateArea)
1436 {
1437 text += "hintCreateArea".lang();
1438 }
1439 }
1440 if (actionMode == Build && Build.recipe != null && baseTileSelector.start == null)
1441 {
1443 {
1444 text = text + " " + "hintRotate".lang();
1445 }
1446 if (Build.MaxAltitude > 0)
1447 {
1448 text = text + " " + "hintAltitude2".lang();
1449 }
1450 }
1451 return text;
1452 }
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:299

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:53
Cell Cell
Definition: Card.cs:2055
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 1408 of file ActionMode.cs.

1409 {
1410 EClass.ui.RemoveLayer(layer);
1412 EClass.ui.hud.hint.UpdateText();
1413 OnHideLayer();
1414 }
virtual void OnHideLayer()
Definition: ActionMode.cs:1416
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 964 of file ActionMode.cs.

965 {
966 float num = 0f;
967 float num2 = 0f;
968 Vector2 axis = EInput.axis;
969 bool flag = !EClass.core.IsGameStarted;
971 {
972 if (Input.GetKey(KeyCode.LeftShift))
973 {
974 axis *= 3f;
975 }
977 {
978 Vector2 zero = Vector2.zero;
979 if (mpos.x < 16f)
980 {
981 zero.x -= 1f;
982 }
983 if (mpos.x > (float)(Screen.width - 16))
984 {
985 zero.x += 1f;
986 }
987 if (mpos.y < 8f)
988 {
989 zero.y -= 1f;
990 }
991 if (mpos.y > (float)(Screen.height - 8))
992 {
993 zero.y += 1f;
994 }
995 if (zero != Vector2.zero)
996 {
997 axis += zero * (EClass.core.config.camera.sensEdge * 2f);
998 }
999 }
1000 EInput.hasAxisMoved = axis != Vector2.zero;
1001 _ = EInput.buttonScroll;
1002 if (Adv.IsActive)
1003 {
1004 _ = Adv.zoomOut;
1005 }
1006 if (EInput.buttonScroll != null && EInput.buttonScroll.pressing && (flag || !EClass.ui.BlockActions))
1007 {
1008 num = EInput.dragAmount.x * (0.1f + EClass.core.config.camera.sensDrag);
1009 num2 = EInput.dragAmount.y * (0.1f + EClass.core.config.camera.sensDrag);
1011 {
1012 num *= -1f;
1013 }
1015 {
1016 num2 *= -1f;
1017 }
1019 {
1020 EInput.hasAxisMoved = true;
1021 }
1022 }
1023 if (EInput.hasAxisMoved)
1024 {
1025 EClass.screen.zoomPos = Vector3.zero;
1026 }
1027 if (EInput.wheel != 0 && !InputModuleEX.GetComponentOf<UIScrollView>())
1028 {
1030 }
1031 }
1032 float momentum = EClass.core.config.camera.momentum;
1033 if (momentum > 0f && EInput.axis == Vector2.zero)
1034 {
1035 smoothX = Mathf.Lerp(smoothX, num, Time.smoothDeltaTime * momentum);
1036 smoothY = Mathf.Lerp(smoothY, num2, Time.smoothDeltaTime * momentum);
1037 }
1038 else
1039 {
1040 smoothX = num;
1041 smoothY = num2;
1042 }
1043 EClass.screen.ScrollMouse(smoothX * 0.1f, smoothY * 0.1f);
1044 if (EInput.hasAxisMoved)
1045 {
1046 OnScroll();
1047 EClass.screen.ScrollAxis(axis);
1048 }
1049 }
bool zoomOut
Definition: AM_Adv.cs:103
virtual void InputWheel(int wheel)
Definition: ActionMode.cs:1051
static float smoothY
Definition: ActionMode.cs:87
virtual void OnScroll()
Definition: ActionMode.cs:1237
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:617
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 1051 of file ActionMode.cs.

1052 {
1053 if (AllowWheelZoom)
1054 {
1056 }
1057 }
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 1101 of file ActionMode.cs.

1102 {
1105 {
1106 return input.middleClick == func;
1107 }
1109 {
1110 return input.middlePressLong == func;
1111 }
1112 if (EInput.mouse3.clicked)
1113 {
1114 return input.mouse3Click == func;
1115 }
1117 {
1118 return input.mouse3PressLong == func;
1119 }
1120 if (EInput.mouse4.clicked)
1121 {
1122 return input.mouse4Click == func;
1123 }
1125 {
1126 return input.mouse4PressLong == func;
1127 }
1128 return false;
1129 }
bool clicked
Definition: ButtonState.cs:37
bool pressedLong
Definition: ButtonState.cs:64
InputSetting input
Definition: CoreConfig.cs:615
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 1368 of file ActionMode.cs.

1369 {
1370 }

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 1360 of file ActionMode.cs.

1361 {
1362 }

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 1372 of file ActionMode.cs.

1373 {
1374 }

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 1416 of file ActionMode.cs.

1417 {
1418 }

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 1376 of file ActionMode.cs.

1377 {
1378 if (result == HitResult.Valid || result == HitResult.Warning)
1379 {
1380 summary.money += CostMoney;
1381 summary.countValid++;
1382 }
1383 }
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 1305 of file ActionMode.cs.

1306 {
1307 if (result != HitResult.NoTarget && point.IsValid && (point.IsSeen || CanTargetFog))
1308 {
1309 MeshPass guidePass = GetGuidePass(point);
1310 int num = (int)result;
1311 if (tileSelector.start != null && result == HitResult.Default)
1312 {
1313 num = 2;
1314 }
1315 Vector3 vector = point.Position();
1316 if (num == 0)
1317 {
1318 num = GetDefaultTile(point);
1319 }
1320 guidePass.Add(vector.x, vector.y, vector.z - 0.01f, num, 0.3f);
1321 if (!IsRoofEditMode() && point.HasWallOrFence && !point.cell.hasDoor && HighlightWall(point))
1322 {
1323 EClass.screen.guide.DrawWall(point, EClass.Colors.blockColors.Passive, useMarkerPass: true);
1324 }
1325 if (IsBuildMode && EClass.screen.tileSelector.start == null && point.Installed != null && Inspect.IsActive)
1326 {
1327 point.Installed.trait.OnRenderTile(point, result, dir);
1328 }
1329 }
1330 }
virtual MeshPass GetGuidePass(Point point)
Definition: ActionMode.cs:1296
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:39
void Add(Point point, float tile=0f, float color=0f)
Definition: MeshPass.cs:122
Thing Installed
Definition: Point.cs:327
ref Vector3 Position(int height)
Definition: Point.cs:548
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:706

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 1332 of file ActionMode.cs.

1333 {
1334 if (result != HitResult.NoTarget && point.IsValid && (point.IsSeen || CanTargetFog))
1335 {
1336 MeshPass guidePass = GetGuidePass(point);
1337 int num = (int)result;
1338 if (tileSelector.start != null && result == HitResult.Default)
1339 {
1340 num = 2;
1341 }
1342 Vector3 vector = point.Position(point.cell.height);
1343 if (num == 0)
1344 {
1345 num = GetDefaultTile(point);
1346 }
1347 guidePass.Add(vector.x, vector.y, vector.z - 0.01f, num, 0.3f);
1348 }
1349 }
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:1454

References RotateUnderMouse().

Referenced by DoFunc().

◆ OnScroll()

virtual void ActionMode.OnScroll ( )
inlinevirtual

Reimplemented in AM_ViewZone.

Definition at line 1237 of file ActionMode.cs.

1238 {
1239 }

Referenced by InputMovement().

◆ OnSelectEnd()

virtual void ActionMode.OnSelectEnd ( bool  cancel)
inlinevirtual

Reimplemented in AM_Copy.

Definition at line 1292 of file ActionMode.cs.

1293 {
1294 }

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 1288 of file ActionMode.cs.

1289 {
1290 }

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 1403 of file ActionMode.cs.

1404 {
1405 return null;
1406 }

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 1059 of file ActionMode.cs.

1060 {
1061 }

Referenced by UpdateInput().

◆ Pause()

void ActionMode.Pause ( bool  sound = false)
inline

Definition at line 1502 of file ActionMode.cs.

1503 {
1504 ChangeGameSpeed(1, sound);
1505 }
void ChangeGameSpeed(int a, bool sound=false)
Definition: ActionMode.cs:1512

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:248
Sprite spriteDeath
Definition: CoreRef.cs:250
Sprite spriteVisited
Definition: CoreRef.cs:246
TCs tcs
Definition: CoreRef.cs:353
static SourceManager sources
Definition: EClass.cs:43
static GameSetting setting
Definition: EClass.cs:35
RenderSetting render
Definition: GameSetting.cs:301
Cell GetCell(int index)
Definition: Map.cs:887
IEnumerable< Card > Cards
Definition: Map.cs:135
Dictionary< int, int > backerObjs
Definition: Map.cs:67
ref Vector3 PositionTopdown()
Definition: Point.cs:569
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:455
virtual bool IsRegion
Definition: Spatial.cs:515
bool destryoed
Definition: Spatial.cs:45
bool isConquered
Definition: Spatial.cs:382
virtual Point RegionPos
Definition: Spatial.cs:560
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 1454 of file ActionMode.cs.

1455 {
1456 SE.Rotate();
1457 Point hitPoint = Scene.HitPoint;
1458 if (!hitPoint.IsValid)
1459 {
1460 return;
1461 }
1462 hitPoint.cell.RotateAll();
1463 if (EClass.debug.enable)
1464 {
1465 hitPoint.growth?.Grow(100);
1466 if (hitPoint.Installed?.trait is TraitSeed)
1467 {
1468 (hitPoint.Installed.trait as TraitSeed).TrySprout(force: true);
1469 }
1470 }
1471 }
void RotateAll()
Definition: Cell.cs:1493
bool enable
Definition: CoreDebug.cs:286
void Grow(int mtp=1)
Definition: GrowSystem.cs:340
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 1473 of file ActionMode.cs.

1474 {
1475 return ref s;
1476 }

Referenced by BaseTileSelector.RefreshMouseInfo().

◆ ShowLayer()

void ActionMode.ShowLayer ( )
inline

Definition at line 1385 of file ActionMode.cs.

1386 {
1387 layer = OnShowLayer();
1388 if (layer != null)
1389 {
1391 }
1392 else
1393 {
1395 }
1396 if ((bool)EClass.core.screen.tileSelector)
1397 {
1399 }
1400 EClass.ui.hud.hint.Refresh();
1401 }
virtual Layer OnShowLayer()
Definition: ActionMode.cs:1403
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 1478 of file ActionMode.cs.

1479 {
1480 if (IsAdv)
1481 {
1482 EClass.core.config.game.autopause = !EClass.core.config.game.autopause;
1484 {
1485 SE.Play("tick0");
1486 }
1487 else
1488 {
1489 SE.Play("tick1");
1490 }
1491 }
1492 else if (EClass.game.gameSpeedIndex != 0)
1493 {
1494 Pause(sound: true);
1495 }
1496 else
1497 {
1498 UnPause(sound: true);
1499 }
1500 }
static bool IsAdv
Definition: ActionMode.cs:117
void UnPause(bool sound=false)
Definition: ActionMode.cs:1507
new GameConfig game
Definition: CoreConfig.cs:609

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 1241 of file ActionMode.cs.

1242 {
1243 Widget componentOf = InputModuleEX.GetComponentOf<Widget>();
1244 if ((bool)componentOf && componentOf.RightClickToClose)
1245 {
1246 componentOf.Close();
1247 }
1248 }
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 1250 of file ActionMode.cs.

1251 {
1252 Widget componentOf = InputModuleEX.GetComponentOf<Widget>();
1253 if ((bool)componentOf && componentOf.CanShowContextMenu())
1254 {
1255 if (componentOf.RightClickToClose)
1256 {
1257 componentOf.Close();
1258 return true;
1259 }
1260 componentOf.ShowContextMenu();
1261 return true;
1262 }
1263 return false;
1264 }
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 1507 of file ActionMode.cs.

1508 {
1510 }
int lastGameSpeedIndex
Definition: Game.cs:231

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 && !IsBuildMode && !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 if (!EClass.ui.IsInventoryOpen)
765 {
766 SE.PopInventory();
767 }
768 EClass.ui.ToggleInventory();
769 break;
770 }
771 }
772 if (!FixFocus)
773 {
775 }
776 if (!EClass.ui.canvas.enabled && EInput.IsAnyKeyDown())
777 {
778 EClass.ui.ToggleCanvas();
779 EInput.Consume();
780 return;
781 }
782 }
783 if (EInput.action == EAction.Examine && !IsBuildMode)
784 {
785 ButtonGrid componentOf7 = InputModuleEX.GetComponentOf<ButtonGrid>();
786 Card card = null;
787 if ((bool)componentOf7 && componentOf7.card != null)
788 {
789 card = componentOf7.card;
790 }
791 if (card == null)
792 {
793 UIItem componentOf8 = InputModuleEX.GetComponentOf<UIItem>();
794 if ((bool)componentOf8 && componentOf8.refObj is Thing)
795 {
796 card = (Thing)componentOf8.refObj;
797 }
798 }
799 if (card == null)
800 {
801 LayerCraft layerCraft = EClass.ui.GetLayer<LayerCraft>();
802 if ((bool)layerCraft)
803 {
804 card = layerCraft.product;
805 }
806 }
807 if (card != null)
808 {
809 if ((bool)EClass.ui.GetLayer<LayerInfo>())
810 {
811 EClass.ui.RemoveLayer<LayerInfo>();
812 }
813 EClass.ui.AddLayer<LayerInfo>().Set(card, _examine: true);
814 }
815 }
817 {
819 }
820 if (EClass.ui.BlockActions)
821 {
822 return;
823 }
824 if (AllowBuildModeShortcuts && Input.GetKeyDown(KeyCode.Q) && Picker.CanActivate)
825 {
827 }
829 {
830 Point hitPoint = Scene.HitPoint;
831 bool flag2 = EInput.wheel > 0;
832 if (EClass.scene.mouseTarget.card != null)
833 {
835 if (card2.isThing && card2.IsInstalled)
836 {
837 SourceMaterial.Row currentMat = (card2.isDyed ? card2.DyeMat : card2.material);
838 List<SourceMaterial.Row> source = EClass.sources.materials.rows.Where((SourceMaterial.Row m) => m.thing == currentMat.thing).ToList();
840 {
841 source = EClass.sources.materials.rows;
842 }
843 SourceMaterial.Row row = (flag2 ? source.NextItem(currentMat) : source.PrevItem(currentMat));
844 if (row == null)
845 {
846 row = card2.DyeMat;
847 }
848 if (EInput.isAltDown)
849 {
850 row = lastEditorMat;
851 }
852 if (card2.isDyed)
853 {
854 card2.Dye(row);
855 }
856 else
857 {
858 card2.ChangeMaterial(row);
859 }
860 lastEditorMat = row;
861 Msg.Say(row.GetName() + "(" + row.alias + ")");
862 }
863 }
864 else if (hitPoint.HasObj)
865 {
866 SourceMaterial.Row matObj = hitPoint.cell.matObj;
867 List<SourceMaterial.Row> rows = EClass.sources.materials.rows;
868 SourceMaterial.Row row2 = (flag2 ? rows.NextItem(matObj) : rows.PrevItem(matObj));
869 if (EInput.isAltDown)
870 {
871 row2 = lastEditorMat;
872 }
873 hitPoint.cell.objMat = (byte)row2.id;
874 lastEditorMat = row2;
875 Msg.Say(row2.GetName());
876 }
877 else if (hitPoint.HasBlock)
878 {
879 SourceMaterial.Row matBlock = hitPoint.cell.matBlock;
880 List<SourceMaterial.Row> rows2 = EClass.sources.materials.rows;
881 SourceMaterial.Row row3 = (flag2 ? rows2.NextItem(matBlock) : rows2.PrevItem(matBlock));
882 if (EInput.isAltDown)
883 {
884 row3 = lastEditorMat;
885 }
886 hitPoint.cell._blockMat = (byte)row3.id;
887 lastEditorMat = row3;
888 Msg.Say(row3.GetName());
889 }
890 else
891 {
892 SourceMaterial.Row matFloor = hitPoint.cell.matFloor;
893 List<SourceMaterial.Row> rows3 = EClass.sources.materials.rows;
894 SourceMaterial.Row row4 = (flag2 ? rows3.NextItem(matFloor) : rows3.PrevItem(matFloor));
895 if (EInput.isAltDown)
896 {
897 row4 = lastEditorMat;
898 }
899 hitPoint.cell._floorMat = (byte)row4.id;
900 lastEditorMat = row4;
901 Msg.Say(row4.GetName());
902 }
903 EInput.Consume();
904 }
906 {
907 if (EInput.hotkey != -1)
908 {
909 WidgetCurrentTool.Instance.Select(EInput.hotkey, fromHotkey: true);
911 }
912 else if (!EClass.debug.enable && EInput.functionkey != -1)
913 {
915 if ((bool)hotbarExtra)
916 {
917 hotbarExtra.TryUse(EInput.functionkey);
918 }
919 }
920 }
922 if (EClass.debug.enable)
923 {
925 }
927 if (textTimer > 0.1f)
928 {
929 textTimer = 0f;
930 RefreshTexts();
931 }
933 {
935 {
936 DoFunc(input.b_middleClick);
937 }
939 {
942 }
944 {
945 DoFunc(input.b_mouse3Click);
946 }
947 else if (EInput.mouse3.pressedLong)
948 {
951 }
953 {
954 DoFunc(input.b_mouse4Click);
955 }
956 else if (EInput.mouse4.pressedLong)
957 {
960 }
961 }
962 }
void UpdatePlans()
Definition: AM_Adv.cs:400
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:1059
bool TryShowWidgetMenu()
Definition: ActionMode.cs:1250
virtual bool AllowGeneralInput
Definition: ActionMode.cs:219
virtual bool AllowHotbar
Definition: ActionMode.cs:217
void InputMovement()
Definition: ActionMode.cs:964
void DoFunc(CoreConfig.GameFuncBuild func)
Definition: ActionMode.cs:1063
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:2081
SourceMaterial.Row DyeMat
Definition: Card.cs:1940
SourceMaterial.Row material
Definition: Card.cs:2051
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
Definition: Card.cs:3041
Thing AddThing(string id, int lv=-1)
Definition: Card.cs:3104
void Dye(string idMat)
Definition: Card.cs:6023
bool isDyed
Definition: Card.cs:458
void Destroy()
Definition: Card.cs:5070
bool IsInstalled
Definition: Card.cs:2381
SourceMaterial.Row matBlock
Definition: Cell.cs:1030
SourceMaterial.Row matObj
Definition: Cell.cs:1036
SourceMaterial.Row matFloor
Definition: Cell.cs:1032
GameFuncBuild b_mouse4PressLong
Definition: CoreConfig.cs:258
GameFuncBuild b_middlePressLong
Definition: CoreConfig.cs:250
GameFuncBuild b_mouse3Click
Definition: CoreConfig.cs:252
GameFuncBuild b_mouse3PressLong
Definition: CoreConfig.cs:254
GameFuncBuild b_middleClick
Definition: CoreConfig.cs:248
GameFuncBuild b_mouse4Click
Definition: CoreConfig.cs:256
new UISetting ui
Definition: CoreConfig.cs:601
DebugHotkey debugHotkeys
Definition: CoreDebug.cs:143
void UpdateInput()
Definition: CoreDebug.cs:864
bool godBuild
Definition: CoreDebug.cs:304
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:13
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:939
Card Container
Definition: InvOwner.cs:535
virtual bool CanShiftClick(ButtonGrid b, bool rightMouse=false)
Definition: InvOwner.cs:976
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:2268
void Update(Point _pos)
Definition: PointTarget.cs:52
bool HasObj
Definition: Point.cs:137
bool HasBlock
Definition: Point.cs:141
void ToggleMuteBGM()
Definition: Scene.cs:979
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.HasBlock, 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, Cell.matBlock, Card.material, SourceManager.materials, Cell.matFloor, 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: