Elin Decompiled Documentation EA 23.201 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 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 1237 of file ActionMode.cs.

1238 {
1240 {
1241 return HitResult.NoTarget;
1242 }
1243 if (!point.IsValid)
1244 {
1245 return HitResult.NoTarget;
1246 }
1247 if (!CanTargetFog && !point.cell.isSeen)
1248 {
1249 return HitResult.Default;
1250 }
1251 return HitTest(point, start);
1252 }
HitResult
Definition: HitResult.cs:2
virtual bool CanTargetOutsideBounds
Definition: ActionMode.cs:173
virtual HitResult HitTest(Point point, Point start)
Definition: ActionMode.cs:1254
virtual bool CanTargetFog
Definition: ActionMode.cs:209
bool isSeen
Definition: Cell.cs:282
bool ignoreBuildRule
Definition: CoreDebug.cs:185
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:1356
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:264
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:751
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 1322 of file ActionMode.cs.

1323 {
1324 if (Multisize && Summary.countValid != hitW * hitH)
1325 {
1326 return false;
1327 }
1328 return true;
1329 }
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 1483 of file ActionMode.cs.

1484 {
1485 if (EClass.game.gameSpeedIndex != a)
1486 {
1487 if (sound)
1488 {
1489 SE.Play("tick" + a);
1490 }
1491 EClass.game.gameSpeedIndex = a;
1492 if (a != 0)
1493 {
1494 EClass.game.lastGameSpeedIndex = a;
1495 }
1497 }
1498 }
int gameSpeedIndex
Definition: Game.cs:226
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 1105 of file ActionMode.cs.

1106 {
1108 switch (func)
1109 {
1110 default:
1111 return;
1112 case CoreConfig.GameFunc.OpenAllyInv:
1113 if (!EClass.pc.HasNoGoal || (targetChara != null && !targetChara.IsPCFaction))
1114 {
1115 return;
1116 }
1118 {
1119 if (!EClass.ui.IsInventoryOpen)
1120 {
1121 SE.PopInventory();
1122 }
1123 EClass.ui.ToggleInventory();
1124 }
1125 else if (targetChara != null && EClass.pc.Dist(targetChara) <= 1)
1126 {
1127 LayerInventory.CreateContainer(targetChara);
1128 }
1129 break;
1130 case CoreConfig.GameFunc.EmptyHand:
1131 EInput.action = EAction.EmptyHand;
1132 return;
1133 case CoreConfig.GameFunc.Fire:
1134 if (EInput.keyFire.Update(forcePress: true))
1135 {
1136 EInput.action = EAction.Fire;
1137 return;
1138 }
1139 break;
1140 case CoreConfig.GameFunc.SwitchHotbar:
1142 break;
1143 case CoreConfig.GameFunc.PropertySearch:
1144 EClass.ui.widgets.Toggle("Search")?.SoundActivate();
1145 break;
1146 case CoreConfig.GameFunc.Talk:
1147 if (!EClass.pc.HasNoGoal || targetChara == null || targetChara.hostility <= Hostility.Enemy || targetChara.IsPC || EClass.pc.Dist(targetChara) > 2)
1148 {
1149 return;
1150 }
1151 ACT.Chat.Perform(EClass.pc, targetChara);
1152 break;
1153 case CoreConfig.GameFunc.AllAction:
1154 if (!EClass.ui.isPointerOverUI)
1155 {
1157 }
1158 return;
1159 case CoreConfig.GameFunc.ToggleBuild:
1161 {
1162 SE.Beep();
1163 Msg.Say("invalidAction");
1164 return;
1165 }
1166 BuildMenu.Toggle();
1167 break;
1168 case CoreConfig.GameFunc.ShowJournal:
1169 {
1170 LayerJournal layerJournal = EClass.ui.ToggleLayer<LayerJournal>();
1171 if ((bool)layerJournal)
1172 {
1173 layerJournal.windows[0].SetRect(EClass.core.refs.rects.center);
1174 layerJournal.Delay();
1175 }
1176 break;
1177 }
1178 case CoreConfig.GameFunc.ShowInv:
1179 EClass.ui.ToggleInventory(delay: true);
1180 break;
1181 case CoreConfig.GameFunc.ShowChara:
1182 {
1183 LayerChara layerChara = EClass.ui.ToggleLayer<LayerChara>();
1184 if ((bool)layerChara)
1185 {
1186 layerChara.SetChara(EClass.pc);
1187 layerChara.windows[0].SetRect(EClass.core.refs.rects.center);
1188 layerChara.Delay();
1189 }
1190 break;
1191 }
1192 case CoreConfig.GameFunc.ShowAbility:
1193 EClass.ui.ToggleAbility(delay: true);
1194 break;
1195 case CoreConfig.GameFunc.ToggleNoRoof:
1196 EClass.game.config.noRoof = !EClass.game.config.noRoof;
1197 break;
1198 case CoreConfig.GameFunc.ToggleZoom:
1199 Adv.ToggleZoom();
1200 break;
1201 case CoreConfig.GameFunc.EmuShift:
1202 case CoreConfig.GameFunc.EmuAlt:
1203 return;
1204 }
1205 EInput.Consume();
1206 }
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:57
int Dist(Card c)
Definition: Card.cs:7406
Definition: Chara.cs:10
override bool IsPC
Definition: Chara.cs:610
override bool IsPCFaction
Definition: Chara.cs:669
bool HasNoGoal
Definition: Chara.cs:986
Hostility hostility
Definition: Chara.cs:289
RectData center
Definition: CoreRef.cs:166
Rects rects
Definition: CoreRef.cs:361
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:944
PointTarget mouseTarget
Definition: Scene.cs:135
static WidgetCurrentTool Instance
bool CanEnterBuildModeAnywhere
Definition: Zone.cs:453

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

