ID:1722024
 
(See the best response by Kaiochao.)
I'm trying to make it so that players can preview their icon with the aura/sparks they choose. However since the Aura and Sparks icon is over 32x32, when it is displayed in the preview its cut down to 32x32. How do I make it so that it previews correctly?


mob
verb
Settings()
set category = "Miscellaneous"
var/list/SS = list()
SS += "Ora"
if((/mob/Movement/verb/Kyusokunaken in pskills) && (KyusoM == KyusoC))
SS += "Kyusokunaken"

var/n = input("What skill setting would you like to edit?") in SS
switch(n)
if("Ora")
var/mob/m = new
m.icon = icon
m.icon_state = ""
m.Overlays = Overlays
m.Overlays()
m.overlays += auraicon
m.overlays += sparkicon
winset(src, "Aura Settings.Preview", "cells = 0x0")
src<<output(m, "Aura Settings.Preview:1,1")
winshow(src,"Aura Settings",1)
Best response
Grids can't display icons larger than world.icon_size, so you might just use a Map control and use a screen object for displaying preview icons.
Thanks, that worked. I created a map called "Preview" and then sent the new mob for the player to view to it.

mob
verb
Settings()
set category = "Miscallaneous"
var/list/SS = list()
SS += "Ora"
if((/mob/Movement/verb/Kyusokunaken in pskills) && (KyusoM == KyusoC))
SS += "Kyusokunaken"

var/n = input("What skill setting would you like to edit?") in SS
switch(n)
if("Ora")
var/mob/m = new
m.icon = icon
m.icon_state = ""
m.Overlays = Overlays
m.Overlays()
m.overlays += auraicon
m.overlays += sparkicon
m.screen_loc = "Preview: 3,2"
client.screen += m
winshow(src,"Aura Settings",1)