mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-19 16:57:20 +07:00
Fixed issues caused by changes to Scene2D API
This commit is contained in:
parent
ef0b641fae
commit
9ca8cab493
@ -479,7 +479,7 @@ public class MPQViewer {
|
|||||||
|
|
||||||
for (CollapsibleVisTable o : optionsSubpanels) o.setCollapsed(true);
|
for (CollapsibleVisTable o : optionsSubpanels) o.setCollapsed(true);
|
||||||
|
|
||||||
MPQFileHandle handle = (MPQFileHandle) fileTree.getSelection().first().getObject();
|
MPQFileHandle handle = (MPQFileHandle) fileTree.getSelectedNode().getValue();
|
||||||
addressBar.setText(handle.fileName);
|
addressBar.setText(handle.fileName);
|
||||||
MPQViewer.Client.this.open(selection, node, handle);
|
MPQViewer.Client.this.open(selection, node, handle);
|
||||||
|
|
||||||
@ -1030,7 +1030,7 @@ public class MPQViewer {
|
|||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
Node root = new Node(new VisLabel("root"));
|
Node<Node, Object, Actor> root = new BaseNode(new VisLabel("root"));
|
||||||
final boolean checkExisting = options_checkExisting.isChecked();
|
final boolean checkExisting = options_checkExisting.isChecked();
|
||||||
|
|
||||||
String fileName;
|
String fileName;
|
||||||
@ -1044,8 +1044,8 @@ public class MPQViewer {
|
|||||||
|
|
||||||
final MPQFileHandle handle = (MPQFileHandle) Riiablo.mpqs.resolve(fileName);
|
final MPQFileHandle handle = (MPQFileHandle) Riiablo.mpqs.resolve(fileName);
|
||||||
VisLabel label = new VisLabel(FilenameUtils.getName(fileName));
|
VisLabel label = new VisLabel(FilenameUtils.getName(fileName));
|
||||||
final Node node = new Node(label);
|
final Node node = new BaseNode(label);
|
||||||
node.setObject(handle);
|
node.setValue(handle);
|
||||||
label.addListener(new ClickListener(Input.Buttons.RIGHT) {
|
label.addListener(new ClickListener(Input.Buttons.RIGHT) {
|
||||||
@Override
|
@Override
|
||||||
public void clicked(InputEvent event, float x, float y) {
|
public void clicked(InputEvent event, float x, float y) {
|
||||||
@ -1089,7 +1089,7 @@ public class MPQViewer {
|
|||||||
String partPath = builder.toString();
|
String partPath = builder.toString();
|
||||||
Node node = nodes.get(partPath);
|
Node node = nodes.get(partPath);
|
||||||
if (node == null) {
|
if (node == null) {
|
||||||
node = new Node(new VisLabel(part));
|
node = new BaseNode(new VisLabel(part));
|
||||||
nodes.put(partPath, node);
|
nodes.put(partPath, node);
|
||||||
parent.add(node);
|
parent.add(node);
|
||||||
}
|
}
|
||||||
@ -1121,7 +1121,7 @@ public class MPQViewer {
|
|||||||
});
|
});
|
||||||
|
|
||||||
root.updateChildren();
|
root.updateChildren();
|
||||||
for (Node child : root.getChildren()) {
|
for (Node child : (Array<Node>) root.getChildren()) {
|
||||||
sort(child);
|
sort(child);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1887,4 +1887,10 @@ public class MPQViewer {
|
|||||||
super.drawDebug(shapes);
|
super.drawDebug(shapes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static class BaseNode extends Node<Node, Object, Actor> {
|
||||||
|
BaseNode(Actor actor) {
|
||||||
|
super(actor);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user