Verison 1.0.3 Release
Based on Buildbotics 0.4.14
This commit is contained in:
8
src/splash/buildbotics.plymouth
Normal file
8
src/splash/buildbotics.plymouth
Normal file
@@ -0,0 +1,8 @@
|
||||
[Plymouth Theme]
|
||||
Name=buildbotics
|
||||
Description=Buildbotics boot splash
|
||||
ModuleName=script
|
||||
|
||||
[script]
|
||||
ImageDir=/usr/share/plymouth/themes/buildbotics
|
||||
ScriptFile=/usr/share/plymouth/themes/buildbotics/buildbotics.script
|
||||
32
src/splash/buildbotics.script
Normal file
32
src/splash/buildbotics.script
Normal file
@@ -0,0 +1,32 @@
|
||||
screenW = Window.GetWidth();
|
||||
screenH = Window.GetHeight();
|
||||
|
||||
image = Image("splash.png");
|
||||
imageW = image.GetWidth();
|
||||
imageH = image.GetHeight();
|
||||
|
||||
scaleX = imageW / screenW;
|
||||
scaleY = imageH / screenH;
|
||||
|
||||
flag = 1;
|
||||
|
||||
if (scaleX > 1 || scaleY > 1) {
|
||||
if (scaleX > scaleY) {
|
||||
resized = image.Scale(screenW, imageH / scaleX);
|
||||
imageX = 0;
|
||||
imageY = (screenH - ((imageH * screenW) / imageW)) / 2;
|
||||
|
||||
} else {
|
||||
resized = image.Scale(imageW / scaleY, screenH);
|
||||
imageX = (screenW - ((imageW * screenH) / imageH)) / 2;
|
||||
imageY = 0;
|
||||
}
|
||||
|
||||
} else {
|
||||
resized = image.Scale(imageW, imageH);
|
||||
imageX = (screenW - imageW) / 2;
|
||||
imageY = (screenH - imageH) / 2;
|
||||
}
|
||||
|
||||
sprite = Sprite(resized);
|
||||
sprite.SetPosition(imageX, imageY, -100);
|
||||
BIN
src/splash/splash.png
Normal file
BIN
src/splash/splash.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 41 KiB |
Reference in New Issue
Block a user