fivem-scaleform-lib icon indicating copy to clipboard operation
fivem-scaleform-lib copied to clipboard

Scaleform draw time needs to be reworked

Open CritteRo opened this issue 4 years ago • 1 comments

Currently, when you call an event, a varoable for that event will switch to true and a draw loop will be activated for that variable.

After that, we start a new thread, wait for the seconds to pass and then will set the initial variable back to false, closing the draw loop.

While this does get the job done, calling the same event in that timeframe will break the scaleform, since the event will generate another thread, with another timer, while the first one is still active, causing the new scaleform to close before completion.

The new system will need to check for scaleforms already active.

CritteRo avatar May 28 '21 23:05 CritteRo

Moved most of the scaleform timers from the build function to the event itself. This should be the first in recreating the timer event.

CritteRo avatar Aug 18 '21 11:08 CritteRo