-
-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
126fcc8
commit 4ff09fd
Showing
7 changed files
with
113 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,82 @@ | ||
<Window x:Class="TEdit.Editor.Plugins.HouseGenPluginView" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
SizeToContent="WidthAndHeight" | ||
Closing="WindowClosing" | ||
Title="House Generator" | ||
ResizeMode="NoResize" | ||
WindowStartupLocation="CenterOwner" | ||
Icon="/TEdit;component/Images/tedit.ico" | ||
Background="{StaticResource WindowBackgroundBrush}" | ||
Foreground="{StaticResource TextBrush}" | ||
> | ||
<StackPanel> | ||
<Image Source="{Binding Path=Preview}" Margin="10" HorizontalAlignment="Stretch" Stretch="Uniform" RenderOptions.BitmapScalingMode="NearestNeighbor" Width="400" Height="400" /> | ||
<StackPanel Background="{StaticResource ControlBackgroundBrush}" Orientation="Horizontal"> | ||
<ComboBox ItemsSource="{Binding Path=HouseGenTemplates}" | ||
SelectedValue="{Binding Path=SelectedTemplate, Mode=TwoWay}" | ||
DisplayMemberPath="Name" | ||
Text="Click [...] to Import Template Schematic" | ||
Margin="5" Padding="25,3" | ||
HorizontalAlignment="Stretch" | ||
MinWidth="400" | ||
Focusable="True" | ||
IsReadOnly="True" | ||
IsEditable="True"> | ||
</ComboBox> | ||
<Button Content="..." Command="{Binding Path=ImportCommand}" Margin="5" Padding="10, 3" HorizontalAlignment="Right" VerticalAlignment="Center" /> | ||
</StackPanel> | ||
<StackPanel Background="{StaticResource ControlBackgroundBrush}"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*"></ColumnDefinition> | ||
<ColumnDefinition Width="*"></ColumnDefinition> | ||
<ColumnDefinition Width="*"></ColumnDefinition> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="*"></RowDefinition> | ||
<RowDefinition Height="*"></RowDefinition> | ||
</Grid.RowDefinitions> | ||
<Button Content="Cancel" Click="CancelButtonClick" Grid.Row="1" Grid.Column="0" Margin="5" Padding="15, 3" HorizontalAlignment="Left" VerticalAlignment="Center" /> | ||
<Button Content="Generate" Command="{Binding Path=GenerateCommand}" Grid.Row="0" Grid.Column="1" Grid.RowSpan="2" Margin="5" Padding="15, 3" HorizontalAlignment="Center" VerticalAlignment="Stretch" Height="30" Width="120" /> | ||
<Button Content="Copy" Command="{Binding Path=CopyCommand}" Grid.Column="2" Grid.Row="1" Margin="5" Padding="15, 3" HorizontalAlignment="Right" VerticalAlignment="Center" /> | ||
</Grid> | ||
</StackPanel> | ||
</StackPanel> | ||
<Window x:Class="TEdit.Editor.Plugins.HouseGenPluginView" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
SizeToContent="WidthAndHeight" | ||
Closing="WindowClosing" | ||
Title="House Generator" | ||
ResizeMode="NoResize" | ||
WindowStartupLocation="CenterOwner" | ||
Icon="/TEdit;component/Images/tedit.ico" | ||
Background="{StaticResource WindowBackgroundBrush}" | ||
Foreground="{StaticResource TextBrush}" | ||
> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*" /> | ||
<ColumnDefinition Width="160" /> | ||
</Grid.ColumnDefinitions> | ||
<StackPanel Grid.Column="1"> | ||
<Label>Zone 1 Description (Group 1)</Label> | ||
<DockPanel> | ||
<Slider Value="3" VerticalAlignment="Center" Minimum="0" Maximum="5" SmallChange="1" Width="120" /> | ||
<TextBox Text="3" Width="32" DockPanel.Dock="Right" /> | ||
</DockPanel> | ||
<Label>Zone 2 Description (Group 1)</Label> | ||
<DockPanel> | ||
<Slider Value="3" VerticalAlignment="Center" Minimum="0" Maximum="5" SmallChange="1" Width="120" /> | ||
<TextBox Text="3" Width="32" DockPanel.Dock="Right" /> | ||
</DockPanel> | ||
<Label>Zone 3</Label> | ||
<DockPanel> | ||
<Slider Value="2" VerticalAlignment="Center" Minimum="0" Maximum="5" SmallChange="1" Width="120" /> | ||
<TextBox Text="2" Width="32" DockPanel.Dock="Right" /> | ||
</DockPanel> | ||
<CheckBox IsChecked="True">Synchronize Groups</CheckBox> | ||
<GridSplitter Margin="0,10" Background="{StaticResource ControlBackgroundBrush}" BorderBrush="{StaticResource ControlBackgroundBrush}"></GridSplitter> | ||
<Label>Schematics</Label> | ||
<StackPanel Orientation="Horizontal"> | ||
<Button Content="Add" Padding="10, 3" HorizontalAlignment="Left" VerticalAlignment="Center" /> | ||
<Button Content="Save" Padding="10, 3" HorizontalAlignment="Left" VerticalAlignment="Center" /> | ||
<Button Content="Save As" Padding="10, 3" HorizontalAlignment="Left" VerticalAlignment="Center" /> | ||
</StackPanel> | ||
<ItemsControl Background="{StaticResource ControlBackgroundBrush}" HorizontalAlignment="Stretch" Height="100" /> | ||
<Button Content="x" Padding="15, 3" HorizontalAlignment="Left" VerticalAlignment="Center" /> | ||
<ItemsControl Background="{StaticResource ControlBackgroundBrush}" HorizontalAlignment="Stretch" Height="100" /> | ||
<Button Content="X" Padding="15, 3" HorizontalAlignment="Left" VerticalAlignment="Center" /> | ||
</StackPanel> | ||
<StackPanel Grid.Column="0"> | ||
<Label>Preview</Label> | ||
<Image Source="{Binding Path=Preview}" Margin="10" HorizontalAlignment="Stretch" Stretch="Uniform" RenderOptions.BitmapScalingMode="NearestNeighbor" Width="400" Height="400" /> | ||
<StackPanel Background="{StaticResource ControlBackgroundBrush}" Orientation="Horizontal"> | ||
<ComboBox ItemsSource="{Binding Path=HouseGenTemplates}" | ||
SelectedValue="{Binding Path=SelectedTemplate, Mode=TwoWay}" | ||
DisplayMemberPath="Name" | ||
Text="Click [...] to Import Template Schematic" | ||
Margin="5" Padding="25,3" | ||
HorizontalAlignment="Stretch" | ||
MinWidth="400" | ||
Focusable="True" | ||
IsReadOnly="True" | ||
IsEditable="True"> | ||
</ComboBox> | ||
<Button Content="..." Command="{Binding Path=ImportCommand}" Margin="5" Padding="10, 3" HorizontalAlignment="Right" VerticalAlignment="Center" /> | ||
</StackPanel> | ||
<StackPanel Background="{StaticResource ControlBackgroundBrush}"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*"></ColumnDefinition> | ||
<ColumnDefinition Width="*"></ColumnDefinition> | ||
<ColumnDefinition Width="*"></ColumnDefinition> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="*"></RowDefinition> | ||
<RowDefinition Height="*"></RowDefinition> | ||
</Grid.RowDefinitions> | ||
<Button Content="Cancel" Click="CancelButtonClick" Grid.Row="1" Grid.Column="0" Margin="5" Padding="15, 3" HorizontalAlignment="Left" VerticalAlignment="Center" /> | ||
<Button Content="Generate" Command="{Binding Path=GenerateCommand}" Grid.Row="0" Grid.Column="1" Grid.RowSpan="2" Margin="5" Padding="15, 3" HorizontalAlignment="Center" VerticalAlignment="Stretch" Height="30" Width="120" /> | ||
<Button Content="Copy" Command="{Binding Path=CopyCommand}" Grid.Column="2" Grid.Row="1" Margin="5" Padding="15, 3" HorizontalAlignment="Right" VerticalAlignment="Center" /> | ||
</Grid> | ||
</StackPanel> | ||
</StackPanel> | ||
</Grid> | ||
</Window> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters