mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-16 09:34:21 +01:00
Action Button Update
- Refactors action button backend
- Action buttons are no longer checked on Life(), items are responsible
for adding/removing/updating them.
- Item action buttons are no longer a static action_button_name define,
items define actions_types, which is a list of paths.
- Items can now have multiple action buttons.
- This is handled by new arguments to ui_action_click, the first
parameter is the user, the second is the path of the action datum
that was invoked.
- Refactored how internals function
- You may now directly switch internals without breaking anything.
- The internals icon has been updated to be more consistent.
- Added action buttons for jetpacks
- Added action buttons for oxygen tanks
- Uses-based implants now qdel() themselves when they run out of uses.
This is somewhat a buff to traitor implants, but it's such a minor
change. The actual reasoning is so that the action buttons are properly
removed.
- Fixed a bug with the "Boo" spell which resulted in IsAvailable failing
for certain ghosts.
- You can now shift-click on movable HUD elements to reset them to the
proper position (thank fucking christ)
This commit is contained in:
@@ -248,7 +248,7 @@
|
||||
icon_state = "kidosvest"
|
||||
item_state = "kidosvest"
|
||||
ignore_suitadjust = 1
|
||||
action_button_name = null
|
||||
actions_types = list()
|
||||
adjust_flavour = null
|
||||
species_fit = null
|
||||
sprite_sheets = null
|
||||
@@ -363,7 +363,7 @@
|
||||
icon_state = "fox_jacket"
|
||||
item_state = "fox_jacket"
|
||||
ignore_suitadjust = 1
|
||||
action_button_name = null
|
||||
actions_types = list()
|
||||
adjust_flavour = null
|
||||
species_fit = null
|
||||
sprite_sheets = null
|
||||
@@ -415,7 +415,7 @@
|
||||
icon_state = "chronx_hood"
|
||||
item_state = "chronx_hood"
|
||||
flags = HEADCOVERSEYES | BLOCKHAIR
|
||||
action_button_name = "Transform Hood"
|
||||
actions_types = list(/datum/action/item_action/toggle)
|
||||
var/adjusted = 0
|
||||
|
||||
/obj/item/clothing/head/fluff/chronx/ui_action_click()
|
||||
@@ -445,7 +445,7 @@
|
||||
icon_state = "chronx_robe"
|
||||
item_state = "chronx_robe"
|
||||
flags_size = ONESIZEFITSALL
|
||||
action_button_name = "Transform Robes"
|
||||
actions_types = list(/datum/action/item_action/toggle)
|
||||
adjust_flavour = "untransform"
|
||||
ignore_suitadjust = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user