Skip to content

Commit

Permalink
Fix loop mode
Browse files Browse the repository at this point in the history
Add new interface screenshot
  • Loading branch information
JannisX11 committed Nov 7, 2024
1 parent c4fd78c commit dfb184a
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Snowstorm

Custom editor for Minecraft Bedrock Edition particle files. Available as a web app and VSCode Extension:
* **Web App:** [github.com/JannisX11/snowstorm](https://jannisx11.github.io/snowstorm/)
* **Web App:** [snowstorm.app](https://snowstorm.app/)
* **VSCode Extension:** [Snowstorm - Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=JannisX11.snowstorm)


## Interface

![Image](https://i.imgur.com/6QIlzcq.png)
![Snowstorm interface screenshot](https://snowstorm.app/content/interface.png)


## Development
Expand Down
Binary file added content/interface.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dist/app.js

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions src/components/Preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
</div>
<footer>
<select id="loop_mode" v-model="loop_mode" @change="changeLoopMode()">
<option id="auto">Auto</option>
<option id="looping">Looping</option>
<option id="once">Once</option>
<option value="auto">Auto</option>
<option value="looping">Looping</option>
<option value="once">Once</option>
</select>
<select id="parent_mode" v-model="parent_mode" @change="changeParentMode()">
<option id="world">World</option>
<option id="entity">Entity</option>
<option id="locator">Locator</option>
<option value="world">World</option>
<option value="entity">Entity</option>
<option value="locator">Locator</option>
</select>
<div class="tool ground_collision" :class="{toggle_enabled: collision}" @click="toggleCollision()" title="Preview Collisions">
<FlipVertical2 :size="20" v-if="collision" />
Expand Down Expand Up @@ -295,8 +295,8 @@
data() {return {
fps: 0,
particles: 0,
loop_mode: 'Looping',
parent_mode: 'World',
loop_mode: 'auto',
parent_mode: 'world',
warning_count: 0,
stats,
collision: true,
Expand Down Expand Up @@ -347,10 +347,10 @@
this.$refs.bake_placeholder_confirm_dialog.showModal();
},
changeLoopMode() {
Emitter.loop_mode = this.loop_mode.toLowerCase();
Emitter.loop_mode = this.loop_mode;
},
changeParentMode() {
Emitter.parent_mode = this.parent_mode.toLowerCase();
Emitter.parent_mode = this.parent_mode;
},
toggleCollision() {
Emitter.ground_collision = !Emitter.ground_collision;
Expand Down
3 changes: 3 additions & 0 deletions src/components/Sidebar/Gradient.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
<div class="tool" style="float: right;" v-on:click="input.addPoint()"><i class="unicode_icon plus">{{'\uFF0B'}}</i></div>
<color-picker v-model="input.selected.color" v-on:input="input.change($event, $el)"></color-picker>
</div>
<div v-else>
<div class="tool" style="float: right;" v-on:click="input.addPoint()"><i class="unicode_icon plus">{{'\uFF0B'}}</i></div>
</div>
</div>
</template>

Expand Down
2 changes: 1 addition & 1 deletion vscode_extension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Snowstorm Repository: [github.com/JannisX11/snowstorm](https://github.com/Jannis

## Interface

![Image](https://i.imgur.com/6QIlzcq.png)
![Snowstorm interface screenshot](https://snowstorm.app/content/interface.png)
2 changes: 1 addition & 1 deletion vscode_extension/snowstorm/app.js

Large diffs are not rendered by default.

0 comments on commit dfb184a

Please sign in to comment.