Added controls to adjust editor camera movement speed and turn speed #216
|
@ -109,7 +109,7 @@ namespace SHADE
|
|||
ImVec2 vertLineEnd = vertLineStart;
|
||||
for (auto const& subFolder : subFolders)
|
||||
{
|
||||
const float horizontalLineSize = 8.0f;
|
||||
const float horizontalLineSize = (subFolder->subFolders.empty() && subFolder->files.empty()) ? 25.0f : 8.0f;
|
||||
const ImRect childRect = RecursivelyDrawTree(subFolder);
|
||||
const float midPoint = (childRect.Min.y + childRect.Max.y) * 0.5f;
|
||||
drawList->AddLine(ImVec2(vertLineStart.x, midPoint), ImVec2(vertLineStart.x + horizontalLineSize, midPoint), treeLineColor, 1);
|
||||
|
@ -117,7 +117,7 @@ namespace SHADE
|
|||
}
|
||||
for (auto& file : files)
|
||||
{
|
||||
const float horizontalLineSize = 25.0f;
|
||||
const float horizontalLineSize = (file.assetMeta && !file.assetMeta->subAssets.empty()) ? 8.0f : 25.0f;
|
||||
const ImRect childRect = DrawFile(file);
|
||||
const float midPoint = (childRect.Min.y + childRect.Max.y) * 0.5f;
|
||||
drawList->AddLine(ImVec2(vertLineStart.x, midPoint), ImVec2(vertLineStart.x + horizontalLineSize, midPoint), treeLineColor, 1);
|
||||
|
@ -182,7 +182,10 @@ namespace SHADE
|
|||
return nodeRect;
|
||||
}
|
||||
if(file.assetMeta)
|
||||
DrawAsset(file.assetMeta, file.ext);
|
||||
{
|
||||
const ImRect childRect = DrawAsset(file.assetMeta, file.ext);
|
||||
return childRect;
|
||||
}
|
||||
}
|
||||
|
||||
ImRect SHAssetBrowser::DrawAsset(SHAsset const* const asset, FileExt const& ext /*= ""*/) noexcept
|
||||
|
|
Loading…
Reference in New Issue