| 268 | } |
| 269 | |
| 270 | void ModuleSaveDataPanel::UpdatePosition() |
| 271 | { |
| 272 | if (mSaveModule) |
| 273 | { |
| 274 | float moduleX, moduleY, moduleW, moduleH; |
| 275 | mSaveModule->GetPosition(moduleX, moduleY); |
| 276 | mSaveModule->GetDimensions(moduleW, moduleH); |
| 277 | |
| 278 | SetPosition(moduleX + moduleW, moduleY); |
| 279 | } |
| 280 | |
| 281 | if (mShowing) |
| 282 | mAppearAmount = ofClamp(mAppearAmount + ofGetLastFrameTime() * 5, 0, 1); |
| 283 | else |
| 284 | mAppearAmount = ofClamp(mAppearAmount - ofGetLastFrameTime() * 5, 0, 1); |
| 285 | } |
| 286 | |
| 287 | void ModuleSaveDataPanel::ApplyChanges() |
| 288 | { |
nothing calls this directly
no test coverage detected