1038 {
1039 switch (func)
1040 {
1041 case CoreConfig.GameFuncBuild.ExitBuildMode:
1043 break;
1044 case CoreConfig.GameFuncBuild.ToggleFreepos:
1046 break;
1047 case CoreConfig.GameFuncBuild.ToggleRoof:
1049 break;
1050 case CoreConfig.GameFuncBuild.ToggleSlope:
1052 break;
1053 case CoreConfig.GameFuncBuild.Rotate:
1054 OnRotate();
1055 break;
1056 case CoreConfig.GameFuncBuild.ToggleWall:
1058 break;
1059 case CoreConfig.GameFuncBuild.TogglePicker:
1060 if (Picker.CanActivate)
1061 {
1062 Picker.Activate();
1063 }
1064 break;
1065 case CoreConfig.GameFuncBuild.SnapFreepos:
1067 break;
1068 case CoreConfig.GameFuncBuild.ToggleBuildLight:
1070 break;
1071 }
1073 }
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:881
void ToggleShowWall()
Definition: Scene.cs:915
void ToggleLight()
Definition: Scene.cs:887
void ToggleSlope()
Definition: Scene.cs:927
void ToggleFreePos()
Definition: Scene.cs:904
void ToggleSnapFreePos()
Definition: Scene.cs:893

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

1268 {
1269 if ((!point.HasNonWallBlock && !point.HasBlockRecipe && point.IsSeen) || (point.sourceBlock.tileType.Invisible && !IsBuildMode))
1270 {
1272 }
1274 }
ScreenGuide guide
static BaseGameScreen screen
Definition: EClass.cs:32
bool IsSeen
Definition: Point.cs:330
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 1391 of file ActionMode.cs.

1392 {
1393 string text = textHintTitle.IsEmpty(Lang.Get(id)) + " - ";
1394 BaseTileSelector baseTileSelector = EClass.screen.tileSelector;
1395 ActionMode actionMode = EClass.scene.actionMode;
1396 if (!layer)
1397 {
1398 text = ((actionMode == Inspect && Inspect.target != null) ? "hintMoveTarget".lang() : ((selectType == BaseTileSelector.SelectType.Single) ? (text + "hintSelectSingle".lang()) : ((baseTileSelector.start != null) ? (text + "hintSelectEnd".lang()) : (text + "hintSelectStart".lang()))));
1399 }
1400 else
1401 {
1402 if (actionMode == Build)
1403 {
1404 text += "hintBuild".lang();
1405 }
1406 if (actionMode == CreateArea)
1407 {
1408 text += "hintCreateArea".lang();
1409 }
1410 }
1411 if (actionMode == Build && Build.recipe != null && baseTileSelector.start == null)
1412 {
1414 {
1415 text = text + " " + "hintRotate".lang();
1416 }
1417 if (Build.MaxAltitude > 0)
1418 {
1419 text = text + " " + "hintAltitude2".lang();
1420 }
1421 }
1422 return text;
1423 }
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:300

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:51
Cell Cell
Definition: Card.cs:2017
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 1379 of file ActionMode.cs.

