mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36: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
|
// fill with background color
|
||||||
clearDC(dc.getDC(), background);
|
clearDC(dc.getDC(), background);
|
||||||
// update style scripts
|
// 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
|
// draw values
|
||||||
FOR_EACH(v, viewers) { // draw low z index fields first
|
FOR_EACH(v, viewers) { // draw low z index fields first
|
||||||
if (v->getStyle()->visible) {// visible
|
if (v->getStyle()->visible) {// visible
|
||||||
|
|||||||
Reference in New Issue
Block a user