Skip to content

Commit 82b8706

Browse files
committed
Rewrite the darn thing again, now with sound pack support
1 parent d7a917b commit 82b8706

35 files changed

+1155
-344
lines changed

README.md

Lines changed: 147 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,150 @@
22

33
Adds sound effects to the editor!
44

5-
You can edit these with a resource pack or editing the sounds directly in the mod's resources.
5+
## Custom Sound Packs
6+
7+
You can set a custom sound pack in the mod's settings.
8+
9+
### How To
10+
11+
To create a custom sound pack, you need to add sounds with the name of the event you want the sound to play on. These sounds can be `.ogg` or `.mp3` files.
12+
13+
You can also add random sound variants by adding `_var_#` at the end of the file name.
14+
15+
For example, if I want to have variance on object placement, I would name the files like this:
16+
17+
`place-object_var_1.ogg`
18+
19+
`place-object_var_2.ogg`
20+
21+
`place-object_var_3.ogg`
22+
23+
### Events
24+
25+
- `select` - Object is selected.
26+
27+
- `deselect` - Object is deselected
28+
29+
- `place-object` - Object is placed.
30+
31+
- `delete` - Object is deleted.
32+
33+
- `copy` - Object is copied.
34+
35+
- `paste` - Object is pasted.
36+
37+
- `duplicate` - Object is duplicated.
38+
39+
- `undo` - Action is undone.
40+
41+
- `redo` - Action is redone.
42+
43+
- `move` - Object is moved one grid space. Overridden if the following are set:
44+
45+
- `move-down` - Object is moved down one grid space.
46+
47+
- `move-up` - Object is moved up one grid space.
48+
49+
- `move-left` - Object is moved left one grid space.
50+
51+
- `move-right` - Object is moved right one grid space.
52+
53+
- `move-half` - Object is moved half a grid space. Overridden if the following are set:
54+
55+
- `move-half-down` - Object is moved down half a grid space.
56+
57+
- `move-half-up` - Object is moved up half a grid space.
58+
59+
- `move-half-left` - Object is moved left half a grid space.
60+
61+
- `move-half-right` - Object is moved right half a grid space.
62+
63+
- `move-small` - Object is moved 1/15th of a grid space. Overridden if the following are set:
64+
65+
- `move-small-down` - Object is moved down 1/15th of a grid space.
66+
67+
- `move-small-up` - Object is moved up 1/15th of a grid space.
68+
69+
- `move-small-left` - Object is moved left 1/15th of a grid space.
70+
71+
- `move-small-right` - Object is moved right 1/15th of a grid space.
72+
73+
- `move-tiny` - Object is moved 1/60th of a grid space. Overridden if the following are set:
74+
75+
- `move-tiny-down` - Object is moved down 1/60th of a grid space.
76+
77+
- `move-tiny-up` - Object is moved up 1/60th of a grid space.
78+
79+
- `move-tiny-left` - Object is moved left 1/60th of a grid space.
80+
81+
- `move-tiny-right` - Object is moved right 1/60th of a grid space.
82+
83+
- `move-big` - Object is moved five grid grid spaces. Overridden if the following are set:
84+
85+
- `move-big-down` - Object is moved down five grid spaces.
86+
87+
- `move-big-up` - Object is moved up five grid spaces.
88+
89+
- `move-big-left` - Object is moved left five grid spaces.
90+
91+
- `move-big-right` - Object is moved right five grid spaces.
92+
93+
- `rotate` - Object is rotated or flipped. Overridden if the following are set:
94+
95+
- `rotate-clockwise` - Object is rotated 90 degrees clockwise.
96+
97+
- `rotate-counter-clockwise` - Object is rotated 90 degrees counter clockwise.
98+
99+
- `rotate-45-clockwise` - Object is rotated 45 degrees clockwise.
100+
101+
- `rotate-45-counter-clockwise` - Object is rotated 45 degrees counter clockwise.
102+
103+
- `flip-x` - Object is flipped horizontally.
104+
105+
- `flip-y` - Object is flipped vertically.
106+
107+
- `generic-button` - Sound used for toolbar-categories and toolbar-toggles. Overridden if the following are set:
108+
109+
- `toolbar-categories` - Clicking on the Create, Edit, Delete, and View buttons.
110+
111+
- `toolbar-toggles` - Clicking on the Swipe, Rotate, Free Move, and Snap buttons.
112+
113+
- `prev-page` - Clicking on the previous page in the toolbar,
114+
115+
- `next-page` - Clicking on the next page in the toolbar.
116+
117+
- `base-layer` - Clicking the base layer arrow (uses prev-page by default).
118+
119+
- `next-free-layer` - Clicking the next free layer arrow (uses next-page by default).
120+
121+
- `prev-layer` Clicking the next layer arrow (uses prev-page by default).
122+
123+
- `next-layer` Clicking the next layer arrow (uses next-page by default).
124+
125+
- `tabs-prev-page` Clicking the prev page arrow if you have Vanilla Pages installed (uses prev-page by default).
126+
127+
- `tabs-next-page` Clicking the next page arrow if you have Vanilla Pages installed (uses next-page by default).
128+
129+
- `switch-tab` - Switching between tabs in the toolbar.
130+
131+
- `zoom-in` - Zooming in the editor.
132+
133+
- `zoom-out` - Zooming out the editor.
134+
135+
- `lock-layer` - Locking the layer you are on.
136+
137+
- `unlock-layer` - Unlocking the layer you are on.
138+
139+
- `link` - Linking a group of objects together.
140+
141+
- `unlink` - Unlinking a group of objects.
142+
143+
- `toggle-link` - Toggling link controls if you have Improved Link Controls installed.
144+
145+
- `slider-tick` - Sliding the slider at the top of the editor.
146+
147+
- `grid-decrease` - Decreasing the grid size with BetterEdit.
148+
149+
- `grid-increase` - Increasing the grid size with BetterEdit.
150+
151+
- `toggle-ui` - Toggling the UI with BetterEdit.

about.md

Lines changed: 0 additions & 5 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)