Skip to content

Commit

Permalink
Reword advanced question editor
Browse files Browse the repository at this point in the history
  • Loading branch information
cayb0rg committed Mar 13, 2024
1 parent 342293a commit 10272fd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
9 changes: 6 additions & 3 deletions src/creator.html
Original file line number Diff line number Diff line change
Expand Up @@ -1577,9 +1577,12 @@ <h2 ng-if="displayNodeCreation == SHORTANS">Conditional Question</h2>
<h2 ng-if="displayNodeCreation == HOTSPOT">Conditional Question</h2>
<h2 ng-if="displayNodeCreation == NARR">Conditional Narrative</h2>
<h2 ng-if="displayNodeCreation == END">Conditional End Text</h2>
<p ng-class="{'hidden': inventoryItems.length > 0}">Choose to display different narratives based on the number of times the player has visited this destination.</p>
<p ng-class="{'hidden': inventoryItems.length == 0}">Choose to display different narratives based on the number of times the player has visited this destination AND/OR what items they have in their inventory. Note that if a player meets the requirements for more than one, then it will display the one with the most required items and visits.</p>
<p class="invalid-quantity-message">{{invalidRequiredVisits}}</p>
<div class="question-instructions">
<p ng-class="{'hidden': inventoryItems.length > 0}">Choose to display different narratives based on the number of times the player has visited this destination.</p>
<p ng-class="{'hidden': inventoryItems.length == 0}">Choose to display different narratives based on the player's number of <strong>visits</strong> to this destination and/or what <strong>items</strong> they have in their inventory.</p>
<p><i>If a player meets the requirements for more than one, then it will choose the one they most recently met the requirements for.</i></p>
<p class="invalid-quantity-message">{{invalidRequiredVisits}}</p>
</div>
<ul>
<li ng-repeat="question in editedNode.questions" ng-if="$index > 0">
<button type="button"
Expand Down
15 changes: 4 additions & 11 deletions src/src-assets/creator-assets/creator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3805,20 +3805,13 @@ advanced-question-editor {
flex-direction: column;
justify-content: space-between;

> p {
.question-instructions {
padding: 1em;

color: $gray-darker;
font-style: italic;

&.invalid-quantity-message {
padding: 0;
}
}

&.hidden {
padding: 0;
display: none;
}
.hidden {
display: none;
}

> ul {
Expand Down

0 comments on commit 10272fd

Please sign in to comment.