2424* Development Team grants this exception to all derivative works.
2525*/
2626
27+ // -----------------------------------------------------------------------------
28+ // Includes.
29+ // -----------------------------------------------------------------------------
2730#include " modules/export_main.h"
2831#include " usermessage.h"
2932
30- // ---------------------------------------------------------------------------------
33+ // -----------------------------------------------------------------------------
3134// Namespaces to use
32- // ---------------------------------------------------------------------------------
35+ // -----------------------------------------------------------------------------
3336using namespace boost ::python;
3437
35- // ---------------------------------------------------------------------------------
38+ // -----------------------------------------------------------------------------
3639// Exposer functions.
37- // ---------------------------------------------------------------------------------
40+ // -----------------------------------------------------------------------------
3841void export_usermessage_interface ();
42+ void export_message_functions ();
43+ void export_dialog_enum ();
3944
40- // ---------------------------------------------------------------------------------
45+ // -----------------------------------------------------------------------------
4146// Method overloads
42- // ---------------------------------------------------------------------------------
47+ // -----------------------------------------------------------------------------
4348DECLARE_CLASS_METHOD_OVERLOAD (CUserMessage, set_char, 2 , 3 );
4449DECLARE_CLASS_METHOD_OVERLOAD (CUserMessage, set_byte, 2 , 3 );
4550DECLARE_CLASS_METHOD_OVERLOAD (CUserMessage, set_short, 2 , 3 );
@@ -49,12 +54,14 @@ DECLARE_CLASS_METHOD_OVERLOAD(CUserMessage, set_bool, 2, 3);
4954DECLARE_CLASS_METHOD_OVERLOAD (CUserMessage, set_string, 2 , 3 );
5055DECLARE_CLASS_METHOD_OVERLOAD (CUserMessage, set_buffer, 3 , 4 );
5156
52- // ---------------------------------------------------------------------------------
57+ // -----------------------------------------------------------------------------
5358// Exposes the engine module.
54- // ---------------------------------------------------------------------------------
59+ // -----------------------------------------------------------------------------
5560DECLARE_SP_MODULE (usermessage_c)
5661{
5762 export_usermessage_interface ();
63+ export_message_functions ();
64+ export_dialog_enum ();
5865}
5966
6067void export_usermessage_interface ()
@@ -139,4 +146,23 @@ void export_usermessage_interface()
139146 )
140147
141148 BOOST_END_CLASS ()
142- }
149+ }
150+
151+ void export_message_functions ()
152+ {
153+ def (" create_message" ,
154+ CreateMessage,
155+ " Creates an onscreen menu with various option buttons"
156+ );
157+ }
158+
159+ void export_dialog_enum ()
160+ {
161+ enum_<DIALOG_TYPE>(" DialogType" )
162+ ENUM_VALUE (" MSG" , DIALOG_MSG)
163+ ENUM_VALUE (" MENU" , DIALOG_MENU)
164+ ENUM_VALUE (" TEXT" , DIALOG_TEXT)
165+ ENUM_VALUE (" ENTRY" , DIALOG_ENTRY)
166+ ENUM_VALUE (" ASKCONNECT" , DIALOG_ASKCONNECT)
167+ BOOST_END_CLASS ()
168+ }
0 commit comments