Vultraz

Wesnoth Editor Set Title Function

Jul 8th, 2015
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. void context_manager::set_window_title(const std::string& filename)
  2. {
  3.     std::string e_title_string = _("The Battle For Wesnoth");
  4.     e_title_string += " - " + filesystem::base_name(filename);
  5.     SDL_WM_SetCaption(e_title_string.c_str(), NULL);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment