Refactor dialog parsing to reduce code duplication
- Refactor dialog format parameter management to use a single protected control function - Format parameters "frame" and "frame style" merged - Colour is now a first-class format parameter (though it still has a separate setter)
This commit is contained in:
@@ -1486,7 +1486,7 @@ void draw_map(bool need_refresh) {
|
||||
cPict theGraphic(mini_map);
|
||||
theGraphic.setBounds(dlogpicrect);
|
||||
theGraphic.setPict(21, PIC_DLOG);
|
||||
theGraphic.setFormat(TXT_FRAME, false);
|
||||
theGraphic.setFormat(TXT_FRAME, FRM_NONE);
|
||||
theGraphic.draw();
|
||||
style.colour = sf::Color::White;
|
||||
style.lineHeight = 12;
|
||||
|
Reference in New Issue
Block a user