Use columns for viewing combo items
This commit is contained in:
@@ -50,7 +50,7 @@ class TabLayers {
|
||||
if (atlases != null) for (a in atlases) ar.push(a);
|
||||
var filterHandle = Id.handle();
|
||||
filterHandle.position = Context.layerFilter;
|
||||
Context.layerFilter = ui.combo(filterHandle, ar, tr("Filter"), false, Left, 16);
|
||||
Context.layerFilter = ui.combo(filterHandle, ar, tr("Filter"), false, Left);
|
||||
if (filterHandle.changed) {
|
||||
for (p in Project.paintObjects) {
|
||||
p.visible = Context.layerFilter == 0 || p.name == ar[Context.layerFilter] || Project.isAtlasObject(p);
|
||||
@@ -630,7 +630,7 @@ class TabLayers {
|
||||
if (atlases != null) for (a in atlases) ar.push(a);
|
||||
var objectHandle = Id.handle().nest(l.id);
|
||||
objectHandle.position = l.objectMask;
|
||||
l.objectMask = ui.combo(objectHandle, ar, tr("Object"), false, Left, 16);
|
||||
l.objectMask = ui.combo(objectHandle, ar, tr("Object"), false, Left);
|
||||
if (objectHandle.changed) {
|
||||
Context.setLayer(l);
|
||||
MakeMaterial.parseMeshMaterial();
|
||||
|
||||
@@ -516,6 +516,9 @@ class UINodes {
|
||||
|
||||
// Nodes
|
||||
ui.inputEnabled = !drawMenu;
|
||||
ui.windowBorderRight = Config.raw.layout[LayoutSidebarW];
|
||||
ui.windowBorderTop = UIHeader.inst.headerh * 2;
|
||||
ui.windowBorderBottom = Config.raw.layout[LayoutStatusH];
|
||||
nodes.nodeCanvas(ui, c);
|
||||
ui.inputEnabled = true;
|
||||
|
||||
@@ -718,6 +721,7 @@ class UINodes {
|
||||
nodes.nodesSelected = [node];
|
||||
nodes.nodesDrag = true;
|
||||
}
|
||||
// Next column
|
||||
if (ui._y - wy + ui.ELEMENT_H() / 2 > wh) { ui._x += menuw; ui._y = py; }
|
||||
}
|
||||
if (isGroupCategory) {
|
||||
|
||||
Reference in New Issue
Block a user