mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Reformats Prize Machine Text
Makes prize list readable. Window size now matches other machines, disabled resize.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p style="float:right"><b>Tickets:</b> [tickets] | <a href='byond://?src=[UID()];eject=1'>Eject Tickets</a></p>
|
||||
<p style="float:right"><b>Tickets: [tickets]</b> | <a href='byond://?src=[UID()];eject=1'>Eject Tickets</a></p>
|
||||
<h1>Arcade Ticket Exchange</h1>
|
||||
<p>
|
||||
<b>Exchange that pile of tickets for a pile of cool prizes!</b>
|
||||
</p>
|
||||
<h2>Available Prizes:</h2>
|
||||
<br>
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<caption><b>Available Prizes:</b></caption>
|
||||
<thead>
|
||||
<th>#</th>
|
||||
<th>Name/Description</th>
|
||||
<th>Price</th>
|
||||
<th>Tickets</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
"}
|
||||
@@ -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 += {"
|
||||
<tr>
|
||||
<tr class="[row_color]">
|
||||
<th>
|
||||
[itemID]
|
||||
</th>
|
||||
@@ -147,10 +161,10 @@ td.cost.toomuch {
|
||||
</td>
|
||||
"}
|
||||
dat += {"
|
||||
<td class="cost [cost_class]">
|
||||
<a href="byond://?src=[UID()];buy=[itemID]">[item.cost] Tickets</a>
|
||||
</td>
|
||||
</tr>
|
||||
<td class="cost [cost_class]">
|
||||
<a href="byond://?src=[UID()];buy=[itemID]">[item.cost]</a>
|
||||
</td>
|
||||
</tr>
|
||||
"}
|
||||
|
||||
dat += {"
|
||||
@@ -158,7 +172,7 @@ td.cost.toomuch {
|
||||
</table>
|
||||
</body>
|
||||
</html>"}
|
||||
user << browse(dat, "window=prize_counter")
|
||||
user << browse(dat, "window=prize_counter;size=440x600;can_resize=0")
|
||||
onclose(user, "prize_counter")
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user