MCPcopy Create free account
hub / github.com/NyarchLinux/DesktopPuppet / set_settings

Method set_settings

src/puppets/live2d.py:162–178  ·  view source on GitHub ↗
(self, settings: dict)

Source from the content-addressed store, hash-verified

160 script = "set_mouth_y({})".format(amplitude)
161 self.webview.evaluate_javascript(script, len(script))
162
163 def set_settings(self, settings: dict) -> None:
164 super().set_settings(settings)
165 if "extra_scale_w" in settings:
166 self.extra_scale_w = settings["extra_scale_w"]
167 if "extra_scale_h" in settings:
168 self.extra_scale_h = settings["extra_scale_h"]
169 if "model" in settings:
170 self.model = settings["model"]
171 if "scale" in settings:
172 self.scale = settings["scale"]
173 if "extra_w" in settings:
174 self.extra_scale_w = settings["extra_w"]
175 if "extra_h" in settings:
176 self.extra_scale_h = settings["extra_h"]
177 if "address" in settings:
178 self.address = settings["address"]
179 GLib.idle_add(self.change_address)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected