Commit 4a27cb357c5cbca745c230a2fb107bfdae600e20

Authored by Silvan Calarco
1 parent 4bfa628672
Exists in master

openmamba 3 theme improvements:

- make new logo rotate
- add a light green background

Showing 3 changed files with 11 additions and 9 deletions Side-by-side Diff

openmamba/openmamba.plymouth
1 1 [Plymouth Theme]
2 2 Name=openmamba
3   -Description=openmamba 2 default theme
  3 +Description=openmamba 3 splash theme
4 4 ModuleName=script
5 5  
6 6 [script]
openmamba/openmamba.script
... ... @@ -7,26 +7,22 @@
7 7 logo1.image = Image("openmamball.png");
8 8 logo1.image = logo1.image.Scale(100 * (screen_width / stretch_factor / 1280), 100 * (screen_height / 1024));
9 9 logo1.sprite = Sprite(logo1.image);
10   -logo1.opacity_angle = 180;
  10 +logo1.opacity_angle = 0;
11 11  
12 12 fun refresh_callback ()
13 13 {
14 14 if (status == "normal")
15 15 {
16   - logo1.opacity_angle += ((2 * 3.14) / 50) * 0.1;
17   - min_opacity = 0.2;
18   - opacity1 = (Math.Cos(logo1.opacity_angle) + 1) / 2;
19   - opacity1 *= 1 - min_opacity;
20   - opacity1 += min_opacity;
  16 + logo1.opacity_angle += (3.14 / 50);
  17 + logo1.sprite.SetImage(logo1.image.Rotate(logo1.opacity_angle));
21 18 logo1.sprite.SetX ((640 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
22 19 logo1.sprite.SetY ((512 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
23   - logo1.sprite.SetOpacity (opacity1);
24 20 }
25 21 else
26 22 {
  23 + logo1.sprite.SetImage(logo1.image.Rotate(0));
27 24 logo1.sprite.SetX ((640 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
28 25 logo1.sprite.SetY ((512 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
29   - logo1.sprite.SetOpacity (1);
30 26 }
31 27 }
32 28  
... ... @@ -69,6 +65,9 @@
69 65 global.dialog.entry = entry;
70 66 global.dialog.bullet_image = Image("bullet.png");
71 67 dialog_opacity (1);
  68 +
  69 + Window.SetBackgroundTopColor(0.781,0.891,0.777);
  70 + Window.SetBackgroundBottomColor(0.797,0.914,0.793);
72 71 }
73 72  
74 73 fun dialog_opacity(opacity)
... ... @@ -162,6 +161,9 @@
162 161 message_sprite.SetPosition(screen_width / 2 - my_image.GetWidth() / 2, (800/1024) * screen_height, 10000);
163 162 message_sprite.SetImage(my_image);
164 163 }
  164 +
  165 +Window.SetBackgroundTopColor(0.781,0.891,0.777);
  166 +Window.SetBackgroundBottomColor(0.797,0.914,0.793);
165 167  
166 168 Plymouth.SetMessageFunction(message_callback);
openmamba/openmamball.png

29.4 KB | W: | H:

33.2 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin