Skip to content

Commit

Permalink
Clear up the blabber documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Feb 12, 2024
1 parent ef17585 commit 86b5642
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 5 deletions.
8 changes: 8 additions & 0 deletions _sass/parts/figures.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.mediafigure {
margin: 2em;
text-align: center;

figcaption {
font-style: italic;
}
}
1 change: 1 addition & 0 deletions css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ body:not(.dark-mode) .form-control {
@import "./parts/code.scss";
@import "./parts/details.scss";
@import "./parts/section.scss";
@import "./parts/figures.scss";
@import "./parts/headings.scss";
@import "./parts/hero.scss";
@import "./parts/blog.scss";
Expand Down
2 changes: 1 addition & 1 deletion wiki/blabber/dialogue_generator/main-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h3>State Properties</h3>
<span class="dialogue-state-flex" id="dialogue-state-action">
<select autocomplete="off" id="dialogue-state-action-type">
<option selected value="">No Action</option>
<option value="blabber:command" data-pattern=".+" data-placeholder="say hi, /effect give @s strength, ...">Command</option>
<option value="blabber:command" data-pattern=".+" data-placeholder="say hi”, or “/effect give @s strength”, etc.">Command</option>
<option value="requiem:remnant_choice" data-pattern="[a-z0-9_-]+:[a-z0-9_/-]+" data-error-message="Must be a valid namespaced identifier (modid:name)" data-placeholder="requiem:remnant, ratsmischief:ratified, ...">[Requiem] Remnant Choice</option>
</select>
<input type="text" id="dialogue-state-action-value"/>
Expand Down
18 changes: 14 additions & 4 deletions wiki/blabber/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ Each file describes the various states a dialogue can be in.

Here's a super basic example:

<figure style="text-align: center; margin: 2em;">
<figure class="mediafigure">
{% include_relative basic-dialogue.svg %}
<figcaption style="font-style: italic">State diagram for a dialogue with 2 intermediate states and 2 end states</figcaption>
<figcaption>State diagram for a dialogue with 2 intermediate states and 2 end states</figcaption>
</figure>

This dialogue has 5 states: `start`, `accept`, `end_success`, `refuse`, and `end_failure`.
Expand Down Expand Up @@ -238,7 +238,9 @@ For example:

If you are allergic to code, try this online tool: [blabber dialogue editor](dialogue_generator)

<iframe width="560" height="315" src="https://www.youtube.com/embed/Hm_bQlgqSCQ?si=A5SH8mRNEkGSi14i" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
<div class="mediafigure">
<iframe width="672" height="378" src="https://www.youtube.com/embed/Hm_bQlgqSCQ?si=A5SH8mRNEkGSi14i" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
</div>

### Validation

Expand Down Expand Up @@ -266,7 +268,15 @@ to incorporate dialogues into your modpack's or server's quests.

The [Text Animator](https://modrinth.com/mod/text-animator) mod can be used to add special effects to your dialogues' texts :

![Text animator with Blabber demo](https://cdn.modrinth.com/data/HBIG5nRf/images/e15e996bb6b5311bc0c0ae9e71d42a9d07ba9911.webp)
<figure class="mediafigure">
<video controls width="650">
<source src="textanimator-blabber-demo.mp4" type="video/webm" />
Download the
<a href="textanimator-blabber-demo.mp4">MP4</a>
video.
</video>
<figcaption>Text animator with Blabber and Heracles demo (warning: movement and color flashes)</figcaption>
</figure>


## Using Blabber (for developers)
Expand Down
Binary file added wiki/blabber/textanimator-blabber-demo.mp4
Binary file not shown.

0 comments on commit 86b5642

Please sign in to comment.