equal
deleted
inserted
replaced
125 |
125 |
126 cTagsMask : byte; |
126 cTagsMask : byte; |
127 cPrevTagsMask : byte; |
127 cPrevTagsMask : byte; |
128 zoom : GLfloat; |
128 zoom : GLfloat; |
129 ZoomValue : GLfloat; |
129 ZoomValue : GLfloat; |
|
130 ChatScaleValue : real; |
|
131 UIScaleValue : real; |
130 |
132 |
131 cWaterLine : LongInt; |
133 cWaterLine : LongInt; |
132 cGearScrEdgesDist: LongInt; |
134 cGearScrEdgesDist: LongInt; |
133 isAudioMuted : boolean; |
135 isAudioMuted : boolean; |
134 |
136 |
236 |
238 |
237 SpeechHogNumber: LongInt; |
239 SpeechHogNumber: LongInt; |
238 |
240 |
239 // for tracking the limits of the visible grid based on cScaleFactor |
241 // for tracking the limits of the visible grid based on cScaleFactor |
240 ViewLeftX, ViewRightX, ViewBottomY, ViewTopY, ViewWidth, ViewHeight: LongInt; |
242 ViewLeftX, ViewRightX, ViewBottomY, ViewTopY, ViewWidth, ViewHeight: LongInt; |
|
243 // for tracking the limits of the visible UI space based on cUIScaleFactor |
|
244 UIWidth, UIHeight: LongInt; |
241 |
245 |
242 // for debugging the view limits visually |
246 // for debugging the view limits visually |
243 cViewLimitsDebug: boolean; |
247 cViewLimitsDebug: boolean; |
244 |
248 |
245 dirtyLandTexCount: LongInt; |
249 dirtyLandTexCount: LongInt; |
322 style: TTF_STYLE_NORMAL; |
326 style: TTF_STYLE_NORMAL; |
323 Name: 'DejaVuSans-Bold.ttf'), |
327 Name: 'DejaVuSans-Bold.ttf'), |
324 (Handle: nil; |
328 (Handle: nil; |
325 Height: 10*HDPIScaleFactor; |
329 Height: 10*HDPIScaleFactor; |
326 style: TTF_STYLE_NORMAL; |
330 style: TTF_STYLE_NORMAL; |
|
331 Name: 'DejaVuSans-Bold.ttf'), |
|
332 (Handle: nil; // fntChat |
|
333 Height: 12*HDPIScaleFactor; |
|
334 style: TTF_STYLE_NORMAL; |
327 Name: 'DejaVuSans-Bold.ttf') |
335 Name: 'DejaVuSans-Bold.ttf') |
328 {$IFNDEF MOBILE}, // remove chinese fonts for now |
336 {$IFNDEF MOBILE}, // remove chinese fonts for now |
329 (Handle: nil; |
337 (Handle: nil; |
330 Height: 12*HDPIScaleFactor; |
338 Height: 12*HDPIScaleFactor; |
331 style: TTF_STYLE_NORMAL; |
339 style: TTF_STYLE_NORMAL; |
334 Height: 24*HDPIScaleFactor; |
342 Height: 24*HDPIScaleFactor; |
335 style: TTF_STYLE_NORMAL; |
343 style: TTF_STYLE_NORMAL; |
336 Name: 'wqy-zenhei.ttc'), |
344 Name: 'wqy-zenhei.ttc'), |
337 (Handle: nil; |
345 (Handle: nil; |
338 Height: 10*HDPIScaleFactor; |
346 Height: 10*HDPIScaleFactor; |
|
347 style: TTF_STYLE_NORMAL; |
|
348 Name: 'wqy-zenhei.ttc'), |
|
349 (Handle: nil; // CJKfntChat |
|
350 Height: 12*HDPIScaleFactor; |
339 style: TTF_STYLE_NORMAL; |
351 style: TTF_STYLE_NORMAL; |
340 Name: 'wqy-zenhei.ttc') |
352 Name: 'wqy-zenhei.ttc') |
341 {$ENDIF} |
353 {$ENDIF} |
342 ); |
354 ); |
343 |
355 |
2523 PauseTexture, |
2535 PauseTexture, |
2524 AFKTexture, |
2536 AFKTexture, |
2525 SyncTexture, |
2537 SyncTexture, |
2526 ConfirmTexture: PTexture; |
2538 ConfirmTexture: PTexture; |
2527 cScaleFactor: GLfloat; |
2539 cScaleFactor: GLfloat; |
|
2540 cUIScaleFactor: float; |
2528 cStereoDepth: GLfloat; |
2541 cStereoDepth: GLfloat; |
2529 SupportNPOTT: Boolean; |
2542 SupportNPOTT: Boolean; |
2530 Step: LongInt; |
2543 Step: LongInt; |
2531 MissionIcons: PSDL_Surface; |
2544 MissionIcons: PSDL_Surface; |
2532 ropeIconTex: PTexture; |
2545 ropeIconTex: PTexture; |
2820 cExplosives := 2; |
2833 cExplosives := 2; |
2821 |
2834 |
2822 GameState := Low(TGameState); |
2835 GameState := Low(TGameState); |
2823 zoom := cDefaultZoomLevel; |
2836 zoom := cDefaultZoomLevel; |
2824 ZoomValue := cDefaultZoomLevel; |
2837 ZoomValue := cDefaultZoomLevel; |
|
2838 ChatScaleValue := cDefaultChatScaleLevel; |
|
2839 UIScaleValue := cDefaultUIScaleLevel; |
2825 WeaponTooltipTex:= nil; |
2840 WeaponTooltipTex:= nil; |
2826 cLaserSighting := false; |
2841 cLaserSighting := false; |
2827 cLaserSightingSniper := false; |
2842 cLaserSightingSniper := false; |
2828 cVampiric := false; |
2843 cVampiric := false; |
2829 flagMakeCapture := false; |
2844 flagMakeCapture := false; |