Skip to content

Commit 3ea7a61

Browse files
committed
Added some more endpoint property types
1 parent 30d0bc7 commit 3ea7a61

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

source/modules/soul_core/types/soul_EndpointType.cpp

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,16 @@ PatchPropertiesFromEndpointDetails::PatchPropertiesFromEndpointDetails (const En
152152
}
153153
}
154154

155-
unit = details.annotation.getString ("unit");
156-
minValue = castValueToFloat (details.annotation.getValue ("min"), minValue);
157-
maxValue = castValueToFloat (details.annotation.getValue ("max"), maxValue);
158-
step = castValueToFloat (details.annotation.getValue ("step"), maxValue / (numIntervals == 0 ? 1000 : numIntervals));
159-
initialValue = castValueToFloat (details.annotation.getValue ("init"), minValue);
155+
unit = details.annotation.getString ("unit");
156+
group = details.annotation.getString ("group");
157+
textValues = details.annotation.getString ("text");
158+
minValue = castValueToFloat (details.annotation.getValue ("min"), minValue);
159+
maxValue = castValueToFloat (details.annotation.getValue ("max"), maxValue);
160+
step = castValueToFloat (details.annotation.getValue ("step"), maxValue / static_cast<float> (numIntervals == 0 ? 1000 : numIntervals));
161+
initialValue = castValueToFloat (details.annotation.getValue ("init"), minValue);
162+
isAutomatable = details.annotation.getBool ("automatable", true);
163+
isBoolean = details.annotation.getBool ("boolean", false);
164+
isHidden = details.annotation.getBool ("hidden", false);
160165
}
161166

162167
}

source/modules/soul_core/types/soul_EndpointType.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,9 @@ struct PatchPropertiesFromEndpointDetails
136136
{
137137
PatchPropertiesFromEndpointDetails (const EndpointDetails&);
138138

139-
std::string name, unit;
139+
std::string name, unit, group, textValues;
140140
float minValue = 0, maxValue = 1.0f, step = 0, initialValue = 0;
141+
bool isAutomatable = false, isBoolean = false, isHidden = false;
141142
};
142143

143144
} // namespace soul

0 commit comments

Comments
 (0)