aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/UI/UIButton.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/UI/UIButton.h')
-rw-r--r--engines/wintermute/UI/UIButton.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/wintermute/UI/UIButton.h b/engines/wintermute/UI/UIButton.h
index a857e8ed2a..5bdc075ebc 100644
--- a/engines/wintermute/UI/UIButton.h
+++ b/engines/wintermute/UI/UIButton.h
@@ -44,7 +44,7 @@ public:
uint32 _oneTimePressTime;
DECLARE_PERSISTENT(CUIButton, CUIObject)
void press();
- virtual ERRORCODE display(int offsetX = 0, int offsetY = 0);
+ virtual bool display(int offsetX = 0, int offsetY = 0);
bool _press;
bool _hover;
void correctSize();
@@ -63,14 +63,14 @@ public:
CUITiledImage *_backFocus;
CUIButton(CBGame *inGame = NULL);
virtual ~CUIButton();
- ERRORCODE loadFile(const char *filename);
- ERRORCODE loadBuffer(byte *buffer, bool complete = true);
- virtual ERRORCODE saveAsText(CBDynBuffer *buffer, int indent);
+ bool loadFile(const char *filename);
+ bool loadBuffer(byte *buffer, bool complete = true);
+ virtual bool saveAsText(CBDynBuffer *buffer, int indent);
// scripting interface
virtual CScValue *scGetProperty(const char *name);
- virtual ERRORCODE scSetProperty(const char *name, CScValue *value);
- virtual ERRORCODE scCallMethod(CScScript *script, CScStack *stack, CScStack *thisStack, const char *name);
+ virtual bool scSetProperty(const char *name, CScValue *value);
+ virtual bool scCallMethod(CScScript *script, CScStack *stack, CScStack *thisStack, const char *name);
virtual const char *scToString();
};