Compare commits
1 Commits
diklor/mai
...
1.3.1-reup
Author | SHA1 | Date | |
---|---|---|---|
|
249fe68abd |
15
README.md
15
README.md
@@ -1,4 +1,4 @@
|
||||
<img src="/project/assets/discordgodot_banner.png" alt="Project Banner" />
|
||||
<img src="/project/assets/discordgodot_banner.png" alt="Project Banner">
|
||||
|
||||
Discord recently released its new SDK. This plugin will get a huge overhaul and new docs as soon as possible.
|
||||
<a href="https://discord.com/blog/announcing-discord-social-sdk-to-power-game-comms" target="_blank">Discord's anouncement</a>
|
||||
@@ -7,10 +7,10 @@ Discord recently released its new SDK. This plugin will get a huge overhaul and
|
||||
|
||||
### This is for the Discord Game SDK NOT the Embedded App SDK
|
||||
**Discord RPC Plugin for GDScript with an easy-to-use code pattern in Godot Engine 4.1+, with optional Editor Rich Presence! (Compatible with Linux, Windows, & MacOS)**<br><br>
|
||||
<br />
|
||||
<br>
|
||||
### [My Discord Server](https://discord.gg/3gqUrtbaur)
|
||||
# [Quick start :rocket: (click here)](https://docs.vaporvee.com/discord-rpc-godot#quick-start)
|
||||
<br />
|
||||
<br>
|
||||
|
||||
**A small donation with the sponsor button would be nice if you sell your project with this addon but is of course not mandatory!**
|
||||
|
||||
@@ -21,14 +21,15 @@ Discord recently released its new SDK. This plugin will get a huge overhaul and
|
||||
- User information
|
||||
- Relationship Manager (Get friendlist and its updates)
|
||||
- Overlay management
|
||||
- Editor Presence (optional)
|
||||
- Editor Presence (optional) <br>
|
||||
<br>
|
||||
<img width="600px" src="https://raw.githubusercontent.com/vaporvee/discord-sdk-godot/main/project/assets/GodotEditorPresenceBanner.png">
|
||||
<br />
|
||||
<br>
|
||||
|
||||
<br />
|
||||
<br>
|
||||
|
||||
### Credit
|
||||
[@Pukimaa](https://github.com/pukimaa) - Designer<br>
|
||||
<br />
|
||||
<br>
|
||||
|
||||
*This project is not endorsed or affiliated with Discord Inc. or the Godot Foundation.*
|
||||
|
@@ -26,7 +26,8 @@ func _enable_plugin() -> void:
|
||||
if FileAccess.file_exists(ProjectSettings.globalize_path("res://") + "addons/discord-rpc-gd/bin/.gdignore"):
|
||||
DirAccess.remove_absolute(ProjectSettings.globalize_path("res://") + "addons/discord-rpc-gd/bin/.gdignore")
|
||||
add_autoload_singleton("DiscordRPCLoader","res://addons/discord-rpc-gd/nodes/discord_autoload.gd")
|
||||
restart_window.connect("confirmed", save_and_restart)
|
||||
restart_window.connect("confirmed", save_no_restart)
|
||||
restart_window.connect("canceled", save_and_restart)
|
||||
get_editor_interface().popup_dialog_centered(restart_window)
|
||||
print("IGNORE RED ERROR MESSAGES BEFORE THE SECOND RESTART!")
|
||||
|
||||
@@ -40,6 +41,9 @@ func _disable_plugin() -> void:
|
||||
func save_and_restart() -> void:
|
||||
get_editor_interface().restart_editor(true)
|
||||
|
||||
func save_no_restart() -> void:
|
||||
get_editor_interface().restart_editor(false)
|
||||
|
||||
var editor_presence: Node
|
||||
func _on_editor_settings_changed() -> void:
|
||||
plugin_cfg.set_value("Discord","editor_presence",get_editor_interface().get_editor_settings().get_setting("DiscordRPC/EditorPresence/enabled"))
|
||||
|
@@ -31,8 +31,8 @@ visible = true
|
||||
transient = false
|
||||
unresizable = true
|
||||
theme = SubResource("Theme_swwco")
|
||||
ok_button_text = "Save and restart"
|
||||
cancel_button_text = "Later"
|
||||
ok_button_text = "Restart"
|
||||
cancel_button_text = "Save and restart"
|
||||
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
anchors_preset = 5
|
||||
|
Reference in New Issue
Block a user