I have 2 questions regarding making Map-based HUDS.
Question 1. I have made an inventory using Hudgroups library, to make sure the position of the item in the inventory is saved i use a second list called "invent" below is a basic view of the code..
mob
var/list/invent[77] //77 is the amount of slots.
item/proc
get(mob/m)
//usual get stuff
for(var/a in m.invent)
if(istype(a,/item)) continue
m.invent[m.invent.Find(a)] = src
So basically is there a more effective way to do this or should i just leave it as is? i would really like to extend this into a system where players have multiple bags to extend the invent instead of a default amount. Q1 end.
Question 2. The second question is, is it possible to make a scrollable view in a map hud. i would like to make it so i have more then 77 unique items in that grid as ill be using the same area for skills and am unsure if players will exceed 77 skills (unlikely but id like to cover my bases)
Any ideas/thoughts are welcome
~Midget