misc_gui.c
branchcustombridgeheads
changeset 5636 2f3e7fb56cae
parent 5634 3a01b04b9a8e
child 5642 bfa6074e2833
equal deleted inserted replaced
5635:58d96074685e 5636:2f3e7fb56cae
  1179 	QUERY_WIDGET_YES
  1179 	QUERY_WIDGET_YES
  1180 };
  1180 };
  1181 
  1181 
  1182 
  1182 
  1183 typedef struct query_d {
  1183 typedef struct query_d {
       
  1184 	void (*proc)(Window*, bool); ///< callback function executed on closing of popup. Window* points to parent, bool is true if 'yes' clicked, false otherwise
  1184 	StringID message;            ///< message shown for query window
  1185 	StringID message;            ///< message shown for query window
  1185 	uint32 params[20];           ///< local copy of _decode_parameters
  1186 	uint32 params[20];           ///< local copy of _decode_parameters
  1186 	void (*proc)(Window*, bool); ///< callback function executed on closing of popup. Window* points to parent, bool is true if 'yes' clicked, false otherwise
       
  1187 	bool calledback;             ///< has callback been executed already (internal usage for WE_DESTROY event)
  1187 	bool calledback;             ///< has callback been executed already (internal usage for WE_DESTROY event)
  1188 } query_d;
  1188 } query_d;
  1189 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(query_d));
  1189 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(query_d));
  1190 
  1190 
  1191 
  1191