Story Viewer: added TODOs

[ci skip]
This commit is contained in:
Charles Dang 2017-04-19 15:10:27 +11:00
parent 9647ab35c8
commit 0421ee4128

View file

@ -279,6 +279,9 @@ void story_viewer::display_part(window& window)
// If we have images to draw, draw the first one now. A new non-repeating timer is added
// after every draw to schedule the next one after the specified interval.
//
// TODO: in the old GUI1 dialog, floating images delayed the appearance of the story panel until
// drawing was finished. Might be worth looking into restoring that.
if(!floating_images.empty()) {
draw_floating_image(window, floating_images.begin(), part_index_);
}
@ -319,6 +322,9 @@ void story_viewer::draw_floating_image(window& window, floating_image_list::cons
image["h"] = floating_image.autoscale() ? "(height)" : "(image_height)";
image["name"] = floating_image.file();
// TODO: implement handling of the tiling options.
//image["resize_mode"] = "tile_centered"
cfg.add_child("image", image);
canvas& window_canvas = window.get_canvas(0);