Location Sharing
This commit is contained in:
@@ -43,6 +43,7 @@ public class PermissionWindowUI : WindowMediatorSubscriberBase
|
||||
var disableSounds = _ownPermissions.IsDisableSounds();
|
||||
var disableAnimations = _ownPermissions.IsDisableAnimations();
|
||||
var disableVfx = _ownPermissions.IsDisableVFX();
|
||||
var shareLocation = _ownPermissions.IsSharingLocation();
|
||||
var style = ImGui.GetStyle();
|
||||
var indentSize = ImGui.GetFrameHeight() + style.ItemSpacing.X;
|
||||
|
||||
@@ -70,6 +71,7 @@ public class PermissionWindowUI : WindowMediatorSubscriberBase
|
||||
var otherDisableSounds = otherPerms.IsDisableSounds();
|
||||
var otherDisableAnimations = otherPerms.IsDisableAnimations();
|
||||
var otherDisableVFX = otherPerms.IsDisableVFX();
|
||||
var otherShareLocation = otherPerms.IsSharingLocation();
|
||||
|
||||
using (ImRaii.PushIndent(indentSize, false))
|
||||
{
|
||||
@@ -124,6 +126,24 @@ public class PermissionWindowUI : WindowMediatorSubscriberBase
|
||||
ImGui.AlignTextToFramePadding();
|
||||
ImGui.Text(Pair.UserData.AliasOrUID + " has " + (!otherDisableVFX ? "not " : string.Empty) + "disabled VFX sync with you");
|
||||
}
|
||||
|
||||
if (ImGui.Checkbox("Enable location Sharing", ref shareLocation))
|
||||
{
|
||||
_ownPermissions.SetShareLocation(shareLocation);
|
||||
}
|
||||
_uiSharedService.DrawHelpText("Enable location sharing will only effect your side." + UiSharedService.TooltipSeparator
|
||||
+ "Note: this is NOT bidirectional, you can choose to share even others dont share with you.");
|
||||
using (ImRaii.PushIndent(indentSize, false))
|
||||
{
|
||||
_uiSharedService.BooleanToColoredIcon(shareLocation, false);
|
||||
ImGui.SameLine();
|
||||
ImGui.AlignTextToFramePadding();
|
||||
ImGui.Text((!shareLocation ? "Not" : string.Empty) + "sharing location with " + Pair.UserData.AliasOrUID + " .");
|
||||
|
||||
#if DEBUG
|
||||
_uiSharedService.BooleanToColoredIcon(otherShareLocation, true);
|
||||
#endif
|
||||
}
|
||||
|
||||
ImGuiHelpers.ScaledDummy(0.5f);
|
||||
ImGui.Separator();
|
||||
|
||||
Reference in New Issue
Block a user