mirror of https://github.com/teverse/teverse
Compare commits
No commits in common. "9d2cca67ebeade7b7860959148142e9b9a85e0ca" and "28ed81c357bbb084cd60eca7f73349d14a0b3a20" have entirely different histories.
9d2cca67eb
...
28ed81c357
|
@ -3,23 +3,6 @@ return {
|
||||||
iconId = "shapes",
|
iconId = "shapes",
|
||||||
iconType = "faSolid",
|
iconType = "faSolid",
|
||||||
setup = function(page)
|
setup = function(page)
|
||||||
teverse.construct("guiTextBox", {
|
|
||||||
parent = page,
|
|
||||||
size = guiCoord(1.0, -20, 0, 48),
|
|
||||||
position = guiCoord(0, 10, 0, 10),
|
|
||||||
backgroundAlpha = 0,
|
|
||||||
text = "Apps",
|
|
||||||
textSize = 48,
|
|
||||||
textAlign = "middleLeft"
|
|
||||||
})
|
|
||||||
teverse.construct("guiTextBox", {
|
|
||||||
parent = page,
|
|
||||||
size = guiCoord(1.0, -20, 0, 18),
|
|
||||||
position = guiCoord(0, 10, 0, 58),
|
|
||||||
backgroundAlpha = 0,
|
|
||||||
text = "Coming soon in a minor update!",
|
|
||||||
textSize = 18,
|
|
||||||
textAlign = "middleLeft"
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
}
|
}
|
|
@ -3,66 +3,6 @@ return {
|
||||||
iconId = "layer-group",
|
iconId = "layer-group",
|
||||||
iconType = "faSolid",
|
iconType = "faSolid",
|
||||||
setup = function(page)
|
setup = function(page)
|
||||||
teverse.construct("guiTextBox", {
|
|
||||||
parent = page,
|
|
||||||
size = guiCoord(1.0, -20, 0, 48),
|
|
||||||
position = guiCoord(0, 10, 0, 10),
|
|
||||||
backgroundAlpha = 0,
|
|
||||||
text = "Develop",
|
|
||||||
textSize = 48,
|
|
||||||
textAlign = "middleLeft"
|
|
||||||
})
|
|
||||||
|
|
||||||
local newSandboxBtn = teverse.construct("guiFrame", {
|
|
||||||
parent = page,
|
|
||||||
size = guiCoord(1/3, -20, 0, 70),
|
|
||||||
position = guiCoord(0, 10, 0, 60),
|
|
||||||
backgroundColour = colour.rgb(74, 140, 122),
|
|
||||||
strokeRadius = 3
|
|
||||||
})
|
|
||||||
|
|
||||||
teverse.guiHelper
|
|
||||||
.bind(newSandboxBtn, "xs", {
|
|
||||||
size = guiCoord(1, -20, 0, 70),
|
|
||||||
position = guiCoord(0, 10, 0, 60)
|
|
||||||
})
|
|
||||||
.bind(newSandboxBtn, "sm", {
|
|
||||||
size = guiCoord(1/3, -20, 0, 70),
|
|
||||||
position = guiCoord(0, 10, 0, 60)
|
|
||||||
})
|
|
||||||
.bind(newSandboxBtn, "lg", {
|
|
||||||
size = guiCoord(1/3, -20, 0, 70),
|
|
||||||
position = guiCoord(0, 10, 0, 60)
|
|
||||||
})
|
|
||||||
.hoverColour(newSandboxBtn, colour.rgb(235, 187, 83))
|
|
||||||
|
|
||||||
newSandboxBtn:on("mouseLeftUp", function()
|
|
||||||
teverse.apps:prompt()
|
|
||||||
end)
|
|
||||||
|
|
||||||
teverse.construct("guiTextBox", {
|
|
||||||
parent = newSandboxBtn,
|
|
||||||
size = guiCoord(0.5, -10, 0, 18),
|
|
||||||
position = guiCoord(0.5, 0, 0.5, -9),
|
|
||||||
backgroundAlpha = 0,
|
|
||||||
text = "Run Script",
|
|
||||||
textSize = 18,
|
|
||||||
textAlign = "middleLeft",
|
|
||||||
textColour = colour(1, 1, 1),
|
|
||||||
active = false
|
|
||||||
--textFont = "tevurl:fonts/openSansLight.ttf"
|
|
||||||
})
|
|
||||||
|
|
||||||
teverse.construct("guiIcon", {
|
|
||||||
parent = newSandboxBtn,
|
|
||||||
size = guiCoord(0, 40, 0, 40),
|
|
||||||
position = guiCoord(0.5, -60, 0.5, -20),
|
|
||||||
iconMax = 40,
|
|
||||||
iconColour = colour(1, 1, 1),
|
|
||||||
iconType = "faSolid",
|
|
||||||
iconId = "code",
|
|
||||||
iconAlpha = 0.9,
|
|
||||||
active = false
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
}
|
}
|
|
@ -61,8 +61,6 @@ return {
|
||||||
iconId = "sliders-h",
|
iconId = "sliders-h",
|
||||||
iconType = "faSolid",
|
iconType = "faSolid",
|
||||||
setup = function(page)
|
setup = function(page)
|
||||||
page.backgroundAlpha = 1.0
|
|
||||||
|
|
||||||
local feed = teverse.construct("guiScrollView", {
|
local feed = teverse.construct("guiScrollView", {
|
||||||
parent = page,
|
parent = page,
|
||||||
size = guiCoord(1, 0, 1, 50),
|
size = guiCoord(1, 0, 1, 50),
|
||||||
|
@ -71,7 +69,7 @@ return {
|
||||||
strokeRadius = 3
|
strokeRadius = 3
|
||||||
})
|
})
|
||||||
|
|
||||||
teverse.guiHelper
|
teverse.bp
|
||||||
.bind(feed, "xs", {
|
.bind(feed, "xs", {
|
||||||
size = guiCoord(1, 0, 1, 50),
|
size = guiCoord(1, 0, 1, 50),
|
||||||
position = guiCoord(0, 0, 0, -50)
|
position = guiCoord(0, 0, 0, -50)
|
||||||
|
@ -89,7 +87,7 @@ return {
|
||||||
strokeRadius = 3
|
strokeRadius = 3
|
||||||
})
|
})
|
||||||
|
|
||||||
teverse.guiHelper
|
teverse.bp
|
||||||
.bind(tevs, "xs", {
|
.bind(tevs, "xs", {
|
||||||
size = guiCoord(1, -20, 0, 70),
|
size = guiCoord(1, -20, 0, 70),
|
||||||
position = guiCoord(0, 10, 0, 50)
|
position = guiCoord(0, 10, 0, 50)
|
||||||
|
@ -146,7 +144,7 @@ return {
|
||||||
strokeRadius = 3
|
strokeRadius = 3
|
||||||
})
|
})
|
||||||
|
|
||||||
teverse.guiHelper
|
teverse.bp
|
||||||
.bind(membership, "xs", {
|
.bind(membership, "xs", {
|
||||||
size = guiCoord(1, -20, 0, 70),
|
size = guiCoord(1, -20, 0, 70),
|
||||||
position = guiCoord(0, 10, 0, 80 + 50)
|
position = guiCoord(0, 10, 0, 80 + 50)
|
||||||
|
@ -211,7 +209,7 @@ return {
|
||||||
strokeRadius = 3
|
strokeRadius = 3
|
||||||
})
|
})
|
||||||
|
|
||||||
teverse.guiHelper
|
teverse.bp
|
||||||
.bind(version, "xs", {
|
.bind(version, "xs", {
|
||||||
size = guiCoord(1, -20, 0, 70),
|
size = guiCoord(1, -20, 0, 70),
|
||||||
position = guiCoord(0, 10, 0, 160 + 50)
|
position = guiCoord(0, 10, 0, 160 + 50)
|
||||||
|
@ -274,7 +272,7 @@ return {
|
||||||
clip = true
|
clip = true
|
||||||
})
|
})
|
||||||
|
|
||||||
teverse.guiHelper
|
teverse.bp
|
||||||
.bind(feedItems, "xs", {
|
.bind(feedItems, "xs", {
|
||||||
size = guiCoord(1, -20, 1, -(240 + 50)),
|
size = guiCoord(1, -20, 1, -(240 + 50)),
|
||||||
position = guiCoord(0, 10, 0, 240 + 50)
|
position = guiCoord(0, 10, 0, 240 + 50)
|
||||||
|
@ -311,7 +309,6 @@ return {
|
||||||
local json = teverse.json:decode(body)
|
local json = teverse.json:decode(body)
|
||||||
if json[1].id == newestFeed then
|
if json[1].id == newestFeed then
|
||||||
-- no change from last refresh
|
-- no change from last refresh
|
||||||
return nil
|
|
||||||
else
|
else
|
||||||
-- may require refactoring
|
-- may require refactoring
|
||||||
for _,v in pairs(feedItems.children) do
|
for _,v in pairs(feedItems.children) do
|
||||||
|
@ -320,7 +317,6 @@ return {
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
newestFeed = json[1].id
|
|
||||||
local y = 50
|
local y = 50
|
||||||
for _,v in pairs(json) do
|
for _,v in pairs(json) do
|
||||||
local date = os.date("%d/%m/%Y %H:%M", os.parseISO8601(v.postedAt))
|
local date = os.date("%d/%m/%Y %H:%M", os.parseISO8601(v.postedAt))
|
||||||
|
|
|
@ -13,7 +13,7 @@ controller.setup = function()
|
||||||
backgroundAlpha = 0
|
backgroundAlpha = 0
|
||||||
})
|
})
|
||||||
|
|
||||||
teverse.guiHelper
|
teverse.bp
|
||||||
.gridConstraint(navContainer, {
|
.gridConstraint(navContainer, {
|
||||||
cellSize = guiCoord(0, 40, 0, 40),
|
cellSize = guiCoord(0, 40, 0, 40),
|
||||||
cellMargin = guiCoord(0, 25, 0, 25)
|
cellMargin = guiCoord(0, 25, 0, 25)
|
||||||
|
@ -68,7 +68,7 @@ controller.setup = function()
|
||||||
backgroundColour = colour.rgb(242, 244, 245)
|
backgroundColour = colour.rgb(242, 244, 245)
|
||||||
})
|
})
|
||||||
|
|
||||||
teverse.guiHelper
|
teverse.bp
|
||||||
.bind(body, "xs", {
|
.bind(body, "xs", {
|
||||||
size = guiCoord(1, 90, 1, -5),
|
size = guiCoord(1, 90, 1, -5),
|
||||||
position = guiCoord(0, -45, 0, -60)
|
position = guiCoord(0, -45, 0, -60)
|
||||||
|
@ -90,7 +90,7 @@ controller.setup = function()
|
||||||
visible = false
|
visible = false
|
||||||
})
|
})
|
||||||
|
|
||||||
teverse.guiHelper
|
teverse.bp
|
||||||
.bind(container, "xs", {
|
.bind(container, "xs", {
|
||||||
size = guiCoord(1, -120, 1, -80),
|
size = guiCoord(1, -120, 1, -80),
|
||||||
position = guiCoord(0, 60, 0, 80)
|
position = guiCoord(0, 60, 0, 80)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
return function()
|
||||||
|
|
||||||
-- Textbox colour/border radius/shadow demo
|
-- Textbox colour/border radius/shadow demo
|
||||||
|
|
||||||
|
@ -43,7 +44,7 @@ end
|
||||||
|
|
||||||
local reverseAlign = {}
|
local reverseAlign = {}
|
||||||
for k,v in pairs(enums.align) do
|
for k,v in pairs(enums.align) do
|
||||||
reverseAlign[tonumber(v)] = k
|
reverseAlign[v] = k
|
||||||
end
|
end
|
||||||
|
|
||||||
local txtGuis = {}
|
local txtGuis = {}
|
||||||
|
@ -138,3 +139,4 @@ teverse.construct("guiLine", {
|
||||||
pointB = guiCoord(0, -10, 0, -10),
|
pointB = guiCoord(0, -10, 0, -10),
|
||||||
lineWidth = 2
|
lineWidth = 2
|
||||||
})
|
})
|
||||||
|
end
|
Loading…
Reference in New Issue