Adds a lore summary button to the title menu (#10164)

* kyres request

* stuff
This commit is contained in:
Alberyk
2020-10-08 17:47:28 +02:00
committed by GitHub
parent da8c1b3864
commit e23d715c87
5 changed files with 36 additions and 1 deletions
+5
View File
@@ -318,6 +318,8 @@ var/list/gamemode_cache = list()
var/list/external_rsc_urls = list()
var/lore_summary
/datum/configuration/New()
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
for (var/T in L)
@@ -962,6 +964,9 @@ var/list/gamemode_cache = list()
if ("external_rsc_urls")
external_rsc_urls = splittext(value, ",")
if("lore_summary")
lore_summary = value
else
log_misc("Unknown setting in configuration: '[name]'")
+21 -1
View File
@@ -40,6 +40,10 @@
using.name = "Polls"
adding += using
using = new /obj/screen/new_player/selection/lore_summary()
using.name = "Current Lore Summary"
adding += using
mymob.client.screen = list()
mymob.client.screen += adding
src.adding += using
@@ -120,6 +124,11 @@
icon_state = "polls"
screen_loc = "LEFT+1,CENTER-5"
/obj/screen/new_player/selection/lore_summary
name = "Current Lore Summary"
icon_state = "lore_summary"
screen_loc = "LEFT+1,CENTER-6"
//SELECTION
/obj/screen/new_player/selection/New(var/desired_loc)
@@ -191,6 +200,11 @@
sound_to(player, 'sound/effects/menu_click.ogg')
player.handle_player_polling()
/obj/screen/new_player/selection/lore_summary/Click()
var/mob/abstract/new_player/player = usr
sound_to(player, 'sound/effects/menu_click.ogg')
player.show_lore_summary()
/mob/abstract/new_player/proc/setupcharacter()
client.prefs.ShowChoices(src)
return TRUE
@@ -255,4 +269,10 @@
observer.verbs -= /mob/abstract/observer/verb/toggle_antagHUD
observer.ckey = ckey
observer.initialise_postkey()
qdel(src)
qdel(src)
/mob/abstract/new_player/proc/show_lore_summary()
if(config.lore_summary)
var/output = "<div align='center'><hr1><B>Welcome to the [station_name()]!</B></hr1><br>"
output += "<i>[config.lore_summary]</i><hr>"
to_chat(src, output)
+4
View File
@@ -609,3 +609,7 @@ FAIL2TOPIC_ENABLED 0
## Must contain a .zip of the server's .rsc file. Must use HTTP (not secured).
## Can contain multiple URLs which are then cycled through. Delimit them with a COMMA.
#EXTERNAL_RSC_URLS http://one.tld/rsc.zip
## Lore Summary
## The text that will appear when the player clicks the lore button at the start screen
LORE_SUMMARY
+6
View File
@@ -0,0 +1,6 @@
author: Alberyk
delete-after: True
changes:
- rscadd: "Added a lore button at the title menu, it will allow players to read the summary of the current lore events and arcs."
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB