Changeset 884
- Timestamp:
- 06/24/19 14:42:57 (6 years ago)
- Location:
- cpp/frams/param
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/param/mutableparam.cpp
r832 r884 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-201 8Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2019 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 17 17 { "_propertyAddGroup", 0, PARAM_DONTSAVE | PARAM_USERHIDDEN, "Add property group", "p(s name)", PROCEDURE(p_addgroup), PROPERTY_WARNING }, 18 18 { "_propertyRemoveGroup", 0, PARAM_DONTSAVE | PARAM_USERHIDDEN, "Remove property group", "p(d index)", PROCEDURE(p_remgroup), PROPERTY_WARNING }, 19 { "_propertyExists", 0, PARAM_DONTSAVE | PARAM_USERHIDDEN, "Check for property existence", "p d(s name)", PROCEDURE(p_exists) }, 19 20 { "_property_changed_index", 0, PARAM_DONTSAVE | PARAM_USERHIDDEN | PARAM_READONLY, "Last changed property index", "d", FIELD(changed), }, 20 21 { "_property_changed_id", 0, PARAM_DONTSAVE | PARAM_USERHIDDEN | PARAM_READONLY, "Last changed property id", "s", GETONLY(changedname), }, … … 246 247 } 247 248 249 void MutableParam::p_exists(ExtValue *args, ExtValue *ret) 250 { 251 ret->setInt(findId(args->getString().c_str()) >= 0); 252 } 253 248 254 void MutableParam::notify(int id) 249 255 { -
cpp/frams/param/mutableparam.h
r832 r884 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-201 8Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2019 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 69 69 PARAMPROCDEF(p_addgroup); 70 70 PARAMPROCDEF(p_remgroup); 71 PARAMPROCDEF(p_exists); 71 72 PARAMGETDEF(changedname) { arg1->setString(id(changed)); } 72 73 #undef STATRICKCLASS
Note: See TracChangeset
for help on using the changeset viewer.