mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-16 01:25:10 +01:00
Organize and Beautify Admin Secrets Panel
* Add browser styles to Admin Secrets panel to make it look nice. * Show only one category at once, with buttons to switch between categories at the top.
This commit is contained in:
@@ -22,6 +22,9 @@ var/datum/admin_secrets/admin_secrets = new()
|
||||
dd_insertObjectList(category.items, item)
|
||||
items += item
|
||||
|
||||
//
|
||||
// Secret Item Category - Each subtype is a category for organizing secret commands.
|
||||
//
|
||||
/datum/admin_secret_category
|
||||
var/name = ""
|
||||
var/desc = ""
|
||||
@@ -37,6 +40,10 @@ var/datum/admin_secrets/admin_secrets = new()
|
||||
return 1
|
||||
return 0
|
||||
|
||||
//
|
||||
// Secret Item Datum - Each subtype is a command on the secrets panel.
|
||||
// Override execute() with the implementation of the command.
|
||||
//
|
||||
/datum/admin_secret_item
|
||||
var/name = ""
|
||||
var/category = null
|
||||
|
||||
Reference in New Issue
Block a user