summaryrefslogtreecommitdiff
path: root/src/preview/PreviewView.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-06-09 13:54:58 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-06-09 13:54:58 (GMT)
commitc408e035faf88f968ea208d48ced4b7c3c9dc32d (patch)
treed98f393173b2aead0fd164cd467ee4c2dcbd7e2b /src/preview/PreviewView.h
parent46614017c8f9e1a293109fb9d202ed3b634427f5 (diff)
downloadpowder-c408e035faf88f968ea208d48ced4b7c3c9dc32d.zip
powder-c408e035faf88f968ea208d48ced4b7c3c9dc32d.tar.gz
Preview: Wait for save to load before opening, Simulation: Correct block coords when reading wall data, replace existing particles when placing stamps on top, Game: Clear the simulation when loading a save
Diffstat (limited to 'src/preview/PreviewView.h')
-rw-r--r--src/preview/PreviewView.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/preview/PreviewView.h b/src/preview/PreviewView.h
index a0e7c20..011f864 100644
--- a/src/preview/PreviewView.h
+++ b/src/preview/PreviewView.h
@@ -33,12 +33,14 @@ class PreviewView: public ui::Window {
std::vector<ui::Component*> commentTextComponents;
int votesUp;
int votesDown;
+ bool doOpen;
public:
void AttachController(PreviewController * controller) { c = controller;}
PreviewView();
void NotifySaveChanged(PreviewModel * sender);
void NotifyCommentsChanged(PreviewModel * sender);
virtual void OnDraw();
+ virtual void DoDraw();
virtual void OnTick(float dt);
virtual void OnMouseDown(int x, int y, unsigned button);
virtual ~PreviewView();