Compare commits

..

3 Commits

Author SHA1 Message Date
Jay 4c83652c30 improved user generated app notice 2020-05-03 10:44:39 +01:00
Jay 1abb33e965 Disable learn code on iphone for now 2020-05-03 10:34:11 +01:00
Jay 7c30939d24 0.20.7 dump 2020-05-03 09:44:50 +01:00
3 changed files with 123 additions and 25 deletions

128
api.json
View File

@ -1,8 +1,8 @@
{
"os": "OSX",
"arch": "x64",
"version": "0.20.6",
"generatedAt": "28/04/2020 23:25:06",
"version": "0.20.7",
"generatedAt": "03/05/2020 09:41:24",
"sandbox": {
"coroutine": {
"create": "function",
@ -20,11 +20,12 @@
"xpcall": "function",
"_DEVICE_PAD_BOTTOM": 0,
"ipairs": "function",
"_TEV_BUILD": "0206",
"_TEV_BUILD": "0207",
"colour": "cdata",
"print": "function",
"pcall": "function",
"gcinfo": "function",
"loadstring": "function",
"sleep": "function",
"spawn": "function",
"vector2": "cdata",
@ -42,10 +43,10 @@
"insert": "function"
},
"error": "function",
"_TEV_VERSION": "0.20.6",
"_TEV_VERSION": "0.20.7",
"_DEVICE": "Mac",
"_VERSION": "Lua 5.1",
"_OS": "OSX",
"require": "function",
"next": "function",
"math": {
"ceil": "function",
@ -79,7 +80,7 @@
"pi": 3.1415926535898,
"rad": "function"
},
"unpack": "function",
"_OS": "OSX",
"os": {
"difftime": "function",
"date": "function",
@ -87,9 +88,7 @@
"clock": "function",
"parseISO8601": "function"
},
"thread": {
"create": "function"
},
"type": "function",
"select": "function",
"string": {
"split": "function",
@ -108,18 +107,22 @@
"format": "function",
"gsub": "function"
},
"type": "function",
"require": "function",
"unpack": "function",
"thread": {
"create": "function"
},
"teverse": {
"input": "input",
"tween": "tween",
"networking": "networking",
"interface": "guiFrame",
"guiHelper": "guiHelper",
"scene": "scene",
"http": "http",
"load": "function",
"construct": "function",
"guiHelper": "guiHelper",
"interface": "guiFrame",
"json": "json",
"debug": "debug",
"http": "http",
"dev": "dev",
"disconnect": "function"
},
@ -1027,6 +1030,37 @@
}
}
},
"block": {
"methods": {
"setShader": {
"parameters": [
{
"type": "string",
"name": "mesh"
}
],
"returns": [],
"description": "Sets mesh"
}
},
"className": "block",
"events": [],
"constructable": true,
"properties": {
"position": {
"hasGetter": true,
"type": "vector3",
"description": "",
"hasSetter": true
},
"mesh": {
"hasGetter": true,
"type": "string",
"description": "",
"hasSetter": true
}
}
},
"http": {
"methods": {
"delete": {
@ -1575,6 +1609,66 @@
}
}
},
"tween": {
"methods": {
"begin": {
"parameters": [
{
"type": "variant",
"name": "object"
},
{
"type": "number",
"name": "duration"
},
{
"type": "table",
"name": "properties"
},
{
"type": "string",
"name": "easing"
},
{
"type": "function?",
"name": "tweenCallback"
}
],
"returns": [],
"description": "Creates and starts a tween"
},
"create": {
"parameters": [
{
"type": "variant",
"name": "object"
},
{
"type": "number",
"name": "duration"
},
{
"type": "table",
"name": "properties"
},
{
"type": "string",
"name": "easing"
},
{
"type": "function?",
"name": "tweenCallback"
}
],
"returns": [],
"description": "Creates a tween"
}
},
"className": "tween",
"events": [],
"constructable": false,
"properties": []
},
"debug": {
"methods": [],
"className": "debug",
@ -1703,7 +1797,9 @@
},
"prompt": {
"parameters": [],
"returns": [],
"returns": [
"boolean"
],
"description": "Prompts the user to select a Lua file, this method then triggers app:loadScript(path)"
}
},
@ -1713,5 +1809,5 @@
"properties": []
}
},
"build": "0206"
"build": "0207"
}

View File

@ -2,14 +2,16 @@
local disclaimer = teverse.construct("guiTextBox", {
parent = teverse.coreInterface,
size = guiCoord(1, -60, 0, 20),
position = guiCoord(0, 30, 1, -20),
backgroundAlpha = 0,
text = "You are running user generated code",
textShadowSize = 2,
textSize = 12,
textColour = colour(1, 1, 1),
textAlign = "middle"
size = guiCoord(0, 140, 0, 25),
position = guiCoord(0.5, -70, 1, -35),
text = "User Generated Content",
textSize = 14,
textColour = colour(0, 0, 0),
textAlign = "middle",
textFont = "tevurl:fonts/openSansSemiBold.ttf",
strokeRadius = 2,
dropShadowAlpha = 0.15,
strokeAlpha = 0.05
})
disclaimer:on("mouseLeftUp", function()

View File

@ -105,7 +105,7 @@ return {
})
end
if _TEV_VERSION ~= "0.20.6" then
if _DEVICE:sub(0, 6) ~= "iPhone" then
local appGui = createApp({
id = "",
name = "Learn Code",