diff --git a/openmamba/openmamba.plymouth b/openmamba/openmamba.plymouth index 4ebd9e9..f9b5eb1 100644 --- a/openmamba/openmamba.plymouth +++ b/openmamba/openmamba.plymouth @@ -1,6 +1,6 @@ [Plymouth Theme] Name=openmamba -Description=openmamba 2 default theme +Description=openmamba 3 splash theme ModuleName=script [script] diff --git a/openmamba/openmamba.script b/openmamba/openmamba.script index d6d5380..9e3efe1 100644 --- a/openmamba/openmamba.script +++ b/openmamba/openmamba.script @@ -7,26 +7,22 @@ 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.sprite = Sprite(logo1.image); -logo1.opacity_angle = 180; +logo1.opacity_angle = 0; fun refresh_callback () { if (status == "normal") { - logo1.opacity_angle += ((2 * 3.14) / 50) * 0.1; - min_opacity = 0.2; - opacity1 = (Math.Cos(logo1.opacity_angle) + 1) / 2; - opacity1 *= 1 - min_opacity; - opacity1 += min_opacity; + 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.sprite.SetOpacity (opacity1); } 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.SetOpacity (1); } } @@ -69,6 +65,9 @@ fun dialog_setup() global.dialog.entry = entry; global.dialog.bullet_image = Image("bullet.png"); dialog_opacity (1); + + Window.SetBackgroundTopColor(0.781,0.891,0.777); + Window.SetBackgroundBottomColor(0.797,0.914,0.793); } fun dialog_opacity(opacity) @@ -163,4 +162,7 @@ fun message_callback (text) 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); diff --git a/openmamba/openmamball.png b/openmamba/openmamball.png index c748e5c..05a07dd 100644 Binary files a/openmamba/openmamball.png and b/openmamba/openmamball.png differ