mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 20:47:10 +01:00
Merge pull request #9413 from Ty-Omaha/button
Adds a Discord button & stylizes the Karma Shop and Donate buttons
This commit is contained in:
@@ -78,6 +78,18 @@
|
||||
to_chat(src, "<span class='danger'>The GitHub URL is not set in the server configuration.</span>")
|
||||
return
|
||||
|
||||
/client/verb/discord()
|
||||
set name = "Discord"
|
||||
set desc = "Join our Discord server."
|
||||
set hidden = 1
|
||||
if(config.discordurl)
|
||||
if(alert("This will invite you to our Discord server. Are you sure?",,"Yes","No")=="No")
|
||||
return
|
||||
src << link(config.discordurl)
|
||||
else
|
||||
to_chat(src, "<span class='danger'>The Discord URL is not set in the server configuration.</span>")
|
||||
return
|
||||
|
||||
/client/verb/donate()
|
||||
set name = "Donate"
|
||||
set desc = "Donate to help with hosting costs."
|
||||
|
||||
+15
-4
@@ -1697,18 +1697,29 @@ window "rpane"
|
||||
size = 67x16
|
||||
text = "Changelog"
|
||||
command = "Changelog"
|
||||
elem "karma"
|
||||
elem "discordb"
|
||||
type = BUTTON
|
||||
pos = 487,0
|
||||
size = 67x16
|
||||
size = 60x16
|
||||
background-color = #7289DA
|
||||
text-color = #FFFFFF
|
||||
font-style = bold
|
||||
text = "Discord"
|
||||
command = "discord"
|
||||
elem "karma"
|
||||
type = BUTTON
|
||||
pos = 552,0
|
||||
size = 77x16
|
||||
background-color = #ff8040
|
||||
font-style = bold
|
||||
text = "Karma Shop"
|
||||
command = "karmashop"
|
||||
elem "donate"
|
||||
type = BUTTON
|
||||
pos = 559,0
|
||||
pos = 634,0
|
||||
size = 60x16
|
||||
background-color = #8080ff
|
||||
background-color = #008000
|
||||
font-style = bold
|
||||
text = "Donate"
|
||||
command = "Donate"
|
||||
elem "browseb"
|
||||
|
||||
Reference in New Issue
Block a user