mirror of https://github.com/teverse/teverse
Compare commits
No commits in common. "a940f65df431591dc1086f4387b96a60c82f60b2" and "53875f66118f11289f50fcf4baeb3a99649fd2fe" have entirely different histories.
a940f65df4
...
53875f6611
|
@ -41,79 +41,7 @@ return {
|
|||
"Run unpacked app",
|
||||
"code",
|
||||
function ()
|
||||
|
||||
-- backwards compatibility
|
||||
if _TEV_VERSION_MINOR < 25 then
|
||||
return teverse.apps:promptAppDirectory()
|
||||
end
|
||||
|
||||
local recents = teverse.apps:recentDirectories()
|
||||
if #recents == 0 then
|
||||
teverse.apps:promptAppDirectory()
|
||||
else
|
||||
local backdrop = teverse.construct("guiFrame", {
|
||||
parent = teverse.interface,
|
||||
size = guiCoord(1, 100, 1, 100),
|
||||
position = guiCoord(0, -50, 0, -50),
|
||||
backgroundColour = colour(0, 0, 0),
|
||||
backgroundAlpha = 0.0,
|
||||
zIndex = 10
|
||||
})
|
||||
|
||||
teverse.tween:begin(backdrop, 0.2, {
|
||||
backgroundAlpha = 0.8
|
||||
})
|
||||
|
||||
local dialog = teverse.construct("guiFrame", {
|
||||
parent = backdrop,
|
||||
size = guiCoord(0, 200, 0, 100),
|
||||
position = guiCoord(0.5, -100, 0.5, -50),
|
||||
backgroundColour = colour(1, 1, 1),
|
||||
strokeRadius = 2,
|
||||
dropShadowAlpha = 0.15,
|
||||
strokeAlpha = 0.05
|
||||
})
|
||||
|
||||
teverse.tween:begin(dialog, 0.2, {
|
||||
size = guiCoord(0, 500, 0, 200),
|
||||
position = guiCoord(0.5, -250, 0.5, -100)
|
||||
}, "outQuad")
|
||||
|
||||
local prompt = teverse.construct("guiIcon", {
|
||||
parent = dialog,
|
||||
size = guiCoord(0.3, 0, 1, 0),
|
||||
position = guiCoord(0.7, 0, 0, 0),
|
||||
iconMax = 40,
|
||||
iconColour = colour.rgb(74, 140, 122),
|
||||
backgroundAlpha = 0.05,
|
||||
backgroundColour = colour(0, 0, 0),
|
||||
iconType = "faSolid",
|
||||
iconId = "folder-open"
|
||||
})
|
||||
|
||||
prompt:on("mouseLeftUp", function()
|
||||
teverse.apps:promptAppDirectory()
|
||||
end)
|
||||
|
||||
local y = 0
|
||||
for _,v in pairs(recents) do
|
||||
|
||||
local trigger = teverse.construct("guiTextBox", {
|
||||
parent = dialog,
|
||||
size = guiCoord(0.7, -20, 0, 18),
|
||||
position = guiCoord(0, 10, 0, y),
|
||||
backgroundAlpha = 0.0,
|
||||
text = v,
|
||||
textSize = 18
|
||||
})
|
||||
|
||||
trigger:on("mouseLeftUp", function()
|
||||
teverse.apps:runRecent(v)
|
||||
end)
|
||||
|
||||
y = y + 20
|
||||
end
|
||||
end
|
||||
teverse.apps:promptAppDirectory()
|
||||
end
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
local pingScale = 300
|
||||
local downloadScale = 1024 * 5
|
||||
local uploadScale = 1024 * 5
|
||||
local downloadScale = 1024 * 1
|
||||
local uploadScale = 1024 * 1
|
||||
|
||||
return function()
|
||||
local main = teverse.construct("guiFrame", {
|
||||
|
|
Loading…
Reference in New Issue