1
0
mirror of synced 2024-11-24 15:50:16 +01:00

nodes: Require shift to be held to enlarge visualizers

This commit is contained in:
WerWolv 2022-10-13 15:14:16 +02:00
parent 1ab949b7ef
commit f9e960070d

View File

@ -808,7 +808,7 @@ namespace hex::plugin::builtin {
void drawNode() override {
drawDigram(scaled({ 200, 200 }));
if (ImGui::IsItemHovered()) {
if (ImGui::IsItemHovered() && ImGui::IsKeyDown(ImGuiKey_LeftShift)) {
ImGui::BeginTooltip();
drawDigram(scaled({ 600, 600 }));
ImGui::EndTooltip();
@ -899,7 +899,7 @@ namespace hex::plugin::builtin {
void drawNode() override {
drawLayeredDistribution(scaled({ 200, 200 }));
if (ImGui::IsItemHovered()) {
if (ImGui::IsItemHovered() && ImGui::IsKeyDown(ImGuiKey_LeftShift)) {
ImGui::BeginTooltip();
drawLayeredDistribution(scaled({ 600, 600 }));
ImGui::EndTooltip();
@ -990,7 +990,7 @@ namespace hex::plugin::builtin {
void drawNode() override {
ImGui::Image(this->m_texture, scaled(ImVec2(this->m_texture.getAspectRatio() * 200, 200)));
if (ImGui::IsItemHovered()) {
if (ImGui::IsItemHovered() && ImGui::IsKeyDown(ImGuiKey_LeftShift)) {
ImGui::BeginTooltip();
ImGui::Image(this->m_texture, scaled(ImVec2(this->m_texture.getAspectRatio() * 600, 600)));
ImGui::EndTooltip();
@ -1045,7 +1045,7 @@ namespace hex::plugin::builtin {
void drawNode() override {
drawPlot(scaled({ 400, 300 }));
if (ImGui::IsItemHovered()) {
if (ImGui::IsItemHovered() && ImGui::IsKeyDown(ImGuiKey_LeftShift)) {
ImGui::BeginTooltip();
drawPlot(scaled({ 700, 550 }));
ImGui::EndTooltip();