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:
Víctor Aguilera Puerto
2019-03-22 23:59:13 +01:00
committed by Pieter-Jan Briers
parent 58e8aef5d8
commit b3aa1f6dcd
9 changed files with 299 additions and 23 deletions

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

View 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
]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B