aboutsummaryrefslogtreecommitdiff
path: root/src/gui/StyleSpec.h
diff options
context:
space:
mode:
authorPierre-Yves Rollo <dev@pyrollo.com>2020-09-16 17:10:17 +0200
committerSmallJoker <mk939@ymail.com>2020-11-23 21:28:25 +0100
commit78273027bf4bbee7488c76c6d65f85381ec7c0ba (patch)
tree2722d203dfb754549a34e58a4e859bc839ca68f8 /src/gui/StyleSpec.h
parent43bc3a124541d014d7a2678d72bf3b54ff2d6e97 (diff)
downloadminetest-78273027bf4bbee7488c76c6d65f85381ec7c0ba.tar.gz
minetest-78273027bf4bbee7488c76c6d65f85381ec7c0ba.tar.bz2
minetest-78273027bf4bbee7488c76c6d65f85381ec7c0ba.zip
Add sound to press event of some formspecs elements (#10402)
Diffstat (limited to 'src/gui/StyleSpec.h')
-rw-r--r--src/gui/StyleSpec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/StyleSpec.h b/src/gui/StyleSpec.h
index 36ad51a89..f2844ce28 100644
--- a/src/gui/StyleSpec.h
+++ b/src/gui/StyleSpec.h
@@ -54,6 +54,7 @@ public:
COLORS,
BORDERCOLORS,
BORDERWIDTHS,
+ SOUND,
NUM_PROPERTIES,
NONE
};
@@ -116,6 +117,8 @@ public:
return BORDERCOLORS;
} else if (name == "borderwidths") {
return BORDERWIDTHS;
+ } else if (name == "sound") {
+ return SOUND;
} else {
return NONE;
}