Skip to content

Commit

Permalink
TargetFurniture 1.0.1.3 [PUSH]
Browse files Browse the repository at this point in the history
Added new icon (Ty Vec7rex)
Minor UI adjustment and added Kofi support button
  • Loading branch information
InitialDet committed Jun 14, 2022
1 parent 5a65d24 commit 096aeef
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
25 changes: 18 additions & 7 deletions TargetFurniture/PluginUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using Dalamud.Interface.Colors;
using System.Numerics;
using MoveFurniture;
using System.Diagnostics;

namespace TargetFurniture {
public class PluginUI : Window, IDisposable {
Expand All @@ -26,22 +27,32 @@ public override void Draw() {
if (!IsOpen)
return;

ShowKofi();

Utils.Draw.Checkbox("Move Furniture to Cursor", ref Service.Configuration.MoveToCursor, "- If Enabled, the item will follow the point of your cursor.\n- If Disabled, the item will stay in place and move relative to your cursor position." +
"\n\nIts recommended to have this enabled\n\nDoesn't affect the behavior of alternative mode.");


ImGui.Spacing();

ImGui.Text("(Experimental) ");
Utils.Draw.Checkbox("Enable Alternative Targeting Mode", ref Service.Configuration.UseAltTarget, "(Only for Layout Mode - Move)\nIf the default targeting mode doesn't work for you, this option might work.\n\nThis is a experimental feature and might also not work for everybody\n\nPS: After moving an item, you may see an Error Message at the top, you can ignore it.");

ImGui.Indent(28.0f * ImGuiHelpers.GlobalScale);

ImGui.Indent(-25.0f * ImGuiHelpers.GlobalScale);
ImGui.End();
}

ImGui.PushStyleVar(ImGuiStyleVar.ItemSpacing, ImGuiHelpers.ScaledVector2(10, 8));
public static void ShowKofi()
{
string buttonText = "Support on Ko-fi";
ImGui.PushStyleColor(ImGuiCol.Button, 0xFF000000 | 0x005E5BFF);
ImGui.PushStyleColor(ImGuiCol.ButtonActive, 0xDD000000 | 0x005E5BFF);
ImGui.PushStyleColor(ImGuiCol.ButtonHovered, 0xAA000000 | 0x005E5BFF);

ImGui.Spacing();
if (ImGui.Button(buttonText))
{
Process.Start(new ProcessStartInfo { FileName = "https://ko-fi.com/initialdet", UseShellExecute = true });
}

ImGui.End();
ImGui.PopStyleColor(3);
}

public override void OnClose() {
Expand Down
2 changes: 1 addition & 1 deletion TargetFurniture/TargetFurniture.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Authors>Det</Authors>
<Version>1.0.1.2</Version>
<Version>1.0.1.3</Version>
<Description>Adds a option that lets you select a housing item from the housing menu.</Description>
<PackageProjectUrl>https://github.com/InitialDet/TargetForniture</PackageProjectUrl>
<Configurations>Release</Configurations>
Expand Down
7 changes: 5 additions & 2 deletions TargetFurniture/TargetFurniture.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@
"https://raw.githubusercontent.com/InitialDet/TargetFurniture/main/TargetFurniture/images/image1.png"
],
"RepoUrl": "https://github.com/InitialDet/TargetFurniture",
"CategoryTags": [
"Tags": [
"Casual",
"Housing"
],
"CategoryTags": [
"utility"
],
"InternalName": "TargetFurniture",
"ApplicableVersion": "any",
"DalamudApiLevel": 6,
"LoadPriority": 0,
"Changelog": "Added a new option that makes the furniture follow the point of your cursor"
"Changelog": "Added new icon (Ty Vec7rex)"
}
Binary file modified TargetFurniture/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 096aeef

Please sign in to comment.