Skip to content

Commit c6a3157

Browse files
authored
Merge pull request #1977 from DeinFreund/ranks
ranks prototype + weird looking user profile
2 parents b877087 + 7e1e12e commit c6a3157

39 files changed

+702
-142
lines changed

Zero-K.info/AppCode/HtmlHelperExtensions.cs

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,29 +264,39 @@ public static MvcHtmlString PrintBombers(this HtmlHelper helper, Account account
264264
/// </summary>
265265
/// <param name="colorize">If true, write the text in <see cref="Faction"/> color</param>
266266
/// <returns></returns>
267-
public static MvcHtmlString PrintClan(this HtmlHelper helper, Clan clan, bool colorize = true) {
267+
public static MvcHtmlString PrintClan(this HtmlHelper helper, Clan clan, bool colorize = true, bool big = false) {
268268
var url = Global.UrlHelper();
269269
if (clan == null) return new MvcHtmlString(string.Format("<a href='{0}'>No Clan</a>", url.Action("Index", "Clans")));
270270
{
271271
string color = Clan.ClanColor(clan, Global.ClanID);
272272
if (String.IsNullOrEmpty(color)) color = "#B0D0C0";
273-
return
274-
new MvcHtmlString(
273+
if (big)
274+
{
275+
return
276+
new MvcHtmlString(string.Format("<a href='{1}' nicetitle='$clan${2}'><img width='64' src='{0}'/></a>",
277+
clan.GetImageUrl(),
278+
url.Action("Detail", "Clans", new { id = clan.ClanID }),
279+
clan.ClanID));
280+
}
281+
else
282+
{
283+
return new MvcHtmlString(
275284
string.Format("<a href='{0}' nicetitle='$clan${4}'><img src='{1}' width='16'><span style='color:{2}'>{3}</span></a>",
276285
url.Action("Detail", "Clans", new { id = clan.ClanID }),
277286
clan.GetImageUrl(),
278287
colorize ? color : "",
279288
HttpUtility.HtmlEncode(clan.Shortcut),
280289
clan.ClanID));
290+
}
281291
}
282292
}
283293

284294

285-
public static MvcHtmlString PrintBadges(this HtmlHelper helper, Account account, int? maxWidth = null)
295+
public static MvcHtmlString PrintBadges(this HtmlHelper helper, Account account, int? maxWidth = null, bool newlines = true)
286296
{
287297
if (account == null) return new MvcHtmlString("");
288298
var badges = account.GetBadges();
289-
return new MvcHtmlString(string.Join("\n", badges.Select(x=>$"<img src='/img/badges/{x}.png' nicetitle='{x.Description()}' {(maxWidth != null ? $"style='width:{maxWidth}px;'":"")}/><br/>")));
299+
return new MvcHtmlString(string.Join("\n", badges.Select(x=>$"<img src='/img/badges/{x}.png' nicetitle='{x.Description()}' {(maxWidth != null ? $"style='width:{maxWidth}px;'":"")}/>{(newlines ? "<br/>" : "")}")));
290300
}
291301

292302
/// <summary>
212 KB
Binary file not shown.
224 KB
Binary file not shown.
37.8 KB
Binary file not shown.
211 KB
Binary file not shown.
224 KB
Binary file not shown.
37.8 KB
Binary file not shown.
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
Copyright 2011-2016 Severin Meyer <[email protected]>,
2+
with Reserved Font Name Xolonium.
3+
4+
This Font Software is licensed under the SIL Open Font License,
5+
Version 1.1. This license is copied below, and is also available
6+
with a FAQ at <http://scripts.sil.org/OFL>
7+
8+
9+
-----------------------------------------------------------
10+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
11+
-----------------------------------------------------------
12+
13+
PREAMBLE
14+
The goals of the Open Font License (OFL) are to stimulate worldwide
15+
development of collaborative font projects, to support the font creation
16+
efforts of academic and linguistic communities, and to provide a free and
17+
open framework in which fonts may be shared and improved in partnership
18+
with others.
19+
20+
The OFL allows the licensed fonts to be used, studied, modified and
21+
redistributed freely as long as they are not sold by themselves. The
22+
fonts, including any derivative works, can be bundled, embedded,
23+
redistributed and/or sold with any software provided that any reserved
24+
names are not used by derivative works. The fonts and derivatives,
25+
however, cannot be released under any other type of license. The
26+
requirement for fonts to remain under this license does not apply
27+
to any document created using the fonts or their derivatives.
28+
29+
DEFINITIONS
30+
"Font Software" refers to the set of files released by the Copyright
31+
Holder(s) under this license and clearly marked as such. This may
32+
include source files, build scripts and documentation.
33+
34+
"Reserved Font Name" refers to any names specified as such after the
35+
copyright statement(s).
36+
37+
"Original Version" refers to the collection of Font Software components as
38+
distributed by the Copyright Holder(s).
39+
40+
"Modified Version" refers to any derivative made by adding to, deleting,
41+
or substituting -- in part or in whole -- any of the components of the
42+
Original Version, by changing formats or by porting the Font Software to a
43+
new environment.
44+
45+
"Author" refers to any designer, engineer, programmer, technical
46+
writer or other person who contributed to the Font Software.
47+
48+
PERMISSION & CONDITIONS
49+
Permission is hereby granted, free of charge, to any person obtaining
50+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
51+
redistribute, and sell modified and unmodified copies of the Font
52+
Software, subject to the following conditions:
53+
54+
1) Neither the Font Software nor any of its individual components,
55+
in Original or Modified Versions, may be sold by itself.
56+
57+
2) Original or Modified Versions of the Font Software may be bundled,
58+
redistributed and/or sold with any software, provided that each copy
59+
contains the above copyright notice and this license. These can be
60+
included either as stand-alone text files, human-readable headers or
61+
in the appropriate machine-readable metadata fields within text or
62+
binary files as long as those fields can be easily viewed by the user.
63+
64+
3) No Modified Version of the Font Software may use the Reserved Font
65+
Name(s) unless explicit written permission is granted by the corresponding
66+
Copyright Holder. This restriction only applies to the primary font name as
67+
presented to the users.
68+
69+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
70+
Software shall not be used to promote, endorse or advertise any
71+
Modified Version, except to acknowledge the contribution(s) of the
72+
Copyright Holder(s) and the Author(s) or with their explicit written
73+
permission.
74+
75+
5) The Font Software, modified or unmodified, in part or in whole,
76+
must be distributed entirely under this license, and must not be
77+
distributed under any other license. The requirement for fonts to
78+
remain under this license does not apply to any document created
79+
using the Font Software.
80+
81+
TERMINATION
82+
This license becomes null and void if any of the above conditions are
83+
not met.
84+
85+
DISCLAIMER
86+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
87+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
88+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
89+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
90+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
91+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
92+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
93+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
94+
OTHER DEALINGS IN THE FONT SOFTWARE.

