-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18bef21
commit bef29e3
Showing
229 changed files
with
202 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Plymouth Theme] | ||
Name=Numix | ||
Description=Numix Plymouth theme. | ||
ModuleName=script | ||
|
||
[script] | ||
ImageDir=/lib/plymouth/themes/numix | ||
ScriptFile=/lib/plymouth/themes/numix/numix.script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
# Set Background Color | ||
Window.SetBackgroundTopColor(0.839215686, 0.28627451, 0.215686275); | ||
Window.SetBackgroundBottomColor(0.839215686, 0.28627451, 0.215686275); | ||
|
||
# Tinted text #ffffff | ||
Window.Secolour.red = 1.0; | ||
tinted_text_colour.green = 1.0; | ||
tinted_text_colour.blue = 1.0; | ||
|
||
# Loading | ||
for (i = 1; i <= 221; i++) | ||
{ | ||
loading[i].image = Image("loading2_" + i + ".png"); | ||
loading[i].sprite = Sprite(loading[i].image); | ||
loading[i].sprite.SetOpacity(0); | ||
loading[i].offset_y = 1; | ||
loading[i].x = Window.GetX() + Window.GetWidth() / 2 - loading[i].image.GetWidth() / 2; | ||
loading[i].y = Window.GetX() + Window.GetHeight() / 2 - loading[i].image.GetHeight() / 2; | ||
loading[i].sprite.SetPosition(loading[i].x, loading[i].y, 0); | ||
} | ||
|
||
index = 1; | ||
is_forward = 1; | ||
fun boot_callback() | ||
{ | ||
# 50 frames per second | ||
if (index <= 1) | ||
{ | ||
is_forward = 1; | ||
} | ||
if (index >= 221) | ||
{ | ||
is_forward = 0; | ||
} | ||
for (i = 1; i <= 221; i++) | ||
{ | ||
if (index != i) | ||
{ | ||
loading[i].sprite.SetOpacity(0); | ||
} | ||
else | ||
{ | ||
loading[i].sprite.SetOpacity(1); | ||
} | ||
} | ||
if (is_forward) | ||
{ | ||
index++; | ||
} | ||
else | ||
{ | ||
index--; | ||
} | ||
} | ||
|
||
reboot_opacity = 1.0; | ||
fun reboot_callback() | ||
{ | ||
if (reboot_opacity > 0.2) { | ||
reboot_opacity -= 0.005; | ||
logo.sprite.SetOpacity(reboot_opacity); | ||
} | ||
} | ||
|
||
if (Plymouth.GetMode() == "boot") | ||
{ | ||
Plymouth.SetRefreshFunction(boot_callback); | ||
} | ||
else | ||
{ | ||
Plymouth.SetRefreshFunction(reboot_callback); | ||
} | ||
|
||
fun quit_callback() | ||
{ | ||
for (i = 1; i <= 221; i++) | ||
{ | ||
loading[i].sprite.SetOpacity(0); | ||
} | ||
logo.sprite.SetOpacity(0); | ||
} | ||
|
||
Plymouth.SetQuitFunction(quit_callback); | ||
|
||
#----------------------------------------- Dialogue -------------------------------- | ||
|
||
status = "normal"; | ||
|
||
fun dialog_setup() | ||
{ | ||
local.box; | ||
local.lock; | ||
local.entry; | ||
|
||
box.image = Image("box.png"); | ||
lock.image = Image("lock.png"); | ||
entry.image = Image("entry.png"); | ||
|
||
box.sprite = Sprite(box.image); | ||
box.x = Window.GetX() + Window.GetWidth() / 2 - box.image.GetWidth ()/2; | ||
box.y = Window.GetY() + Window.GetHeight() / 2 - box.image.GetHeight()/2; | ||
box.z = 10000; | ||
box.sprite.SetPosition(box.x, box.y, box.z); | ||
|
||
lock.sprite = Sprite(lock.image); | ||
lock.x = box.x + box.image.GetWidth()/2 - (lock.image.GetWidth() + entry.image.GetWidth()) / 2; | ||
lock.y = box.y + box.image.GetHeight()/2 - lock.image.GetHeight()/2; | ||
lock.z = box.z + 1; | ||
lock.sprite.SetPosition(lock.x, lock.y, lock.z); | ||
|
||
entry.sprite = Sprite(entry.image); | ||
entry.x = lock.x + lock.image.GetWidth(); | ||
entry.y = box.y + box.image.GetHeight()/2 - entry.image.GetHeight()/2; | ||
entry.z = box.z + 1; | ||
entry.sprite.SetPosition(entry.x, entry.y, entry.z); | ||
|
||
global.dialog.box = box; | ||
global.dialog.lock = lock; | ||
global.dialog.entry = entry; | ||
global.dialog.bullet_image = Image("bullet.png"); | ||
dialog_opacity (1); | ||
} | ||
|
||
fun dialog_opacity(opacity) | ||
{ | ||
dialog.box.sprite.SetOpacity (opacity); | ||
dialog.lock.sprite.SetOpacity (opacity); | ||
dialog.entry.sprite.SetOpacity (opacity); | ||
for (index = 0; dialog.bullet[index]; index++) | ||
{ | ||
dialog.bullet[index].sprite.SetOpacity(opacity); | ||
} | ||
} | ||
|
||
fun display_normal_callback () | ||
{ | ||
global.status = "normal"; | ||
if (global.dialog) | ||
dialog_opacity (0); | ||
} | ||
|
||
fun display_password_callback (prompt, bullets) | ||
{ | ||
global.status = "password"; | ||
if (!global.dialog) | ||
dialog_setup(); | ||
else | ||
dialog_opacity(1); | ||
for (index = 0; dialog.bullet[index] || index < bullets; index++) | ||
{ | ||
if (!dialog.bullet[index]) | ||
{ | ||
dialog.bullet[index].sprite = Sprite(dialog.bullet_image); | ||
dialog.bullet[index].x = dialog.entry.x + index * dialog.bullet_image.GetWidth(); | ||
dialog.bullet[index].y = dialog.entry.y + dialog.entry.image.GetHeight() / 2 - dialog.bullet_image.GetHeight() / 2; | ||
dialog.bullet[index].z = dialog.entry.z + 1; | ||
dialog.bullet[index].sprite.SetPosition(dialog.bullet[index].x, dialog.bullet[index].y, dialog.bullet[index].z); | ||
} | ||
if (index < bullets) | ||
dialog.bullet[index].sprite.SetOpacity(1); | ||
else | ||
dialog.bullet[index].sprite.SetOpacity(0); | ||
} | ||
} | ||
|
||
Plymouth.SetDisplayNormalFunction(display_normal_callback); | ||
Plymouth.SetDisplayPasswordFunction(display_password_callback); | ||
|
||
|
||
#----------------------------------------- Message -------------------------------- | ||
|
||
message_sprite = Sprite(); | ||
message_sprite.SetPosition(Window.GetX() + 10, Window.GetY() + 10, 10000); | ||
|
||
fun message_callback (text) | ||
{ | ||
my_image = Image.Text(text, 1, 1, 1); | ||
message_sprite.SetImage(my_image); | ||
} | ||
|
||
Plymouth.SetMessageFunction(message_callback); |
Oops, something went wrong.