Rework parentage and naming of dialog controls.
All controls now store a reference to their direct parent, whether it be the dialog itself or a container control. Every dialog control now has a guaranteed parent, which abstracts away the three possible types of parents (dialog, container, and plain window). The control name is now stored in the control from the moment it is parsed from the XML. This means that it's set before the parseContent function, though after parseAttribute.
This commit is contained in:
@@ -1473,7 +1473,8 @@ void draw_map(bool need_refresh) {
|
||||
|
||||
the_rect = rectangle(mini_map);
|
||||
tileImage(mini_map, the_rect,bg[4]);
|
||||
cPict theGraphic(mini_map);
|
||||
cParentless mapWin(mini_map);
|
||||
cPict theGraphic(mapWin);
|
||||
theGraphic.setBounds(dlogpicrect);
|
||||
theGraphic.setPict(21, PIC_DLOG);
|
||||
theGraphic.setFormat(TXT_FRAME, FRM_NONE);
|
||||
|
Reference in New Issue
Block a user