IlliumIv / Random-Features

PoeHUD Plugin: Random Features
6 stars 4 forks source link

Adding Runic Markers #8

Open yeena1 opened 3 years ago

yeena1 commented 3 years ago

Hey, I was wondering if you could add runic markers to this?

I tried myself by adding the following:

Plugins\RandomFeatures.cs:

if (ImGui.TreeNode("RunicMonsters"))
{
Settings.RunicMonsters.Value =
ImGuiExtension.Checkbox(Settings.RunicMonsters.Value ? "Show" : "Hidden", Settings.RunicMonsters);
ImGui.PushID(idPop);
Settings.RunicMonsters.Value = ImGuiExtension.ColorPicker("Text", Settings.RunicMonsters);
ImGui.PopID();
idPop++;
ImGui.TreePop();
}

if (Settings.RunicMonsters)
{
DrawTextLabelEquals(Settings.RunicMonstersColor.Value, "Runic" + Environment.NewLine + "Marker",
"Metadata/Terrain/Doodads/Leagues/Expedition/elitemarker_02.ao",
"Metadata/Terrain/Doodads/Leagues/Expedition/elitemarker.ao",
"Metadata/Terrain/Doodads/Leagues/Expedition/elitemarker_03.ao",
"Metadata/Terrain/Doodads/Leagues/Expedition/elitemarker_set.ao");
}

\RandomFeaturesSettings.cs:

RunicMonsters = new ToggleNode(true);
RunicMonsters = new ColorBGRA(255, 255, 255, 255);

public ToggleNode RunicMonsters { get; set; }
public ColorNode RunicMonsters { get; set; }

However, HUD won't load the plugin with these changes. I never in my life coded, I just tried to copy and adapt to what is already there, but it seems I am not able to do so :(

Would be nice if you could add it :)

Thanks!

P.S: I mean the big runic monster markers :D

image

JustLKS commented 3 years ago

Hello there. I am not playing patch 3.15, and so I am not doing any stuff in HUD atm. Hopefully 3.16 will be better and I may back to poe, for now I am done lol. I don't even know what is a "Runic Monster", I simply didn't played this league at all lol. Sorry for late answer, hopefully u get it whatever u are doing ^^

Cheers.

Em sáb., 11 de set. de 2021 às 10:21, yeena1 @.***> escreveu:

Hey, I was wondering if you could add runic markers to this?

I tried myself by adding the following:

Plugins\RandomFeatures.cs:

if (ImGui.TreeNode("RunicMonsters")) { Settings.RunicMonsters.Value = ImGuiExtension.Checkbox(Settings.RunicMonsters.Value ? "Show" : "Hidden", Settings.RunicMonsters); ImGui.PushID(idPop); Settings.RunicMonsters.Value = ImGuiExtension.ColorPicker("Text", Settings.RunicMonsters); ImGui.PopID(); idPop++; ImGui.TreePop(); }

if (Settings.RunicMonsters) { DrawTextLabelEquals(Settings.RunicMonstersColor.Value, "Runic" + Environment.NewLine + "Marker", "Metadata/Terrain/Doodads/Leagues/Expedition/elitemarker_02.ao", "Metadata/Terrain/Doodads/Leagues/Expedition/elitemarker.ao", "Metadata/Terrain/Doodads/Leagues/Expedition/elitemarker_03.ao", "Metadata/Terrain/Doodads/Leagues/Expedition/elitemarker_set.ao"); }

\RandomFeaturesSettings.cs:

RunicMonsters = new ToggleNode(true); RunicMonsters = new ColorBGRA(255, 255, 255, 255);

public ToggleNode RunicMonsters { get; set; } public ColorNode RunicMonsters { get; set; }

However, HUD won't load the plugin with these changes. I never in my life coded, I just tried to copy and adapt to what is already there, but it seems I am not able to do so :(

Would be nice if you could add it :)

Thanks!

P.S: I mean the big runic monster markers :D

[image: image] https://user-images.githubusercontent.com/72213454/132949243-af6bad35-59b1-4634-8175-69c3ead76ccc.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/IlliumIv/Random-Features/issues/8, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEGKOXILCYOF2LO4BTYUF43UBNJWDANCNFSM5D26XT4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Lucas Altero Zabeu