1380 {
1381 EClass.ui.RemoveLayer(layer);
1383 EClass.ui.hud.hint.UpdateText();
1384 OnHideLayer();
1385 }
virtual void OnHideLayer()
Definition: ActionMode.cs:1387
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 938 of file ActionMode.cs.

939 {
940 float num = 0f;
941 float num2 = 0f;
942 Vector2 axis = EInput.axis;
943 bool flag = !EClass.core.IsGameStarted;
945 {
946 if (Input.GetKey(KeyCode.LeftShift))
947 {
948 axis *= 3f;
949 }
951 {
952 Vector2 zero = Vector2.zero;
953 if (mpos.x < 16f)
954 {
955 zero.x -= 1f;
956 }
957 if (mpos.x > (float)(Screen.width - 16))
958 {
959 zero.x += 1f;
960 }
961 if (mpos.y < 8f)
962 {
963 zero.y -= 1f;
964 }
965 if (mpos.y > (float)(Screen.height - 8))
966 {
967 zero.y += 1f;
968 }
969 if (zero != Vector2.zero)
970 {
971 axis += zero * (EClass.core.config.camera.sensEdge * 2f);
972 }
973 }
974 EInput.hasAxisMoved = axis != Vector2.zero;
976 if (Adv.IsActive)
977 {
978 _ = Adv.zoomOut;
979 }
980 if (EInput.buttonScroll != null && EInput.buttonScroll.pressing && (flag || !EClass.ui.BlockActions))
981 {
982 num = EInput.dragAmount.x * (0.1f + EClass.core.config.camera.sensDrag);
983 num2 = EInput.dragAmount.y * (0.1f + EClass.core.config.camera.sensDrag);
985 {
986 num *= -1f;
987 }
989 {
990 num2 *= -1f;
991 }
993 {
994 EInput.hasAxisMoved = true;
995 }
996 }
998 {
999 EClass.screen.zoomPos = Vector3.zero;
1000 }
1001 if (EInput.wheel != 0 && !InputModuleEX.GetComponentOf<UIScrollView>())
1002 {
1004 }
1005 }
1006 float momentum = EClass.core.config.camera.momentum;
1007 if (momentum > 0f && EInput.axis == Vector2.zero)
1008 {
1009 smoothX = Mathf.Lerp(smoothX, num, Time.smoothDeltaTime * momentum);
1010 smoothY = Mathf.Lerp(smoothY, num2, Time.smoothDeltaTime * momentum);
1011 }
1012 else
1013 {
1014 smoothX = num;
1015 smoothY = num2;
1016 }
1017 EClass.screen.ScrollMouse(smoothX * 0.1f, smoothY * 0.1f);
1018 if (EInput.hasAxisMoved)
1019 {
1020 OnScroll();
1021 EClass.screen.ScrollAxis(axis);
1022 }
1023 }
bool zoomOut
Definition: AM_Adv.cs:103
virtual void InputWheel(int wheel)
Definition: ActionMode.cs:1025
static float smoothY
Definition: ActionMode.cs:87
virtual void OnScroll()
Definition: ActionMode.cs:1208
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:612
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 1025 of file ActionMode.cs.

1026 {
1027 if (AllowWheelZoom)
1028 {
1030 }
1031 }
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 1075 of file ActionMode.cs.

1076 {
1079 {
1080 return input.middleClick == func;
1081 }
1083 {
1084 return input.middlePressLong == func;
1085 }
1086 if (EInput.mouse3.clicked)
1087 {
1088 return input.mouse3Click == func;
1089 }
1091 {
1092 return input.mouse3PressLong == func;
1093 }
1094 if (EInput.mouse4.clicked)
1095 {
1096 return input.mouse4Click == func;
1097 }
1099 {
1100 return input.mouse4PressLong == func;
1101 }
1102 return false;
1103 }
bool clicked
Definition: ButtonState.cs:37
bool pressedLong
Definition: ButtonState.cs:64
InputSetting input
Definition: CoreConfig.cs:610
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 1339 of file ActionMode.cs.

1340 {
1341 }

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

