From e1e781bb2135ef78592226f1a3eaba4925702f1f Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 3 May 2021 16:38:41 -0700 Subject: :star: --- NET/worlds/console/AvatarDialogTest.java | 60 ++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 NET/worlds/console/AvatarDialogTest.java (limited to 'NET/worlds/console/AvatarDialogTest.java') diff --git a/NET/worlds/console/AvatarDialogTest.java b/NET/worlds/console/AvatarDialogTest.java new file mode 100644 index 0000000..b8867f4 --- /dev/null +++ b/NET/worlds/console/AvatarDialogTest.java @@ -0,0 +1,60 @@ +/* */ package NET.worlds.console; +/* */ +/* */ import java.util.Vector; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public class AvatarDialogTest +/* */ implements AvatarDialogCallback +/* */ { +/* 12 */ private static final String[] components = { "Color", "Weather", "Height", +/* 13 */ "Shape" }; +/* */ +/* 15 */ private static final String[] colors = { "Red", "Orange", "Yellow", +/* 16 */ "Green", "Blue", "Violet" }; +/* */ +/* 18 */ private static final String[] weather = { "Sunny", "Cloudy", "Raining", +/* 19 */ "Snowing" }; +/* */ +/* 21 */ private static final String[] heights = { "Short", "Medium", "Tall" }; +/* */ +/* 23 */ private static final String[] shapes = { "Circle", "Rectangle", "Triangle" }; +/* */ +/* 25 */ private static final String[][] items = { colors, weather, heights, shapes }; +/* */ +/* 27 */ private static int[] settings = new int[components.length]; +/* */ +/* */ +/* */ +/* */ public Vector getComponents() +/* */ { +/* 33 */ return stringsToVector(components); +/* */ } +/* */ +/* */ public Vector getChoices(int index) { +/* 37 */ return stringsToVector(items[index]); +/* */ } +/* */ +/* */ public int getCurrentSelection(int index) { +/* 41 */ return settings[index]; +/* */ } +/* */ +/* */ public void setCurrentSelection(int index, int choice) { +/* 45 */ settings[index] = choice; +/* */ } +/* */ +/* */ private static Vector stringsToVector(String[] strings) { +/* 49 */ Vector v = new Vector(); +/* 50 */ for (int i = 0; i < strings.length; i++) +/* 51 */ v.addElement(strings[i]); +/* 52 */ return v; +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\AvatarDialogTest.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */ \ No newline at end of file -- cgit v1.2.3