-
-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Draft: game history (+ other minor fixes)
- Loading branch information
1 parent
b4a9710
commit dfcd5b6
Showing
13 changed files
with
309 additions
and
24 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
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
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
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
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,38 @@ | ||
using CommunityToolkit.Mvvm.Input; | ||
using System.Windows.Input; | ||
|
||
namespace Bloxstrap.Models | ||
{ | ||
public class ActivityHistoryEntry | ||
{ | ||
public long UniverseId { get; set; } | ||
|
||
public long PlaceId { get; set; } | ||
|
||
public string JobId { get; set; } = String.Empty; | ||
|
||
public DateTime TimeJoined { get; set; } | ||
|
||
public DateTime TimeLeft { get; set; } | ||
|
||
public string TimeJoinedFriendly => String.Format("{0} - {1}", TimeJoined.ToString("h:mm tt"), TimeLeft.ToString("h:mm tt")); | ||
|
||
public bool DetailsLoaded = false; | ||
|
||
public string GameName { get; set; } = String.Empty; | ||
|
||
public string GameThumbnail { get; set; } = String.Empty; | ||
|
||
public ICommand RejoinServerCommand => new RelayCommand(RejoinServer); | ||
|
||
private void RejoinServer() | ||
{ | ||
string playerPath = Path.Combine(Paths.Versions, App.State.Prop.PlayerVersionGuid, "RobloxPlayerBeta.exe"); | ||
string deeplink = $"roblox://experiences/start?placeId={PlaceId}&gameInstanceId={JobId}"; | ||
|
||
// start RobloxPlayerBeta.exe directly since Roblox can reuse the existing window | ||
// ideally, i'd like to find out how roblox is doing it | ||
Process.Start(playerPath, deeplink); | ||
} | ||
} | ||
} |
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
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
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
Oops, something went wrong.