diff options
| author | stonedDiscord <Tukz@gmx.de> | 2022-08-10 00:09:40 +0200 |
|---|---|---|
| committer | stonedDiscord <Tukz@gmx.de> | 2022-08-10 00:09:40 +0200 |
| commit | 73346f6e281bc59713381688f30325aea2039890 (patch) | |
| tree | b52da100b5f4d50e2c786a788eafd7e5b3cacaa3 | |
| parent | 2194597e6ec4c8d4a8aefcb8e90cf02598b0a4df (diff) | |
add DR2 music to theme
| -rw-r--r-- | public/client.html | 2 | ||||
| -rw-r--r-- | webAO/client.ts | 3 | ||||
| -rw-r--r-- | webAO/styles/chatbox/chatdr2.css | 9 |
3 files changed, 10 insertions, 4 deletions
diff --git a/public/client.html b/public/client.html index 2436c22..7936d03 100644 --- a/public/client.html +++ b/public/client.html @@ -130,7 +130,7 @@ <div id="client_chatwaiting">►</div> </div> </div> - <div id="client_trackstatus" style="display: none;"><p id="client_trackstatustext">None</p></div> + <div id="client_trackstatus" style="display: none;"><marquee id="client_trackstatustext">None</marquee></div> </div> </div> <form onsubmit="return false"> diff --git a/webAO/client.ts b/webAO/client.ts index 5444a1b..5cee9bf 100644 --- a/webAO/client.ts +++ b/webAO/client.ts @@ -2762,6 +2762,9 @@ export function resizeChatbox() { const gameHeight = document.getElementById("client_background").offsetHeight; chatContainerBox.style.fontSize = `${(gameHeight * 0.0521).toFixed(1)}px`; + + const trackstatus = <HTMLMarqueeElement>(document.getElementById("client_trackstatustext")); + trackstatus.width = (trackstatus.offsetWidth-1)+"px"; } window.resizeChatbox = resizeChatbox; diff --git a/webAO/styles/chatbox/chatdr2.css b/webAO/styles/chatbox/chatdr2.css index 481cd3d..fdfc426 100644 --- a/webAO/styles/chatbox/chatdr2.css +++ b/webAO/styles/chatbox/chatdr2.css @@ -102,7 +102,7 @@ #client_trackstatus { display: block; position: absolute; - width: 35%; + width: 30%; height: 35%; top: 0; left: 0; @@ -113,8 +113,11 @@ #client_trackstatustext { position: absolute; - top: 4%; - left: 4%; + top: 6%; + left: 25%; + width: 50%; color: #f84f00; font-family: monospace; + font-size: 1.2em; + white-space: nowrap; }
\ No newline at end of file |
