mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-12 19:42:32 +02:00
65ef92d7f0
* **Scripting:** * Add scripting capability, this allow to run external scripts inside the GUI and take advantage of visual layout to display user input fields * Scripts run under the "Roslyn Scripting API" and can make use of the whole C# language, this mean a huge boost compared to PowerShell scripts * Scripts are written in the same way UVtools is, by learning and programing scripts you are learning the UVtools core * For more information see the script sample: https://github.com/sn4k3/UVtools/tree/master/UVtools.ScriptSample * To run scripts go to: Tools - Scripting * **File formats:** * Add a check and warning when opening an file that have a diferent layer and file resolution * **Issues:** * Add "Print height" as new type of issue detection, all layers that goes beyond maximum printer Z height will be flagged as PrintHeight issue * Print height issues will not be automatical fixed, however user can fix it by remove some layers to counter the problem, still is recommended to resize object on slicer * Fix unable to compute issues when only islands or overhangs are selected to be detected alone (#177) * **Settings:** * Add default directory for scripts on "General - File dialogs" * Add checkbox on "Issues - Compute - Print height" to enable or disable this type of detection * Add numerical on "Issues - Print height - Offset" to define a custom offset from Z top * Fix default directories input width to not grow with text, it was overflowing on large strings * **Menu - Help:** * Add web link to "Wiki & tutorials" * Add web link to "Facebook group" * Add web link to "Report a issue" * Add web link to "Ask a question" * Add web link to "Suggest an improvement or new features"
68 lines
2.4 KiB
XML
68 lines
2.4 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="UVtools.WPF.Controls.Tools.ToolScriptingControl">
|
|
<StackPanel Orientation="Vertical">
|
|
<Grid RowDefinitions="Auto"
|
|
ColumnDefinitions="Auto,10,500,5,Auto">
|
|
|
|
<TextBlock Grid.Row="0" Grid.Column="0"
|
|
Text="Script file:"
|
|
VerticalAlignment="Center"/>
|
|
|
|
<TextBox Grid.Row="0" Grid.Column="2"
|
|
IsReadOnly="True"
|
|
Text="{Binding Operation.FilePath}" />
|
|
|
|
<StackPanel Grid.Row="0" Grid.Column="4"
|
|
Orientation="Horizontal" Spacing="1">
|
|
<Button
|
|
ToolTip.Tip="Loads an script file"
|
|
VerticalAlignment="Center"
|
|
Command="{Binding LoadScript}">
|
|
<Image Source="/Assets/Icons/file-import-16x16.png" />
|
|
</Button>
|
|
|
|
<Button
|
|
IsEnabled="{Binding Operation.HaveFile}"
|
|
ToolTip.Tip="Reloads the script"
|
|
VerticalAlignment="Center"
|
|
Command="{Binding ReloadScript}">
|
|
<Image Source="/Assets/Icons/refresh-16x16.png" />
|
|
</Button>
|
|
|
|
<Button
|
|
IsEnabled="{Binding Operation.HaveFile}"
|
|
ToolTip.Tip="Open the script folder"
|
|
VerticalAlignment="Center"
|
|
Command="{Binding OpenScriptFolder}">
|
|
<Image Source="/Assets/Icons/open-16x16.png" />
|
|
</Button>
|
|
|
|
<Button
|
|
IsEnabled="{Binding Operation.HaveFile}"
|
|
ToolTip.Tip="Open the script file"
|
|
VerticalAlignment="Center"
|
|
Command="{Binding OpenScriptFile}">
|
|
<Image Source="/Assets/Icons/file-code-16x16.png" />
|
|
</Button>
|
|
</StackPanel>
|
|
|
|
</Grid>
|
|
|
|
<StackPanel
|
|
Name="ScriptConfigurationPanel"
|
|
IsVisible="{Binding Operation.CanExecute}"
|
|
Margin="0,10" Spacing="5"/>
|
|
|
|
<Grid
|
|
Name="ScriptVariablesGrid"
|
|
IsVisible="{Binding Operation.CanExecute}"
|
|
ColumnDefinitions="Auto,10,Auto,5,Auto">
|
|
|
|
</Grid>
|
|
</StackPanel>
|
|
</UserControl>
|