Skip to content

Commit

Permalink
Merge pull request #75 from quentincaffeino/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
quentincaffeino authored Oct 24, 2021
2 parents 7b102d5 + 7dde248 commit 522cdf2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,15 @@
"contributions": [
"code"
]
},
{
"login": "Zhwt",
"name": "Zhwt",
"avatar_url": "https://avatars.githubusercontent.com/u/4744830?v=4",
"profile": "https://github.com/Zhwt",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 8,
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Godot Console

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-19-orange.svg?style=flat-square)](#contributors-)
[![All Contributors](https://img.shields.io/badge/all_contributors-20-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

![In-game console for Godot Screenshot](assets/screenshot.png)
Expand Down Expand Up @@ -160,6 +160,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center"><a href="https://discordapp.com/invite/hSey9Bv"><img src="https://avatars.githubusercontent.com/u/44974422?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Lyaaaaaaaaaaaaaaa</b></sub></a><br /><a href="#infra-Lyaaaaaaaaaaaaaaa" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center"><a href="http://gamemap.github.io"><img src="https://avatars.githubusercontent.com/u/71942164?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Gamemap</b></sub></a><br /><a href="https://github.com/quentincaffeino/godot-console/commits?author=Gamemap" title="Documentation">📖</a></td>
<td align="center"><a href="http://Spyrex.me"><img src="https://avatars.githubusercontent.com/u/57133330?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Spyrex</b></sub></a><br /><a href="https://github.com/quentincaffeino/godot-console/commits?author=SpyrexDE" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/Zhwt"><img src="https://avatars.githubusercontent.com/u/4744830?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Zhwt</b></sub></a><br /><a href="https://github.com/quentincaffeino/godot-console/commits?author=Zhwt" title="Code">💻</a></td>
</tr>
</table>

Expand Down
6 changes: 3 additions & 3 deletions addons/quentincaffeino/console/src/Console.gd
Original file line number Diff line number Diff line change
Expand Up @@ -137,22 +137,22 @@ func remove_command(name):
func write(message):
message = str(message)
if self.Text:
self.Text.set_bbcode(self.Text.get_bbcode() + message)
self.Text.append_bbcode(message)
print(self._erase_bb_tags_regex.sub(message, '', true))

# @param String message
# @returns void
func write_line(message = ''):
message = str(message)
if self.Text:
self.Text.set_bbcode(self.Text.get_bbcode() + message + '\n')
self.Text.append_bbcode(message + '\n')
print(self._erase_bb_tags_regex.sub(message, '', true))


# @returns void
func clear():
if self.Text:
self.Text.set_bbcode('')
self.Text.clear()


# @returns Console
Expand Down

0 comments on commit 522cdf2

Please sign in to comment.