1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-17 18:06:03 -05:00

Website updates.

This commit is contained in:
Tim Sarbin 2019-11-01 02:35:09 -04:00
parent 1494a4fb7b
commit c163ab76da
5 changed files with 137 additions and 17 deletions

View File

@ -45,19 +45,19 @@ func (v *CharacterSelect) Load() []func() {
v.background.MoveTo(0, 0)
},
func() {
v.newCharButton = UI.CreateButton(UI.ButtonTypeTall, v.fileProvider, Common.CombineStrings(Common.SplitIntoLinesWithMaxWidth(Common.TranslateString("#831"), 13)))
v.newCharButton = UI.CreateButton(UI.ButtonTypeTall, v.fileProvider, Common.CombineStrings(Common.SplitIntoLinesWithMaxWidth(Common.TranslateString("#831"), 15)))
v.newCharButton.MoveTo(33, 468)
v.newCharButton.OnActivated(func() { v.onNewCharButtonClicked() })
v.uiManager.AddWidget(v.newCharButton)
},
func() {
v.convertCharButton = UI.CreateButton(UI.ButtonTypeTall, v.fileProvider, Common.CombineStrings(Common.SplitIntoLinesWithMaxWidth(Common.TranslateString("#825"), 13)))
v.convertCharButton = UI.CreateButton(UI.ButtonTypeTall, v.fileProvider, Common.CombineStrings(Common.SplitIntoLinesWithMaxWidth(Common.TranslateString("#825"), 15)))
v.convertCharButton.MoveTo(233, 468)
v.convertCharButton.SetEnabled(false)
v.uiManager.AddWidget(v.convertCharButton)
},
func() {
v.deleteCharButton = UI.CreateButton(UI.ButtonTypeTall, v.fileProvider, Common.CombineStrings(Common.SplitIntoLinesWithMaxWidth(Common.TranslateString("#832"), 13)))
v.deleteCharButton = UI.CreateButton(UI.ButtonTypeTall, v.fileProvider, Common.CombineStrings(Common.SplitIntoLinesWithMaxWidth(Common.TranslateString("#832"), 15)))
v.deleteCharButton.MoveTo(433, 468)
v.deleteCharButton.SetEnabled(false)
v.uiManager.AddWidget(v.deleteCharButton)

View File

@ -107,6 +107,7 @@ func (v *SelectHeroClass) Load() []func() {
v.campfire = v.fileProvider.LoadSprite(ResourcePaths.CharacterSelectCampfire, Palettes.Fechar)
v.campfire.MoveTo(380, 335)
v.campfire.Animate = true
v.campfire.Blend = true
},
func() {
v.exitButton = UI.CreateButton(UI.ButtonTypeMedium, v.fileProvider, Common.TranslateString("#970"))

BIN
docs/SelectHeroSS.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

View File

@ -1,11 +1,21 @@
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>OpenDiablo 2</title>
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet" type="text/css" href="style.css" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-151296679-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-151296679-1');
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>OpenDiablo 2</title>
<meta name="description" content="">
<meta name="author" content="">
<link rel="stylesheet" type="text/css" href="style.css" />
<link href="https://fonts.googleapis.com/css?family=Lato&display=swap" rel="stylesheet">
</head>
<body>
@ -37,7 +47,74 @@
</span>
</div>
<hr />
<h2>Configuration</h2>
<div class="paragraph">
<span>There is a configuration file (config.json) that should be located in the root folder. The following table describes the different options and what they mean.</span>
<table>
<thead>
<tr>
<th>Setting Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Language</td>
<td>
Defines the locale the game is running in. For english this should be set to <code>ENG</code>. Other values include
(but are not limited to) <code>CHI</code>, <code>DEU</code>, <code>ESP</code>, <code>FRA</code>, <code>ITA</code>,
<code>JPN</code>, etc.
</td>
</tr>
<tr>
<td>FullScreen</td>
<td>Determines if the client is initially full screen or not. Do note that fullscreen mode can be toggled at any time
with <code>ALT</code>+<code>ENTER</code>.</td>
</tr>
<tr>
<td>Scale</td>
<td>Defines the graphical scale of the game. this value is a decimal number representing the direct scale of the game.
For example, a scale of 1.25 will increase the size of the game to 1 1/4 the original size. Note that full screen will
always scale to match the proper aspect ratio.</td>
</tr>
<tr>
<td>TicksPerSecond</td>
<td>Determines how often the engine updates. Please note that the core will always run game-level updates at exactly 25FPS
to match the original engine.</td>
</tr>
<tr>
<td>RunInBackground</td>
<td>If true, the game will continue running when the window is not focused. If false, the game will stop running when the
window looses focus.</td>
</tr>
<tr>
<td>VsyncEnabled</td>
<td>Determines if screen updates are synchronized on the (real or virtual) vblank of your display.</td>
</tr>
<tr>
<td>SfxVolume</td>
<td>A decimal value between <code>0.0</code> and <code>1.0</code> representing how loud sound effects should be.</td>
</tr>
<tr>
<td>BgmVolume</td>
<td>A decimal value between <code>0.0</code> and <code>1.0</code> representing how loud background music should be.</td>
</tr>
<tr>
<td>MpqPath</td>
<td>The base path of where the MPQ files are located. If you install Diablo2+LOD on linux with wine using the default settings,
OpenDiablo 2 will automatically check the wine prefix for the path if it is still set to the windows path.</td>
</tr>
<tr>
<td>MpqLoadOrder</td>
<td>This is the list of MPQs to load. In the event that the same file is in multiple MPQs, the first MPQ (highest on the list)
will be the one from which the file will be loaded.</td>
</tr>
</tbody>
</table>
</div>
<hr />
<h2>Screenshots</h2>
<img class="imgFrame" src="MainMenuSS.png" />
<img class="imgFrame" src="MainMenuSS.png" alt="Main Menu"/>
<img class="imgFrame" src="SelectHeroSS.png" alt="Select Hero"/>
</body>
</html>

View File

@ -8,11 +8,23 @@ src: local('Diablo Heavy'), url('diablo.woff') format('woff');
}
body {
font-family:'Diablo Heavy';
font-family: 'Lato', sans-serif;
background-color: #111;
color: #fff;
text-align:center;
text-shadow: 0px 0px 6px #000;
text-shadow: 0 0 6px #000;
}
code {
background-color: #ccc;
color: #000;
border-radius: 3px;
text-shadow: none;
padding: 0 3px;
font-family: monospace;
font-weight: bold;
border: solid 1px #000;
}
hr {
@ -23,17 +35,20 @@ hr {
}
h1 {
font-family:'Diablo Heavy';
font-size: 5em;
text-shadow: 0px 0px 6px #c00;
}
h1 span {
font-family:'Diablo Heavy';
font-size: 0.2em;
display: block;
margin: 8px 0;
}
h2 {
font-family:'Diablo Heavy';
font-size: 2.5em;
text-shadow: 0px 0px 4px #c00;
}
@ -42,27 +57,32 @@ img.imgFrame {
display: inline-block;
clear: bloth;
border-radius: 6px;
box-shadow: 0px 0px 8px #000;
margin: 6px 0px;
box-shadow: 0 0 8px #000;
margin: 6px;
}
div.paragraph {
text-align: left;
max-width: 1000px;
margin-left: auto;
margin-right: auto;
display: block;
font-size: 1.2em;
margin-bottom: 24px;
word-wrap: break-word;
text-align: justify;
}
div.paragraph span {
display: block;
padding: 12px 0;
color: #eaeaea;
}
div.paragraph span::first-letter {
font-size: 1.5em;
font-size: 1.3em;
color: #fff;
}
a {
@ -74,3 +94,25 @@ a:hover {
text-decoration: underline;
color: #faa;
}
table {
width: 100%;
border-spacing: 0;
}
table tr {
vertical-align: top;
border-spacing: 1px;
border-bottom: dashed 1px #444;
}
table thead tr th {
color: #FFFF00;
padding-right:24px;
border-bottom: solid 1px #aaa;
min-width: 200px;
}
table tbody tr td {
text-align: justify;
border-spacing: 1px;
border-bottom: dashed 1px #444;
padding: 6px 0;
}