Updates arcade UI (#14301)

This commit is contained in:
Wowzewow (Wezzy)
2022-06-18 13:15:44 +02:00
committed by GitHub
parent ebce06d383
commit 10ef5bc782
3 changed files with 51 additions and 2 deletions
+1
View File
@@ -99,6 +99,7 @@
dat += "</b></center>"
send_theme_resources(user)
var/datum/browser/arcade_win = new(user, "arcade", capitalize_first_letters(name))
arcade_win.set_content(dat)
arcade_win.open()
+9 -2
View File
@@ -101,7 +101,10 @@
playsound(loc, 'sound/arcade/Ori_begin.ogg', 1, 1, extrarange = -3, falloff = 10, required_asfx_toggles = ASFX_ARCADE)
cooldown = world.time + 300
dat = "<center><h1>Orion Trail[emagged ? ": Realism Edition" : ""]</h1><br>Learn how our ancestors got to Orion, and have fun in the process!</center><br><P ALIGN=Right><a href='?src=\ref[src];continue=1'>Start New Game</a></P>"
user << browse(dat, "window=arcade")
send_theme_resources(user)
var/datum/browser/arcade_win = new(user, "window=arcade", capitalize_first_letters(name))
arcade_win.set_content(dat)
arcade_win.open()
return
else
event_title = event
@@ -183,7 +186,11 @@
dat += "[view==ORION_VIEW_MAIN ? "" : "<a href='?src=\ref[src];continue=1'>"]Main[view==ORION_VIEW_MAIN ? "" : "</a>"]<BR>"
dat += "[view==ORION_VIEW_SUPPLIES ? "" : "<a href='?src=\ref[src];supplies=1'>"]Supplies[view==ORION_VIEW_SUPPLIES ? "" : "</a>"]<BR>"
dat += "[view==ORION_VIEW_CREW ? "" : "<a href='?src=\ref[src];crew=1'>"]Crew[view==ORION_VIEW_CREW ? "" : "</a>"]</P>"
user << browse(dat, "window=arcade")
send_theme_resources(user)
var/datum/browser/arcade_win = new(user, "window=arcade", capitalize_first_letters(name))
arcade_win.set_content(dat)
arcade_win.open()
/obj/machinery/computer/arcade/orion_trail/Topic(href,href_list)
if(href_list["continue"])
+41
View File
@@ -0,0 +1,41 @@
################################
# Example Changelog File
#
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
#
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
# When it is, any changes listed below will disappear.
#
# Valid Prefixes:
# bugfix
# wip (For works in progress)
# tweak
# soundadd
# sounddel
# rscadd (general adding of nice things)
# rscdel (general deleting of nice things)
# imageadd
# imagedel
# maptweak
# spellcheck (typo fixes)
# experiment
# balance
# admin
# backend
# security
# refactor
#################################
# Your name.
author: Wowzewow (Wezzy)
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
delete-after: True
# Any changes you've made. See valid prefix list above.
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
# SCREW THIS UP AND IT WON'T WORK.
# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
changes:
- rscadd: "Updates the Orion Trail and Battler arcade UIs."