-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from BA-OST-Index/dev
2024/03/17 bugfix & storyinfo auto & bond favor rank
- Loading branch information
Showing
19 changed files
with
266 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{% from "template/en/_macro_page.html" import output_usedby_track, output_usedby_background %} | ||
{% set actual_data = story.part %} | ||
|
||
<h2>Story Data</h2> | ||
<p>This story's data is <b>auto-generated by scripts</b> and no manual tuning involved. Below are part of the data relationships we manage to obtain.</p> | ||
<h3>All Data</h3> | ||
{% set actual_data_all = actual_data.all %} | ||
<h4>Characters</h4> | ||
{{ output_usedby_character(actual_data_all.character, "story-" + story.instance_id, story.instance_id, "story") }} | ||
<h4>Tracks</h4> | ||
{{ output_usedby_track(actual_data_all.track, "story-" + story.instance_id, "story", story.instance_id) }} | ||
<h4>Backgrounds</h4> | ||
{{ output_usedby_background(actual_data_all.background, "story-" + story.instance_id, story.instance_id, "story") }} | ||
<h3>Inter-data Relationships</h3> | ||
<p>Below shows the inter-data relationships. Be reminded that we're using internal "instance_id" for display; the data shown is for quick reference only.</p> | ||
<h4>Tracks</h4> | ||
<ul> | ||
{% for track_id in actual_data.all.track.keys() %} | ||
<li><code>{{ track_id }}</code></li> | ||
<ul> | ||
<li>Backgrounds:{% for bg_id in actual_data.track_to_bg[track_id] %}<code>{{ bg_id }}</code>、{% endfor %}</li> | ||
<li>Characters:{% for char_id in actual_data.track_to_char[track_id] %}<code>{{ char_id }}</code>、{% endfor %}</li> | ||
</ul> | ||
{% endfor %} | ||
</ul> | ||
<h4>Characters</h4> | ||
<ul> | ||
{% for char_id in actual_data.all.character.keys() %} | ||
<li><code>{{ char_id }}</code></li> | ||
<ul> | ||
<li>Backgrounds:{% for bg_id in actual_data.char_to_bg[char_id] %}<code>{{ bg_id }}</code>、{% endfor %}</li> | ||
<li>Tracks:{% for track_id in actual_data.char_to_track[char_id] %}<code>{{ track_id }}</code>、{% endfor %}</li> | ||
</ul> | ||
{% endfor %} | ||
</ul> | ||
<h4>Backgrounds</h4> | ||
<ul> | ||
{% for bg_id in actual_data.all.background.keys() %} | ||
<li><code>{{ bg_id }}</code></li> | ||
<ul> | ||
<li>Characters:{% for char_id in actual_data.bg_to_char[bg_id] %}<code>{{ char_id }}</code>、{% endfor %}</li> | ||
<li>Tracks:{% for track_id in actual_data.bg_to_track[bg_id] %}<code>{{ track_id }}</code>、{% endfor %}</li> | ||
</ul> | ||
{% endfor %} | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<h2>Story Parts</h2> | ||
{% set story_part_tooltip_data = {} %} | ||
{% for part in story.part %} | ||
{% set part_index = loop.index %} | ||
|
||
{# 检测有没有source #} | ||
{% set enable_source = False %} | ||
{% if part.source.en|length != 0 or part.source.zh_tw|length != 0 or part.source.zh_cn_cn|length != 0 or part.source.zh_cn_jp|length != 0 %} | ||
{% set enable_source = True %} | ||
{% set tooltip_id = generate_tooltip_id("storypart_source", story.instance_id, loop.index) %} | ||
{# {% do story_part_tooltip_data.update({tooltip_id: tooltip_storypart_source(part)}) %}#} | ||
{% endif %} | ||
|
||
<h3 class="{{ get_storypart_text_color_css(part) }}" id="story-part-{{ loop.index }}">{{ loop.index }}. {{ part.name.en }} {% if enable_source %}{{ generate_popup_for_tooltip_anchor(tooltip_id) }}{% endif %}</h3> | ||
|
||
{% for segment in part.data %} | ||
<ul style="margin: 0;"> | ||
<li id="story-part-{{ part_index }}-seg-{{ loop.index }}">{{ segment.desc.en }}</li> | ||
<h4>Characters</h4> | ||
{% if part.is_battle %} | ||
{{ output_usedby_character(segment, "story-" + story.instance_id, story.instance_id, "story", "True", part.battle_leader_pos) }} | ||
{% else %} | ||
{{ output_usedby_character(segment, "story-" + story.instance_id, story.instance_id, "story") }} | ||
{% endif %} | ||
<h4>Tracks</h4> | ||
{{ output_usedby_track_list(segment.track, "story-" + story.instance_id, "story", story.instance_id) }} | ||
<h4>Backgrounds</h4> | ||
{{ output_usedby_background_list(segment.background, "story-" + story.instance_id, story.instance_id, "story") }} | ||
</ul> | ||
{% endfor %} | ||
{% else %} | ||
<p>Nothing to show!</p> | ||
{% endfor %} | ||
{{ tooltip_add_data_js(story_part_tooltip_data) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.