ID:160314
 
My previous system:

        buy
icon='visual.dmi'
icon_state="buy"
Click()
if(!usr.playing)
return
if(usr.selection_in_progress)
return
usr.selection_in_progress=1
flick('clicked.dmi',src)
var/templist[]=new
for(var/a in typesof(/obj/gun))
if(a==/obj/gun) continue //remove the default gun.
var/q=new a
templist+=q
var/obj/gun/q=input("Select a weapon to buy. (money: [usr.coins])")in templist
if(!istype(q,/obj/gun))
world<<"Buying failed. Glitch. Please report to an administrator."
usr.selection_in_progress=0
return
var/obj/gun/w=q
usr.lastgun=q
src<<"\red [w] costs [w.value], are you sure you want to buy?"
var/yes=input("[w] costs [w.value] coins, are you sure you want to buy?") in list("Yes","No")
usr.selection_in_progress=0
if(yes=="Yes")


The system I would prefer:

http://i206.photobucket.com/albums/bb6/avren/untitled.jpg

Just a little pop up screen that maybe checks through the weapons available and puts them in the box, with a pretty picture beside it. Whenever they click it it could just call a procedure checking what it is, how much it costs, and you know the rest. That image is a picture of my silly attempt at it. Oh, and my silly attempt at properly using Winset:
mob
verb
bringupbuy()
winset(src,"buy","right=outputpane")
Anyone?