summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/ObjPropertyEditor.java
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-12 22:33:32 -0800
committerFuwn <[email protected]>2026-02-12 22:33:32 -0800
commitc7a9d4a6bd53ed7d61731770f2f10e8b9fd435f9 (patch)
treedf9f48bf128a6c0186a8e91857d6ff30fe0e9f18 /NET/worlds/scape/ObjPropertyEditor.java
downloadworldsplayer-c7a9d4a6bd53ed7d61731770f2f10e8b9fd435f9.tar.xz
worldsplayer-c7a9d4a6bd53ed7d61731770f2f10e8b9fd435f9.zip
Initial commit
Diffstat (limited to 'NET/worlds/scape/ObjPropertyEditor.java')
-rw-r--r--NET/worlds/scape/ObjPropertyEditor.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/NET/worlds/scape/ObjPropertyEditor.java b/NET/worlds/scape/ObjPropertyEditor.java
new file mode 100644
index 0000000..73f0eb4
--- /dev/null
+++ b/NET/worlds/scape/ObjPropertyEditor.java
@@ -0,0 +1,37 @@
+package NET.worlds.scape;
+
+import NET.worlds.console.PolledDialog;
+
+public class ObjPropertyEditor extends PropEditor {
+ SuperRoot root;
+ Class clas;
+
+ private ObjPropertyEditor(Property property, SuperRoot r, Class clas) {
+ super(property);
+ this.root = r;
+ this.clas = clas;
+ }
+
+ @Override
+ public PolledDialog edit(EditTile parent, String title) {
+ return new ObjEditorDialog(parent, title, this.property, this.root, this.clas);
+ }
+
+ public static Property make(Property property, SuperRoot r, Class clas) {
+ return property.setEditor(new ObjPropertyEditor(property, r, clas));
+ }
+
+ public static Property make(Property property, SuperRoot r, String clas) {
+ Class c = null;
+
+ try {
+ c = Class.forName(clas);
+ } catch (ClassNotFoundException var5) {
+ System.out.println("Couldn't find " + clas);
+
+ assert false;
+ }
+
+ return property.setEditor(new ObjPropertyEditor(property, r, c));
+ }
+}