openmamba 3 theme improvements:
- make new logo rotate - add a light green background
This commit is contained in:
parent
4bfa628672
commit
4a27cb357c
@ -1,6 +1,6 @@
|
|||||||
[Plymouth Theme]
|
[Plymouth Theme]
|
||||||
Name=openmamba
|
Name=openmamba
|
||||||
Description=openmamba 2 default theme
|
Description=openmamba 3 splash theme
|
||||||
ModuleName=script
|
ModuleName=script
|
||||||
|
|
||||||
[script]
|
[script]
|
||||||
|
@ -7,26 +7,22 @@ stretch_factor = screen_width / screen_height / 1.25;
|
|||||||
logo1.image = Image("openmamball.png");
|
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(100 * (screen_width / stretch_factor / 1280), 100 * (screen_height / 1024));
|
||||||
logo1.sprite = Sprite(logo1.image);
|
logo1.sprite = Sprite(logo1.image);
|
||||||
logo1.opacity_angle = 180;
|
logo1.opacity_angle = 0;
|
||||||
|
|
||||||
fun refresh_callback ()
|
fun refresh_callback ()
|
||||||
{
|
{
|
||||||
if (status == "normal")
|
if (status == "normal")
|
||||||
{
|
{
|
||||||
logo1.opacity_angle += ((2 * 3.14) / 50) * 0.1;
|
logo1.opacity_angle += (3.14 / 50);
|
||||||
min_opacity = 0.2;
|
logo1.sprite.SetImage(logo1.image.Rotate(logo1.opacity_angle));
|
||||||
opacity1 = (Math.Cos(logo1.opacity_angle) + 1) / 2;
|
|
||||||
opacity1 *= 1 - min_opacity;
|
|
||||||
opacity1 += min_opacity;
|
|
||||||
logo1.sprite.SetX ((640 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
|
logo1.sprite.SetX ((640 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
|
||||||
logo1.sprite.SetY ((512 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
|
logo1.sprite.SetY ((512 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
|
||||||
logo1.sprite.SetOpacity (opacity1);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
logo1.sprite.SetImage(logo1.image.Rotate(0));
|
||||||
logo1.sprite.SetX ((640 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
|
logo1.sprite.SetX ((640 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
|
||||||
logo1.sprite.SetY ((512 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
|
logo1.sprite.SetY ((512 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
|
||||||
logo1.sprite.SetOpacity (1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -69,6 +65,9 @@ fun dialog_setup()
|
|||||||
global.dialog.entry = entry;
|
global.dialog.entry = entry;
|
||||||
global.dialog.bullet_image = Image("bullet.png");
|
global.dialog.bullet_image = Image("bullet.png");
|
||||||
dialog_opacity (1);
|
dialog_opacity (1);
|
||||||
|
|
||||||
|
Window.SetBackgroundTopColor(0.781,0.891,0.777);
|
||||||
|
Window.SetBackgroundBottomColor(0.797,0.914,0.793);
|
||||||
}
|
}
|
||||||
|
|
||||||
fun dialog_opacity(opacity)
|
fun dialog_opacity(opacity)
|
||||||
@ -163,4 +162,7 @@ fun message_callback (text)
|
|||||||
message_sprite.SetImage(my_image);
|
message_sprite.SetImage(my_image);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Window.SetBackgroundTopColor(0.781,0.891,0.777);
|
||||||
|
Window.SetBackgroundBottomColor(0.797,0.914,0.793);
|
||||||
|
|
||||||
Plymouth.SetMessageFunction(message_callback);
|
Plymouth.SetMessageFunction(message_callback);
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 33 KiB |
Loading…
Reference in New Issue
Block a user