mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-28 11:11:52 +00:00
Merge pull request #16631 from sldomino/claw-game-fix
fixes claw game arcade
This commit is contained in:
@@ -66,7 +66,14 @@ GLOBAL_VAR(claw_game_html)
|
||||
for(var/i in 1 to img_resources.len)
|
||||
user << browse_rsc(img_resources[i])
|
||||
var/my_game_html = replacetext(GLOB.claw_game_html, "/* ref src */", UID())
|
||||
user << browse(my_game_html, "window=[window_name];size=915x600;can_resize=0")
|
||||
var/datum/browser/popup = new(user, window_name, name, 915, 700, src)
|
||||
popup.set_content(my_game_html)
|
||||
popup.add_stylesheet("page.css", 'code/modules/arcade/page.css')
|
||||
popup.add_stylesheet("Button.scss", 'tgui/packages/tgui/styles/components/Button.scss')
|
||||
popup.add_script("jquery-1.8.2.min.js", 'html/browser/jquery-1.8.2.min.js')
|
||||
popup.add_script("jquery-ui-1.8.24.custom.min.js", 'html/browser/jquery-ui-1.8.24.custom.min.js')
|
||||
popup.open()
|
||||
user.set_machine(src)
|
||||
|
||||
/obj/machinery/arcade/claw/Topic(href, list/href_list)
|
||||
if(..())
|
||||
|
||||
@@ -251,7 +251,7 @@
|
||||
</head>
|
||||
<body onunload="emergencyShutDown()">
|
||||
|
||||
<div id='game' style='position: relative;'>
|
||||
<div id='game' style='position: relative;height: 520px;width: 900px;'>
|
||||
<div id="background"></div>
|
||||
|
||||
<div id="crane">
|
||||
@@ -268,7 +268,7 @@
|
||||
|
||||
</div>
|
||||
|
||||
<div id='controls' style='position: absolute; top: 515px; left: 385px;'>
|
||||
<div id='controls' style='position: absolute; left: 385px;'>
|
||||
<br>
|
||||
<button class="button" id="play_btn" onclick="gameStartUp()">Play Now!</button>
|
||||
<button class="button" id="close_btn" onclick="emergencyShutDown()">Close.</button>
|
||||
|
||||
Reference in New Issue
Block a user