Commit 4bfa628672c48065e513568833666fcc397fade2

Authored by Silvan Calarco
1 parent f63cfd8545
Exists in master

New theme: simple (temporary?) openmamba milestone3 theme

Showing 10 changed files with 10 additions and 50 deletions Side-by-side Diff

1   -VERSION = 0.1
  1 +VERSION = 2.80
openmamba/background.png

161 KB

openmamba/box.png

870 Bytes

openmamba/bullet.png

296 Bytes

openmamba/entry.png

350 Bytes

openmamba/lock.png

1.85 KB

openmamba/openmamba.script
1   -# This is an example plymouth plugin script
  1 +# openmamba 3 plymouth script
2 2  
3   -#Window.SetBackgroundTopColor(0.234, 0.43, 0.705);
4   -#Window.SetBackgroundBottomColor(0.16, 0.25, 0.44);
5   -
6   -wallpaper_image = Image("background.png");
7 3 screen_width = Window.GetWidth();
8 4 screen_height = Window.GetHeight();
9   -resized_wallpaper_image = wallpaper_image.Scale(screen_width,screen_height);
10   -wallpaper_sprite = Sprite(resized_wallpaper_image);
11   -wallpaper_sprite.SetZ(-100);
12   -
13 5 stretch_factor = screen_width / screen_height / 1.25;
14 6  
15 7 logo1.image = Image("openmamball.png");
16   -logo1.image = logo1.image.Scale(72 * (screen_width / stretch_factor / 1280), 72 * (screen_height / 1024));
  8 +logo1.image = logo1.image.Scale(100 * (screen_width / stretch_factor / 1280), 100 * (screen_height / 1024));
17 9 logo1.sprite = Sprite(logo1.image);
18   -logo1.opacity_angle = 0;
  10 +logo1.opacity_angle = 180;
19 11  
20   -logo2.image = Image("openmamball.png");
21   -logo2.image = logo2.image.Scale(85 * (screen_width / stretch_factor / 1280), 85 * (screen_height / 1024));
22   -logo2.sprite = Sprite(logo2.image);
23   -logo2.opacity_angle = 0;
24   -
25   -logo3.image = Image("openmamball.png");
26   -logo3.image = logo3.image.Scale(118 * (screen_width / stretch_factor / 1280), 118 * (screen_height / 1024));
27   -logo3.sprite = Sprite(logo3.image);
28   -logo3.opacity_angle = 0;
29   -
30 12 fun refresh_callback ()
31 13 {
32 14 if (status == "normal")
33 15 {
34   - logo1.opacity_angle += ((2 * 3.14) / 50) * 0.3; # 0.5 HZ
35   - logo2.opacity_angle += ((2 * 3.14) / 50) * 0.4; # 0.25 HZ
36   - logo3.opacity_angle += ((2 * 3.14) / 50) * 0.5; # 0.125 HZ
37   - min_opacity = 0.3;
  16 + logo1.opacity_angle += ((2 * 3.14) / 50) * 0.1;
  17 + min_opacity = 0.2;
38 18 opacity1 = (Math.Cos(logo1.opacity_angle) + 1) / 2;
39 19 opacity1 *= 1 - min_opacity;
40 20 opacity1 += min_opacity;
41   - logo1.sprite.SetX ((980 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
42   - logo1.sprite.SetY ((105 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
  21 + logo1.sprite.SetX ((640 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
  22 + logo1.sprite.SetY ((512 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
43 23 logo1.sprite.SetOpacity (opacity1);
44   - opacity2 = (Math.Cos(logo2.opacity_angle) + 1) / 2;
45   - opacity2 *= 1 - min_opacity;
46   - opacity2 += min_opacity;
47   - logo2.sprite.SetX ((980 * screen_width) / 1280 - logo2.image.GetWidth() / 2);
48   - logo2.sprite.SetY ((242 * screen_height) / 1024 - logo2.image.GetHeight() / 2);
49   - logo2.sprite.SetOpacity (opacity2);
50   - opacity3 = (Math.Cos(logo3.opacity_angle) + 1) / 2;
51   - opacity3 *= 1 - min_opacity;
52   - opacity3 += min_opacity;
53   - logo3.sprite.SetX ((980 * screen_width) / 1280 - logo3.image.GetWidth() / 2);
54   - logo3.sprite.SetY ((415 * screen_height) / 1024 - logo3.image.GetHeight() / 2);
55   - logo3.sprite.SetOpacity (opacity3);
56 24 }
57 25 else
58 26 {
59   - logo1.sprite.SetX ((980 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
60   - logo1.sprite.SetY ((105 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
  27 + logo1.sprite.SetX ((640 * screen_width) / 1280 - logo1.image.GetWidth() / 2);
  28 + logo1.sprite.SetY ((512 * screen_height) / 1024 - logo1.image.GetHeight() / 2);
61 29 logo1.sprite.SetOpacity (1);
62   - logo2.sprite.SetX ((980 * screen_width) / 1280 - logo2.image.GetWidth() / 2);
63   - logo2.sprite.SetY ((250 * screen_height) / 1024 - logo2.image.GetHeight() / 2);
64   - logo2.sprite.SetOpacity (1);
65   - logo3.sprite.SetX ((980 * screen_width) / 1280 - logo3.image.GetWidth() / 2);
66   - logo3.sprite.SetY ((415 * screen_height) / 1024 - logo3.image.GetHeight() / 2);
67   - logo3.sprite.SetOpacity (1);
68 30 }
69 31 }
70 32  
... ... @@ -186,8 +148,6 @@
186 148 fun quit_callback ()
187 149 {
188 150 logo1.sprite.SetOpacity (1);
189   - logo2.sprite.SetOpacity (1);
190   - logo3.sprite.SetOpacity (1);
191 151 }
192 152  
193 153 Plymouth.SetQuitFunction(quit_callback);
openmamba/openmamball.png

33.2 KB | W: | H:

29.4 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
openmamba/progress_bar.png

173 Bytes

openmamba/progress_box.png

196 Bytes