• R/O
  • HTTP
  • SSH
  • HTTPS

automap: Commit

Automap (OSS) GIT software repository


Commit MetaInfo

Revisiónde90556632b1aaf2110a03847feda9e41c7e6f2d (tree)
Tiempo2022-09-11 06:19:22
Autormelchior <melchior@user...>
Commitermelchior

Log Message

VS 1.17 Hot-Fix, minor tweaks

Cambiar Resumen

Diferencia incremental

--- a/Automap/AutomapMod.cs
+++ b/Automap/AutomapMod.cs
@@ -35,7 +35,6 @@ namespace Automap
3535 ClientAPI.Logger.VerboseDebug("Automap Present!");
3636 PrepareClientsideConfig( );
3737 _localAutomap = new AutomapSystem(this.ClientAPI, this.Logger, this.CachedConfiguration);
38- _automapDialog = new AutomapGUIDialog(ClientAPI, _localAutomap, this.CachedConfiguration);
3938
4039 ClientAPI.Input.RegisterHotKey(AutomapGUIDialog._automapControlPanelKey, "Automap control panel", GlKeys.M, HotkeyType.GUIOrOtherControls, shiftPressed: true);
4140 ClientAPI.Input.SetHotKeyHandler(AutomapGUIDialog._automapControlPanelKey, ToggleAM_Dialog);
@@ -53,6 +52,7 @@ namespace Automap
5352
5453 private bool ToggleAM_Dialog(KeyCombination comb)
5554 {
55+ _automapDialog = _automapDialog ?? new AutomapGUIDialog(ClientAPI, _localAutomap, this.CachedConfiguration);
5656 if (_automapDialog.IsOpened()) _automapDialog.TryClose();
5757 else _automapDialog.TryOpen();
5858
@@ -84,6 +84,16 @@ namespace Automap
8484 this.CachedConfiguration = config;
8585 }
8686
87+ public override void Dispose( )
88+ {
89+ //TAKE OUT THE TRASH!
90+ //_localAutomap = null;
91+ _automapDialog.Dispose( );
92+ _automapDialog = null;
93+
94+ base.Dispose( );
95+ }
96+
8797 internal void PersistParameterChange( )
8898 {
8999 //Store altered parameters
--- a/Automap/Data/CommandData.cs
+++ b/Automap/Data/CommandData.cs
@@ -81,6 +81,13 @@ namespace Automap
8181
8282 return false;
8383 }
84+
85+ public IAttribute Clone( )
86+ {
87+ var cloneCmd = new CommandData(this.State);
88+ cloneCmd.Notation = this.Notation;
89+ return cloneCmd;
90+ }
8491 }
8592 }
8693
--- a/Automap/Data/StatusData.cs
+++ b/Automap/Data/StatusData.cs
@@ -55,6 +55,12 @@ namespace Automap {
5555 }
5656 return false;
5757 }
58+
59+ public IAttribute Clone( )
60+ {
61+ var statusData = new StatusData(this.TotalUpdates, this.VoidChunks,this.Delta, this.CurrentState);
62+ return statusData;
63+ }
5864 }
5965 }
6066
--- a/Automap/modinfo.json
+++ b/Automap/modinfo.json
@@ -4,10 +4,10 @@
44 "description" : "Automap; Generates a static HTML5 map dynamically, with P.O.I. Tracking & more.",
55 "authors": ["Melchior","VeryGoodDog"],
66 "contributors":["VeryGoodDog", "Drakker"],
7- "version": "0.1.8-pre.1",
7+ "version": "0.1.8-pre.2",
88 "side":"Client",
99 "dependencies": {
10- "game": "1.16.5"
10+ "game": "1.17.0"
1111 },
1212 "website": "http://automap.osdn.io/"
1313 }
\ No newline at end of file
Show on old repository browser