From 86b48debb5ec1ef9cfb846e499ad571daf2a7149 Mon Sep 17 00:00:00 2001 From: Tails2091 <40816748+Tails2091@users.noreply.github.com> Date: Tue, 31 Jul 2018 19:37:01 -0400 Subject: [PATCH 1/7] Reformats Prize Machine Text Makes prize list readable. Window size now matches other machines, disabled resize. --- code/modules/arcade/prize_counter.dm | 50 ++++++++++++++++++---------- 1 file changed, 32 insertions(+), 18 deletions(-) diff --git a/code/modules/arcade/prize_counter.dm b/code/modules/arcade/prize_counter.dm index 07a3af17ec1..b01a58ba8e3 100644 --- a/code/modules/arcade/prize_counter.dm +++ b/code/modules/arcade/prize_counter.dm @@ -79,7 +79,14 @@ html { background:#333; color:#999; } - +table { + background:#303030; + border-collapse: collapse; + border:1px solid #232323; +} +caption { + text-align:left; +} a { color:#cfcfcf; text-decoration:none; @@ -89,19 +96,23 @@ a { a:hover { color:#ffffff; } -tr { - background:#303030; - border-radius:6px; - margin-bottom:0.5em; - border-bottom:1px solid black; +p { + margin:0; } -tr:nth-child(even) { +tr.dark { + background:#303030; +} +tr.light { background:#3f3f3f; } - +td,th { + padding:15px; + border-bottom:1px solid #232323; +} td.cost { font-size:20pt; font-weight:bold; + text-align:center; } td.cost.affordable { @@ -112,21 +123,21 @@ td.cost.toomuch { background:maroon; } -
-Tickets: [tickets] | Eject Tickets
+Tickets: [tickets] | Eject Tickets
Exchange that pile of tickets for a pile of cool prizes!
-| # | Name/Description | -Price | +Tickets | "} @@ -136,8 +147,11 @@ td.cost.toomuch { if(item.cost>tickets) cost_class="toomuch" var/itemID = global_prizes.prizes.Find(item) + var/row_color="light" + if(itemID%2 == 0) + row_color="dark" dat += {" -
|---|---|
| [itemID] | @@ -147,10 +161,10 @@ td.cost.toomuch { "} dat += {" -- [item.cost] Tickets - | -+ [item.cost] + | + "} dat += {" @@ -158,7 +172,7 @@ td.cost.toomuch {