| 1596 | } |
| 1597 | |
| 1598 | void ScriptModule::LineEventTracker::Draw(CodeEntry* codeEntry, int style, ofColor color) |
| 1599 | { |
| 1600 | ofPushStyle(); |
| 1601 | ofFill(); |
| 1602 | for (int i = 0; i < (int)mText.size(); ++i) |
| 1603 | { |
| 1604 | float alpha = style == 0 ? 200 : 150; |
| 1605 | float fadeMs = style == 0 ? 200 : 150; |
| 1606 | if (gTime - mTimes[i] > 0 && gTime - mTimes[i] < fadeMs) |
| 1607 | { |
| 1608 | ofSetColor(color, alpha * (1 - (gTime - mTimes[i]) / fadeMs)); |
| 1609 | ofVec2f linePos = codeEntry->GetLinePos(i, false); |
| 1610 | if (style == 0) |
| 1611 | ofRect(linePos.x + 1, linePos.y + 3, 4, codeEntry->GetCharHeight(), L(corner, 0)); |
| 1612 | if (style == 1) |
| 1613 | ofCircle(linePos.x + 11, linePos.y + 10, 5); |
| 1614 | |
| 1615 | if (mText[i] != "") |
| 1616 | { |
| 1617 | linePos = codeEntry->GetLinePos(i, K(end)); |
| 1618 | DrawTextNormal(mText[i], linePos.x + 10, linePos.y + 15); |
| 1619 | } |
| 1620 | } |
| 1621 | } |
| 1622 | ofPopStyle(); |
| 1623 | } |
| 1624 | |
| 1625 | ScriptReferenceDisplay::ScriptReferenceDisplay() |
| 1626 | { |
no test coverage detected