| 10 | } |
| 11 | |
| 12 | ImStudio::Object::Object(int idgen_, std::string type_) : BaseObject() |
| 13 | { |
| 14 | if (type_ == "child") |
| 15 | { |
| 16 | child.objects.reserve(250); |
| 17 | child.open = true; |
| 18 | child.id = idgen_; |
| 19 | } |
| 20 | id = idgen_; |
| 21 | type = type_; |
| 22 | identifier = type_ + std::to_string(idgen_); |
| 23 | value_s = type_ + std::to_string(idgen_); |
| 24 | } |
| 25 | |
| 26 | //void ImStudio::BaseObject::draw(int *select, bool staticlayout = false) |
| 27 | // moved to ims_object_draw.cpp |