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

Method get_extra_settings

puppet_extension.py:53–129  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51 return file_list
52
53 def get_extra_settings(self) -> list:
54 return [
55 {
56 "key": "model",
57 "title": _("Live2D Model"),
58 "description": _("Live2D Model to use"),
59 "type": "combo",
60 "values": self.get_available_models(),
61 "default": "Arch/arch chan model0.model3.json",
62 "folder": os.path.abspath(self.models_dir),
63 "refresh": lambda x: self.settings_update(),
64 },
65 {
66 "key": "update_model",
67 "title": "Update Puppet Program",
68 "description": "Update Puppet program",
69 "type": "button",
70 "default": "",
71 "label": "Update",
72 "callback": self.update_puppet,
73
74 },
75 {
76 "key": "install_gnome_extension",
77 "title": "GNOME Shell extension",
78 "description": "Required on GNOME for pointer tracking, monitor size, and overlay mode",
79 "type": "button",
80 "default": "",
81 "label": "Update" if self._gnome_extension_installed() else "Install gnome extension",
82 "callback": self.install_gnome_extension,
83 },
84 {
85 "key": "start_window_server",
86 "title": "Automatically run puppet",
87 "description": "Automatically run puppet window server",
88 "type": "toggle",
89 "default": True
90 },
91 {
92 "key": "fps",
93 "title": _("Lipsync Framerate"),
94 "description": _("Maximum amount of frames to generate for lipsync"),
95 "type": "range",
96 "min": 5,
97 "max": 30,
98 "default": 10.0,
99 "round-digits": 0
100 },
101 {
102 "key": "scale",
103 "title": _("Zoom Model"),
104 "description": _("Zoom the Live2D model"),
105 "type": "range",
106 "min": 5,
107 "max": 300,
108 "default": 100,
109 "round-digits": 0
110 },

Callers

nothing calls this directly

Calls 1

get_available_modelsMethod · 0.95

Tested by

no test coverage detected