-
-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix character event update mode behaviour (#1686)
* Fix character event update mode behaviour The functionality works great now, it's just UI that's pretty messy now. Hope I can get some help with that. * Update icons to be somewhat better * Fix some charatcer event default stuff
- Loading branch information
1 parent
d76cf79
commit d910b35
Showing
15 changed files
with
323 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@tool | ||
extends Button | ||
|
||
## Event block field for boolean values. | ||
|
||
signal value_changed | ||
var property_name : String | ||
|
||
|
||
func _ready() -> void: | ||
toggled.connect(_on_value_changed) | ||
|
||
|
||
func set_value(value:bool) -> void: | ||
button_pressed = value | ||
|
||
|
||
func _on_value_changed(value:bool) -> void: | ||
value_changed.emit(property_name, value) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[gd_scene load_steps=2 format=3 uid="uid://iypxcctv080u"] | ||
|
||
[ext_resource type="Script" path="res://addons/dialogic/Editor/Events/Fields/BoolButton.gd" id="1_5iob7"] | ||
|
||
[node name="Bool" type="Button"] | ||
toggle_mode = true | ||
flat = true | ||
script = ExtResource("1_5iob7") |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.