Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-01-28 19:10:46 +0000
committerStijn Buys <ingar@osirion.org>2012-01-28 19:10:46 +0000
commita05ce8805b7903f605980db25e5b0355b6d9c80e (patch)
treea83e0738ac644c1236c2005a4c5f7c986715e4a3 /src/client/savegamemenu.h
parent261ff1787c0076cad71a57343df221180ae94188 (diff)
FS#21 Implemented savegame screenshot.
Diffstat (limited to 'src/client/savegamemenu.h')
-rw-r--r--src/client/savegamemenu.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/client/savegamemenu.h b/src/client/savegamemenu.h
index d8dde05..b26bbdf 100644
--- a/src/client/savegamemenu.h
+++ b/src/client/savegamemenu.h
@@ -7,6 +7,7 @@
#ifndef __INCLUDED_CLIENT_SAVEGAMEMENU_H__
#define __INCLUDED_CLIENT_SAVEGAMEMENU_H__
+#include "ui/bitmap.h"
#include "ui/button.h"
#include "ui/iconbutton.h"
#include "ui/inputbox.h"
@@ -25,10 +26,13 @@ public:
SaveGameMenu(ui::Widget *parent = 0, const char *label = 0, const Mode mode = Save);
virtual ~SaveGameMenu();
+ /// load the specified savegame
static void loadgame(std::string savename);
+ /// save the current game state to the specified savegame name
static void savegame(std::string savename, const std::string & description);
+ /// delete the specified savegame
static void deletegame(std::string savename);
protected:
@@ -43,6 +47,8 @@ protected:
virtual void show();
+ virtual void hide();
+
/**
* @brief show file info for the selected savegame
* */
@@ -66,6 +72,9 @@ protected:
void refresh();
private:
+ /// save a screenshot for a specified savegame
+ static void savescreenshot(std::string savename);
+
void get_savegame_info(const std::string & savename, std::string &game_descr, std::string &game_info, std::string &game_timestamp);
Mode savegamemenu_mode;
@@ -85,8 +94,8 @@ private:
ui::Button *savegamemenu_confirmsavebutton;
ui::Button *savegamemenu_confirmdeletebutton;
-
-
+ ui::Bitmap *savegamemenu_screenshot;
+
}; // class SaveGameMenu