+
+ for(size_t i = 0; i < lines.size(); ++i) {
+ if(lines[i].size() == 0)
+ continue;
+ if(lines[i][0] == '!') {
+ std::string imagename = lines[i].substr(1, lines[i].size()-1);
+ images.insert(std::make_pair(imagename, new Surface(imagename)));
+ }
+ }
+
+ try
+ {
+ // get the arrow sprites
+ arrow_scrollup = new Surface("images/engine/menu/scroll-up.png");
+ arrow_scrolldown = new Surface("images/engine/menu/scroll-down.png");
+ }
+ catch (std::exception& e)
+ {
+ std::cout << "Could not load scrolling images: " << e.what() << std::endl;
+ arrow_scrollup = 0;
+ arrow_scrolldown = 0;
+ }