1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-19 06:15:10 +03:00

[Horus] Alert Box new design by Martin

This commit is contained in:
Bertrand Songis 2016-02-16 22:07:10 +01:00
parent 33910c8721
commit f9f7ddd639
11 changed files with 64 additions and 44 deletions

View file

@ -814,7 +814,8 @@ class LuaTheme: public Theme
Theme(name, bitmap),
loadFunction(0),
drawBackgroundFunction(0),
drawTopbarBackgroundFunction(0)
drawTopbarBackgroundFunction(0),
drawAlertBoxFunction(0)
{
}
@ -845,10 +846,18 @@ class LuaTheme: public Theme
exec(drawTopbarBackgroundFunction);
}
#if 0
virtual void drawAlertBox(const char * title, const char * text, const char * action) const
{
exec(drawAlertBoxFunction);
}
#endif
protected:
int loadFunction;
int drawBackgroundFunction;
int drawTopbarBackgroundFunction;
int drawAlertBoxFunction;
};
int luaLoadTheme(const char * filename)