summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/plymouth/mga.script22
1 files changed, 14 insertions, 8 deletions
diff --git a/common/plymouth/mga.script b/common/plymouth/mga.script
index 9735817..0ea310b 100644
--- a/common/plymouth/mga.script
+++ b/common/plymouth/mga.script
@@ -50,41 +50,47 @@ else {
}
}
-scalewidth = Window.GetMaxWidth() / background.original_image.GetWidth();
-scaleheight = Window.GetMaxHeight() / background.original_image.GetHeight();
-logo.image = logo.original_image.Scale(logo.original_image.GetWidth() * scalewidth, logo.original_image.GetHeight() * scaleheight);
+scaleheight = Window.GetHeight() / logo.original_image.GetHeight();
+logo.image = logo.original_image.Scale(logo.original_image.GetWidth() * scaleheight, logo.original_image.GetHeight() * scaleheight);
logo.sprite = SpriteNew();
logo.sprite.SetImage(logo.image);
+offset = Window.GetWidth() / 2 - logo.sprite.GetImage().GetWidth() / 2 ;
+logo.sprite.SetX (offset );
logo.opacity_angle = 0;
progressbar1.original_image = ImageNew("bubble1.png");
-progressbar1.image = progressbar1.original_image.Scale(progressbar1.original_image.GetWidth() * scalewidth, progressbar1.original_image.GetHeight() * scaleheight);
+progressbar1.image = progressbar1.original_image.Scale(progressbar1.original_image.GetWidth() * scaleheight, progressbar1.original_image.GetHeight() * scaleheight);
progressbar1.sprite = SpriteNew();
progressbar1.sprite.SetImage(progressbar1.image);
+progressbar1.sprite.SetX(offset );
progressbar1.opacity_angle = 0;
progressbar2.original_image = ImageNew("bubble2.png");
-progressbar2.image = progressbar2.original_image.Scale(progressbar2.original_image.GetWidth() * scalewidth, progressbar2.original_image.GetHeight() * scaleheight);
+progressbar2.image = progressbar2.original_image.Scale(progressbar2.original_image.GetWidth() * scaleheight, progressbar2.original_image.GetHeight() * scaleheight);
progressbar2.sprite = SpriteNew();
progressbar2.sprite.SetImage(progressbar2.image);
+progressbar2.sprite.SetX(offset );
progressbar2.opacity_angle = 0;
progressbar3.original_image = ImageNew("bubble3.png");
-progressbar3.image = progressbar3.original_image.Scale(progressbar3.original_image.GetWidth() * scalewidth, progressbar3.original_image.GetHeight() * scaleheight);
+progressbar3.image = progressbar3.original_image.Scale(progressbar3.original_image.GetWidth() * scaleheight, progressbar3.original_image.GetHeight() * scaleheight);
progressbar3.sprite = SpriteNew();
progressbar3.sprite.SetImage(progressbar3.image);
+progressbar3.sprite.SetX(offset );
progressbar3.opacity_angle = 0;
progressbar4.original_image = ImageNew("bubble4.png");
-progressbar4.image = progressbar4.original_image.Scale(progressbar4.original_image.GetWidth() * scalewidth, progressbar4.original_image.GetHeight() * scaleheight);
+progressbar4.image = progressbar4.original_image.Scale(progressbar4.original_image.GetWidth() * scaleheight, progressbar4.original_image.GetHeight() * scaleheight);
progressbar4.sprite = SpriteNew();
progressbar4.sprite.SetImage(progressbar4.image);
+progressbar4.sprite.SetX(offset );
progressbar4.opacity_angle = 0;
progressbar5.original_image = ImageNew("bubble5.png");
-progressbar5.image = progressbar5.original_image.Scale(progressbar5.original_image.GetWidth() * scalewidth, progressbar5.original_image.GetHeight() * scaleheight);
+progressbar5.image = progressbar5.original_image.Scale(progressbar5.original_image.GetWidth() * scaleheight, progressbar5.original_image.GetHeight() * scaleheight);
progressbar5.sprite = SpriteNew();
progressbar5.sprite.SetImage(progressbar5.image);
+progressbar5.sprite.SetX(offset );
progressbar5.opacity_angle = 0;
if (Plymouth.GetMode() == "shutdown") {