mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Text viewer is reset on script change
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@310 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -37,7 +37,13 @@ void DataViewer::draw(RotatedDC& dc, const Color& background) {
|
||||
// fill with background color
|
||||
clearDC(dc.getDC(), background);
|
||||
// update style scripts
|
||||
if (card) set->updateFor(card);
|
||||
//%% if (card) set->updateFor(card);
|
||||
Context& ctx = getContext();
|
||||
FOR_EACH(v, viewers) {
|
||||
if (v->getStyle()->update(ctx)) {
|
||||
v->onStyleChange();
|
||||
}
|
||||
}
|
||||
// draw values
|
||||
FOR_EACH(v, viewers) { // draw low z index fields first
|
||||
if (v->getStyle()->visible) {// visible
|
||||
|
||||
Reference in New Issue
Block a user