Compare commits

..

No commits in common. "master" and "milestone2" have entirely different histories.

11 changed files with 55 additions and 14 deletions

View File

@ -1 +1 @@
VERSION = 2.90.1
VERSION = 0.1

BIN
openmamba/background.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

BIN
openmamba/box.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 870 B

BIN
openmamba/bullet.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 B

BIN
openmamba/entry.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 B

BIN
openmamba/lock.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -1,6 +1,6 @@
[Plymouth Theme]
Name=openmamba
Description=openmamba 3 splash theme
Description=openmamba 2 default theme
ModuleName=script
[script]

View File

@ -1,28 +1,70 @@
# openmamba 3 plymouth script
# This is an example plymouth plugin script
#Window.SetBackgroundTopColor(0.234, 0.43, 0.705);
#Window.SetBackgroundBottomColor(0.16, 0.25, 0.44);
wallpaper_image = Image("background.png");
screen_width = Window.GetWidth();
screen_height = Window.GetHeight();
resized_wallpaper_image = wallpaper_image.Scale(screen_width,screen_height);
wallpaper_sprite = Sprite(resized_wallpaper_image);
wallpaper_sprite.SetZ(-100);
stretch_factor = screen_width / screen_height / 1.25;
logo1.image = Image("openmamball.png");
logo1.image = logo1.image.Scale(100 * (screen_width / stretch_factor / 1280), 100 * (screen_height / 1024));
logo1.image = logo1.image.Scale(72 * (screen_width / stretch_factor / 1280), 72 * (screen_height / 1024));
logo1.sprite = Sprite(logo1.image);
logo1.opacity_angle = 0;
logo2.image = Image("openmamball.png");
logo2.image = logo2.image.Scale(85 * (screen_width / stretch_factor / 1280), 85 * (screen_height / 1024));
logo2.sprite = Sprite(logo2.image);
logo2.opacity_angle = 0;
logo3.image = Image("openmamball.png");
logo3.image = logo3.image.Scale(118 * (screen_width / stretch_factor / 1280), 118 * (screen_height / 1024));
logo3.sprite = Sprite(logo3.image);
logo3.opacity_angle = 0;
fun refresh_callback ()
{
if (status == "normal")
{
logo1.opacity_angle += (3.14 / 50);
logo1.sprite.SetImage(logo1.image.Rotate(logo1.opacity_angle));
logo1.sprite.SetX ((640 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
logo1.sprite.SetY ((512 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
logo1.opacity_angle += ((2 * 3.14) / 50) * 0.3; # 0.5 HZ
logo2.opacity_angle += ((2 * 3.14) / 50) * 0.4; # 0.25 HZ
logo3.opacity_angle += ((2 * 3.14) / 50) * 0.5; # 0.125 HZ
min_opacity = 0.3;
opacity1 = (Math.Cos(logo1.opacity_angle) + 1) / 2;
opacity1 *= 1 - min_opacity;
opacity1 += min_opacity;
logo1.sprite.SetX ((980 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
logo1.sprite.SetY ((105 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
logo1.sprite.SetOpacity (opacity1);
opacity2 = (Math.Cos(logo2.opacity_angle) + 1) / 2;
opacity2 *= 1 - min_opacity;
opacity2 += min_opacity;
logo2.sprite.SetX ((980 * screen_width) / 1280 - logo2.image.GetWidth() / 2);
logo2.sprite.SetY ((242 * screen_height) / 1024 - logo2.image.GetHeight() / 2);
logo2.sprite.SetOpacity (opacity2);
opacity3 = (Math.Cos(logo3.opacity_angle) + 1) / 2;
opacity3 *= 1 - min_opacity;
opacity3 += min_opacity;
logo3.sprite.SetX ((980 * screen_width) / 1280 - logo3.image.GetWidth() / 2);
logo3.sprite.SetY ((415 * screen_height) / 1024 - logo3.image.GetHeight() / 2);
logo3.sprite.SetOpacity (opacity3);
}
else
{
logo1.sprite.SetImage(logo1.image.Rotate(0));
logo1.sprite.SetX ((640 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
logo1.sprite.SetY ((512 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
logo1.sprite.SetX ((980 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
logo1.sprite.SetY ((105 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
logo1.sprite.SetOpacity (1);
logo2.sprite.SetX ((980 * screen_width) / 1280 - logo2.image.GetWidth() / 2);
logo2.sprite.SetY ((250 * screen_height) / 1024 - logo2.image.GetHeight() / 2);
logo2.sprite.SetOpacity (1);
logo3.sprite.SetX ((980 * screen_width) / 1280 - logo3.image.GetWidth() / 2);
logo3.sprite.SetY ((415 * screen_height) / 1024 - logo3.image.GetHeight() / 2);
logo3.sprite.SetOpacity (1);
}
}
@ -144,6 +186,8 @@ Plymouth.SetDisplayPasswordFunction(display_password_callback);
fun quit_callback ()
{
logo1.sprite.SetOpacity (1);
logo2.sprite.SetOpacity (1);
logo3.sprite.SetOpacity (1);
}
Plymouth.SetQuitFunction(quit_callback);
@ -160,6 +204,3 @@ fun message_callback (text)
}
Plymouth.SetMessageFunction(message_callback);
Window.SetBackgroundTopColor(0.781,0.891,0.777);
Window.SetBackgroundBottomColor(0.797,0.914,0.793);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 33 KiB

BIN
openmamba/progress_bar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 B

BIN
openmamba/progress_box.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B