mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-28 06:28:01 +01:00
Support button
Adds a patreon button to the client
This commit is contained in:
@@ -80,6 +80,19 @@
|
||||
to_chat(src, "<span class='danger'>The Discord URL is not set in the server configuration.</span>")
|
||||
return
|
||||
|
||||
/client/verb/patreon()
|
||||
set name = "Patreon"
|
||||
set desc = "Visit the patreon"
|
||||
set hidden = 1
|
||||
|
||||
if(config.patreonurl)
|
||||
if(tgui_alert(usr, "This will open the Patreon in your browser. Are you sure?","Visit Website",list("Yes","No"))=="No")
|
||||
return
|
||||
src << link(config.patreonurl)
|
||||
else
|
||||
to_chat(src, "<span class='danger'>The Patreon URL is not set in the server configuration.</span>")
|
||||
return
|
||||
|
||||
/client/verb/hotkeys_help()
|
||||
set name = "hotkeys-help"
|
||||
set category = "OOC"
|
||||
|
||||
@@ -1337,6 +1337,18 @@ window "rpane"
|
||||
saved-params = "splitter"
|
||||
right = "outputwindow"
|
||||
is-vert = false
|
||||
elem "patreon"
|
||||
type = BUTTON
|
||||
pos = 488,0
|
||||
size = 60x16
|
||||
anchor1 = -1,-1
|
||||
anchor2 = -1,-1
|
||||
background-color = '#005813'
|
||||
text-color = #FFFFFF
|
||||
saved-params = "is-checked"
|
||||
text = "Patreon"
|
||||
command = "patreon"
|
||||
group = "rpanemode"
|
||||
elem "discord"
|
||||
type = BUTTON
|
||||
pos = 428,0
|
||||
|
||||
Reference in New Issue
Block a user