| 259 | |
| 260 | |
| 261 | public void sendNewValue() { |
| 262 | int index = varIndex; |
| 263 | try { |
| 264 | if ("int".equals(type)) { |
| 265 | tweakClient.sendInt(index, newValue.intValue()); |
| 266 | } else if ("hex".equals(type)) { |
| 267 | tweakClient.sendInt(index, newValue.intValue()); |
| 268 | } else if ("webcolor".equals(type)) { |
| 269 | tweakClient.sendInt(index, newValue.intValue()); |
| 270 | } else if ("float".equals(type)) { |
| 271 | tweakClient.sendFloat(index, newValue.floatValue()); |
| 272 | } |
| 273 | } catch (Exception e) { |
| 274 | System.out.println("error sending new value!"); |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | |
| 279 | public String toString() { |