1332 {
1333 }

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

1344 {
1345 }

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

1388 {
1389 }

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

1348 {
1349 if (result == HitResult.Valid || result == HitResult.Warning)
1350 {
1351 summary.money += CostMoney;
1352 summary.countValid++;
1353 }
1354 }
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 1276 of file ActionMode.cs.

1277 {
1278 if (result != HitResult.NoTarget && point.IsValid && (point.IsSeen || CanTargetFog))
1279 {
1280 MeshPass guidePass = GetGuidePass(point);
1281 int num = (int)result;
1282 if (tileSelector.start != null && result == HitResult.Default)
1283 {
1284 num = 2;
1285 }
1286 Vector3 vector = point.Position();
1287 if (num == 0)
1288 {
1289 num = GetDefaultTile(point);
1290 }
1291 guidePass.Add(vector.x, vector.y, vector.z - 0.01f, num, 0.3f);
1292 if (!IsRoofEditMode() && point.HasWallOrFence && !point.cell.hasDoor && HighlightWall(point))
1293 {
1294 EClass.screen.guide.DrawWall(point, EClass.Colors.blockColors.Passive, useMarkerPass: true);
1295 }
1296 if (IsBuildMode && EClass.screen.tileSelector.start == null && point.Installed != null && Inspect.IsActive)
1297 {
1298 point.Installed.trait.OnRenderTile(point, result, dir);
1299 }
1300 }
1301 }
virtual MeshPass GetGuidePass(Point point)
Definition: ActionMode.cs:1267
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:315
ref Vector3 Position(int height)
Definition: Point.cs:536
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:700

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

1304 {
1305 if (result != HitResult.NoTarget && point.IsValid && (point.IsSeen || CanTargetFog))
1306 {
1307 MeshPass guidePass = GetGuidePass(point);
1308 int num = (int)result;
1309 if (tileSelector.start != null && result == HitResult.Default)
1310 {
1311 num = 2;
1312 }
1313 Vector3 vector = point.Position(point.cell.height);
1314 if (num == 0)
1315 {
1316 num = GetDefaultTile(point);
1317 }
1318 guidePass.Add(vector.x, vector.y, vector.z - 0.01f, num, 0.3f);
1319 }
1320 }
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:1425

References RotateUnderMouse().

Referenced by DoFunc().

◆ OnScroll()

virtual void ActionMode.OnScroll ( )
inlinevirtual

Reimplemented in AM_ViewZone.

Definition at line 1208 of file ActionMode.cs.

1209 {
1210 }

Referenced by InputMovement().

◆ OnSelectEnd()

virtual void ActionMode.OnSelectEnd ( bool  cancel)
inlinevirtual

Reimplemented in AM_Copy.

Definition at line 1263 of file ActionMode.cs.

1264 {
1265 }

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

1260 {
1261 }

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

1375 {
1376 return null;
1377 }

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

1034 {
1035 }

Referenced by UpdateInput().

◆ Pause()

void ActionMode.Pause ( bool  sound = false)
inline

Definition at line 1473 of file ActionMode.cs.

1474 {
1475 ChangeGameSpeed(1, sound);
1476 }
void ChangeGameSpeed(int a, bool sound=false)
Definition: ActionMode.cs:1483

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:42
static GameSetting setting
Definition: EClass.cs:34
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:557
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:503
bool destryoed
Definition: Spatial.cs:45
bool isConquered
Definition: Spatial.cs:382
virtual Point RegionPos
Definition: Spatial.cs:548
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 1425 of file ActionMode.cs.

1426 {
1427 SE.Rotate();
1428 Point hitPoint = Scene.HitPoint;
1429 if (!hitPoint.IsValid)
1430 {
1431 return;
1432 }
1433 hitPoint.cell.RotateAll();
1434 if (EClass.debug.enable)
1435 {
1436 hitPoint.growth?.Grow(100);
1437 if (hitPoint.Installed?.trait is TraitSeed)
1438 {
1439 (hitPoint.Installed.trait as TraitSeed).TrySprout(force: true);
1440 }
1441 }
1442 }
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 1444 of file ActionMode.cs.

1445 {
1446 return ref s;
1447 }

Referenced by BaseTileSelector.RefreshMouseInfo().

◆ ShowLayer()

void ActionMode.ShowLayer ( )
inline

