| 110 | } |
| 111 | |
| 112 | void PlaySequencer::DrawModule() |
| 113 | { |
| 114 | if (Minimized() || IsVisible() == false) |
| 115 | return; |
| 116 | |
| 117 | mGridControlTarget->Draw(); |
| 118 | mIntervalSelector->Draw(); |
| 119 | mWriteCheckbox->Draw(); |
| 120 | mNoteRepeatCheckbox->Draw(); |
| 121 | mLinkColumnsCheckbox->Draw(); |
| 122 | mNumMeasuresSelector->Draw(); |
| 123 | for (size_t i = 0; i < mLanes.size(); ++i) |
| 124 | mLanes[i].mMuteOrEraseCheckbox->Draw(); |
| 125 | for (size_t i = 0; i < mSavedPatterns.size(); ++i) |
| 126 | { |
| 127 | mSavedPatterns[i].mStoreButton->Draw(); |
| 128 | mSavedPatterns[i].mLoadButton->Draw(); |
| 129 | if (mSavedPatterns[i].mHasSequence) |
| 130 | { |
| 131 | ofPushStyle(); |
| 132 | ofFill(); |
| 133 | ofSetColor(0, 255, 0, 80); |
| 134 | ofRectangle rect = mSavedPatterns[i].mLoadButton->GetRect(K(local)); |
| 135 | ofRect(rect); |
| 136 | ofPopStyle(); |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | mGrid->Draw(); |
| 141 | |
| 142 | ofPushStyle(); |
| 143 | ofSetColor(255, 0, 0, 50); |
| 144 | ofFill(); |
| 145 | for (int i = 0; i < (int)mLanes.size(); ++i) |
| 146 | { |
| 147 | if (mLanes[i].mMuteOrErase) |
| 148 | { |
| 149 | ofRectangle gridRect = mGrid->GetRect(true); |
| 150 | ofVec2f cellPos = mGrid->GetCellPosition(0, i) + mGrid->GetPosition(true); |
| 151 | ofRect(cellPos.x, cellPos.y + 1, gridRect.width, gridRect.height / mGrid->GetRows()); |
| 152 | } |
| 153 | } |
| 154 | ofPopStyle(); |
| 155 | } |
| 156 | |
| 157 | void PlaySequencer::OnClicked(float x, float y, bool right) |
| 158 | { |
nothing calls this directly
no test coverage detected