]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Notice board (#21410)
authorTunguso4ka <71643624+Tunguso4ka@users.noreply.github.com>
Mon, 6 Nov 2023 02:18:39 +0000 (05:18 +0300)
committerGitHub <noreply@github.com>
Mon, 6 Nov 2023 02:18:39 +0000 (19:18 -0700)
* notice board

* more notice notice board

Resources/Prototypes/Entities/Structures/Wallmounts/noticeboard.yml [new file with mode: 0644]
Resources/Textures/Structures/Wallmounts/noticeboard.rsi/meta.json [new file with mode: 0644]
Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-0.png [new file with mode: 0644]
Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-1.png [new file with mode: 0644]
Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-2.png [new file with mode: 0644]
Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-3.png [new file with mode: 0644]
Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-4.png [new file with mode: 0644]
Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-5.png [new file with mode: 0644]
Resources/Textures/Structures/Wallmounts/noticeboard.rsi/noticeboard.png [new file with mode: 0644]

diff --git a/Resources/Prototypes/Entities/Structures/Wallmounts/noticeboard.yml b/Resources/Prototypes/Entities/Structures/Wallmounts/noticeboard.yml
new file mode 100644 (file)
index 0000000..d5c330f
--- /dev/null
@@ -0,0 +1,54 @@
+- type: entity
+  id: NoticeBoard
+  name: notice board
+  description: Is there a job for a witcher?
+  components:
+  - type: WallMount
+  - type: Sprite
+    sprite: Structures/Wallmounts/noticeboard.rsi
+    layers:
+      - state: noticeboard
+      - state: notice-0
+      - map: ["enum.StorageFillLayers.Fill"]
+  - type: StorageFillVisualizer
+    maxFillLevels: 6
+    fillBaseName: notice
+  - type: Appearance
+  - type: InteractionOutline
+  - type: Clickable
+  - type: Transform
+    anchored: true
+  - type: Damageable
+    damageModifierSet: Wood
+    damageContainer: Inorganic
+  - type: Destructible
+    thresholds:
+    - trigger:
+        !type:DamageTrigger
+        damage: 30
+      behaviors:
+      - !type:PlaySoundBehavior
+        sound:
+          path: /Audio/Effects/woodhit.ogg
+      - !type:SpawnEntitiesBehavior
+        spawn:
+          MaterialWoodPlank:
+            min: 1
+            max: 2
+      - !type:DoActsBehavior
+        acts: ["Destruction"]
+  - type: Storage
+    maxSlots: 10
+    maxItemSize: Small
+    whitelist:
+      tags:
+        - Folder
+        - Document
+        - Write
+  - type: UserInterface
+    interfaces:
+    - key: enum.StorageUiKey.Key
+      type: StorageBoundUserInterface
+  - type: ContainerContainer
+    containers:
+      storagebase: !type:Container
diff --git a/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/meta.json b/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/meta.json
new file mode 100644 (file)
index 0000000..f5d234d
--- /dev/null
@@ -0,0 +1,32 @@
+{
+  "version": 1,
+  "size": {
+    "x": 32,
+    "y": 32
+  },
+  "copyright": "Taken from Paradise Station from commit https://github.com/ParadiseSS13/Paradise/commit/137338f4dd3cb33124ab3fbd55a4865dd2bdab81",
+  "license": "CC-BY-SA-3.0",
+  "states": [
+    {
+      "name": "noticeboard"
+    },
+    {
+      "name": "notice-0"
+    },
+    {
+      "name": "notice-1"
+    },
+    {
+      "name": "notice-2"
+    },
+    {
+      "name": "notice-3"
+    },
+    {
+      "name": "notice-4"
+    },
+    {
+      "name": "notice-5"
+    }
+  ]
+}
diff --git a/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-0.png b/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-0.png
new file mode 100644 (file)
index 0000000..016d8ba
Binary files /dev/null and b/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-0.png differ
diff --git a/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-1.png b/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-1.png
new file mode 100644 (file)
index 0000000..61b1825
Binary files /dev/null and b/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-1.png differ
diff --git a/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-2.png b/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-2.png
new file mode 100644 (file)
index 0000000..d069eef
Binary files /dev/null and b/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-2.png differ
diff --git a/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-3.png b/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-3.png
new file mode 100644 (file)
index 0000000..7e4ac44
Binary files /dev/null and b/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-3.png differ
diff --git a/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-4.png b/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-4.png
new file mode 100644 (file)
index 0000000..f3ddba1
Binary files /dev/null and b/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-4.png differ
diff --git a/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-5.png b/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-5.png
new file mode 100644 (file)
index 0000000..e04a0eb
Binary files /dev/null and b/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/notice-5.png differ
diff --git a/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/noticeboard.png b/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/noticeboard.png
new file mode 100644 (file)
index 0000000..378577a
Binary files /dev/null and b/Resources/Textures/Structures/Wallmounts/noticeboard.rsi/noticeboard.png differ