Pre-rendered fonts in png in BDS!!!

EasyBD, Blu-Disc Studio, BD Wizard, IG Editor, Quick BD Menu
Alexey Kolesnikov
Posts: 711
Joined: Fri Mar 01, 2013 1:03 pm

Re: Pre-rendered fonts in png in BDS!!!

Post by Alexey Kolesnikov »

Hi,
Your code is basically wrong - getMediaTimeInSeconds does not accept parameters.

For reverse you should use it the same way as for for the standard:
manager.updateTimer("F:PM_CurrentTime", manager.durationInSeconds - manager.getMediaTimeInSeconds());
or
manager.updateTimer("F:PM_CurrentTime", (manager.duration - manager.getMediaTime()) / 1000000000d);

To move the timer you should use updateTimer version that accepts delta coordinates:
manager.updateTimer(String subMenuName, long timeInSeconds, int dx, int dy) - allows to move timer object, dx and dy - delta from original position.

For example
manager.updateTimer("F:PM_CurrentTime", manager.getMediaTimeInSeconds(), 100, 0);
will place timer 100 pixels right from its original position.
Best regards,
Alexey Kolesnikov
rickemail2
Posts: 79
Joined: Fri Jun 25, 2021 9:45 pm

Re: Pre-rendered fonts in png in BDS!!!

Post by rickemail2 »

I tested the command today

manager.updateTimer("F:PM_CurrentTime", manager.durationInSeconds - manager.getMediaTimeInSeconds());

And it worked correctly, thank you.

Unfortunately, the rendered timer can't be moved in real time as the movie progresses, but I'll continue using the manager.moveToXY command without the source being rendered. Having the rendered source function available in BDS is already a huge improvement :)
Alexey Kolesnikov
Posts: 711
Joined: Fri Mar 01, 2013 1:03 pm

Re: Pre-rendered fonts in png in BDS!!!

Post by Alexey Kolesnikov »

Well... We already have several projects where rendered timer moves in real time using Action Every Second. So, I guess, you're doing something wrong.
Best regards,
Alexey Kolesnikov
bestbluray
Posts: 10
Joined: Sun Dec 10, 2023 2:05 pm

Re: Pre-rendered fonts in png in BDS!!!

Post by bestbluray »

Hi friend, I don't yet have the version to use: pre-rendered time, but analyzing your code on the previous page, I believe the fix for your code to track the time of your video is this:
manager.updateTimer("F:PM_CurrentTime", manager.getMediaTimeInSeconds(), (int)(((double) manager.getMediaTime() / 1000000000d) * 497 / ((double) manager.duration / 1000000000d) + 1), 0);
:idea: :!: