This commit is contained in:
Valeria Fadeeva 2023-05-03 20:58:31 +05:00
parent adbf4020a1
commit 9e7925fd9a
8 changed files with 74 additions and 28 deletions

View File

@ -143,24 +143,47 @@ background.sprite.SetPosition(background.x, background.y, 0);
background.sprite.SetOpacity(1); background.sprite.SetOpacity(1);
// MESSAGE BACKGROUND // MESSAGE BACKGROUND
message_background.image = Image("MESSAGE_BACKGROUND.png"); side_background.image = Image("SIDE_BACKGROUND2.png");
message_background.image = message_background.image.Scale(Percent(25, screen.width), Percent(100, screen.height)); side_background.image = side_background.image.Scale(Percent(25, screen.width), Percent(100, screen.height));
message_background.x = x0; side_background.width = side_background.image.GetWidth();
message_background.y = y0; side_background.height = side_background.image.GetHeight();
message_background.sprite = Sprite(message_background.image); side_background.x = x0;
message_background.sprite.SetPosition(message_background.x, message_background.y, 8); side_background.y = y0;
message_background.sprite.SetOpacity(0.45);
side_background.sprite = Sprite(side_background.image);
side_background.sprite.SetPosition(side_background.x, side_background.y, 8);
side_background.sprite.SetOpacity(1);
// Sise Logo
side_logo.image = Image("Melawy_Linux_640x320.png");
side_logo.image = ScaleImage(side_logo.image, Limit(screen.width, screen.height, 20));
// side_logo.image = side_logo.image.Scale(Percent(25, screen.width), Percent(25, screen.height));
side_logo.width = side_logo.image.GetWidth();
side_logo.height = side_logo.image.GetHeight();
side_logo.x = (side_background.width - side_logo.width) / 2;
side_logo.y = screen.height - screen.height * 0.25;
side_logo.sprite = Sprite(side_logo.image);
side_logo.sprite.SetPosition(side_logo.x, side_logo.y, 9);
side_logo.sprite.SetOpacity(1);
// **************************************** // // **************************************** //
per.image = Image.Text("Valeria.Fadeeva.me", 0.5, 0.5, 0.5, 1, perfont); project_link.image = Image.Text("https://github.com/Melawy", 0.5, 0.5, 0.5, 1, perfont);
per.sprite = Sprite(per.image);
per.x = x0 + screen.width / 1 - per.image.GetWidth() / 0.91; project_link.width = project_link.image.GetWidth();
per.y = y0 + screen.height / 1.01 - per.image.GetHeight() / 1; project_link.height = project_link.image.GetHeight();
per.sprite.SetPosition(per.x, per.y, 1);
per.sprite.SetOpacity(1); project_link.sprite = Sprite(project_link.image);
project_link.x = (side_background.width - project_link.width) / 2;
project_link.y = side_logo.y + side_logo.height;
project_link.sprite.SetPosition(project_link.x, project_link.y, 9);
project_link.sprite.SetOpacity(1);
// **************************************** // // **************************************** //
@ -481,7 +504,7 @@ message_sprite=SpriteNew();
function message_callback(prompt) { function message_callback(prompt) {
message = Image.Text(prompt, 0.5, 0.5, 0.5, 1, ubuntufont); message = Image.Text(prompt, 0.5, 0.5, 0.5, 1, ubuntufont);
message_sprite.SetImage(message); message_sprite.SetImage(message);
message_sprite.SetPosition(Percent(2, screen.width), Percent(95, screen.height), 9); message_sprite.SetPosition(Percent(2, screen.width), Percent(50, screen.height), 9);
message_sprite.SetOpacity(1); message_sprite.SetOpacity(1);
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

View File

@ -143,24 +143,47 @@ background.sprite.SetPosition(background.x, background.y, 0);
background.sprite.SetOpacity(1); background.sprite.SetOpacity(1);
// MESSAGE BACKGROUND // MESSAGE BACKGROUND
message_background.image = Image("MESSAGE_BACKGROUND.png"); side_background.image = Image("SIDE_BACKGROUND2.png");
message_background.image = message_background.image.Scale(Percent(25, screen.width), Percent(100, screen.height)); side_background.image = side_background.image.Scale(Percent(25, screen.width), Percent(100, screen.height));
message_background.x = x0; side_background.width = side_background.image.GetWidth();
message_background.y = y0; side_background.height = side_background.image.GetHeight();
message_background.sprite = Sprite(message_background.image); side_background.x = x0;
message_background.sprite.SetPosition(message_background.x, message_background.y, 8); side_background.y = y0;
message_background.sprite.SetOpacity(0.45);
side_background.sprite = Sprite(side_background.image);
side_background.sprite.SetPosition(side_background.x, side_background.y, 8);
side_background.sprite.SetOpacity(1);
// Sise Logo
side_logo.image = Image("Melawy_Linux_640x320.png");
side_logo.image = ScaleImage(side_logo.image, Limit(screen.width, screen.height, 20));
// side_logo.image = side_logo.image.Scale(Percent(25, screen.width), Percent(25, screen.height));
side_logo.width = side_logo.image.GetWidth();
side_logo.height = side_logo.image.GetHeight();
side_logo.x = (side_background.width - side_logo.width) / 2;
side_logo.y = screen.height - screen.height * 0.25;
side_logo.sprite = Sprite(side_logo.image);
side_logo.sprite.SetPosition(side_logo.x, side_logo.y, 9);
side_logo.sprite.SetOpacity(1);
// **************************************** // // **************************************** //
per.image = Image.Text("Valeria.Fadeeva.me", 0.5, 0.5, 0.5, 1, perfont); project_link.image = Image.Text("https://github.com/Melawy", 0.5, 0.5, 0.5, 1, perfont);
per.sprite = Sprite(per.image);
per.x = x0 + screen.width / 1 - per.image.GetWidth() / 0.91; project_link.width = project_link.image.GetWidth();
per.y = y0 + screen.height / 1.01 - per.image.GetHeight() / 1; project_link.height = project_link.image.GetHeight();
per.sprite.SetPosition(per.x, per.y, 1);
per.sprite.SetOpacity(1); project_link.sprite = Sprite(project_link.image);
project_link.x = (side_background.width - project_link.width) / 2;
project_link.y = side_logo.y + side_logo.height;
project_link.sprite.SetPosition(project_link.x, project_link.y, 9);
project_link.sprite.SetOpacity(1);
// **************************************** // // **************************************** //
@ -481,7 +504,7 @@ message_sprite=SpriteNew();
fun message_callback(prompt) { fun message_callback(prompt) {
message = Image.Text(prompt, 0.5, 0.5, 0.5, 1, ubuntufont); message = Image.Text(prompt, 0.5, 0.5, 0.5, 1, ubuntufont);
message_sprite.SetImage(message); message_sprite.SetImage(message);
message_sprite.SetPosition(Percent(2, screen.width), Percent(95, screen.height), 9); message_sprite.SetPosition(Percent(2, screen.width), Percent(50, screen.height), 9);
message_sprite.SetOpacity(1); message_sprite.SetOpacity(1);
} }