mirror of
https://github.com/goonstation/goonstation-2016.git
synced 2026-08-27 16:06:14 +01:00
Initial Commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
/datum/tag/select
|
||||
New()
|
||||
..("select")
|
||||
|
||||
proc/setName(var/name as text)
|
||||
setAttribute("name", name)
|
||||
|
||||
proc/addOption(var/value as text, var/txt as text, var/selected = 0)
|
||||
var/datum/tag/option/opt = new
|
||||
opt.setValue(value)
|
||||
opt.setText(txt)
|
||||
if(selected)
|
||||
opt.setAttribute("selected", "selected")
|
||||
addChildElement(opt)
|
||||
Reference in New Issue
Block a user