aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova/screen.h
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-06-19 17:59:36 +0200
committerThierry Crozat2019-07-28 15:09:14 +0100
commit5f355734fd8648d03d4e691c7c3bc70cfaeaf0a6 (patch)
tree71a13f299bd9bacf46d43cdd6e5c8dde6fe64d36 /engines/supernova/screen.h
parentee5b907f6279d8b28b799922ca11e2bbaaa72c46 (diff)
downloadscummvm-rg350-5f355734fd8648d03d4e691c7c3bc70cfaeaf0a6.tar.gz
scummvm-rg350-5f355734fd8648d03d4e691c7c3bc70cfaeaf0a6.tar.bz2
scummvm-rg350-5f355734fd8648d03d4e691c7c3bc70cfaeaf0a6.zip
SUPERNOVA: Partial merge of the engine
I am merging the second engine to the first one. Both should be fully functional as before right now Current merge file status: console: should be done graphics: should be done detection: 0% merged imageid: appears to not be used anywhere, so it may be removed resman: partialy merged rooms: totaly different, 0% merged screen: should be done screenstatic: done sound: partialy done state: a lot different, just started to merge supernova: mostly done
Diffstat (limited to 'engines/supernova/screen.h')
-rw-r--r--engines/supernova/screen.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/engines/supernova/screen.h b/engines/supernova/screen.h
index 3e90e21b1a..dc5aa4dc2f 100644
--- a/engines/supernova/screen.h
+++ b/engines/supernova/screen.h
@@ -29,7 +29,7 @@
#include "supernova/imageid.h"
#include "supernova/msn_def.h"
-#include "supernova2/resman.h"
+#include "supernova/resman.h"
namespace Supernova {
@@ -63,6 +63,7 @@ enum Color {
kColorLightGreen = 13,
kColorLightYellow = 14,
kColorLightRed = 15,
+ kColorPurple = 35,
kColorCursorTransparent = kColorWhite25
};
@@ -101,7 +102,8 @@ public:
Marquee(Screen *screen, MarqueeId id, const char *text);
- void renderCharacter();
+ bool renderCharacter();
+ void reset();
private:
void clearText();
@@ -141,11 +143,11 @@ public:
void setViewportBrightness(int brightness);
int getGuiBrightness() const;
void setGuiBrightness(int brightness);
- const MSNImage *getCurrentImage() const;
+ MSNImage *getCurrentImage();
const ImageInfo *getImageInfo(ImageId id) const;
bool isMessageShown() const;
void paletteFadeIn(int maxViewportBrightness);
- void paletteFadeOut();
+ void paletteFadeOut(int minBrightness);
void paletteBrightness();
void renderImage(ImageId id, bool removeImage = false);
void renderImage(int section);
@@ -154,7 +156,7 @@ public:
void saveScreen(const GuiElement &guiElement);
void restoreScreen();
void renderRoom(Room &room);
- void renderMessage(const char *text, MessagePosition position = kMessageNormal);
+ void renderMessage(const char *text, MessagePosition position = kMessageNormal, int positionX = -1, int positionY = -1);
void renderMessage(const Common::String &text, MessagePosition position = kMessageNormal);
void renderMessage(StringId stringId, MessagePosition position = kMessageNormal,
Common::String var1 = "", Common::String var2 = "");
@@ -176,6 +178,7 @@ public:
byte getTextCursorColor();
void setTextCursorColor(byte color);
void update();
+ void changeCursor(ResourceManager::CursorId);
private:
void renderImageSection(const MSNImage *image, int section, bool invert);
@@ -183,7 +186,7 @@ private:
private:
SupernovaEngine *_vm;
ResourceManager *_resMan;
- const MSNImage *_currentImage;
+ MSNImage *_currentImage;
ScreenBufferStack _screenBuffer;
int _screenWidth;
int _screenHeight;