mirror of
https://gitea.tendokyu.moe/Hay1tsme/artemis.git
synced 2026-02-15 04:07:29 +08:00
chuni: add stage import and frontend config
This commit is contained in:
@@ -79,6 +79,12 @@
|
||||
<td><div id="system-voice-name">{{ system_voices[profile.voiceId]["name"] if system_voices|length > 0 else "Server DB needs upgraded or is not populated with necessary data" }}</div></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if cur_version >= 18 %} <!-- STAGE introduced in X-VERSE -->
|
||||
<tr>
|
||||
<td>Stage:</td>
|
||||
<td><div id="stage-name">{{ stages[profile.stageId]["name"] if stages|length > 0 else "Server DB needs upgraded or is not populated with necessary data" }}</div></td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -111,6 +117,21 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if cur_version >= 18 %} <!-- STAGE introduced in X-VERSE -->
|
||||
<!-- STAGE SELECTION -->
|
||||
<div class="col-lg-8 m-auto mt-3 scrolling-lists">
|
||||
<div class="card bg-card rounded">
|
||||
<button class="collapsible">Stage: {{ stages|length }}/{{ total_stages }}</button>
|
||||
<div id="scrollable-stage" class="collapsible-content">
|
||||
{% for item in stages.values() %}
|
||||
<img id="stage-{{ item["id"] }}" style="padding: 8px 8px;" onclick="saveItem('stage', '{{ item["id"] }}', '{{ item["name"] }}')" src="img/stage/{{ item["imagePath"] }}" alt="{{ item["name"] }}">
|
||||
<span id="stage-br-{{ loop.index }}"></span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="col-lg-8 m-auto mt-3">
|
||||
<div class="card bg-card rounded">
|
||||
<table class="table-large table-rowdistinct">
|
||||
@@ -201,6 +222,10 @@ items = {
|
||||
"map-icon": ["{{ map_icons|length }}", "{{ profile.mapIconId }}"],
|
||||
"system-voice":["{{ system_voices|length }}", "{{ profile.voiceId }}"]
|
||||
};
|
||||
// STAGE introduced in X-VERSE
|
||||
if ({{cur_version}} >= 18) {
|
||||
items.stage = ["{{ stages|length }}", "{{ profile.stageId }}"]
|
||||
}
|
||||
types = Object.keys(items);
|
||||
|
||||
function changeItem(type, id, name) {
|
||||
|
||||
Reference in New Issue
Block a user