| 255 | } |
| 256 | |
| 257 | void ComponentListComponent::update(int deltaTime) |
| 258 | { |
| 259 | for(auto iter = mEntries.begin(); iter != mEntries.end(); iter++) |
| 260 | { |
| 261 | if(iter->updateType == UpdateAlways) |
| 262 | { |
| 263 | iter->component->update(deltaTime); |
| 264 | continue; |
| 265 | } |
| 266 | |
| 267 | if(iter->updateType == UpdateFocused && cursorValid() && getCell(mCursor.x(), mCursor.y())->component == iter->component) |
| 268 | { |
| 269 | iter->component->update(deltaTime); |
| 270 | continue; |
| 271 | } |
| 272 | } |
| 273 | } |
| 274 | |
| 275 | void ComponentListComponent::render(const Eigen::Affine3f& parentTrans) |
| 276 | { |