Conditional warnings

This commit is contained in:
2020-12-29 02:06:25 +01:00
parent 06752f6f30
commit a0d2a1a078
4 changed files with 14 additions and 4 deletions
+4
View File
@@ -199,6 +199,10 @@ else if ($display == "start")
{
$te->set_block_template("SETTINGS_BACK", "SETTINGS_BACK_SOURCE");
}
if (!$lib->is_loaded())
{
$te->set_block_template("SETTINGS_FIRSTRUN", "SETTINGS_FIRSTRUN_SOURCE");
}
}
echo $te->get_html();
+6 -3
View File
@@ -3,9 +3,12 @@
<form id="settings" method="POST" action="./?settings">
<label for="osu_folder">osu! folder: </label>
<input type="text" form="settings" id="osu_folder" name="osu_folder" placeholder="C:\Games\osu!" /><br />
<p style="font-size:0.9em">(Use a fully qualified real path preferably without symlinks. Relative paths are supported in theory, but try to use absolute paths.)</p>
{{ SETTINGS_BACK }}
<input type="submit" form="settings" value="Save" />
<div class="buttons" style="text-align:right;">
{{ SETTINGS_BACK }}
<input type="submit" form="settings" value="Save" />
</div>
{{ SETTINGS_FIRSTRUN }}
<p class="note">(Use a fully qualified real path preferably without symlinks. Relative paths are supported in theory, but try to use absolute paths.)</p>
</form>
<form id="cancelform" method="GET" action="./"></form>
</div>
+3
View File
@@ -122,4 +122,7 @@ details.mapset summary::-webkit-details-marker {
margin-top: 30px;
border: 1px solid white;
padding: 10px;
}
.warn .note {
font-size: 0.9em;
}
+1 -1
View File
@@ -2,5 +2,5 @@
<h2>WARNING!</h2>
<p>Repacking all beatmaps will take a LONG time. Are you sure you want to continue?</p>
<p style="text-align:center;"><a href="{{ WARN_FORWARD_LINK }}">[ Yes ]</a> &nbsp;&nbsp; <a href="./?">[ No ]</a></p>
<p style="font-size:0.9em">(The repacking will start after clicking the "yes" button. If you are unsure whether you clicked it, check your session/osz/ folder; there should be some .osz files already.)</p>
<p class="note">(The repacking will start after clicking the "yes" button. If you are unsure whether you clicked it, check your session/osz/ folder; there should be some .osz files already.)</p>
</div>