mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-17 23:15:11 -05:00
Code cleanup
This commit is contained in:
parent
8b023188a0
commit
83d8e1caf4
@ -1,5 +1,4 @@
|
|||||||
#include "ImGuiHelpers.h"
|
#include "ImGuiHelpers.h"
|
||||||
#include "Lib/ImGui/imgui_internal.h"
|
|
||||||
|
|
||||||
// Adds a text tooltip for the previous ImGui item
|
// Adds a text tooltip for the previous ImGui item
|
||||||
void SetLastItemHoverText(const std::string& text) {
|
void SetLastItemHoverText(const std::string& text) {
|
||||||
@ -22,7 +21,6 @@ void InsertHelpHoverText(const std::string& text) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void PaddedSeparator(bool topPadding, bool bottomPadding, float x, float y) {
|
void PaddedSeparator(bool topPadding, bool bottomPadding, float x, float y) {
|
||||||
ImGuiWindow* window = ImGui::GetCurrentWindow();
|
|
||||||
if (topPadding) {
|
if (topPadding) {
|
||||||
ImGui::Dummy(ImVec2(x, y));
|
ImGui::Dummy(ImVec2(x, y));
|
||||||
}
|
}
|
||||||
@ -30,4 +28,4 @@ void PaddedSeparator(bool topPadding, bool bottomPadding, float x, float y) {
|
|||||||
if (bottomPadding) {
|
if (bottomPadding) {
|
||||||
ImGui::Dummy(ImVec2(x, y));
|
ImGui::Dummy(ImVec2(x, y));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,4 +7,4 @@ void SetLastItemHoverText(const std::string& text);
|
|||||||
|
|
||||||
void InsertHelpHoverText(const std::string& text);
|
void InsertHelpHoverText(const std::string& text);
|
||||||
|
|
||||||
void PaddedSeparator(bool topPadding = true, bool bottomPadding = true, float x = 0.0f, float y = 0.0f);
|
void PaddedSeparator(bool topPadding = true, bool bottomPadding = true, float x = 0.0f, float y = 0.0f);
|
||||||
|
Loading…
Reference in New Issue
Block a user