Author Topic: ADD 8bits GIF ANIMATIONS & MORE LAYOUT ANIMATIONS OPTIONS -- WORKING --  (Read 1141 times)

RfsVieira

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +21/-0
    • View Profile
Hello again, here i am, again talking about gif´s to retrofe :)
I found a guy that manage how to add gif to SDL2, i made some update to the code (to work) and tested in an stand alone SDL2 project  ( SDL2-2.0.14) and is playing gif animation.
isn´t perfect as  im not a programer as you alredy know.

its has option to update to layout designers

----- gif loops forward
----- gif will run from first frame to latest then stop
----- gif will loop forth and back
----- gif loops backward
----- gif will run from first frame to latest then stop(reverse)
----- animation is stopped and is reset to display the first logical frame

Problably dont need all options for start.

Dont know if you are interessed, if  yes i send you my SDL2 test project, then i can try help add it to retrofe (im slower :P) (problably test and try find the errors is my think)
« Last Edit: February 13, 2023, 03:26:14 PM by RfsVieira »

RfsVieira

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +21/-0
    • View Profile
Re: ADD 8bits GIF ANIMATIONS & MORE LAYOUT ANIMATIONS OPTIONS
« Reply #1 on: February 13, 2023, 03:13:28 PM »
I know...  ADDED VIDEO ..
But i managed it...
menu - always start´s auto wen selected.
then add 5 options to layout with frameloop = playLoop , playInverted , playOnce , playInvertedOnce, noPlay

I know you can make it bether, if you think is a good upgrade, it will be in Visual Studio Version Git, i alredy left here the address. As soon as i can i will update it, the source will be all there.
almost 1 year studding retrofe source.

updates during time...

0.10.31 -- Original

0 -- Updated for Visual Studio 2019 compiler

1 -- Update SDL Libs

2 -- Fix keyboard double click wen click once

3 -- Add Webp support and static Gif´s

4 -- Add Animated Gif´s support to logos (buttons)

5 -- Add play animation only if select

6 -- Add option Animated Gif´s to layout

7 -- Fix animation support layout (ex. charters)

8 -- Add Layout new arguments and framloop options for gif´s --animeimage and --frameloop"" ex.

<animeimage src="images/logo.gif" alpha="0" x="right" y="bottom" xOrigin="right" yOrigin="bottom" height="300" layer="17" frameloop="playLoop">
      <onMenuEnter menuIndex="0"><set duration=".25"><animate type="alpha" to="1"/></set></onMenuEnter>
      <onMenuExit  menuIndex="0"><set duration=".25"><animate type="alpha" to="0"/></set></onMenuExit>
</animeimage>

frameloop = playLoop , playInverted , playOnce , playInvertedOnce

9 -- Add icon to Retrofe

10 -- Add new argument to framloop="noPlay"

11 -- fix LEDBlinkyCloseOnExit which if set to yes will default to closing ledblinky when retrofe closes -- tks to jlvandusen
P.S. i problably will not support fixes or new updates.
Tks.
« Last Edit: February 13, 2023, 03:27:37 PM by RfsVieira »