Definition at line 1356 of file ActionMode.cs.

1357 {
1358 layer = OnShowLayer();
1359 if (layer != null)
1360 {
1362 }
1363 else
1364 {
1366 }
1367 if ((bool)EClass.core.screen.tileSelector)
1368 {
1370 }
1371 EClass.ui.hud.hint.Refresh();
1372 }
virtual Layer OnShowLayer()
Definition: ActionMode.cs:1374
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 1449 of file ActionMode.cs.

1450 {
1451 if (IsAdv)
1452 {
1453 EClass.core.config.game.autopause = !EClass.core.config.game.autopause;
1455 {
1456 SE.Play("tick0");
1457 }
1458 else
1459 {
1460 SE.Play("tick1");
1461 }
1462 }
1463 else if (EClass.game.gameSpeedIndex != 0)
1464 {
1465 Pause(sound: true);
1466 }
1467 else
1468 {
1469 UnPause(sound: true);
1470 }
1471 }
static bool IsAdv
Definition: ActionMode.cs:117
void UnPause(bool sound=false)
Definition: ActionMode.cs:1478
new GameConfig game
Definition: CoreConfig.cs:604

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

1213 {
1214 Widget componentOf = InputModuleEX.GetComponentOf<Widget>();
1215 if ((bool)componentOf && componentOf.RightClickToClose)
1216 {
1217 componentOf.Close();
1218 }
1219 }
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 1221 of file ActionMode.cs.

1222 {
1223 Widget componentOf = InputModuleEX.GetComponentOf<Widget>();
1224 if ((bool)componentOf && componentOf.CanShowContextMenu())
1225 {
1226 if (componentOf.RightClickToClose)
1227 {
1228 componentOf.Close();
1229 return true;
1230 }
1231 componentOf.ShowContextMenu();
1232 return true;
1233 }
1234 return false;
1235 }
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 1478 of file ActionMode.cs.

1479 {
1481 }
int lastGameSpeedIndex
Definition: Game.cs:228

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 EInput.Consume();
878 }
880 {
881 if (EInput.hotkey != -1)
882 {
883 WidgetCurrentTool.Instance.Select(EInput.hotkey, fromHotkey: true);
885 }
886 else if (!EClass.debug.enable && EInput.functionkey != -1)
887 {
889 if ((bool)hotbarExtra)
890 {
891 hotbarExtra.TryUse(EInput.functionkey);
892 }
893 }
894 }
896 if (EClass.debug.enable)
897 {
899 }
901 if (textTimer > 0.1f)
902 {
903 textTimer = 0f;
904 RefreshTexts();
905 }
907 {
909 {
910 DoFunc(input.b_middleClick);
911 }
913 {
916 }
918 {
919 DoFunc(input.b_mouse3Click);
920 }
921 else if (EInput.mouse3.pressedLong)
922 {
925 }
927 {
928 DoFunc(input.b_mouse4Click);
929 }
930 else if (EInput.mouse4.pressedLong)
931 {
934 }
935 }
936 }
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:1033
bool TryShowWidgetMenu()
Definition: ActionMode.cs:1221
virtual bool AllowGeneralInput
Definition: ActionMode.cs:219
virtual bool AllowHotbar
Definition: ActionMode.cs:217
void InputMovement()
Definition: ActionMode.cs:938
void DoFunc(CoreConfig.GameFuncBuild func)
Definition: ActionMode.cs:1037
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:2043
SourceMaterial.Row DyeMat
Definition: Card.cs:1902
SourceMaterial.Row material
Definition: Card.cs:2013
Card ChangeMaterial(int idNew, bool ignoreFixedMaterial=false)
Definition: Card.cs:2994
Thing AddThing(string id, int lv=-1)
Definition: Card.cs:3057
void Dye(string idMat)
Definition: Card.cs:5795
bool isDyed
Definition: Card.cs:444
void Destroy()
Definition: Card.cs:4931
bool IsInstalled
Definition: Card.cs:2343
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:596
DebugHotkey debugHotkeys
Definition: CoreDebug.cs:143
void UpdateInput()
Definition: CoreDebug.cs:856
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: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: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:2200
void Update(Point _pos)
Definition: PointTarget.cs:52
bool HasObj
Definition: Point.cs:137
void ToggleMuteBGM()
Definition: Scene.cs:975
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: