-
Notifications
You must be signed in to change notification settings - Fork 3
/
script.lua
45 lines (36 loc) · 1.51 KB
/
script.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
--[[
TubeVita 1.01
Creato da TheheroGAC (GAMESANDCONSOLES.ORG) sab 2 dec 2017 15:23:47 CET
Licensed by Creative Commons Attribution-ShareAlike 4.0
http://creativecommons.org/licenses/by-sa/4.0/
# script.lua
#
# TubeVita è un'applicazione creata con ONELua (grazie al Team OneLua) per vedere i video di Youtube su PSVITA
# Sentitevi liberi di modificare il codice sorgente
]]
-- ## Auto Update ##
dofile("git/updater.lua")
-- ## MESSAGGIO DI CARICAMENTO ##
game.close()
screen.print(5, 5, 'Loading Tubevita...'); screen.flip()
splash.show("resources/tubevita.png")
-- ## IMMAGINE DI SFONDO ##
back = image.load("resources/back.png")
-- ## MENU' PRINCIPALE ##
while true do
buttons.read()
if back then back:blit(0,0) end
color.loadpalette()
screen.print(910,30,"TubeVita",1,color.white,color.blue,__ARIGHT)
screen.print(910,60,"v1.02",1,color.white,color.blue,__ARIGHT)
-- ## Controlli ##
screen.print(25, 40, "YouTube",1, color.red, color.black)
screen.print(25, 65, "Playstation Channel",1, color.red, color.black)
screen.print(25, 446, "Press X for Youtube",1, color.red, color.black)
screen.print(25, 468, "Press Square for Playstation Channel",1, color.red, color.black)
screen.print(25, 490, "Press Triangle for Exit ",1, color.red, color.black)
if buttons.cross then os.uri ("webmodal: https://www.youtube.com/?gl=IT&hl=it&app=desktop&persist_app=1&client=mv-google") end
if buttons.square then os.uri ("webmodal: https://www.youtube.com/user/PlayStation/videos") end
if buttons.triangle then os.exit() end
screen.flip()
end