"ui"; storage = storages.create("mower-ng helper"); wx = storage.get("wx", 10); wy = storage.get("wy", 10); http_proto = storage.get("http_proto", "http"); host = storage.get("host", "127.0.0.1"); port = storage.get("port", "58000"); function save_config() { http_proto = ui.proto.getText(); host = ui.host.getText(); port = ui.port.getText(); storage.put("http_proto", http_proto); storage.put("host", host); storage.put("port", port); } w = null; ui.layout(