Small extensions engine module for GODOT.
Go to file
2020-07-31 01:27:50 +02:00
doc_classes Sync classref with the current source. 2020-04-18 02:39:39 +02:00
.gitignore Work on a new editor plugin. 2019-07-05 16:41:48 +02:00
bs_input_event_key.cpp Clang format. 2020-04-10 13:57:06 +02:00
bs_input_event_key.h Fix build for 4.0. 2020-04-09 12:36:53 +02:00
config.py Doc setup. 2019-12-25 14:10:08 +01:00
config.pyc Initial commit. 2019-04-20 14:54:22 +02:00
input_map_editor.cpp Fix compile for android. 2020-07-31 01:27:50 +02:00
input_map_editor.h Use BSInputEventKey, and bind queue_save(). 2020-07-30 23:49:48 +02:00
LICENSE Added the license to all cpp files, and updated it for 2020. 2020-01-31 19:45:21 +01:00
README.md Proper Readme.md. 2020-07-28 14:50:51 +02:00
register_types.cpp Added a new InputMapEditor. I took the ProjectSettingsEditor and started refactoring it. Not yet finished. 2020-07-30 21:32:05 +02:00
register_types.h Added the license to all cpp files, and updated it for 2020. 2020-01-31 19:45:21 +01:00
SCsub Added a new InputMapEditor. I took the ProjectSettingsEditor and started refactoring it. Not yet finished. 2020-07-30 21:32:05 +02:00
touch_button.cpp Clang format. 2020-04-10 13:57:06 +02:00
touch_button.h Added the license to all cpp files, and updated it for 2020. 2020-01-31 19:45:21 +01:00

UI Extensions

This is a c++ engine module for the Godot engine, containing smaller utilities.

It supports both godot 3.2 and 4.0 (master). Note that since 4.0 is still in very early stages I only check whether it works from time to time.

Pre-built binaries

You can grab a pre-built editor binary from the Broken Seals repo, should you want to. It contains all my modules.

TouchButton

A Control based button, that handles multitouch properly.

BSInputEventKey

An inputEventKey implementation, that matches actions exactly.

For example with the default godot implementation if you have an action that gets triggered with the key E then Ctrl-E will also trigger it.

This has the side effect, that if you bind an action to E, and an another one to Ctrl-E, then hitting Ctrl-E will trigger both.

This implementation changes that behaviour.

However, you do need to replace normal input events at startup like this:

func _ready():
	var actions : Array = InputMap.get_actions()
	
	for action in actions:
		var acts : Array = InputMap.get_action_list(action)
		
		for i in range(len(acts)):
			var a = acts[i]
			if a is InputEventKey:
				var nie : BSInputEventKey = BSInputEventKey.new()
				nie.from_input_event_key(a as InputEventKey)
				acts[i] = nie
				
				InputMap.action_erase_event(action, a)
				InputMap.action_add_event(action, nie)

I recommend putting this code into a singleton.

Building

  1. Get the source code for the engine.

If you want Godot 3.2: git clone -b 3.2 https://github.com/godotengine/godot.git godot

If you want Godot 4.0: git clone https://github.com/godotengine/godot.git godot

  1. Go into Godot's modules directory.
cd ./godot/modules/
  1. Clone this repository
git clone https://github.com/Relintai/ui_extensions ui_extensions
  1. Build Godot. Tutorial