Saturday, 27 February 2016

Add DNA to E2B!

Want to add this animation to your E2B menu?


Download the DNA_Animation.zip file from the Alternate Download Areas - Other Files folder and add the extracted files to the \_ISO\MAINMENU\MNU folder.

This will add a DNA Animation menu entry to the Main menu for you to test.

E2B v.1.78g or later is required.


Here is the .mnu file contents...

# Copy this .mnu file to \_ISO\MAINMENU\MNU folder
# Copy the DNA.IMA file to the same folder

iftitle [if exist $HOME$/DNA.ima] DNA animation \n Add DNA to the menu!
map --mem --read-only $HOME$/DNA.ima (fd3)
map --hook
set P=(fd3)/DNA_orbit_animated_frame_0001.bmp
set trans=0x80 && set infinite=0x10  
set /A type=%infinite% + %trans%
set delay=0x3 ;; set end=120 ;; set offx=550 ;; set offy=0
splashimage --animated=%type%=%delay%=%end%=%offx%=%offy% %P% > nul
set trans= && set once= && set cycle= && set delay= && set type= && set end= && set offy= && set offx= && set P= && set disable=
errorcheck off
boot

Note: There are 120 frames, the latest grub4dos can only play up to 999!

Automatic animation

To add the DNA animation to your menu on start up, use these lines to the \_ISO\MyE2B.cfg file and copy the DNA.ima file to the \_ISO folder. Here is a minimum MyE2B.cfg, adjust the offx and offy to position the animation.

!BAT
set ANIMFD3=/_ISO/DNA.ima
set P=(fd3)/DNA_orbit_animated_frame_0001.bmp
set trans=0x80 && set infinite=0x10  
set /A type=%infinite% + %trans%
set delay=0x1 ;; set end=120 ;; set offx=550 ;; set offy=0
set ANIMATE=%type%=%delay%=%end%=%offx%=%offy% %P%
set trans= && set once= && set delay= && set type= && set end= && set offy= && set offx= && set P= && set disable=

This MyE2B.cfg menu is now included in the DNA_Animation_v2.zip download file.

This can be shortened to:

!BAT
set ANIMFD3=/_ISO/DNA.ima
set ANIMATE=0x90=1=120=550=(fd3)/DNA_orbit_animated_frame_0001.bmp


Using a different Date format in the Main menu heading

Add this above the HEADING entry in \_ISO\MyE2B.cfg

set MYDATE=%day%-%month%-%year%

then use %MYDATE% in the heading instead of %@date%