Skip to content

Commit 8f232d6

Browse files
committed
🎨 Minor improvements to old Blueprint settings menu
1 parent 80af817 commit 8f232d6

File tree

4 files changed

+24
-25
lines changed

4 files changed

+24
-25
lines changed

src/components/dialogItems/baseDialogItem.svelte

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,14 @@
2020
</script>
2121

2222
<div>
23-
<div class="base_dialog_item" title={tooltip}>
24-
<div class="slot_container" style={tooltip ? 'margin-right: 4px' : ''}>
23+
<div class="base_dialog_item">
24+
<div class="slot_container">
2525
<slot {id} />
2626
</div>
27-
{#if tooltip}
28-
<!-- svelte-ignore a11y-click-events-have-key-events -->
29-
<i
30-
class="fa fa-question dialog_form_description dialog-form-description"
31-
on:click={onQuestionMarkClick}
32-
/>
33-
{:else}
34-
<i
35-
class="fa fa-question dialog_form_description dialog-form-description"
36-
style="visibility: hidden"
37-
/>
38-
{/if}
3927
<!-- svelte-ignore a11y-click-events-have-key-events -->
4028
<i
4129
on:click={onReset}
42-
class="fa fa-trash-can dialog_form_description dialog-form-description reset-button"
30+
class="fa fa-rotate-left dialog_form_description dialog-form-description reset-button"
4331
title={translate('dialog.reset')}
4432
/>
4533
</div>
@@ -64,6 +52,11 @@
6452
</div>
6553
{/if}
6654
</div>
55+
{#if tooltip}
56+
<div class="description">
57+
{tooltip}
58+
</div>
59+
{/if}
6760
</div>
6861

6962
<style>
@@ -75,6 +68,7 @@
7568
}
7669
.slot_container {
7770
flex-grow: 1;
71+
margin-right: 4px;
7872
}
7973
.warning_text {
8074
display: flex;
@@ -87,6 +81,12 @@
8781
display: flex;
8882
flex-direction: column;
8983
}
84+
.description {
85+
font-size: 0.9em;
86+
color: var(--color-subtle_text);
87+
margin-top: 4px;
88+
margin-bottom: 16px;
89+
}
9090
.error_text {
9191
display: flex;
9292
align-items: center;

src/components/dialogItems/sectionHeader.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
align-items: center;
1515
}
1616
h4 {
17-
padding: 0px 8px;
17+
padding: 4px 8px;
1818
flex-grow: 1;
1919
font-size: 1.12em;
2020
border-bottom: 2px solid var(--color-back);

src/interface/dialog/blueprintSettings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export function openBlueprintSettingsDialog() {
114114
return new SvelteDialog({
115115
id: `${PACKAGE.name}:blueprintSettingsDialog`,
116116
title: translate('dialog.blueprint_settings.title'),
117-
width: 512,
117+
width: 700,
118118
component: BlueprintSettingsDialogSvelteComponent,
119119
props: settings,
120120
preventKeybinds: true,

src/lang/en.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,26 +188,25 @@ animated_java.dialog.blueprint_settings.summon_commands.description: |-
188188
189189
animated_java.dialog.blueprint_settings.ticking_commands.title: Ticking Commands
190190
animated_java.dialog.blueprint_settings.ticking_commands.description: |-
191-
Commands to run every tick at the root entity's position.
191+
Commands to run every tick at the root entity's position and after the animation logic.
192192
Treat this text input as a .mcfunction file. (Also supports MC-Build syntax!)
193-
These commands will run after the animation logic.
194193
195194
animated_java.dialog.blueprint_settings.interpolation_duration.title: Interpolation Duration
196-
animated_java.dialog.blueprint_settings.interpolation_duration.description: The duration of the smoothing between keyframes in ticks. This is the time it takes for the model to transition from one keyframe to the next. Higher values will cause animations to lose precision. Generally, you want this to have a value of 1 or 2.
195+
animated_java.dialog.blueprint_settings.interpolation_duration.description: How many ticks it takes for the model to transition from one frame to the next. Higher values will cause animations to lose precision. Generally, you want this to have a value of 1 or 2.
197196

198197
animated_java.dialog.blueprint_settings.teleportation_duration.title: Teleport Duration
199-
animated_java.dialog.blueprint_settings.teleportation_duration.description: The duration of the teleportation between keyframes in ticks. This is the time over which the model will visually interpolate between it's old position to it's new position. Higher values will cause animations to lose precision.
198+
animated_java.dialog.blueprint_settings.teleportation_duration.description: How many ticks it takes for the entity to move from it's old position to it's new position when teleported. Higher values will cause animated locators with "Use Entity" enabled to lose precision.
200199

201200
animated_java.dialog.blueprint_settings.use_storage_for_animation.title: Use Storage for Animation
202201
animated_java.dialog.blueprint_settings.use_storage_for_animation.description: |-
203202
Whether or not to use NBT storage to store animation data instead of functions.
204203
This will vastly reduce the number of functions in the generated Data Pack, but is 42% slower than the function method.
205204
206-
animated_java.dialog.blueprint_settings.show_function_errors.title: Show Function Errors
207-
animated_java.dialog.blueprint_settings.show_function_errors.description: Whether or not to show errors in chat when running functions in-game if they're used incorrectly.
205+
animated_java.dialog.blueprint_settings.show_function_errors.title: Function Errors
206+
animated_java.dialog.blueprint_settings.show_function_errors.description: Whether or not to show errors in chat when incorrectly using functions.
208207

209-
animated_java.dialog.blueprint_settings.show_outdated_warning.title: Show Outdated Warning
210-
animated_java.dialog.blueprint_settings.show_outdated_warning.description: Whether or not to show a warning in chat when a Rig Instance is outdated.
208+
animated_java.dialog.blueprint_settings.show_outdated_warning.title: Outdated Warning
209+
animated_java.dialog.blueprint_settings.show_outdated_warning.description: Whether or not to show a warning in chat when a Rig Instance is outdated, and needs to be resummoned.
211210

212211
# Plugin Settings
213212
animated_java.dialog.blueprint_settings.baked_animations.title: Baked Animations

0 commit comments

Comments
 (0)