File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ public int KeyboardDelay {
116116 public string LoginAddress = string . Empty ;
117117 public int SelectedClientVersion = - 1 ;
118118 public int SelectedBuildVersion = - 1 ;
119+ public int MiniMapZoom = 0 ;
119120
120121 // internal game options
121122 public CombatAttackModes CombatAttackMode = CombatAttackModes . Balanced ;
@@ -200,6 +201,7 @@ public void LoadOptions() {
200201
201202 LoadGeneral ( ) ;
202203
204+ OpenTibiaUnity . MiniMapRenderer . Zoom = MiniMapZoom ;
203205 UpdateQualitySettings ( ) ;
204206 }
205207
Original file line number Diff line number Diff line change @@ -42,9 +42,11 @@ protected void OnZLayerDownButtonClicked() {
4242 }
4343 protected void OnZoomOutButtonClicked ( ) {
4444 OpenTibiaUnity . MiniMapRenderer . Zoom -- ;
45+ OpenTibiaUnity . OptionStorage . MiniMapZoom = OpenTibiaUnity . MiniMapRenderer . Zoom ;
4546 }
4647 protected void OnZoomInButtonClicked ( ) {
4748 OpenTibiaUnity . MiniMapRenderer . Zoom ++ ;
49+ OpenTibiaUnity . OptionStorage . MiniMapZoom = OpenTibiaUnity . MiniMapRenderer . Zoom ;
4850 }
4951 protected void OnCenterButtonClicked ( ) {
5052 OpenTibiaUnity . MiniMapRenderer . Position = OpenTibiaUnity . MiniMapStorage . Position ;
You can’t perform that action at this time.
0 commit comments