This website works better with JavaScript.
Home
Help
Sign In
VCVRack
/
Rack
mirror of
https://github.com/VCVRack/Rack.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
38
Wiki
Activity
Browse Source
Add tag::getTag().
tags/v2.0.0
Andrew Belt
5 years ago
parent
5c90a71713
commit
dd81e79d9e
3 changed files
with
9 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
include/tag.hpp
+1
-1
src/app/ModuleWidget.cpp
+6
-0
src/tag.cpp
+ 2
- 0
include/tag.hpp
View File
@@ -23,6 +23,8 @@ Returns -1 if not found.
*/
int findId(const std::string& tag);
std::string getTag(int tagId);
} // namespace tag
} // namespace rack
+ 1
- 1
src/app/ModuleWidget.cpp
View File
@@ -56,7 +56,7 @@ struct ModuleInfoItem : ui::MenuItem {
for (int tagId : model->tags) {
ui::MenuLabel* tagLabel = new ui::MenuLabel;
tagLabel->text = tag::
tagAliases[tagId][0]
;
tagLabel->text = tag::
getTag(tagId)
;
menu->addChild(tagLabel);
}
+ 6
- 0
src/tag.cpp
View File
@@ -79,5 +79,11 @@ int findId(const std::string& tag) {
}
std::string getTag(int tagId) {
assert(0 <= tagId && tagId < (int) tagAliases.size());
return tagAliases[tagId][0];
}
} // namespace tag
} // namespace rack
Write
Preview
Loading…
Cancel
Save