terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ UpdatePinchZoom()

void GUIZoom.UpdatePinchZoom ( )
inline

Definition at line 98 of file GUIZoom.cs.

99 {
100 float x3;
101 float y3;
103 int num;
104 for (;;)
105 {
106 if (!true)
107 {
108 }
109 bool mapFullscreen = Main.mapFullscreen;
111 if (!pinchZoomMapEnabled)
112 {
113 return;
114 }
116 {
117 }
119 if (!this.PinchZoomWorldEnabled)
120 {
121 }
122 if (this._pinchZoomActive)
123 {
124 global::Cursor cursor;
125 if (cursor.Down)
126 {
127 global::Cursor zoomCursor = this._zoomCursor0;
128 global::Cursor zoomCursor2 = this._zoomCursor1;
129 }
130 global::Cursor zoomCursor3 = this._zoomCursor0;
131 global::Cursor zoomCursor4 = this._zoomCursor1;
132 float x = zoomCursor3.Position.x;
133 float y = zoomCursor3.Position.y;
134 float x2 = zoomCursor4.Position.x;
135 float y2 = zoomCursor4.Position.y;
136 if (zoomCursor3 == null)
137 {
138 }
139 if (zoomCursor3 == null)
140 {
141 }
144 {
145 x3 = this._lastFrameGrabCentre.X;
146 y3 = this._lastFrameGrabCentre.Y;
148 float mapFullscreenScale = Main.mapFullscreenScale;
150 }
152 if (true)
153 {
154 break;
155 }
156 global::Cursor zoomCursor5 = this._zoomCursor0;
157 global::Cursor zoomCursor6 = this._zoomCursor1;
158 float x4 = zoomCursor5.Position.x;
159 float x5 = zoomCursor6.Position.x;
160 if (!true)
161 {
162 }
163 float initialZoom = this._initialZoom;
164 this.ApplyPixelZoom(mapFullscreenScale3);
165 if (this._pinchZoomActive)
166 {
167 return;
168 }
169 }
170 else
171 {
172 num = 1;
173 global::Cursor cursor2;
174 if (cursor2.IgnoreForWorld)
175 {
176 return;
177 }
180 if (this._zoomCursor1 == null)
181 {
182 goto Block_6;
183 }
184 }
185 }
186 return;
187 Block_6:
188 int num2;
190 this._pinchZoomActive = num != 0;
200 }
class f__AnonymousType0<< Count > j__TPar
bool _lastFrameFullScreenMap
Definition GUIZoom.cs:241
void ApplyPixelZoom(float pixelScale)
Definition GUIZoom.cs:58
global::Cursor _zoomCursor1
Definition GUIZoom.cs:232
float _initialZoom
Definition GUIZoom.cs:247
Microsoft.Xna.Framework.Vector2 _lastFrameGrabCentre
Definition GUIZoom.cs:244
CursorInputLayer _inputlayerZoomPinch
Definition GUIZoom.cs:217
bool _pinchZoomActive
Definition GUIZoom.cs:226
global::Cursor _zoomCursor0
Definition GUIZoom.cs:229
bool PinchZoomWorldEnabled
Definition GUIZoom.cs:250
bool PinchZoomMapEnabled
Definition GUIZoom.cs:253
static float mapFullscreenScale
Definition Main.cs:1483
static Microsoft.Xna.Framework.Vector2 mapFullscreenPos
Definition Main.cs:1497
static bool mapFullscreen
Definition Main.cs:1441

References _initialZoom, _inputlayerZoomPinch, _lastFrameFullScreenMap, _lastFrameGrabCentre, _pinchZoomActive, _zoomCursor0, _zoomCursor1, ApplyPixelZoom(), j__TPar, Terraria.Main.mapFullscreen, Terraria.Main.mapFullscreenPos, Terraria.Main.mapFullscreenScale, PinchZoomMapEnabled, and PinchZoomWorldEnabled.