ID:2638821
 
Redundant
Applies to:Dream Maker
Status: Redundant

This feature has already been implemented, or is already achievable with existing methods.
The addition of icon.Copy() function with 4 arguments(or 2) that would return a part of a icon as a icon.

Example usage.

var list/slices = new
var obj/slice_loc

proc/GenerateSlices()
slice_loc = new
var icon/i, turf/t,w,h,x
for(var/path in typesof(/turf))
t = new path(slice_loc)
i = icon(t.icon,t.icon_state)
slices[t.name] = list()
w = i.Width()
h = i.Height()
for(x = 1 to w)
slices[t.name] += i.Copy(x,x,1,h)


This would compliment icon.Cut() as well.
Crop() already does this.
Lummox JR resolved issue (Redundant)