mirror of
https://github.com/goonstation/goonstation-2016.git
synced 2026-03-22 09:22:37 +00:00
14 lines
341 B
Plaintext
14 lines
341 B
Plaintext
/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) |