better plymouth boot screen for jaci systm
This commit is contained in:
parent
9d35632510
commit
37d9e918d4
@ -18,7 +18,7 @@ message = null;
|
|||||||
// Password prompt
|
// Password prompt
|
||||||
bullets = null;
|
bullets = null;
|
||||||
prompt = null;
|
prompt = null;
|
||||||
bullet.image = Image.Text("*", 1, 1, 1);
|
bullet.image = Image.Text("*", 0, 0, 0);
|
||||||
|
|
||||||
// Flow
|
// Flow
|
||||||
state.status = "play";
|
state.status = "play";
|
||||||
@ -42,8 +42,8 @@ progress = 0;
|
|||||||
|
|
||||||
fun refresh_callback ()
|
fun refresh_callback ()
|
||||||
{
|
{
|
||||||
// Speed divisor of 2 for smooth 32-frame animation
|
// Speed divisor of 5 for slower, smooth 32-frame animation
|
||||||
frame_sprite.SetImage(frame_image[Math.Int(progress / 2) % frame_count]);
|
frame_sprite.SetImage(frame_image[Math.Int(progress / 5) % frame_count]);
|
||||||
progress++;
|
progress++;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ fun DisplayPasswordCallback(nil, bulletCount) {
|
|||||||
totalWidth = bulletCount * bullet.image.GetWidth();
|
totalWidth = bulletCount * bullet.image.GetWidth();
|
||||||
startPos = screen.half.w - totalWidth / 2;
|
startPos = screen.half.w - totalWidth / 2;
|
||||||
|
|
||||||
prompt.image = Image.Text("Enter Password", 1, 1, 1);
|
prompt.image = Image.Text("Enter Password", 0, 0, 0);
|
||||||
prompt.sprite = Sprite(prompt.image);
|
prompt.sprite = Sprite(prompt.image);
|
||||||
prompt.sprite.SetX(screen.half.w - prompt.image.GetWidth() / 2);
|
prompt.sprite.SetX(screen.half.w - prompt.image.GetWidth() / 2);
|
||||||
prompt.sprite.SetY(screen.h - 4 * prompt.image.GetHeight());
|
prompt.sprite.SetY(screen.h - 4 * prompt.image.GetHeight());
|
||||||
|
|||||||
@ -18,7 +18,7 @@ message = null;
|
|||||||
// Password prompt
|
// Password prompt
|
||||||
bullets = null;
|
bullets = null;
|
||||||
prompt = null;
|
prompt = null;
|
||||||
bullet.image = Image.Text("*", 1, 1, 1);
|
bullet.image = Image.Text("*", 0, 0, 0);
|
||||||
|
|
||||||
// Flow
|
// Flow
|
||||||
state.status = "play";
|
state.status = "play";
|
||||||
@ -75,7 +75,7 @@ fun DisplayPasswordCallback(nil, bulletCount) {
|
|||||||
totalWidth = bulletCount * bullet.image.GetWidth();
|
totalWidth = bulletCount * bullet.image.GetWidth();
|
||||||
startPos = screen.half.w - totalWidth / 2;
|
startPos = screen.half.w - totalWidth / 2;
|
||||||
|
|
||||||
prompt.image = Image.Text("Enter Password", 1, 1, 1);
|
prompt.image = Image.Text("Enter Password", 0, 0, 0);
|
||||||
prompt.sprite = Sprite(prompt.image);
|
prompt.sprite = Sprite(prompt.image);
|
||||||
prompt.sprite.SetX(screen.half.w - prompt.image.GetWidth() / 2);
|
prompt.sprite.SetX(screen.half.w - prompt.image.GetWidth() / 2);
|
||||||
prompt.sprite.SetY(screen.h - 4 * prompt.image.GetHeight());
|
prompt.sprite.SetY(screen.h - 4 * prompt.image.GetHeight());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user