mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-24 02:17:27 -04:00
gate icon and undiscoverable mode
This commit is contained in:
parent
fb6cf98f2b
commit
414ad4eeda
18 changed files with 108 additions and 52 deletions
|
@ -9,10 +9,15 @@ func _ready() -> void:
|
|||
|
||||
|
||||
func send_discover_gate(c_url: String, c_gate: ConfigGate) -> void:
|
||||
if not c_gate.discoverable:
|
||||
Debug.logclr("Gate is not discoverable", Color.DIM_GRAY)
|
||||
return
|
||||
|
||||
var body = {}
|
||||
body.url = c_url
|
||||
body.title = c_gate.title
|
||||
body.description = c_gate.description
|
||||
body.icon = c_gate.icon_url
|
||||
body.image = c_gate.image_url
|
||||
body.resource_pack = c_gate.resource_pack_url
|
||||
body.libraries = c_gate.libraries
|
||||
|
|
|
@ -38,7 +38,7 @@ func featured_gates_request() -> void:
|
|||
|
||||
|
||||
func star_gate(gate_d: Dictionary) -> void:
|
||||
var image_path = await FileDownloader.download(gate_d["image"])
|
||||
var gate = Gate.create(gate_d["url"], gate_d["title"], gate_d["description"], image_path, "", "")
|
||||
var icon_path = await FileDownloader.download(gate_d["icon"])
|
||||
var gate = Gate.create(gate_d["url"], gate_d["title"], gate_d["description"], icon_path, "", "", "")
|
||||
|
||||
bookmarks.star(gate, true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue