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

Refactoring code for Scaleform movie queries and 3D text drawing #1259

Closed
wants to merge 1 commit into from
Closed

Conversation

Purpose-Dev
Copy link

This commit makes significant changes to improve the structure of the code. The Scaleform movie query function has been moved directly into the 'scaleform.lua' module, eliminating the need to access it via an unnecessary 'Utils' object. Similarly, the 3D text drawing function has been moved to the 'ESX.Game' object, improving the accessibility and simplicity of the code structure.

These changes are aimed at streamlining access to specific functionality, reducing complexity and making the code clearer and easier to maintain. The adjustments made ensure a better organization of functionalities, facilitating future development and maintenance.

This commit involves moving the function for scaleform movie requests directly within the 'scaleform.lua' module, reducing the need to access it through an unnecessary 'Utils' object. Similarly, the 3D text drawing function has been moved to the 'ESX.Game' object, improving the accessibility and simplicity of the code structure.
@Arctos2win
Copy link
Contributor

This pr would break backwards compatibility so its not very likely to be merged. Maybe @Gellipapa thinks different abt this but i dont think so.

@Gellipapa
Copy link
Member

@Riyane3326 Hi! Thank you for your PR and your work but unfortunately we can't accept this. The scaleform part is not so much risky because people don't call that method by itself, but the DrawText3D out of the Utils table breaks the code 100% and a fresh es_extended afterwards would give the user the error that there is no such method as Utils.DrawText3D so we can't accept that now.

It is important to keep backwards compatibility as much as we can and so unfortunately such core methods cannot be refactored.

@Gellipapa Gellipapa closed this Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants