mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-26 08:17:38 -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
|
@ -5,20 +5,27 @@ class_name Gate
|
|||
set(value): url = Url.fix_gate_url(value)
|
||||
|
||||
@export var title: String
|
||||
|
||||
@export var description: String
|
||||
|
||||
@export_file("*.png", "*.jpg") var icon: String:
|
||||
get: return icon if not icon.is_empty() else image
|
||||
set(value): icon = value
|
||||
|
||||
@export_file("*.png", "*.jpg") var image: String
|
||||
|
||||
var resource_pack: String
|
||||
|
||||
# local path where libs downloaded
|
||||
var shared_libs_dir: String
|
||||
var shared_libs_dir: String # local path where libs downloaded
|
||||
|
||||
|
||||
static func create(_url: String, _title: String, _description: String,
|
||||
static func create(_url: String, _title: String, _description: String, _icon: String,
|
||||
_image: String, _resource_pack: String, _shared_libs_dir: String) -> Gate:
|
||||
var gate = Gate.new()
|
||||
gate.url = _url
|
||||
gate.title = _title
|
||||
gate.description = _description
|
||||
gate.icon = _icon
|
||||
gate.image = _image
|
||||
gate.resource_pack = _resource_pack
|
||||
gate.shared_libs_dir = _shared_libs_dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue