Add input field size constant and improve sprite preview handling; adjust depth and add checks for empty graphics

This commit is contained in:
scawful
2024-11-13 08:52:55 -05:00
parent 5677b62b32
commit e0db021e7c
3 changed files with 12 additions and 3 deletions

View File

@@ -15,6 +15,8 @@ using ImGui::SameLine;
using ImGui::Selectable;
using ImGui::Text;
constexpr float kInputFieldSize = 30.f;
bool IsMouseHoveringOverEntity(const zelda3::GameEntity &entity,
ImVec2 canvas_p0, ImVec2 scrolling) {
// Get the mouse position relative to the canvas