From e1e781bb2135ef78592226f1a3eaba4925702f1f Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 3 May 2021 16:38:41 -0700 Subject: :star: --- NET/worlds/scape/FloatArrayEditorDialog.java | 70 ++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 NET/worlds/scape/FloatArrayEditorDialog.java (limited to 'NET/worlds/scape/FloatArrayEditorDialog.java') diff --git a/NET/worlds/scape/FloatArrayEditorDialog.java b/NET/worlds/scape/FloatArrayEditorDialog.java new file mode 100644 index 0000000..b20313f --- /dev/null +++ b/NET/worlds/scape/FloatArrayEditorDialog.java @@ -0,0 +1,70 @@ +/* */ package NET.worlds.scape; +/* */ +/* */ import java.util.StringTokenizer; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ class FloatArrayEditorDialog +/* */ extends ListEditorDialog +/* */ { +/* */ private static final long serialVersionUID = 1L; +/* */ protected Property property; +/* */ protected float[] arr; +/* */ +/* */ FloatArrayEditorDialog(EditTile parent, String title, Property property) +/* */ { +/* 28 */ super(parent, title); +/* 29 */ this.property = property; +/* 30 */ ready(); +/* */ } +/* */ +/* */ protected void build() +/* */ { +/* 35 */ this.arr = ((float[])this.property.get()); +/* 36 */ super.build(); +/* */ } +/* */ +/* */ protected int getElementCount() +/* */ { +/* 41 */ return this.arr.length; +/* */ } +/* */ +/* */ protected String getElement(int index) +/* */ { +/* 46 */ return this.arr[index]; +/* */ } +/* */ +/* */ protected boolean setElements(StringTokenizer e) +/* */ { +/* 51 */ int count = 0; +/* 52 */ while (e.hasMoreTokens()) +/* */ try { +/* 54 */ this.arr[(count++)] = Float.valueOf(e.nextToken()).floatValue(); +/* */ } catch (Exception x) { +/* 56 */ return false; +/* */ } +/* 58 */ if (count == this.arr.length) { +/* 59 */ this.parent.addUndoableSet(this.property, this.arr); +/* 60 */ return true; +/* */ } +/* 62 */ return false; +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\FloatArrayEditorDialog.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */ \ No newline at end of file -- cgit v1.2.3