mirror of
https://github.com/defold/extension-websocket.git
synced 2025-06-27 01:47:42 +02:00
Update websocket.gui_script
This commit is contained in:
parent
63cb5f8de6
commit
24dd20512b
@ -33,12 +33,6 @@ local function log(...)
|
|||||||
gui.set_text(node, gui.get_text(node) .. "\n" .. text)
|
gui.set_text(node, gui.get_text(node) .. "\n" .. text)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function http_result(self, _, response)
|
|
||||||
print(response.status)
|
|
||||||
--print(response.response)
|
|
||||||
pprint(response.headers)
|
|
||||||
end
|
|
||||||
|
|
||||||
function init(self)
|
function init(self)
|
||||||
msg.post(".", "acquire_input_focus")
|
msg.post(".", "acquire_input_focus")
|
||||||
msg.post("@render:", "clear_color", { color = vmath.vector4(0.2, 0.4, 0.8, 1.0) })
|
msg.post("@render:", "clear_color", { color = vmath.vector4(0.2, 0.4, 0.8, 1.0) })
|
||||||
@ -49,9 +43,6 @@ function init(self)
|
|||||||
self.connection_text = gui.get_node("connection_text")
|
self.connection_text = gui.get_node("connection_text")
|
||||||
self.connection = nil
|
self.connection = nil
|
||||||
update_gui(self)
|
update_gui(self)
|
||||||
|
|
||||||
--http.request("https://defold.com", "GET", http_result)
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function final(self)
|
function final(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user