Skip to content

Commit

Permalink
Update CONTRIBUTORS.md, Update signal emission to modern Godot
Browse files Browse the repository at this point in the history
  • Loading branch information
2shady4u committed Dec 14, 2024
1 parent 7b0b7cd commit be1184c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ In chronological order based on the first contribution.
- [Geoffrey Casper (Geo25rey)](https://github.com/Geo25rey)
- [Chris Ridenour (cridenour)](https://github.com/cridenour)
- [filkata](https://github.com/filkata)
- [abcjjy](https://github.com/abcjjy)
- [abcjjy](https://github.com/abcjjy)
- [Markus Sauermann (Sauermann)](https://github.com/Sauermann)
8 changes: 4 additions & 4 deletions demo/database.gd
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func _ready():

func cprint(text : String) -> void:
print(text)
emit_signal("output_received", text)
output_received.emit(text)

func copy_data_to_user() -> void:
var data_path := "res://data"
Expand Down Expand Up @@ -295,7 +295,7 @@ func example_of_blob_io():
table_dict["data"] = {"data_type":"blob", "not_null": true}

var texture := preload("res://icon.png")
emit_signal("texture_received", texture)
texture_received.emit(texture)
var tex_data : PackedByteArray = texture.get_image().save_png_to_buffer()

db = SQLite.new()
Expand All @@ -318,7 +318,7 @@ func example_of_blob_io():
var image := Image.new()
var _error : int = image.load_png_from_buffer(selected_data)
var loaded_texture := ImageTexture.create_from_image(image)
emit_signal("texture_received", loaded_texture)
texture_received.emit(loaded_texture)

# Export the table to a json-file and automatically encode BLOB data to base64.
db.export_to_json(json_name + "_base64_new")
Expand All @@ -334,7 +334,7 @@ func example_of_blob_io():
var image := Image.new()
var _error : int = image.load_png_from_buffer(selected_data)
var loaded_texture := ImageTexture.create_from_image(image)
emit_signal("texture_received", loaded_texture)
texture_received.emit(loaded_texture)

# Close the current database
db.close_db()
Expand Down

0 comments on commit be1184c

Please sign in to comment.