forked from Lachee/discord-rpc-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Lachee#141 from fenwikk/master
Added buttons to Unity
- Loading branch information
Showing
10 changed files
with
182 additions
and
67 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
Binary file not shown.
Binary file modified
BIN
-7.84 KB
(73%)
Unity Example/Assets/Discord RPC/Example/Join Request/Example_JoinRequest.unity
Binary file not shown.
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
Binary file modified
BIN
+36.5 KB
(150%)
Unity Example/Assets/Discord RPC/Example/Rich Presence/Example_RichPresence.unity
Binary file not shown.
Binary file not shown.
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
26 changes: 26 additions & 0 deletions
26
Unity Example/Assets/Discord RPC/Scripts/Presence/DiscordButton.cs
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,26 @@ | ||
using UnityEngine; | ||
|
||
[System.Serializable] | ||
public class DiscordButton | ||
{ | ||
/// <summary> | ||
/// The text on the button to be displayed | ||
/// </summary> | ||
[Tooltip("The label on the button to be displayed")] | ||
public string label; | ||
|
||
/// <summary> | ||
/// The tooltip of the image. | ||
/// </summary>] | ||
[Tooltip("The URL on the button to be displayed")] | ||
public string url; | ||
|
||
/// <summary> | ||
/// Is the asset object empty? | ||
/// </summary> | ||
/// <returns></returns> | ||
public bool IsEmpty() | ||
{ | ||
return string.IsNullOrEmpty(label) && string.IsNullOrEmpty(url); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Unity Example/Assets/Discord RPC/Scripts/Presence/DiscordButton.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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