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": "start_window_server",
77 "title": "Automatically run puppet",
78 "description": "Automatically run puppet window server",
79 "type": "toggle",
80 "default": True
81 },
82 {
83 "key": "fps",
84 "title": _("Lipsync Framerate"),
85 "description": _("Maximum amount of frames to generate for lipsync"),
86 "type": "range",
87 "min": 5,
88 "max": 30,
89 "default": 10.0,
90 "round-digits": 0
91 },
92 {
93 "key": "scale",
94 "title": _("Zoom Model"),
95 "description": _("Zoom the Live2D model"),
96 "type": "range",
97 "min": 5,
98 "max": 300,
99 "default": 100,
100 "round-digits": 0
101 },
102 {
103 "key": "extra_w",
104 "title": _("Extra Scaling Width"),
105 "description": _("Extra scaling width for the input. Make it smaller than one if the input area takes too much width"),
106 "type": "range",
107 "min": 0,
108 "max": 2,
109 "default": 0.56,
110 "round-digits": 2

Callers

nothing calls this directly

Calls 1

get_available_modelsMethod · 0.95

Tested by

no test coverage detected