Wall lights now require light bulbs. (#151)
* Adds light_tube.rsi Sprites taken from CEV Eris! * Adds LightBulbComponent * Wall lights now use light bulbs! * Light bulb now updates its sprite when it changes. * Comments the code. * Adds license and copyright to new sprites
This commit is contained in:
committed by
Pieter-Jan Briers
parent
58e8aef5d8
commit
b3aa1f6dcd
@@ -3,7 +3,6 @@
|
||||
name: "Unpowered Light"
|
||||
components:
|
||||
- type: Clickable
|
||||
# So we can click on it for deletion.
|
||||
- type: BoundingBox
|
||||
- type: Sprite
|
||||
sprite: Buildings/light_tube.rsi
|
||||
@@ -28,6 +27,8 @@
|
||||
id: poweredlight
|
||||
parent: wall_light
|
||||
components:
|
||||
- type: Clickable
|
||||
- type: BoundingBox
|
||||
- type: Sprite
|
||||
sprite: Buildings/light_tube.rsi
|
||||
state: off
|
||||
@@ -40,7 +41,31 @@
|
||||
state: Off
|
||||
|
||||
- type: PowerDevice
|
||||
load: 50
|
||||
priority: Low
|
||||
|
||||
- type: PoweredLight
|
||||
load: 40
|
||||
bulb: Tube
|
||||
|
||||
- type: entity
|
||||
parent: BaseItem
|
||||
name: BaseLightbulb
|
||||
id: BaseLightbulb
|
||||
components:
|
||||
- type: LightBulb
|
||||
|
||||
- type: entity
|
||||
parent: BaseLightbulb
|
||||
name: Light Tube
|
||||
id: LightTube
|
||||
components:
|
||||
- type: LightBulb
|
||||
bulb: Tube
|
||||
|
||||
- type: Sprite
|
||||
sprite: Objects/light_tube.rsi
|
||||
state: normal
|
||||
|
||||
- type: Icon
|
||||
sprite: Objects/light_tube.rsi
|
||||
state: normal
|
||||
BIN
Resources/Textures/Objects/light_tube.rsi/broken.png
Normal file
BIN
Resources/Textures/Objects/light_tube.rsi/broken.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 162 B |
BIN
Resources/Textures/Objects/light_tube.rsi/burned.png
Normal file
BIN
Resources/Textures/Objects/light_tube.rsi/burned.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 236 B |
44
Resources/Textures/Objects/light_tube.rsi/meta.json
Normal file
44
Resources/Textures/Objects/light_tube.rsi/meta.json
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"version": 1,
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Taken from https://github.com/discordia-space/CEV-Eris at commit ad7c8621e5567b1b3b2b609f699b3b80cca785f2",
|
||||
"states": [
|
||||
{
|
||||
"name": "normal",
|
||||
"select": [],
|
||||
"flags": {},
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
1.0
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "burned",
|
||||
"select": [],
|
||||
"flags": {},
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
1.0
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "broken",
|
||||
"select": [],
|
||||
"flags": {},
|
||||
"directions": 1,
|
||||
"delays": [
|
||||
[
|
||||
1.0
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
Resources/Textures/Objects/light_tube.rsi/normal.png
Normal file
BIN
Resources/Textures/Objects/light_tube.rsi/normal.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 160 B |
Reference in New Issue
Block a user