mirror of
https://github.com/Relintai/ui_extensions.git
synced 2024-11-12 10:25:27 +01:00
Updated register_types.h and cpp to the current godot 4 style.
This commit is contained in:
parent
80a3b96fc5
commit
a5d8af46bb
@ -22,15 +22,19 @@ SOFTWARE.
|
||||
|
||||
#include "register_types.h"
|
||||
|
||||
#include "core/object/class_db.h"
|
||||
|
||||
#include "bs_input_event_key.h"
|
||||
#include "input_map_editor.h"
|
||||
#include "touch_button.h"
|
||||
|
||||
void register_ui_extensions_types() {
|
||||
ClassDB::register_class<TouchButton>();
|
||||
ClassDB::register_class<BSInputEventKey>();
|
||||
ClassDB::register_class<InputMapEditor>();
|
||||
void initialize_ui_extensions_module(ModuleInitializationLevel p_level) {
|
||||
if (p_level == MODULE_INITIALIZATION_LEVEL_SCENE) {
|
||||
GDREGISTER_CLASS(TouchButton);
|
||||
GDREGISTER_CLASS(BSInputEventKey);
|
||||
GDREGISTER_CLASS(InputMapEditor);
|
||||
}
|
||||
}
|
||||
|
||||
void unregister_ui_extensions_types() {
|
||||
void uninitialize_ui_extensions_module(ModuleInitializationLevel p_level) {
|
||||
}
|
||||
|
@ -20,5 +20,12 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/
|
||||
|
||||
void register_ui_extensions_types();
|
||||
void unregister_ui_extensions_types();
|
||||
#ifndef UI_EXTENSIONS_REGISTER_TYPES_H
|
||||
#define UI_EXTENSIONS_REGISTER_TYPES_H
|
||||
|
||||
#include "modules/register_module_types.h"
|
||||
|
||||
void initialize_ui_extensions_module(ModuleInitializationLevel p_level);
|
||||
void uninitialize_ui_extensions_module(ModuleInitializationLevel p_level);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user