|
47 | 47 | label={translate('dialog.text_display_config.glowing.title')} |
48 | 48 | tooltip={translate('dialog.text_display_config.glowing.description')} |
49 | 49 | bind:checked={glowing} |
| 50 | + defaultValue={TextDisplayConfig.prototype.glowing} |
50 | 51 | /> |
51 | 52 |
|
52 | 53 | <ColorPicker |
|
59 | 60 | label={translate('dialog.text_display_config.shadow_radius.title')} |
60 | 61 | tooltip={translate('dialog.text_display_config.shadow_radius.description')} |
61 | 62 | bind:value={shadowRadius} |
| 63 | + defaultValue={TextDisplayConfig.prototype.shadowRadius} |
62 | 64 | min={0} |
63 | 65 | max={64} |
64 | 66 | /> |
|
67 | 69 | label={translate('dialog.text_display_config.shadow_strength.title')} |
68 | 70 | tooltip={translate('dialog.text_display_config.shadow_strength.description')} |
69 | 71 | bind:value={shadowStrength} |
| 72 | + defaultValue={TextDisplayConfig.prototype.shadowStrength} |
70 | 73 | min={0} |
71 | 74 | /> |
72 | 75 |
|
73 | 76 | <Checkbox |
74 | | - label={translate('dialog.text_display_config.override_brightness.title')} |
75 | | - tooltip={translate('dialog.text_display_config.override_brightness.description')} |
| 77 | + label={translate('dialog.bone_config.use_custom_brightness.title')} |
| 78 | + tooltip={translate('dialog.bone_config.use_custom_brightness.description')} |
76 | 79 | bind:checked={overrideBrightness} |
| 80 | + defaultValue={TextDisplayConfig.prototype.overrideBrightness} |
77 | 81 | /> |
78 | 82 |
|
79 | | - {#if $overrideBrightness} |
80 | | - <NumberSlider |
81 | | - label={translate('dialog.text_display_config.brightness_override.title')} |
82 | | - tooltip={translate('dialog.text_display_config.brightness_override.description')} |
83 | | - bind:value={brightnessOverride} |
84 | | - min={0} |
85 | | - max={15} |
86 | | - /> |
87 | | - {/if} |
| 83 | + <NumberSlider |
| 84 | + label={translate('dialog.bone_config.custom_brightness.title')} |
| 85 | + tooltip={translate('dialog.bone_config.custom_brightness.description')} |
| 86 | + bind:value={brightnessOverride} |
| 87 | + defaultValue={TextDisplayConfig.prototype.brightnessOverride} |
| 88 | + min={0} |
| 89 | + max={15} |
| 90 | + /> |
88 | 91 |
|
89 | 92 | <Checkbox |
90 | 93 | label={translate('dialog.text_display_config.invisible.title')} |
91 | 94 | tooltip={translate('dialog.text_display_config.invisible.description')} |
92 | 95 | bind:checked={invisible} |
| 96 | + defaultValue={TextDisplayConfig.prototype.invisible} |
93 | 97 | /> |
94 | 98 | {:else} |
95 | 99 | <Checkbox |
96 | 100 | label={translate('dialog.text_display_config.use_nbt.title')} |
97 | 101 | tooltip={translate('dialog.text_display_config.use_nbt.description')} |
98 | 102 | bind:checked={useNBT} |
| 103 | + defaultValue={TextDisplayConfig.prototype.useNBT} |
99 | 104 | /> |
100 | 105 |
|
101 | 106 | {#if $useNBT} |
|
106 | 111 | label={translate('dialog.text_display_config.nbt.title')} |
107 | 112 | tooltip={translate('dialog.text_display_config.nbt.description')} |
108 | 113 | bind:value={nbt} |
| 114 | + defaultValue={TextDisplayConfig.prototype.nbt} |
109 | 115 | /> |
110 | 116 | {:else} |
111 | 117 | <Select |
|
120 | 126 | label={translate('dialog.text_display_config.glowing.title')} |
121 | 127 | tooltip={translate('dialog.text_display_config.glowing.description')} |
122 | 128 | bind:checked={glowing} |
| 129 | + defaultValue={TextDisplayConfig.prototype.glowing} |
123 | 130 | /> |
124 | 131 |
|
125 | 132 | <Checkbox |
126 | 133 | label={translate('dialog.text_display_config.override_glow_color.title')} |
127 | 134 | tooltip={translate('dialog.text_display_config.override_glow_color.description')} |
128 | 135 | bind:checked={overrideGlowColor} |
| 136 | + defaultValue={TextDisplayConfig.prototype.overrideGlowColor} |
129 | 137 | /> |
130 | 138 |
|
131 | 139 | {#if $overrideGlowColor} |
|
140 | 148 | label={translate('dialog.text_display_config.shadow_radius.title')} |
141 | 149 | tooltip={translate('dialog.text_display_config.shadow_radius.description')} |
142 | 150 | bind:value={shadowRadius} |
| 151 | + defaultValue={TextDisplayConfig.prototype.shadowRadius} |
143 | 152 | min={0} |
144 | 153 | max={15} |
145 | 154 | /> |
|
148 | 157 | label={translate('dialog.text_display_config.shadow_strength.title')} |
149 | 158 | tooltip={translate('dialog.text_display_config.shadow_strength.description')} |
150 | 159 | bind:value={shadowStrength} |
| 160 | + defaultValue={TextDisplayConfig.prototype.shadowStrength} |
151 | 161 | min={0} |
152 | 162 | max={15} |
153 | 163 | /> |
|
156 | 166 | label={translate('dialog.text_display_config.override_brightness.title')} |
157 | 167 | tooltip={translate('dialog.text_display_config.override_brightness.description')} |
158 | 168 | bind:checked={overrideBrightness} |
| 169 | + defaultValue={TextDisplayConfig.prototype.overrideBrightness} |
159 | 170 | /> |
160 | 171 |
|
161 | 172 | {#if $overrideBrightness} |
|
165 | 176 | 'dialog.text_display_config.brightness_override.description', |
166 | 177 | )} |
167 | 178 | bind:value={brightnessOverride} |
| 179 | + defaultValue={TextDisplayConfig.prototype.brightnessOverride} |
168 | 180 | min={0} |
169 | 181 | max={15} |
170 | 182 | /> |
|
0 commit comments