-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58eeac9
commit 2f3660a
Showing
21 changed files
with
85 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
#elif RPH | ||
using Rage; | ||
using Rage.Native; | ||
#elif SHVDN3 | ||
#elif SHVDN3 || SHVDNC | ||
using GTA.Native; | ||
#elif ALTV | ||
using AltV.Net.Client; | ||
|
@@ -36,7 +36,7 @@ public class ObjectPool : IEnumerable<IProcessable> | |
private SizeF lastKnownResolution = new SizeF(Game.ScreenResolution.Width, Game.ScreenResolution.Height); | ||
#elif RPH | ||
private SizeF lastKnownResolution = Game.Resolution; | ||
#elif SHVDN3 | ||
#elif SHVDN3 || SHVDNC | ||
private SizeF lastKnownResolution = GTA.UI.Screen.Resolution; | ||
#endif | ||
/// <summary> | ||
|
@@ -50,7 +50,7 @@ public class ObjectPool : IEnumerable<IProcessable> | |
private float lastKnownSafezone = Invoker.Invoke<float>(Natives.GetSafeZoneSize); | ||
#elif RPH | ||
private float lastKnownSafezone = NativeFunction.CallByHash<float>(0xBAF107B6BB2C97F0); | ||
#elif SHVDN3 | ||
#elif SHVDN3 || SHVDNC | ||
private float lastKnownSafezone = Function.Call<float>(Hash.GET_SAFE_ZONE_SIZE); | ||
#endif | ||
|
||
Check warning on line 56 in LemonUI/ObjectPool.cs
|
||
|
@@ -113,7 +113,7 @@ private void DetectResolutionChanges() | |
SizeF resolution = new SizeF(raw.Width, raw.Height); | ||
#elif RPH | ||
SizeF resolution = Game.Resolution; | ||
#elif SHVDN3 | ||
#elif SHVDN3 || SHVDNC | ||
SizeF resolution = GTA.UI.Screen.Resolution; | ||
#endif | ||
// If the old res does not matches the current one | ||
|
@@ -141,7 +141,7 @@ private void DetectSafezoneChanges() | |
float safezone = Invoker.Invoke<float>(Natives.GetSafeZoneSize); | ||
#elif RPH | ||
float safezone = NativeFunction.CallByHash<float>(0xBAF107B6BB2C97F0); | ||
#elif SHVDN3 | ||
#elif SHVDN3 || SHVDNC | ||
float safezone = Function.Call<float>(Hash.GET_SAFE_ZONE_SIZE); | ||
#endif | ||
|
||
|
Oops, something went wrong.