DeerEngine/roe/editor/mesh_explorer/mesh_searcher.as

28 lines
638 B
ActionScript

class MeshExplorer : DockPanel {
string currentPath = "";
void onRender() {
textColor(0.5, 0.5, 0.5, currentPath);
setupAutomaticColumns(180);
int dirCount = getMeshDirCount(currentPath);
for (int i = 0; i < dirCount; i++) {
drawIcon("folder", 64);
text(getMeshDirName(currentPath, i));
nextColumn();
}
int meshCount = getMeshCount(currentPath);
for (int i = 0; i < meshCount; i++) {
drawIcon("file", 64);
text(getMeshName(currentPath, i));
nextColumn();
}
endColumns();
}
}