-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent duplicate toasts, fix drawing logic crash
Changed Draw method in OverlayWindow.cs to synchronous and added null check for drawList.NativePtr to prevent crashes. Updated RSCommands_StateSpecialCommand.cs to prevent duplicate toast messages by storing the last message and checking against it before displaying a new one. Simplified and optimized DrawingHighlightHotbar.cs by removing unnecessary Union calls and refactoring GetAddons method. Cleaned up IDrawing2D interface and added null checks in ImageDrawing struct's Draw method. Refactored GetDrawingOrder method for better readability.
- Loading branch information
Showing
3 changed files
with
46 additions
and
29 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