Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent duplicate toasts, fix drawing logic crash #556

Merged
merged 1 commit into from
Jan 11, 2025
Merged

Conversation

LTS-FFXIV
Copy link
Member

This pull request includes several changes to improve the functionality and performance of the RotationSolver project. The changes focus on optimizing the toast message updates, refining the drawing logic, and enhancing the overall performance of the UI components.

Improvements to toast message updates:

Enhancements to drawing logic:

Performance improvements in UI components:

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.
@LTS-FFXIV LTS-FFXIV merged commit 5919c45 into main Jan 11, 2025
@LTS-FFXIV LTS-FFXIV deleted the crashfixWoops branch January 12, 2025 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant