Normand Briere
2019-09-30 3966454055db8e04700e881a091c2d33dcfda232
RandomEditor.java
....@@ -58,12 +58,18 @@
5858 SetupUI2(objEditor);
5959 }
6060
61
+ String GetSupportText()
62
+ {
63
+ return "Show all";
64
+ }
65
+
6166 void SetupUI2(ObjEditor oe)
6267 {
6368 super.SetupUI2(oe);
6469 itemPanel = AddSlider(oe.ctrlPanel, "Item: ", 0, randomnode.Size()-1, randomnode.rndIndex);
6570
6671 itemField = (cNumberSlider)itemPanel.getComponent(1);
72
+ itemPanel.getComponent(0).setEnabled(!randomnode.random);
6773 oe.ctrlPanel.Return();
6874
6975 oe.ctrlPanel.Return();
....@@ -92,7 +98,9 @@
9298 //System.out.println(e);
9399 applySelf();
94100 //super.applySelf();
95
- objEditor.refreshContents();
101
+
102
+ Globals.lighttouched = true;
103
+ objEditor.refreshContents();
96104 //Refresh();
97105 }
98106 else
....@@ -130,9 +138,13 @@
130138 return objEditor;
131139 }
132140
133
- void refreshContents2()
141
+ void refreshContents()
134142 {
135
- objEditor.refreshContents();
143
+ itemField.setMinimum(0);
144
+ itemField.setMaximum(randomnode.Size() - 1);
145
+ itemField.setInteger(randomnode.rndIndex);
146
+
147
+ // objEditor.refreshContents();
136148 }
137149
138150 RandomNode randomnode;