mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Added fancy mouseover effect to field borders.
This might be slow, if this becomes a problem I could add a setting to disable it.
This commit is contained in:
@@ -59,6 +59,8 @@ bool ValueViewer::setFieldBorderPen(RotatedDC& dc) {
|
||||
if (!(what & DRAW_BORDERS)) return false;
|
||||
if (what & DRAW_ACTIVE) {
|
||||
dc.SetPen(wxPen(Color(0, 128, 255), 1, wxPENSTYLE_SOLID));
|
||||
} else if (what & DRAW_HOVER) {
|
||||
dc.SetPen(dotted_pen(Color(0, 128, 255)));
|
||||
} else {
|
||||
dc.SetPen(dotted_pen(Color(128, 128, 128)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user