This commit is contained in:
Valeria Fadeeva 2023-05-14 03:42:04 +05:00
parent 7828e87ee0
commit e347b454ad
2 changed files with 5 additions and 5 deletions

View File

@ -231,8 +231,8 @@ progress_text.image = Image.Text(progress_t + "%", 255, 255, 255, 1, progressfon
progress_text.width = progress_text.image.GetWidth(); progress_text.width = progress_text.image.GetWidth();
progress_text.height = progress_text.image.GetHeight(); progress_text.height = progress_text.image.GetHeight();
progress_text.x = progress_form.x + progress_form.width - (4 * Percent(70, progress_text.height)); // позиция % по X progress_text.x = progress_form.x;// + progress_form.width - (4 * Percent(70, progress_text.height)); // позиция % по X
progress_text.y = progress_form.y + progress_text.height; // позиция % по Y progress_text.y = progress_form.y;// + progress_text.height; // позиция % по Y
progress_text.sprite = SpriteNew(); progress_text.sprite = SpriteNew();
progress_text.sprite.SetPosition(progress_text.x, progress_text.y, 3); progress_text.sprite.SetPosition(progress_text.x, progress_text.y, 3);

View File

@ -1,5 +1,5 @@
/* /*
Theme Name: Melawy Fenek Theme Name: Melawy Lera Sugar
Version: 1.0 Version: 1.0
Description: My theme Description: My theme
Author: Valeria Fadeeva - https://github.com/Valeria-Fadeeva Author: Valeria Fadeeva - https://github.com/Valeria-Fadeeva
@ -231,8 +231,8 @@ progress_text.image = Image.Text(progress_t + "%", 255, 255, 255, 1, progressfon
progress_text.width = progress_text.image.GetWidth(); progress_text.width = progress_text.image.GetWidth();
progress_text.height = progress_text.image.GetHeight(); progress_text.height = progress_text.image.GetHeight();
progress_text.x = progress_form.x + progress_form.width - (4 * Percent(70, progress_text.height)); // позиция % по X progress_text.x = progress_form.x;// + progress_form.width - (4 * Percent(70, progress_text.height)); // позиция % по X
progress_text.y = progress_form.y + progress_text.height; // позиция % по Y progress_text.y = progress_form.y;// + progress_text.height; // позиция % по Y
progress_text.sprite = SpriteNew(); progress_text.sprite = SpriteNew();
progress_text.sprite.SetPosition(progress_text.x, progress_text.y, 3); progress_text.sprite.SetPosition(progress_text.x, progress_text.y, 3);