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/console/AvatarDialogTest.java | |
| download | worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.tar.xz worlds.jar-e1e781bb2135ef78592226f1a3eaba4925702f1f.zip | |
Diffstat (limited to 'NET/worlds/console/AvatarDialogTest.java')
| -rw-r--r-- | NET/worlds/console/AvatarDialogTest.java | 60 |
1 files changed, 60 insertions, 0 deletions
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<String> getComponents() +/* */ { +/* 33 */ return stringsToVector(components); +/* */ } +/* */ +/* */ public Vector<String> 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<String> stringsToVector(String[] strings) { +/* 49 */ Vector<String> 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 |