GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — UnityLauncherPro/UnityLauncherPro/NewProject.xaml at master · feipinxiang/UnityLauncherPro Expand file tree/ Copy pathNewProject.xamlMore file actions 264 lines (241 loc) · 21.3 KB / Copy pathNewProject.xamlFile metadata and controls264 lines (241 loc) · 21.3 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 <Window x:Class="UnityLauncherPro.NewProject" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 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" xmlns:local="clr-namespace:UnityLauncherPro" xmlns:data="clr-namespace:UnityLauncherPro.Data" d:DataContext="{d:DesignInstance Type=local:NewProject}" mc:Ignorable="d" Title="Create New Project" Height="680" Width="670" Background="{DynamicResource ThemeDarkestBackground}" PreviewKeyDown="Window_PreviewKeyDown" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" ShowInTaskbar="True"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="164"/> </Grid.ColumnDefinitions> <StackPanel Margin="10,3"> <Label Content="Unity Version" Foreground="{DynamicResource ThemeButtonForeground}" Margin="0,0,0,3" Padding="5,5,5,3" /> <DataGrid x:Name="gridAvailableVersions" KeyboardNavigation.TabNavigation = "None" SelectionMode="Single" Height="190" Margin="0" HeadersVisibility="None" AutoGenerateColumns="False" IsSynchronizedWithCurrentItem="True" Foreground="{DynamicResource ThemeButtonForeground}" Background="{DynamicResource ThemeMainBackgroundColor}" SelectionChanged="GridAvailableVersions_SelectionChanged" IsTabStop="True" TabIndex="0" Loaded="GridAvailableVersions_Loaded" EnableRowVirtualization="False" VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Disabled" PreviewMouseDoubleClick="gridAvailableVersions_PreviewMouseDoubleClick" CanUserAddRows="False" CanUserReorderColumns="False" CanUserResizeColumns="False" CanUserSortColumns="False" CanUserResizeRows="False" CanUserDeleteRows="False"> <DataGrid.Columns> <DataGridTextColumn Header="Version" Binding="{Binding Version}" IsReadOnly="True" CanUserResize="False" MinWidth="80" /> <DataGridTextColumn Header="Platforms" Binding="{Binding PlatformsCombined}" IsReadOnly="True" CanUserResize="False" MinWidth="270" /> <DataGridTextColumn Header="Release" Binding="{Binding ReleaseType}" IsReadOnly="True" CanUserResize="False" MinWidth="70" /> </DataGrid.Columns> </DataGrid> <Grid HorizontalAlignment="Stretch" Margin="0,5,0,0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="35*"/> <ColumnDefinition Width="15*"/> <ColumnDefinition Width="22*"/> <ColumnDefinition Width="10*"/> </Grid.ColumnDefinitions> <Label x:Name="lblNewProjectNameLabel" Grid.Column="0" Content="Project Name:" Foreground="{DynamicResource ThemeButtonForeground}" Margin="0" Padding="0,5,5,0" /> <Label Grid.Column="1" Content="Platform:" Foreground="{DynamicResource ThemeButtonForeground}" Margin="0" Padding="0,5,0,0" /> <Label x:Name="lblTemplateTitleAndCount" Grid.Column="2" Content="Templates:" Foreground="{DynamicResource ThemeButtonForeground}" Margin="0" Padding="5,5,5,0" /> <Label Content="Override" x:Name="lblOverride" Grid.Column="3" Foreground="{DynamicResource ThemeButtonForeground}" Margin="0" Padding="0,5,0,0"/> </Grid> <Grid HorizontalAlignment="Stretch" Margin="0,3,0,0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="35*"/> <ColumnDefinition Width="15*"/> <ColumnDefinition Width="22*"/> <ColumnDefinition Width="10*"/> </Grid.ColumnDefinitions> <TextBox Grid.Column="0" x:Name="txtNewProjectName" VerticalAlignment="Center" IsUndoEnabled="True" TextChanged="TxtNewProjectName_TextChanged" PreviewKeyDown="TxtNewProjectName_PreviewKeyDown" TabIndex="0" Margin="0,2,6,2" /> <ComboBox Grid.Column="1" x:Name="cmbNewProjectPlatform" SelectedIndex="0" Margin="0,0,0,0" TabIndex="2" DropDownOpened="CmbNewProjectPlatform_DropDownOpened" /> <ComboBox Grid.Column="2" x:Name="cmbNewProjectTemplate" DisplayMemberPath="Key" SelectedIndex="0" Margin="6,0,0,0" TabIndex="2" DropDownOpened="CmbNewProjectTemplate_DropDownOpened" /> <CheckBox Grid.Column="3" x:Name="chkForceDX11" Content="DX11" ToolTip="Use DX11 instead of DX12" Margin="6,0,0,0" IsChecked="False" Checked="chkForceDX11_Checked" Unchecked="chkForceDX11_Checked"/> </Grid> <Label x:Name="lblNewProjectFolderLabel" Grid.Column="0" Content="Project Root Folder:" Foreground="{DynamicResource ThemeButtonForeground}" Margin="0,3,0,0" Padding="0,5,5,0" /> <Grid HorizontalAlignment="Stretch" Margin="0,3,0,0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="18*"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <TextBox Grid.Column="0" x:Name="txtNewProjectFolder" VerticalAlignment="Center" IsUndoEnabled="True" TextChanged="txtNewProjectFolder_TextChanged" PreviewKeyDown="TxtNewProjectName_PreviewKeyDown" TabIndex="0" Margin="0,2,6,2" /> <Button Grid.Column="1" x:Name="btnBrowseForProjectFolder" Style="{StaticResource CustomButton}" ToolTip="Browse for New Project folder" Content="..." Height="22" Width="22" HorizontalAlignment="Right" VerticalAlignment="Top" FontSize="16" Padding="1,-2,1,1" BorderBrush="{x:Null}" Click="btnBrowseForProjectFolder_Click"/> <Button Grid.Column="2" x:Name="btnCreateMissingFolder" Style="{StaticResource CustomButton}" ToolTip="Create Missing Folder from your path" Content="+" Height="22" Width="22" HorizontalAlignment="Right" VerticalAlignment="Top" FontSize="16" Padding="1,-2,1,1" BorderBrush="{x:Null}" Click="btnCreateMissingFolder_Click"/> </Grid> <!--<Label x:Name="lblNewProjectFolder" Content="(folder)" Foreground="{DynamicResource ThemeButtonForegroundDisabled}" Margin="0" FontSize="10" Padding="5,0,5,3" />--> <Grid HorizontalAlignment="Stretch" Margin="0,20,0,0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="0.3*"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Button Grid.Column="0" Style="{StaticResource CustomButton}" x:Name="btnCancelNewProject" Margin="0,0,3,3" BorderBrush="{x:Null}" VerticalAlignment="Top" Height="35" Click="BtnCancelNewProject_Click" TabIndex="4" Content="_Cancel"/> <Button Grid.Column="1" Style="{StaticResource CustomButton}" x:Name="btnCreateNewProjectAndRepo" Margin="3,0,0,3" BorderBrush="{x:Null}" VerticalAlignment="Top" Height="35" Click="btnCreateNewProjectAndRepo_Click" TabIndex="3" Content="New Project+_Repo"/> <Button Grid.Column="2" Style="{StaticResource CustomButton}" x:Name="btnCreateNewProject" Margin="3,0,0,3" BorderBrush="{x:Null}" VerticalAlignment="Top" Height="35" Click="BtnCreateNewProject_Click" TabIndex="3" Content="_New Project"/> </Grid> <Expander x:Name="expVersionControl" Margin="0,10,0,0" Header="Version Control (Github)" Foreground="{DynamicResource ThemeButtonForeground}" IsExpanded="True" Collapsed="expVersionControl_Collapsed" Expanded="expVersionControl_Collapsed"> <Grid UseLayoutRounding="False"> <StackPanel Margin="0,6,0,0" Orientation="Vertical"> <StackPanel Orientation="Horizontal" Margin="0,0,0,0"> <Label Name="lblNotConnected" Content="❌" Margin="0,0,0,0" VerticalAlignment="Center" Foreground="Red" HorizontalAlignment="Left"/> <Label Name="lblConnected" Content="✔️" Margin="0,0,0,0" VerticalAlignment="Center" Foreground="Lime" Visibility="Collapsed"/> <Label Content="Connected as:" Foreground="{DynamicResource ThemeButtonForeground}" Margin="0,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left"/> <Label x:Name="lblGithubUsername" Content="(not connected)" Foreground="{DynamicResource ThemeButtonForeground}" Margin="5,0,0,0" VerticalAlignment="Center" FontStyle="Italic" MaxWidth="92"/> <Button x:Name="btnCreateToken" Style="{StaticResource CustomButton}" Content="Get Token 🔗" ToolTip="Open Github to create a token" Height="22" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,4,6,0" Grid.Column="1" FontSize="10" Width="66" Click="btnCreateToken_Click" /> <PasswordBox x:Name="txtTokenInput" ToolTip="Enter your Github token here" VerticalAlignment="Center" Margin="0,2,0,2" HorizontalAlignment="Left" Width="100" PasswordChanged="txtTokenInput_PasswordChanged"/> <Button x:Name="btnAuthorizeToken" Style="{StaticResource CustomButton}" Content="Authorize" ToolTip="Open Github to create a token" Height="22" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="6,4,0,0" IsEnabled="False" Width="60" Click="btnAuthorizeToken_Click" /> <Button x:Name="btnDisconnectToken" Style="{StaticResource CustomButton}" Content="Disconnect" ToolTip="Disconnect from Github AND delete saved token" Height="22" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="6,4,0,0" IsEnabled="False" Width="64" Visibility="Collapsed" Click="btnDisconnectToken_Click" /> </StackPanel> <CheckBox x:Name="chkEnableVersionControl" Content="Enable Version Control" Foreground="{DynamicResource ThemeButtonForeground}" Margin="0,6,0,6" VerticalAlignment="Center" Checked="chkEnableVersionControl_Checked" Unchecked="chkEnableVersionControl_Checked"/> <Grid Margin="0,0,0,0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="120"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Label Grid.Column="0" Content="Visibility:" Foreground="{DynamicResource ThemeButtonForeground}" Padding="0,3,5,3"/> <StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Left"> <RadioButton x:Name="rbPrivate" Content="Private" IsChecked="True" Foreground="{DynamicResource ThemeButtonForeground}" VerticalAlignment="Center"/> <Label Content="🔒︎" Foreground="#FFFFD200"/> <RadioButton x:Name="rbPublic" Content="Public" Foreground="{DynamicResource ThemeButtonForeground}" VerticalAlignment="Center" Margin="42,0,0,0"/> <Label Content="🌐" Foreground="#FF009CFF"/> </StackPanel> </Grid> <StackPanel Orientation="Horizontal" Margin="0,4,0,0"> <CheckBox x:Name="chkEnableOrgs" Content="Organization:" ToolTip="Enable Large File Storage and add .gitattributes" Foreground="{DynamicResource ThemeButtonForeground}" Margin="0,8,0,0" VerticalAlignment="Center" IsChecked="True" Checked="chkEnableOrgs_Checked" Unchecked="chkEnableOrgs_Checked"/> <ComboBox x:Name="cmbGithubOrgs" Margin="6,0,0,0" TabIndex="2" VerticalAlignment="Top" HorizontalAlignment="Left" SelectionChanged="cmbGithubOrgs_SelectionChanged" /> </StackPanel> <Grid Margin="0,8,0,0" HorizontalAlignment="Left"> <Grid.ColumnDefinitions> <ColumnDefinition Width="120"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="Auto"/> </Grid.ColumnDefinitions> <Label Grid.Column="0" Content="Repository Name:" Foreground="{DynamicResource ThemeButtonForeground}" Padding="0,3,5,3"/> <TextBox Grid.Column="1" x:Name="txtRepoName" VerticalAlignment="Center" IsUndoEnabled="True" Margin="0,2,0,2" HorizontalAlignment="Left" Width="200" TextChanged="txtRepoName_TextChanged"/> <Label Grid.Column="2" Name="lblRepoNameInvalid" Content="❌" Margin="0,0,0,0" VerticalAlignment="Center" Foreground="Red" HorizontalAlignment="Left"/> <Label Grid.Column="2" Name="lblRepoNameValid" Content="✔️" Margin="0,0,0,0" VerticalAlignment="Center" Foreground="Lime" Visibility="Collapsed"/> </Grid> <Grid Margin="0,5,0,0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="120"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Label Grid.Column="0" Content="Description:" Foreground="{DynamicResource ThemeButtonForeground}" Padding="0,3,5,3"/> <TextBox Grid.Column="1" x:Name="txtRepoDescription" VerticalAlignment="Center" IsUndoEnabled="True" Margin="0,2,0,2"/> </Grid> <StackPanel Orientation="Horizontal" Margin="0,0,0,0"> <CheckBox x:Name="chkEnableLfs" Content="Enable Git LFS " ToolTip="Enable Large File Storage and add .gitattributes" Foreground="{DynamicResource ThemeButtonForeground}" Margin="0,8,0,0" VerticalAlignment="Center" Checked="chkEnableLfs_Checked" Unchecked="chkEnableLfs_Checked" IsChecked="True"/> <CheckBox x:Name="chkInitialCommit" Content="Create initial commit" Foreground="{DynamicResource ThemeButtonForeground}" Margin="16,5,0,0" VerticalAlignment="Center" Checked="chkInitialCommit_Checked" Unchecked="chkInitialCommit_Checked" IsChecked="True"/> <CheckBox x:Name="chkAddUnityGitIgnore" Content="Add Unity .gitignore" Foreground="{DynamicResource ThemeButtonForeground}" Margin="16,5,0,0" VerticalAlignment="Center" IsChecked="True" Checked="chkAddUnityGitIgnore_Checked"/> <CheckBox x:Name="chkAddReadme" Content="Add README" ToolTip="Add a README file" Foreground="{DynamicResource ThemeButtonForeground}" Margin="16,8,0,0" VerticalAlignment="Center" IsChecked="True" Checked="chkAddReadme_Checked" Unchecked="chkAddReadme_Checked"/> </StackPanel> <StackPanel Orientation="Horizontal" Margin="0,0,0,0"> </StackPanel> </StackPanel> </Grid> </Expander> <Grid UseLayoutRounding="False" Margin="0,2,0,0"> <StatusBar VerticalAlignment="Center" Background="{x:Null}" Foreground="{DynamicResource ThemeStatusText}"> <StatusBarItem> <TextBlock x:Name="txtNewProjectStatus" VerticalAlignment="Center" Text=""/> </StatusBarItem> </StatusBar> </Grid> </StackPanel> <StackPanel Orientation="Vertical" Margin="0,3,10,3" Grid.Column="1"> <StackPanel Orientation="Horizontal"> <Label Name="lblUnityOnlineTemplates" Content="Online Templates" Foreground="{DynamicResource ThemeButtonForeground}" Margin="5,0,0,3" Padding="5,5,5,3" HorizontalAlignment="Left" /> <Button Style="{StaticResource CustomButton}" ToolTip="Fetch list of templates" x:Name="btnFetchTemplates" Content="⟳" Height="22" Width="26" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="16" Margin="20,0,0,0" Padding="1,-2,1,1" BorderBrush="{x:Null}" Click="btnFetchTemplates_Click"/> </StackPanel> <ListBox x:Name="listOnlineTemplates" Margin="6,5,0,0" Height="540" Background="{DynamicResource ThemeMainBackgroundColor}" Foreground="{DynamicResource ThemeButtonForeground}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" d:ItemsSource="{d:SampleData ItemCount=4}" PreviewMouseDown="listOnlineTemplates_PreviewMouseDown" SelectionChanged="listOnlineTemplates_SelectionChanged"> <ListBox.ItemContainerStyle> <Style TargetType="ListBoxItem"> <Setter Property="BorderBrush" Value="Transparent"/> <Setter Property="BorderThickness" Value="2"/> <Style.Triggers> <Trigger Property="IsSelected" Value="True"> <Setter Property="BorderBrush" Value="Green"/> </Trigger> </Style.Triggers> </Style> </ListBox.ItemContainerStyle> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Vertical" Margin="3"> <Grid> <Image Source="{Binding PreviewImage}" Margin="0,0,0,5" ToolTip="{Binding Description}" Stretch="Uniform" HorizontalAlignment="Stretch"/> <Button x:Name="btnDownloadTemplate" ToolTip="Download Template" Content="📥" Height="32" Width="32" HorizontalAlignment="Right" VerticalAlignment="Top" FontSize="18" Margin="1" Padding="0" BorderBrush="{x:Null}" Opacity="0.9" Click="btnDownloadTemplate_Click" Tag="{Binding}"> <Button.Style> <Style TargetType="Button" BasedOn="{StaticResource CustomButton}"> <Setter Property="Visibility" Value="Visible"/> <Style.Triggers> <DataTrigger Binding="{Binding IsDownloaded}" Value="True"> <Setter Property="Visibility" Value="Collapsed"/> </DataTrigger> </Style.Triggers> </Style> </Button.Style> </Button> <!-- Downloaded indicator badge --> <Border Background="#CC2E7D32" HorizontalAlignment="Right" VerticalAlignment="Top" Height="32" Width="32" Padding="0" Margin="1"> <Border.Style> <Style TargetType="Border"> <Setter Property="Visibility" Value="Collapsed"/> <Style.Triggers> <DataTrigger Binding="{Binding IsDownloaded}" Value="True"> <Setter Property="Visibility" Value="Visible"/> </DataTrigger> </Style.Triggers> </Style> </Border.Style> <TextBlock Text="✓" ToolTip="Already downloaded" FontSize="18" VerticalAlignment="Center" TextAlignment="Center" FontWeight="Bold" Foreground="White"/> </Border> </Grid> <TextBlock Text="{Binding Name}" FontWeight="Bold" TextWrapping="Wrap" Foreground="{DynamicResource ThemeButtonForeground}"/> <TextBlock Text="{Binding Type}" FontSize="10" Foreground="{DynamicResource ThemeButtonForeground}" Opacity="0.7"/> </StackPanel> </DataTemplate> </ListBox.ItemTemplate> </ListBox> <Label x:Name="lblSelectedTemplate" Content="" BorderBrush="{DynamicResource ThemeGridGreenText}" BorderThickness="0" Foreground="{DynamicResource ThemeButtonForeground}" Margin="6,5,0,0" Padding="5,3,5,3" FontSize="11" Height="25"/> </StackPanel> </Grid> </Window> |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |