Mercurial > hg > ristipolku
comparison game/IDMContainer.java @ 203:20231e8bbc43
Set IDM child widget scale when added to a container.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 29 Apr 2019 15:39:43 +0300 |
parents | 189cd8fe2304 |
children |
comparison
equal
deleted
inserted
replaced
202:54dd56b9bee6 | 203:20231e8bbc43 |
---|---|
24 } | 24 } |
25 | 25 |
26 synchronized public void add(IDMWidget widget) | 26 synchronized public void add(IDMWidget widget) |
27 { | 27 { |
28 widget.setParent(this); | 28 widget.setParent(this); |
29 widget.setScale(this.scale); | |
29 if (iterated > 0) | 30 if (iterated > 0) |
30 { | 31 { |
31 queue.add(0, widget); | 32 queue.add(0, widget); |
32 modified = true; | 33 modified = true; |
33 } | 34 } |