diff options
| author | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
| commit | e1e781bb2135ef78592226f1a3eaba4925702f1f (patch) | |
| tree | 8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/scape/PropAdder.java | |
| download | worlds.jar-main.tar.xz worlds.jar-main.zip | |
Diffstat (limited to 'NET/worlds/scape/PropAdder.java')
| -rw-r--r-- | NET/worlds/scape/PropAdder.java | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/NET/worlds/scape/PropAdder.java b/NET/worlds/scape/PropAdder.java new file mode 100644 index 0000000..608332e --- /dev/null +++ b/NET/worlds/scape/PropAdder.java @@ -0,0 +1,120 @@ +/* */ package NET.worlds.scape; +/* */ +/* */ import NET.worlds.console.PolledDialog; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public class PropAdder +/* */ implements LibraryDrop +/* */ { +/* */ protected VectorProperty property; +/* */ +/* */ protected PropAdder(VectorProperty property) +/* */ { +/* 45 */ this.property = property; +/* */ } +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public static VectorProperty make(VectorProperty property) +/* */ { +/* 54 */ return property.setAdder(new PropAdder(property)); +/* */ } +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public PolledDialog add(EditTile parent, String title) +/* */ { +/* 66 */ if (!$assertionsDisabled) throw new AssertionError(); +/* 67 */ return null; +/* */ } +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public boolean hasAddDialog() +/* */ { +/* 77 */ return false; +/* */ } +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ protected boolean checkObject(Object obj) +/* */ { +/* 89 */ return this.property.addTest(obj); +/* */ } +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public boolean libraryDrop(EditTile target, Object obj, boolean isPaste, boolean doDrop) +/* */ { +/* 99 */ if (checkObject(obj)) { +/* 100 */ if (doDrop) { +/* 101 */ if (isPaste) { +/* 102 */ target.addUndoablePaste(this.property, obj); +/* */ } else { +/* 104 */ target.addUndoableAdd(this.property, obj, true); +/* */ } +/* */ +/* 107 */ return (!(obj instanceof SuperRoot)) || +/* 108 */ (((SuperRoot)obj).getOwner() != null); +/* */ } +/* 110 */ return true; +/* */ } +/* 112 */ return false; +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\PropAdder.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |