Editor warning fixes
This commit is contained in:
parent
f2b27b35fc
commit
c5efefcf4f
|
@ -114,7 +114,7 @@ namespace SHADE
|
|||
|
||||
auto* entity = SHEntityManager::GetEntityByID(currentNode->GetEntityID());
|
||||
//Draw Node
|
||||
bool isNodeOpen = ImGui::TreeNodeEx((void*)eid, nodeFlags, "%u: %s", EntityHandleGenerator::GetIndex(eid), entity->name.c_str());
|
||||
bool isNodeOpen = ImGui::TreeNodeEx(reinterpret_cast<void*>(entity), nodeFlags, "%u: %s", EntityHandleGenerator::GetIndex(eid), entity->name.c_str());
|
||||
const ImRect nodeRect = ImRect(ImGui::GetItemRectMin(), ImGui::GetItemRectMax());
|
||||
|
||||
//Check For Begin Drag
|
||||
|
|
|
@ -843,7 +843,7 @@
|
|||
#define ICON_MD_FLIP_TO_FRONT "\xee\xa2\x83" // U+e883
|
||||
#define ICON_MD_FLOOD "\xee\xaf\xa6" // U+ebe6
|
||||
#define ICON_MD_FLOURESCENT "\xee\xb0\xb1" // U+ec31
|
||||
#define ICON_MD_FLOURESCENT "\xef\x80\x8d" // U+f00d
|
||||
#define ICON_MD_FLOURESCENT2 "\xef\x80\x8d" // U+f00d
|
||||
#define ICON_MD_FLUORESCENT "\xee\xb0\xb1" // U+ec31
|
||||
#define ICON_MD_FLUTTER_DASH "\xee\x80\x8b" // U+e00b
|
||||
#define ICON_MD_FMD_BAD "\xef\x80\x8e" // U+f00e
|
||||
|
|
|
@ -327,7 +327,7 @@ namespace SHADE
|
|||
ImGui::PushID(fieldLabel.c_str());
|
||||
ImGui::Text(fieldLabel.c_str()); ImGui::SameLine();
|
||||
|
||||
if (edited = ImGui::Combo("##Combo", &selected, list.data(), list.size()))
|
||||
if (edited = ImGui::Combo("##Combo", &selected, list.data(), static_cast<int>(list.size())))
|
||||
{
|
||||
SHCommandManager::PerformCommand(std::reinterpret_pointer_cast<SHBaseCommand>(std::make_shared<SHCommand<int>>(get(), selected, set)), false);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue