Skip to content

Commit 2fe1573

Browse files
Merge pull request #63 from quentincaffeino/develop
Version 3.2.1
2 parents 1248bb5 + 9465b4d commit 2fe1573

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

addons/quentincaffeino/console/plugin.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
name="quentincaffeino-console"
44
description="In-game console for Godot 3."
55
author="QuentinCaffeino"
6-
version="3.2.0"
6+
version="3.2.1"
77
script="plugin.gd"

addons/quentincaffeino/console/src/Command/CommandBuilder.gd

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ func add_argument(name, type = null, description = null):
7070
var error = argument_result.get_error()
7171
if error:
7272
if error.get_code() != ArgumentFactory.FALLBACK_ERROR:
73-
Console.Log.error(error.get_message())
73+
self._console.Log.error(error.get_message())
7474
return self
7575
else:
76-
Console.Log.warn(\
76+
self._console.Log.warn(\
7777
"CommandBuilder: add_argument for command `%s` for argument `%s` failed with: %s" % [self._name, name, error.get_message()])
7878

7979
var argument = argument_result.get_value()
@@ -92,4 +92,4 @@ func set_description(description = null):
9292
func register():
9393
var command = Command.new(self._name, self._target, self._arguments, self._description)
9494
if not self._command_service.set(self._name, command):
95-
self._console.error("CommandBuilder::register: Failed to create [b]`%s`[/b] command. Command already exists." % self._name)
95+
self._console.Log.error("CommandBuilder::register: Failed to create [b]`%s`[/b] command. Command already exists." % self._name)

addons/quentincaffeino/console/src/ConsoleLine.gd

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func _input(e):
6868
if commands.length == 1:
6969
self.set_text(commands.get_by_index(0).get_name())
7070
else:
71-
for command in commands.getValueIterator():
71+
for command in commands.get_value_iterator():
7272
var name = command.get_name()
7373
Console.write_line('[color=#ffff66][url=%s]%s[/url][/color]' % [ name, name ])
7474
else:

demo/project.godot

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ config/name="quentincaffeino-console"
1818
config/description="In-game console for Godot 3."
1919
run/main_scene="res://scene.tscn"
2020
config/icon="res://icon.webp"
21-
config/version="3.2.0"
21+
config/version="3.2.1"
2222

2323
[autoload]
2424

demo/reference.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "quentincaffeino-console",
33
"description": "In-game console for Godot 3.",
4-
"version": "3.2.0",
4+
"version": "3.2.1",
55
"classes": [
66
{
77
"name": "Command",

0 commit comments

Comments
 (0)