Skip to content

Commit

Permalink
Генератор листов картинок в инициализацию
Browse files Browse the repository at this point in the history
Бэм
  • Loading branch information
AmShegars committed Feb 9, 2024
1 parent ac695cf commit 72fb565
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions code/modules/augment/active/polytool.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
var/obj/item/I = new path (src)
I.canremove = FALSE
items += I
for(var/obj/item/i in items)
var/image/j = image(icon = i.icon, icon_state = i.item_state)
j.name = i
images[i] = j
/obj/item/organ/internal/augment/active/polytool/Destroy()
QDEL_NULL_LIST(items)
. = ..()
Expand Down Expand Up @@ -51,13 +55,7 @@
else
to_chat(owner, SPAN_WARNING("You must drop [I] before tool can be extend."))
else
//var/obj/item = input(owner, "Select item for deploy") as null|anything in src //<- Здесь меняй
var/obj/item
//Здесь нам потребуется создать лист иконок, код листов крайне выёбывается
for(var/obj/item/i in items)
var/image/j = image(icon = i.icon, icon_state = i.item_state)
j.name = i
images[i] = j
item = show_radial_menu(owner, owner, images , radius = 32, require_near = TRUE)
if(!item || !(src in owner.internal_organs))
return
Expand Down

0 comments on commit 72fb565

Please sign in to comment.