census update

This commit is contained in:
rootdarkarchon
2023-11-17 02:06:17 +01:00
parent 1522d8d7e7
commit e9775a3677
7 changed files with 72 additions and 5 deletions

View File

@@ -806,7 +806,7 @@ public class SettingsUi : WindowMediatorSubscriberBase
if (ApiController.ServerAlive)
{
UiSharedService.FontText("Service Actions", _uiShared.UidFont);
ImGuiHelpers.ScaledDummy(new Vector2(5, 5));
if (ImGui.Button("Delete all my files"))
{
_deleteFilesPopupModalShown = true;
@@ -884,6 +884,21 @@ public class SettingsUi : WindowMediatorSubscriberBase
}
UiSharedService.FontText("Service & Character Settings", _uiShared.UidFont);
ImGuiHelpers.ScaledDummy(new Vector2(5, 5));
var sendCensus = _serverConfigurationManager.SendCensusData;
if (ImGui.Checkbox("Send Statistical Census Data", ref sendCensus))
{
_serverConfigurationManager.SendCensusData = sendCensus;
}
UiSharedService.DrawHelpText("This will allow sending census data to the currently connected service." + UiSharedService.TooltipSeparator
+ "Census data contains:" + Environment.NewLine
+ "- Current World" + Environment.NewLine
+ "- Current Gender" + Environment.NewLine
+ "- Current Race" + Environment.NewLine
+ "- Current Clan (this is not your Free Company, this is e.g. Keeper or Seeker for Miqo'te)" + UiSharedService.TooltipSeparator
+ "The census data is only saved temporarily and will be removed from the server on disconnect. It is stored temporarily associated with your UID while you are connected." + UiSharedService.TooltipSeparator
+ "If you do not wish to participate in the statistical census, untick this box and reconnect to the server.");
ImGuiHelpers.ScaledDummy(new Vector2(10, 10));
var idx = _uiShared.DrawServiceSelection();