From 6782955a85b97d38e31bbf8bcd353063c668739a Mon Sep 17 00:00:00 2001 From: Edgar Luque Date: Sat, 10 Sep 2022 16:29:45 +0200 Subject: [PATCH] use new api url --- PartyPlanner/PartyPlanner.csproj | 2 +- PartyPlanner/PartyVerseApi.cs | 5 ++--- PartyPlanner/PluginUI.cs | 8 ++++---- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/PartyPlanner/PartyPlanner.csproj b/PartyPlanner/PartyPlanner.csproj index 4874ce1..feb14d9 100644 --- a/PartyPlanner/PartyPlanner.csproj +++ b/PartyPlanner/PartyPlanner.csproj @@ -3,7 +3,7 @@ Zhyra - 1.3.2 + 1.3.3 PartyVerse.app, directly on your client! MIT https://github.com/edg-l/PartyPlanner diff --git a/PartyPlanner/PartyVerseApi.cs b/PartyPlanner/PartyVerseApi.cs index a5d9b59..a1cb571 100644 --- a/PartyPlanner/PartyVerseApi.cs +++ b/PartyPlanner/PartyVerseApi.cs @@ -28,15 +28,14 @@ public PartyVerseApi() try { - Assembly assembly = Assembly.GetExecutingAssembly(); - System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location); + System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(Plugin.PluginInterface.AssemblyLocation.FullName); version = fvi.FileVersion!; } catch(Exception e) { PluginLog.Error(e, "error loading assembly"); } - graphQL = new GraphQLHttpClient("https://partyverse.app/api/", new NewtonsoftJsonSerializer()); + graphQL = new GraphQLHttpClient("https://api.partyverse.app/", new NewtonsoftJsonSerializer()); graphQL.HttpClient.DefaultRequestHeaders.UserAgent.ParseAdd("Dalamud-PartyPlanner/" + version); var serverIdsStr = System.Text.Encoding.Default.GetString(Properties.Resources.servers_ids); diff --git a/PartyPlanner/PluginUI.cs b/PartyPlanner/PluginUI.cs index acc8305..4fe5945 100644 --- a/PartyPlanner/PluginUI.cs +++ b/PartyPlanner/PluginUI.cs @@ -44,11 +44,11 @@ public PluginUI(Configuration configuration) try { - Assembly assembly = Assembly.GetExecutingAssembly(); - System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location); + System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(Plugin.PluginInterface.AssemblyLocation.FullName); string version = fvi.FileVersion!; windowTitle = string.Format("PartyPlanner v{0}", version); - } catch(Exception e) + } + catch (Exception e) { PluginLog.Error(e, "error loading assembly"); } @@ -178,7 +178,7 @@ public void DrawEventRow(Models.EventType ev, Models.ServerType serverType) } ImGui.PopStyleColor(); - if(ImGui.IsItemHovered()) + if (ImGui.IsItemHovered()) { ImGui.BeginTooltip(); ImGui.TextColored(greenColor, ev.Title);