| 490 | } |
| 491 | |
| 492 | void FubbleModule::SetUpFromSaveData() |
| 493 | { |
| 494 | { |
| 495 | std::string controlPathH = mModuleSaveData.GetString("uicontrol_h"); |
| 496 | if (!controlPathH.empty()) |
| 497 | { |
| 498 | auto uicontrol = TheSynth->FindUIControl(controlPathH); |
| 499 | if (uicontrol) |
| 500 | { |
| 501 | mAxisH.GetCableSource()->SetTarget(uicontrol); |
| 502 | mAxisH.UpdateControl(); |
| 503 | } |
| 504 | } |
| 505 | } |
| 506 | |
| 507 | { |
| 508 | std::string controlPathV = mModuleSaveData.GetString("uicontrol_v"); |
| 509 | if (!controlPathV.empty()) |
| 510 | { |
| 511 | auto uicontrol = TheSynth->FindUIControl(controlPathV); |
| 512 | if (uicontrol) |
| 513 | { |
| 514 | mAxisV.GetCableSource()->SetTarget(uicontrol); |
| 515 | mAxisV.UpdateControl(); |
| 516 | } |
| 517 | } |
| 518 | } |
| 519 | |
| 520 | Resize(mModuleSaveData.GetInt("width"), mModuleSaveData.GetInt("height")); |
| 521 | } |
| 522 | |
| 523 | void FubbleModule::SaveState(FileStreamOut& out) |
| 524 | { |
nothing calls this directly
no test coverage detected