ofs | hex dump | ascii |
---|
0000 | 42 42 33 44 96 80 00 00 01 00 00 00 54 45 58 53 5b 00 00 00 61 64 76 74 72 61 69 6e 73 5f 64 74 | BB3D........TEXS[...advtrains_dt |
0020 | 72 61 63 6b 5f 72 61 69 6c 2e 70 6e 67 00 01 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 | rack_rail.png................... |
0040 | 80 3f 00 00 80 3f 00 00 00 00 72 61 69 6c 2e 70 6e 67 00 01 00 00 00 02 00 00 00 00 00 00 00 00 | .?...?....rail.png.............. |
0060 | 00 00 00 00 00 80 3f 00 00 80 3f 00 00 00 00 42 52 55 53 58 00 00 00 01 00 00 00 42 72 75 73 68 | ......?...?....BRUSX.......Brush |
0080 | 2e 30 30 31 00 00 00 80 3f 00 00 80 3f 00 00 80 3f 00 00 80 3f 00 00 00 00 01 00 00 00 00 00 00 | .001....?...?...?...?........... |
00a0 | 00 00 00 00 00 42 72 75 73 68 2e 30 30 32 00 00 00 80 3f 00 00 80 3f 00 00 80 3f 00 00 80 3f 00 | .....Brush.002....?...?...?...?. |
00c0 | 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 4e 4f 44 45 c7 7f 00 00 52 4f 4f 54 00 00 00 00 00 | ...............NODE....ROOT..... |
00e0 | 00 00 00 00 00 00 00 00 00 00 80 3f 00 00 80 3f 00 00 80 3f 00 00 80 3f 00 00 00 00 00 00 00 00 | ...........?...?...?...?........ |
0100 | 00 00 00 00 4e 4f 44 45 2a 42 00 00 70 62 6f 63 6b 00 00 00 00 00 00 00 00 00 00 00 00 00 85 4c | ....NODE*B..pbock..............L |
0120 | c8 3e 84 4c c8 3e 85 4c c8 3e 15 ef c3 3e 00 00 00 00 5e 83 6c bf 00 00 00 00 4d 45 53 48 f4 41 | .>.L.>.L.>...>....^.l.....MESH.A |
0140 | 00 00 ff ff ff ff 56 52 54 53 8c 37 00 00 01 00 00 00 01 00 00 00 02 00 00 00 2c 1b 77 3f e4 4b | ......VRTS.7..............,.w?.K |
0160 | 16 40 bf 6d 8d 3f d2 13 69 bf 31 49 98 3e 26 15 93 be a8 41 e3 3e 31 02 70 3f 2c 1b 77 3f 3c 93 | .@.m.?..i.1I.>&....A.>1.p?,.w?<. |
0180 | 1b 40 bf 6d 8d 3f 6a 03 35 bf 6a 03 35 3f 00 00 00 00 a8 41 e3 3e 8c b8 72 3f 2c 1b 77 3f 3c 93 | .@.m.?j.5.j.5?.....A.>..r?,.w?<. |
01a0 | 1b 40 bd dc ab 3f 6a 03 35 bf 6a 03 35 3f 00 00 00 00 db e4 f2 3e 8b b8 72 3f 2c 1b 77 3f e4 4b | .@...?j.5.j.5?.......>..r?,.w?.K |
01c0 | 16 40 bd dc ab 3f d2 13 69 bf 31 49 98 3e 26 15 93 3e db e4 f2 3e 31 02 70 3f 70 2f 75 3f fe 44 | .@...?..i.1I.>&..>...>1.p?p/u?.D |
01e0 | 16 40 bf 6d 8d 3f 2f 7b 17 bf 1e 39 0f 3f 29 91 14 bf b8 1a 2b 3f 66 bd 1d 3f 2c 1b 77 3f e4 4b | .@.m.?/{...9.?).....+?f..?,.w?.K |
0200 | 16 40 bf 6d 8d 3f d2 13 69 bf 31 49 98 3e 26 15 93 be 80 6a 2b 3f 66 bd 1d 3f 2c 1b 77 3f e4 4b | .@.m.?..i.1I.>&....j+?f..?,.w?.K |
0220 | 16 40 bd dc ab 3f d2 13 69 bf 31 49 98 3e 26 15 93 3e 81 6a 2b 3f 61 e1 13 3f 70 2f 75 3f fe 44 | .@...?..i.1I.>&..>.j+?a..?p/u?.D |
0240 | 16 40 bd dc ab 3f 2f 7b 17 bf 1e 39 0f 3f 29 91 14 3f b8 1a 2b 3f 61 e1 13 3f 71 2f 75 3f 79 23 | .@...?/{...9.?)..?..+?a..?q/u?y# |
0260 | 04 40 c0 6d 8d 3f 2e e9 16 bf 8c c1 45 3e 92 c9 48 bf 55 5b 1f 3f 65 bd 1d 3f 70 2f 75 3f fe 44 | .@.m.?......E>..H.U[.?e..?p/u?.D |
0280 | 16 40 bf 6d 8d 3f 2f 7b 17 bf 1e 39 0f 3f 29 91 14 bf b8 1a 2b 3f 66 bd 1d 3f 70 2f 75 3f fe 44 | .@.m.?/{...9.?).....+?f..?p/u?.D |
02a0 | 16 40 bd dc ab 3f 2f 7b 17 bf 1e 39 0f 3f 29 91 14 3f b8 1a 2b 3f 61 e1 13 3f 71 2f 75 3f 79 23 | .@...?/{...9.?)..?..+?a..?q/u?y# |
02c0 | 04 40 be dc ab 3f 2e e9 16 bf 8c c1 45 3e 92 c9 48 3f 54 5b 1f 3f 61 e1 13 3f 30 1b 77 3f 38 c7 | .@...?......E>..H?T[.?a..?0.w?8. |
02e0 | bb 3f c1 6d 8d 3f 93 9b 49 bf aa 41 55 be 29 79 14 bf 95 2d 21 3f c4 39 50 3e 29 79 37 bf 36 38 | .?.m.?..I..AU.)y...-!?.9P>)y7.68 |
0300 | 69 bf c1 6d 8d 3f e2 41 f1 3e 55 a5 aa be a2 0b 51 bf 2a ba 2a 3e c4 39 50 3e 29 79 37 bf 36 38 | i..m.?.A.>U.....Q.*.*>.9P>)y7.68 |
0320 | 69 bf bf dc ab 3f e2 41 f1 3e 55 a5 aa be a2 0b 51 3f 2a ba 2a 3e 98 ea 76 3e 30 1b 77 3f 38 c7 | i....?.A.>U.....Q?*.*>..v>0.w?8. |
0340 | bb 3f bf dc ab 3f 93 9b 49 bf aa 41 55 be 29 79 14 3f 95 2d 21 3f a4 ea 76 3e 9f c1 a4 3f e4 4b | .?...?..I..AU.)y.?.-!?..v>...?.K |
0360 | 16 40 b9 dc ab 3f 00 00 80 3f 00 00 00 00 00 00 00 00 f0 07 7b 3f 30 c3 ba 3e 9f c1 a4 3f 3c 93 | .@...?...?..........{?0..>...?<. |
0380 | 1b 40 b8 dc ab 3f 6a 03 35 3f 6a 03 35 3f 00 00 00 00 2e 5b 7d 3f c6 c2 ba 3e 9e c1 a4 3f 3c 93 | .@...?j.5?j.5?.....[}?...>...?<. |
03a0 | 1b 40 ba 6d 8d 3f 6a 03 35 3f 6a 03 35 3f 00 00 00 00 94 5a 7d 3f 08 5b ad 3e 9e c1 a4 3f e4 4b | .@.m.?j.5?j.5?.....Z}?.[.>...?.K |
03c0 | 16 40 ba 6d 8d 3f 00 00 80 3f 00 00 00 00 00 00 00 00 58 07 7b 3f 70 5b ad 3e d6 c3 9e bf c6 0a | .@.m.?...?........X.{?p[.>...... |
03e0 | 6e bf c0 6d 8d 3f 66 f9 32 bf 07 61 03 3f fe dd fe be 03 26 ee 3d e2 73 b0 3e 71 2f 75 3f 79 23 | n..m.?f.2..a.?.....&.=.s.>q/u?y# |
0400 | 04 40 c0 6d 8d 3f 2e e9 16 bf 8c c1 45 3e 92 c9 48 bf 52 ed 32 3f 6a 02 b0 3e 71 2f 75 3f 79 23 | .@.m.?......E>..H.R.2?j..>q/u?y# |
0420 | 04 40 be dc ab 3f 2e e9 16 bf 8c c1 45 3e 92 c9 48 3f b0 e9 32 3f 50 ea 9c 3e d6 c3 9e bf c6 0a | .@...?......E>..H?..2?P..>...... |
0440 | 6e bf be dc ab 3f 66 f9 32 bf 07 61 03 3f fe dd fe 3e f3 08 ee 3d de 5b 9d 3e 2c 1b 77 3f e4 4b | n....?f.2..a.?...>...=.[.>,.w?.K |
0460 | 16 40 bd dc ab 3f d2 13 69 bf 31 49 98 3e 26 15 93 3e db e4 f2 3e 31 02 70 3f 2c 1b 77 3f 3c 93 | .@...?..i.1I.>&..>...>1.p?,.w?<. |
0480 | 1b 40 bd dc ab 3f 6a 03 35 bf 6a 03 35 3f 00 00 00 00 db e4 f2 3e 8b b8 72 3f 2d 1b 77 3f 3c 93 | .@...?j.5.j.5?.......>..r?-.w?<. |
04a0 | 1b 40 40 5b e7 3f 28 cd 13 bf 28 cd 13 3f 28 cd 13 3f 55 bb 08 3f 8b b8 72 3f 2d 1b 77 3f e4 4b | .@@[.?(...(..?(..?U..?..r?-.w?.K |
04c0 | 16 40 40 5b e7 3f 6a 03 35 bf 00 00 00 00 6a 03 35 3f 55 bb 08 3f 31 02 70 3f 9e c1 a4 3f e4 4b | .@@[.?j.5.....j.5?U..?1.p?...?.K |
04e0 | 16 40 6a bc 60 3f 00 00 80 3f 00 00 00 00 00 00 00 00 c8 06 7b 3f 80 8e a0 3e 9e c1 a4 3f 3c 93 | .@j.`?...?..........{?...>...?<. |
0500 | 1b 40 69 bc 60 3f 6a 03 35 3f 6a 03 35 3f 00 00 00 00 04 5a 7d 3f 18 8e a0 3e 9b c1 a4 3f 3c 93 | .@i.`?j.5?j.5?.....Z}?...>...?<. |
0520 | 1b 40 48 cf 36 ba 6a 03 35 3f 6a 03 35 3f 00 00 00 00 d0 57 7d 3f 60 0a 5e 3e 9b c1 a4 3f e4 4b | .@H.6.j.5?j.5?.....W}?`.^>...?.K |
0540 | 16 40 48 cf 36 ba 00 00 80 3f 00 00 00 00 00 00 00 00 94 04 7b 3f 30 0b 5e 3e 9e c1 a4 3f e4 4b | .@H.6....?..........{?0.^>...?.K |
0560 | 16 40 ba 6d 8d 3f 00 00 80 3f 00 00 00 00 00 00 00 00 58 07 7b 3f 70 5b ad 3e 9e c1 a4 3f 3c 93 | .@.m.?...?........X.{?p[.>...?<. |
0580 | 1b 40 ba 6d 8d 3f 6a 03 35 3f 6a 03 35 3f 00 00 00 00 94 5a 7d 3f 08 5b ad 3e 9e c1 a4 3f 3c 93 | .@.m.?j.5?j.5?.....Z}?.[.>...?<. |
05a0 | 1b 40 69 bc 60 3f 6a 03 35 3f 6a 03 35 3f 00 00 00 00 04 5a 7d 3f 18 8e a0 3e 9e c1 a4 3f e4 4b | .@i.`?j.5?j.5?.....Z}?...>...?.K |
05c0 | 16 40 6a bc 60 3f 00 00 80 3f 00 00 00 00 00 00 00 00 c8 06 7b 3f 80 8e a0 3e 31 1b 77 3f 31 c5 | .@j.`?...?..........{?...>1.w?1. |
05e0 | ac 3f bf dc ab 3f 6a 03 35 bf 6a 03 35 bf 00 00 00 00 db e4 f2 3e 5e 2b 4f 3f 30 1b 77 3f 38 c7 | .?...?j.5.j.5........>^+O?0.w?8. |
0600 | bb 3f bf dc ab 3f 93 9b 49 bf aa 41 55 be 29 79 14 3f db e4 f2 3e 6e 06 53 3f 32 1b 77 3f 38 c7 | .?...?..I..AU.)y.?...>n.S?2.w?8. |
0620 | bb 3f 44 5b e7 3f 6a 03 35 bf 00 00 00 00 6a 03 35 3f 55 bb 08 3f 6e 06 53 3f 32 1b 77 3f 31 c5 | .?D[.?j.5.....j.5?U..?n.S?2.w?1. |
0640 | ac 3f 44 5b e7 3f 28 cd 13 bf 28 cd 13 bf 28 cd 13 3f 55 bb 08 3f 5e 2b 4f 3f 9c c1 a4 3f 31 c5 | .?D[.?(...(...(..?U..?^+O?...?1. |
0660 | ac 3f 71 bc 60 3f 6a 03 35 3f 6a 03 35 bf 00 00 00 00 04 e0 5e 3f 7c 93 a0 3e 9c c1 a4 3f 38 c7 | .?q.`?j.5?j.5.......^?|..>...?8. |
0680 | bb 3f 70 bc 60 3f 00 00 80 3f 00 00 00 00 00 00 00 00 2e 2e 62 3f e8 92 a0 3e 9c c1 a4 3f 38 c7 | .?p.`?...?..........b?...>...?8. |
06a0 | bb 3f 48 cf 36 ba 00 00 80 3f 00 00 00 00 00 00 00 00 fe 2b 62 3f 00 14 5e 3e 9c c1 a4 3f 31 c5 | .?H.6....?.........+b?..^>...?1. |
06c0 | ac 3f 48 cf 36 ba 6a 03 35 3f 6a 03 35 bf 00 00 00 00 d4 dd 5e 3f 30 15 5e 3e 9c c1 a4 3f 31 c5 | .?H.6.j.5?j.5.......^?0.^>...?1. |
06e0 | ac 3f be 6d 8d 3f 6a 03 35 3f 6a 03 35 bf 00 00 00 00 96 e0 5e 3f 6c 60 ad 3e 9c c1 a4 3f 38 c7 | .?.m.?j.5?j.5.......^?l`.>...?8. |
0700 | bb 3f bd 6d 8d 3f 00 00 80 3f 00 00 00 00 00 00 00 00 be 2e 62 3f d6 5f ad 3e 9c c1 a4 3f 38 c7 | .?.m.?...?..........b?._.>...?8. |
0720 | bb 3f 70 bc 60 3f 00 00 80 3f 00 00 00 00 00 00 00 00 2e 2e 62 3f e8 92 a0 3e 9c c1 a4 3f 31 c5 | .?p.`?...?..........b?...>...?1. |
0740 | ac 3f 71 bc 60 3f 6a 03 35 3f 6a 03 35 bf 00 00 00 00 04 e0 5e 3f 7c 93 a0 3e 9c c1 a4 3f 31 c5 | .?q.`?j.5?j.5.......^?|..>...?1. |
0760 | ac 3f 40 5b e7 3f 28 cd 13 3f 28 cd 13 bf 28 cd 13 3f 54 e2 5e 3f dc fc d4 3e 9c c1 a4 3f 38 c7 | .?@[.?(..?(...(..?T.^?...>...?8. |
0780 | bb 3f 40 5b e7 3f 6a 03 35 3f 00 00 00 00 6a 03 35 3f 7e 30 62 3f 48 fc d4 3e 9c c1 a4 3f 38 c7 | .?@[.?j.5?....j.5?~0b?H..>...?8. |
07a0 | bb 3f bc dc ab 3f 00 00 80 3f 00 00 00 00 00 00 00 00 56 2f 62 3f 96 c7 ba 3e 9c c1 a4 3f 31 c5 | .?...?...?........V/b?...>...?1. |
07c0 | ac 3f bc dc ab 3f 6a 03 35 3f 6a 03 35 bf 00 00 00 00 2c e1 5e 3f 2c c8 ba 3e 30 1b 77 3f 38 c7 | .?...?j.5?j.5.....,.^?,..>0.w?8. |
07e0 | bb 3f c1 6d 8d 3f 93 9b 49 bf aa 41 55 be 29 79 14 bf a8 41 e3 3e 6e 06 53 3f 30 1b 77 3f 38 c7 | .?.m.?..I..AU.)y...A.>n.S?0.w?8. |
0800 | bb 3f bf dc ab 3f 93 9b 49 bf aa 41 55 be 29 79 14 3f db e4 f2 3e 6e 06 53 3f 31 1b 77 3f 31 c5 | .?...?..I..AU.)y.?...>n.S?1.w?1. |
0820 | ac 3f bf dc ab 3f 6a 03 35 bf 6a 03 35 bf 00 00 00 00 db e4 f2 3e 5e 2b 4f 3f 30 1b 77 3f 31 c5 | .?...?j.5.j.5........>^+O?0.w?1. |
0840 | ac 3f c1 6d 8d 3f 6a 03 35 bf 6a 03 35 bf 00 00 00 00 a8 41 e3 3e 5e 2b 4f 3f a0 c1 a4 3f e4 4b | .?.m.?j.5.j.5......A.>^+O?...?.K |
0860 | 16 40 3c 5b e7 3f 6a 03 35 3f 00 00 00 00 6a 03 35 3f 1a 09 7b 3f e0 f7 d4 3e a0 c1 a4 3f 3c 93 | .@<[.?j.5?....j.5?..{?...>...?<. |
0880 | 1b 40 3c 5b e7 3f 28 cd 13 3f 28 cd 13 3f 28 cd 13 3f 56 5c 7d 3f 78 f7 d4 3e 9f c1 a4 3f 3c 93 | .@<[.?(..?(..?(..?V\}?x..>...?<. |
<
TextDestGuiEngine(GUIEngine* engine);
/**
* receive fields transmitted by guiFormSpecMenu
* @param fields map containing formspec field elements currently active
*/
void gotText(const StringMap &fields);
/**
* receive text/events transmitted by guiFormSpecMenu
* @param text textual representation of event
*/
void gotText(std::wstring text);
private:
/** target to transmit data to */
GUIEngine* m_engine;
};
/** GUIEngine specific implementation of ISimpleTextureSource */
class MenuTextureSource : public ISimpleTextureSource
{
public:
/**
* default constructor
* @param driver the video driver to load textures from
*/
MenuTextureSource(video::IVideoDriver *driver);
/**
* destructor, removes all loaded textures
*/
virtual ~MenuTextureSource();
/**
* get a texture, loading it if required
* @param name path to the texture
* @param id receives the texture ID, always 0 in this implementation
*/
video::ITexture* getTexture(const std::string &name, u32 *id = NULL);
private:
/** driver to get textures from */
video::IVideoDriver *m_driver;
/** set of texture names to delete */
std::set<std::string> m_to_delete;
};
/** GUIEngine specific implementation of OnDemandSoundFetcher */
class MenuMusicFetcher: public OnDemandSoundFetcher
{
public:
/**
* get sound file paths according to sound name
* @param name sound name
* @param dst_paths receives possible paths to sound files
* @param dst_datas receives binary sound data (not used here)
*/
void fetchSounds(const std::string &name,
std::set<std::string> &dst_paths,
std::set<std::string> &dst_datas);
private:
/** set of fetched sound names */
std::set<std::string> m_fetched;
};
/** implementation of main menu based uppon formspecs */
class GUIEngine {
/** grant ModApiMainMenu access to private members */
friend class ModApiMainMenu;
public:
/**
* default constructor
* @param dev device to draw at
* @param parent parent gui element
* @param menumgr ma>...?_*
0c40 | 04 40 48 cf 36 ba 00 00 80 3f 00 00 00 00 00 00 00 00 1a 08 73 3f 08 0e 5e 3e 9d c1 a4 3f 5f 2a | .@H.6....?..........s?..^>...?_* |
0c60 | 04 40 bb 6d 8d 3f 00 00 80 3f 00 00 00 00 00 00 00 00 de 0a 73 3f da 5c ad 3e 9e c1 a4 3f e4 4b | .@.m.?...?..........s?.\.>...?.K |
0c80 | 16 40 ba 6d 8d 3f 00 00 80 3f 00 00 00 00 00 00 00 00 58 07 7b 3f 70 5b ad 3e 9e c1 a4 3f e4 4b | .@.m.?...?........X.{?p[.>...?.K |
0ca0 | 16 40 6a bc 60 3f 00 00 80 3f 00 00 00 00 00 00 00 00 c8 06 7b 3f 80 8e a0 3e 9d c1 a4 3f 5f 2a | .@j.`?...?..........{?...>...?_* |
0cc0 | 04 40 6c bc 60 3f 00 00 80 3f 00 00 00 00 00 00 00 00 4e 0a 73 3f ec 8f a0 3e 2d 1b 77 3f 5f 2a | .@l.`?...?........N.s?...>-.w?_* |
0ce0 | 04 40 c0 6d 8d 3f 6a 03 35 bf 00 00 00 00 6a 03 35 bf cd 5f 1f 3f 0b 0d 1e 3f 2c 1b 77 3f e4 4b | .@.m.?j.5.....j.5.._.?...?,.w?.K |
0d00 | 16 40 bf 6d 8d 3f d2 13 69 bf 31 49 98 3e 26 15 93 be 30 1f 2b 3f 0b 0d 1e 3f 70 2f 75 3f fe 44 | .@.m.?..i.1I.>&...0.+?...?p/u?.D |
0d20 | 16 40 bf 6d 8d 3f 2f 7b 17 bf 1e 39 0f 3f 29 91 14 bf b8 1a 2b 3f 66 bd 1d 3f 71 2f 75 3f 79 23 | .@.m.?/{...9.?).....+?f..?q/u?y# |
0d40 | 04 40 c0 6d 8d 3f 2e e9 16 bf 8c c1 45 3e 92 c9 48 bf 55 5b 1f 3f 65 bd 1d 3f 9e c1 a4 3f 5f 2a | .@.m.?......E>..H.U[.?e..?...?_* |
0d60 | 04 40 ba dc ab 3f 00 00 80 3f 00 00 00 00 00 00 00 00 76 0b 73 3f 9a c4 ba 3e 9f c1 a4 3f e4 4b | .@...?...?........v.s?...>...?.K |
0d80 | 16 40 b9 dc ab 3f 00 00 80 3f 00 00 00 00 00 00 00 00 f0 07 7b 3f 30 c3 ba 3e 9e c1 a4 3f e4 4b | .@...?...?..........{?0..>...?.K |
0da0 | 16 40 ba 6d 8d 3f 00 00 80 3f 00 00 00 00 00 00 00 00 58 07 7b 3f 70 5b ad 3e 9d c1 a4 3f 5f 2a | .@.m.?...?........X.{?p[.>...?_* |
0dc0 | 04 40 bb 6d 8d 3f 00 00 80 3f 00 00 00 00 00 00 00 00 de 0a 73 3f da 5c ad 3e 9c c1 a4 3f 31 c5 | .@.m.?...?..........s?.\.>...?1. |
0de0 | ac 3f bc dc ab 3f 6a 03 35 3f 6a 03 35 bf 00 00 00 00 2c e1 5e 3f 2c c8 ba 3e 9c c1 a4 3f 38 c7 | .?...?j.5?j.5.....,.^?,..>...?8. |
0e00 | bb 3f bc dc ab 3f 00 00 80 3f 00 00 00 00 00 00 00 00 56 2f 62 3f 96 c7 ba 3e 9c c1 a4 3f 38 c7 | .?...?...?........V/b?...>...?8. |
0e20 | bb 3f bd 6d 8d 3f 00 00 80 3f 00 00 00 00 00 00 00 00 be 2e 62 3f d6 5f ad 3e 9c c1 a4 3f 31 c5 | .?.m.?...?..........b?._.>...?1. |
/** parent gui element */
gui::IGUIElement* m_parent;
/** manager to add menus to */
IMenuManager* m_menumanager;
/** scene manager to add scene elements to */
scene::ISceneManager* m_smgr;
/** pointer to data beeing transfered back to main game handling */
MainMenuData* m_data;
/** pointer to texture source */
ISimpleTextureSource* m_texture_source;
/** pointer to soundmanager*/
ISoundManager* m_sound_manager;
/** representation of form source to be used in mainmenu formspec */
FormspecFormSource* m_formspecgui;
/** formspec input receiver */
TextDestGuiEngine* m_buttonhandler;
/** the formspec menu */
GUIFormSpecMenu* m_menu;
/** reference to kill variable managed by SIGINT handler */
bool& m_kill;
/** variable used to abort menu and return back to main game handling */
bool m_startgame;
/** scripting interface */
MainMenuScripting* m_script;
/** script basefolder */
std::string m_scriptdir;
/**
* draw background layer
* @param driver to use for drawing
*/
void drawBackground(video::IVideoDriver* driver);
/**
* draw overlay layer
* @param driver to use for drawing
*/
void drawOverlay(video::IVideoDriver* driver);
/**
* draw header layer
* @param driver to use for drawing
*/
void drawHeader(video::IVideoDriver* driver);
/**
* draw footer layer
* @param driver to use for drawing
*/
void drawFooter(video::IVideoDriver* driver);
/**
* load a texture for a specified layer
* @param layer draw layer to specify texture
* @param texturepath full path of texture to load
*/
bool setTexture(texture_layer layer, std::string texturepath,
bool tile_image, unsigned int minsize);
/**
* download a file using curl
* @param url url to download
* @param target file to store to
*/
static bool downloadFile(std::string url,std::string target);
/** array containing pointers to current specified texture layers */
image_definition m_textures[TEX_LAYER_MAX];
/** draw version string in topleft corner */
void drawVersion();
/**
* specify text to appear as top left string
* @param text to set
*/
void setTopleftText(const std::string &text);
/** pointer to gui element shown at topleft corner */
irr::gui::IGUIStaticText* m_irr_toplefttext;
/** and text that is in it */
EnrichedString m_toplefttext;
/** initialize cloud subsystem */
void cloudInit();
/** do preprocessing for cloud subsystem */
void cloudPreProcess();
/** do postprocessing for cloud subsystem */
void cloudPostProcess();
/** internam data required for drawing clouds */
struct clouddata {
/** delta time since last cloud processing */
f32 dtime;
/** absolute time of last cloud processing */
u32 lasttime;
/** pointer to cloud class */
Clouds* clouds;
/** camera required for drawing clouds */
scene::ICameraSceneNode* camera;
};
/** is drawing of clouds enabled atm */
bool m_clouds_enabled;
/** data used to draw clouds */
clouddata m_cloud;
/** start playing a sound and return handle */
s32 playSound(SimpleSoundSpec spec, bool looped);
/** stop playing a sound started with playSound() */
void stopSound(s32 handle);
};
#endif /* GUI_ENGINE_H_ */
|