Automap (OSS) GIT software repository
Revisión | de90556632b1aaf2110a03847feda9e41c7e6f2d (tree) |
---|---|
Tiempo | 2022-09-11 06:19:22 |
Autor | ![]() |
Commiter | melchior |
VS 1.17 Hot-Fix, minor tweaks
@@ -35,7 +35,6 @@ namespace Automap | ||
35 | 35 | ClientAPI.Logger.VerboseDebug("Automap Present!"); |
36 | 36 | PrepareClientsideConfig( ); |
37 | 37 | _localAutomap = new AutomapSystem(this.ClientAPI, this.Logger, this.CachedConfiguration); |
38 | - _automapDialog = new AutomapGUIDialog(ClientAPI, _localAutomap, this.CachedConfiguration); | |
39 | 38 | |
40 | 39 | ClientAPI.Input.RegisterHotKey(AutomapGUIDialog._automapControlPanelKey, "Automap control panel", GlKeys.M, HotkeyType.GUIOrOtherControls, shiftPressed: true); |
41 | 40 | ClientAPI.Input.SetHotKeyHandler(AutomapGUIDialog._automapControlPanelKey, ToggleAM_Dialog); |
@@ -53,6 +52,7 @@ namespace Automap | ||
53 | 52 | |
54 | 53 | private bool ToggleAM_Dialog(KeyCombination comb) |
55 | 54 | { |
55 | + _automapDialog = _automapDialog ?? new AutomapGUIDialog(ClientAPI, _localAutomap, this.CachedConfiguration); | |
56 | 56 | if (_automapDialog.IsOpened()) _automapDialog.TryClose(); |
57 | 57 | else _automapDialog.TryOpen(); |
58 | 58 |
@@ -84,6 +84,16 @@ namespace Automap | ||
84 | 84 | this.CachedConfiguration = config; |
85 | 85 | } |
86 | 86 | |
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 | + | |
87 | 97 | internal void PersistParameterChange( ) |
88 | 98 | { |
89 | 99 | //Store altered parameters |
@@ -81,6 +81,13 @@ namespace Automap | ||
81 | 81 | |
82 | 82 | return false; |
83 | 83 | } |
84 | + | |
85 | + public IAttribute Clone( ) | |
86 | + { | |
87 | + var cloneCmd = new CommandData(this.State); | |
88 | + cloneCmd.Notation = this.Notation; | |
89 | + return cloneCmd; | |
90 | + } | |
84 | 91 | } |
85 | 92 | } |
86 | 93 |
@@ -55,6 +55,12 @@ namespace Automap { | ||
55 | 55 | } |
56 | 56 | return false; |
57 | 57 | } |
58 | + | |
59 | + public IAttribute Clone( ) | |
60 | + { | |
61 | + var statusData = new StatusData(this.TotalUpdates, this.VoidChunks,this.Delta, this.CurrentState); | |
62 | + return statusData; | |
63 | + } | |
58 | 64 | } |
59 | 65 | } |
60 | 66 |
@@ -4,10 +4,10 @@ | ||
4 | 4 | "description" : "Automap; Generates a static HTML5 map dynamically, with P.O.I. Tracking & more.", |
5 | 5 | "authors": ["Melchior","VeryGoodDog"], |
6 | 6 | "contributors":["VeryGoodDog", "Drakker"], |
7 | - "version": "0.1.8-pre.1", | |
7 | + "version": "0.1.8-pre.2", | |
8 | 8 | "side":"Client", |
9 | 9 | "dependencies": { |
10 | - "game": "1.16.5" | |
10 | + "game": "1.17.0" | |
11 | 11 | }, |
12 | 12 | "website": "http://automap.osdn.io/" |
13 | 13 | } |
\ No newline at end of file |