Zero-K.info/Styles/levelrank.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
background: transparent;
55
height: 250px;
66
width: 120px; /*2.5 aspect ratio*/
7-
border: 2px solid #000;
8-
border-radius: 6px;
9-
box-shadow: 0px 0px 3px 3px #000;
107
margin: 5px;
118
}
129

Zero-K.info/Styles/style.css

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,40 @@
11
.js_tabs {}
22

3+
@font-face {
4+
font-family: "Xolonium";
5+
font-weight: normal;
6+
src: url("./fonts/Xolonium-Regular.ttf");
7+
src:
8+
url("./fonts/Xolonium-Regular.woff") format("woff"),
9+
url("./fonts/Xolonium-Regular.otf") format("opentype");
10+
}
11+
@font-face {
12+
font-family: "Xolonium";
13+
font-weight: bold;
14+
src: url("./fonts/Xolonium-Bold.ttf");
15+
src:
16+
url("./fonts/Xolonium-Bold.woff") format("woff"),
17+
url("./fonts/Xolonium-Bold.otf") format("opentype");
18+
}
19+
320
html
421
{
522
/*background: #000 url("/img/bg_bluehex.gif") fixed;*/
623
background: #000;
724
color: #ede;
8-
font-family: os, sans-serif;
9-
font-size: 15px;
25+
font-family: 'Xolonium', os, sans-serif;
26+
font-size: 14.5px;
1027
height: 100%;
1128
width: 100%;
1229
padding: 0;
1330
margin: 0;
1431
border: 0;
1532
z-index:0;
33+
letter-spacing: -0.2px;
34+
text-rendering: optimizeLegibility;
35+
-webkit-font-feature-settings: "kern";
36+
-moz-font-feature-settings: "kern";
37+
font-feature-settings: "kern";
1638
}
1739

1840
body

0 commit comments

Comments
 (0)