Skip to content

Commit

Permalink
Merge pull request #42 from sTiKyt/master
Browse files Browse the repository at this point in the history
Added Wallmount versions of ATM, removed 2 unnecessary pixels from regular ATM sprite
  • Loading branch information
Cheackraze committed Jul 18, 2023
2 parents 40f5478 + f9690ea commit 8dda05a
Show file tree
Hide file tree
Showing 7 changed files with 137 additions and 56 deletions.
116 changes: 116 additions & 0 deletions Resources/Prototypes/_NF/Entities/Structures/atms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
- type: entity
id: ComputerBankATM
parent: BaseComputer
name: bank atm
description: Used to deposit and withdraw funds from a personal bank account
components:
- type: BankATM
bank-ATM-cashSlot:
name: bank-ATM-cashSlot
insertSound: /Audio/Machines/scanning.ogg
ejectSound: /Audio/Machines/tray_eject.ogg
ejectOnBreak: true
swap: false
whitelist:
components:
- Currency
- type: ActivatableUI
key: enum.BankATMMenuUiKey.ATM
- type: UserInterface
interfaces:
- key: enum.BankATMMenuUiKey.ATM
type: BankATMMenuBoundUserInterface
- type: Computer
board: ShipyardComputerCircuitboard
- type: PointLight
radius: 1.5
energy: 1.6
color: "#b89f25"
- type: Sprite
netsync: false
noRot: true
sprite: _NF/Structures/atm.rsi
layers:
- map: ["computerLayerBody"]
state: icon
- map: ["computerLayerScreen"]
state: unshaded
- type: ItemSlots
- type: ContainerContainer
containers:
board: !type:Container
bank-ATM-cashSlot: !type:ContainerSlot {}

- type: entity
id: ComputerWithdrawBankATM
parent: ComputerBankATM
name: withdraw-only bank atm
description: Used to withdraw funds from a personal bank account. Unable to deposit.
components:
- type: ActivatableUI
key: enum.BankATMMenuUiKey.ATM
- type: UserInterface
interfaces:
- key: enum.BankATMMenuUiKey.ATM
type: WithdrawBankATMMenuBoundUserInterface

- type: entity
id: ComputerWallmountBankATM
parent: BaseComputer
name: wallmount bank atm
description: Used to deposit and withdraw funds from a personal bank account, it now comes in a more compact design!
components:
- type: BankATM
bank-ATM-cashSlot:
name: bank-ATM-cashSlot
insertSound: /Audio/Machines/scanning.ogg
ejectSound: /Audio/Machines/tray_eject.ogg
ejectOnBreak: true
swap: false
whitelist:
components:
- Currency
- type: ActivatableUI
key: enum.BankATMMenuUiKey.ATM
- type: UserInterface
interfaces:
- key: enum.BankATMMenuUiKey.ATM
type: BankATMMenuBoundUserInterface
- type: Computer
board: ShipyardComputerCircuitboard
- type: PointLight
radius: 1.5
energy: 1.6
color: "#b89f25"
- type: Transform
anchored: true
- type: InteractionOutline
- type: Sprite
netsync: false
noRot: true
sprite: _NF/Structures/wall_atm.rsi
layers:
- map: ["computerLayerBody"]
state: icon
- map: ["computerLayerScreen"]
state: unshaded
- type: ItemSlots
- type: WallMount
arc: 360
- type: ContainerContainer
containers:
board: !type:Container
bank-ATM-cashSlot: !type:ContainerSlot {}

- type: entity
id: ComputerWallmountWithdrawBankATM
parent: ComputerWallmountBankATM
name: wallmount withdraw-only bank atm
description: Used to withdraw funds from a personal bank account. Unable to deposit. It now comes in a more compact design!
components:
- type: ActivatableUI
key: enum.BankATMMenuUiKey.ATM
- type: UserInterface
interfaces:
- key: enum.BankATMMenuUiKey.ATM
type: WithdrawBankATMMenuBoundUserInterface
56 changes: 0 additions & 56 deletions Resources/Prototypes/_NF/Entities/Structures/machines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,62 +64,6 @@
state: telesci_red
- map: ["computerLayerKeys"]
state: telesci_key

- type: entity
id: ComputerBankATM
parent: BaseComputer
name: bank atm
description: Used to deposit and withdraw funds from a personal bank account
components:
- type: BankATM
bank-ATM-cashSlot:
name: bank-ATM-cashSlot
insertSound: /Audio/Machines/scanning.ogg
ejectSound: /Audio/Machines/tray_eject.ogg
ejectOnBreak: true
swap: false
whitelist:
components:
- Currency
- type: ActivatableUI
key: enum.BankATMMenuUiKey.ATM
- type: UserInterface
interfaces:
- key: enum.BankATMMenuUiKey.ATM
type: BankATMMenuBoundUserInterface
- type: Computer
board: ShipyardComputerCircuitboard
- type: PointLight
radius: 1.5
energy: 1.6
color: "#b89f25"
- type: Sprite
netsync: false
noRot: true
sprite: _NF/Structures/atm.rsi
layers:
- map: ["computerLayerBody"]
state: icon
- map: ["computerLayerScreen"]
state: unshaded
- type: ItemSlots
- type: ContainerContainer
containers:
board: !type:Container
bank-ATM-cashSlot: !type:ContainerSlot {}

- type: entity
id: ComputerWithdrawBankATM
parent: ComputerBankATM
name: withdraw-only bank atm
description: Used to withdraw funds from a personal bank account. Unable to deposit.
components:
- type: ActivatableUI
key: enum.BankATMMenuUiKey.ATM
- type: UserInterface
interfaces:
- key: enum.BankATMMenuUiKey.ATM
type: WithdrawBankATMMenuBoundUserInterface

- type: entity
id: MachineCryoSleepPod
Expand Down
Binary file modified Resources/Textures/_NF/Structures/atm.rsi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions Resources/Textures/_NF/Structures/wall_atm.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"version": 1,
"license": "CC0-1.0",
"copyright": "Created by EmoGarbage, reshaded by Checkraze, resized and edited to wall version by sTiKyt",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "printing",
"delays": [[0.25, 0.25, 0.25, 0.25]]
},
{
"name": "unshaded"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8dda05a

Please sign in to comment.