Skip to content

Commit

Permalink
Rename overlay sidecar
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphiiko committed Aug 21, 2024
1 parent 6f48cc1 commit 642122d
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion overlay-sidecar.sln → oyasumivr-overlay-sidecar.sln
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "overlay-sidecar", "src-overlay-sidecar\overlay-sidecar.csproj", "{659368EE-58C9-4858-B35B-82B5F0CF6AFA}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "oyasumivr-overlay-sidecar", "src-overlay-sidecar\oyasumivr-overlay-sidecar.csproj", "{659368EE-58C9-4858-B35B-82B5F0CF6AFA}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
2 changes: 1 addition & 1 deletion src-core/src/overlay_sidecar/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub async fn init() {
*SIDECAR_MANAGER.lock().await = Some(SidecarManager::new(
"OVERLAY".to_string(),
"resources/dotnet-sidecars/".to_string(),
"overlay-sidecar.exe".to_string(),
"oyasumivr-overlay-sidecar.exe".to_string(),
tx,
true,
vec![],
Expand Down
2 changes: 1 addition & 1 deletion src-overlay-sidecar/Overlays/DashboardOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class DashboardOverlay : BaseWebOverlay {
public event Action? OnClose;

public DashboardOverlay() :
base("/dashboard", 1024, "co.raphii.oyasumi:DashboardOverlay_" + Guid.NewGuid(), "OyasumiVR Dashboard Overlay")
base("/dashboard", 1024, "co.raphii.oyasumivr:DashboardOverlay_" + Guid.NewGuid(), "OyasumiVR Dashboard Overlay")
{
Browser!.JavascriptObjectRepository.Register("OyasumiIPCOut_Dashboard", this);
_tooltipOverlay = new TooltipOverlay();
Expand Down
4 changes: 2 additions & 2 deletions src-overlay-sidecar/Overlays/Helpers/OverlayPointer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ public OverlayPointer()
LastUvPosition = Vector2.Zero
};
OpenVR.Overlay.CreateOverlay(
"co.raphii.oyasumi:PointerRight", "OyasumiVR Right Pointer", ref _rightPointer.OverlayHandle);
"co.raphii.oyasumivr:PointerRight", "OyasumiVR Right Pointer", ref _rightPointer.OverlayHandle);
OpenVR.Overlay.SetOverlayWidthInMeters(_rightPointer.OverlayHandle, 0.02f);
_leftPointer = new PointerData()
{
LastUvPosition = Vector2.Zero
};
OpenVR.Overlay.CreateOverlay(
"co.raphii.oyasumi:PointerLeft", "OyasumiVR Left Pointer", ref _leftPointer.OverlayHandle);
"co.raphii.oyasumivr:PointerLeft", "OyasumiVR Left Pointer", ref _leftPointer.OverlayHandle);
OpenVR.Overlay.SetOverlayWidthInMeters(_leftPointer.OverlayHandle, 0.02f);
// Set sort order for pointer overlays
OpenVR.Overlay.SetOverlaySortOrder(_leftPointer.OverlayHandle, 150);
Expand Down
6 changes: 3 additions & 3 deletions src-overlay-sidecar/Overlays/MicMuteIndicatorOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ public MicMuteIndicatorOverlay()
{
// Load image resources
_muteImage =
Utils.ConvertPngToRgba(Utils.LoadEmbeddedFile("overlay-sidecar.Resources.mic_mute.png"));
Utils.ConvertPngToRgba(Utils.LoadEmbeddedFile("oyasumi-overlay-sidecar.Resources.mic_mute.png"));
_unmuteImage =
Utils.ConvertPngToRgba(Utils.LoadEmbeddedFile("overlay-sidecar.Resources.mic_unmute.png"));
Utils.ConvertPngToRgba(Utils.LoadEmbeddedFile("oyasumi-overlay-sidecar.Resources.mic_unmute.png"));
_textureWriter = new TextureWriter(512);
// Create the overlay
OpenVR.Overlay.CreateOverlay("co.raphii.oyasumi:MicMuteIndicatorOverlay", "OyasumiVR Mic Mute Indicator Overlay",
OpenVR.Overlay.CreateOverlay("co.raphii.oyasumivr:MicMuteIndicatorOverlay", "OyasumiVR Mic Mute Indicator Overlay",
ref _overlayHandle);
Init();
}
Expand Down
2 changes: 1 addition & 1 deletion src-overlay-sidecar/Overlays/NotificationOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class NotificationOverlay : BaseWebOverlay {
private bool _updatedPositionOnce;

public NotificationOverlay() :
base("/notifications", 1024, "co.raphii.oyasumi:NotificationOverlay", "OyasumiVR Notification Overlay")
base("/notifications", 1024, "co.raphii.oyasumivr:NotificationOverlay", "OyasumiVR Notification Overlay")
{
OpenVR.Overlay.SetOverlayWidthInMeters(OverlayHandle, 0.35f);
OpenVR.Overlay.SetOverlaySortOrder(OverlayHandle, 150);
Expand Down
2 changes: 1 addition & 1 deletion src-overlay-sidecar/Overlays/SplashOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class SplashOverlay : BaseWebOverlay {
private bool _updatedPositionOnce;

public SplashOverlay() :
base("/splash", 1024, "co.raphii.oyasumi:SplashOverlay", "OyasumiVR Splash Overlay")
base("/splash", 1024, "co.raphii.oyasumivr:SplashOverlay", "OyasumiVR Splash Overlay")
{
OpenVR.Overlay.SetOverlayWidthInMeters(OverlayHandle, 0.35f);
OpenVR.Overlay.SetOverlaySortOrder(OverlayHandle, 150);
Expand Down
2 changes: 1 addition & 1 deletion src-overlay-sidecar/Overlays/TooltipOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class TooltipOverlay : BaseWebOverlay {
private string? _text = "";

public TooltipOverlay() :
base("/tooltip", 512, "co.raphii.oyasumi:TooltipOverlay_" + Guid.NewGuid(), "OyasumiVR Tooltip Overlay")
base("/tooltip", 512, "co.raphii.oyasumivr:TooltipOverlay_" + Guid.NewGuid(), "OyasumiVR Tooltip Overlay")
{
OpenVR.Overlay.SetOverlayWidthInMeters(OverlayHandle, 0.35f);
OpenVR.Overlay.SetOverlaySortOrder(OverlayHandle, 150);
Expand Down
4 changes: 2 additions & 2 deletions src-overlay-sidecar/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ public static void Main(string[] args)
{
if (args.Length < 1 || !int.TryParse(args[0], out coreGrpcPort))
{
Log.Error("Usage: overlay-sidecar.exe <core grpc port> <core process id>");
Log.Error("Usage: oyasumivr-overlay-sidecar.exe <core grpc port> <core process id>");
return;
}

if (args.Length < 2 || !int.TryParse(args[1], out mainProcessId))
{
Log.Error("Usage: overlay-sidecar.exe <core grpc port> <core process id>");
Log.Error("Usage: oyasumivr-overlay-sidecar.exe <core grpc port> <core process id>");
return;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<SelfContained>true</SelfContained>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<RootNamespace>oyasumivr-overlay-sidecar</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 642122d

Please sign in to comment.