Add some object entries
This commit is contained in:
parent
b403ea7246
commit
6df316e338
4 changed files with 37 additions and 0 deletions
|
@ -17,6 +17,16 @@ onready var manager := $PowerManager as PowerManager
|
||||||
|
|
||||||
signal changed(open)
|
signal changed(open)
|
||||||
|
|
||||||
|
static func editor_info():
|
||||||
|
var editor_icon = AtlasTexture.new()
|
||||||
|
editor_icon.atlas = preload("res://Graphics/tgstation/opening-sheet.png")
|
||||||
|
editor_icon.region = Rect2(0, 0, 32, 32)
|
||||||
|
return {
|
||||||
|
"name": "Door",
|
||||||
|
"scene": load("res://Actors/Objects/Door/Door.tscn"),
|
||||||
|
"icon": editor_icon
|
||||||
|
}
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
if is_network_master():
|
if is_network_master():
|
||||||
if interlockTargetPath != null:
|
if interlockTargetPath != null:
|
||||||
|
|
|
@ -21,6 +21,16 @@ export var max_force = 0.05
|
||||||
|
|
||||||
var force = 0
|
var force = 0
|
||||||
|
|
||||||
|
static func editor_info():
|
||||||
|
var editor_icon = AtlasTexture.new()
|
||||||
|
editor_icon.atlas = preload("res://Graphics/tgstation/engine-big.png")
|
||||||
|
editor_icon.region = Rect2(0, 0, 96, 96)
|
||||||
|
return {
|
||||||
|
"name": "Engine",
|
||||||
|
"scene": load("res://Actors/Objects/Engine/Engine.tscn"),
|
||||||
|
"icon": editor_icon
|
||||||
|
}
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
if not Engine.editor_hint:
|
if not Engine.editor_hint:
|
||||||
activationRange.visible = true
|
activationRange.visible = true
|
||||||
|
|
|
@ -12,6 +12,16 @@ export var lit = true setget set_lit
|
||||||
onready var activationRange = $ActivationRange as ActivationRange
|
onready var activationRange = $ActivationRange as ActivationRange
|
||||||
onready var manager = $PowerManager as PowerManager
|
onready var manager = $PowerManager as PowerManager
|
||||||
|
|
||||||
|
static func editor_info():
|
||||||
|
var editor_icon = AtlasTexture.new()
|
||||||
|
editor_icon.atlas = preload("res://Graphics/tgstation/light.png")
|
||||||
|
editor_icon.region = Rect2(32, 0, 32, 32)
|
||||||
|
return {
|
||||||
|
"name": "Light fixture",
|
||||||
|
"scene": load("res://Actors/Objects/Lightbulb/Lightbulb.tscn"),
|
||||||
|
"icon": editor_icon
|
||||||
|
}
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
if not Engine.editor_hint:
|
if not Engine.editor_hint:
|
||||||
activationRange.visible = true
|
activationRange.visible = true
|
||||||
|
|
|
@ -15,6 +15,13 @@ export var max_discharge_rate = 2000 setget set_max_discharge
|
||||||
|
|
||||||
var next_network_update = Multiplayer.SYSTEMS_UPDATE_INTERVAL
|
var next_network_update = Multiplayer.SYSTEMS_UPDATE_INTERVAL
|
||||||
|
|
||||||
|
static func editor_info():
|
||||||
|
return {
|
||||||
|
"name": "BFB",
|
||||||
|
"scene": load("res://Actors/Objects/PowerStorage/PowerStorage.tscn"),
|
||||||
|
"icon": preload("res://Graphics/tgstation/smes.png")
|
||||||
|
}
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
if not Engine.editor_hint:
|
if not Engine.editor_hint:
|
||||||
activationRange.visible = true
|
activationRange.visible = true
|
||||||
|
|
Reference in a new issue