-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGive.xaml
More file actions
152 lines (141 loc) · 6.75 KB
/
Give.xaml
File metadata and controls
152 lines (141 loc) · 6.75 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
<Page
x:Class="Command_Generator.Give"
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:local="using:Command_Generator"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
muxc:BackdropMaterial.ApplyToRootOrPageBackground="True"
mc:Ignorable="d">
<Grid>
<StackPanel Padding="20">
<StackPanel.ChildrenTransitions>
<TransitionCollection>
<EntranceThemeTransition FromVerticalOffset="300" IsStaggeringEnabled="True" />
<RepositionThemeTransition IsStaggeringEnabled="False" />
</TransitionCollection>
</StackPanel.ChildrenTransitions>
<TextBlock
Margin="20"
FontWeight="Bold"
Style="{StaticResource TitleTextBlockStyle}"
Text="Minecraft Java 1.20 Give Command Generator" />
<StackPanel Margin="20" HorizontalAlignment="Left">
<StackPanel.ChildrenTransitions>
<TransitionCollection>
<EntranceThemeTransition FromVerticalOffset="200" IsStaggeringEnabled="True" />
<RepositionThemeTransition IsStaggeringEnabled="False" />
</TransitionCollection>
</StackPanel.ChildrenTransitions>
<TextBlock
Margin="10"
Style="{StaticResource SubtitleTextBlockStyle}"
Text="Item ID" />
<TextBox
x:Name="ItemIdTextBox"
Width="340"
Margin="20"
HorizontalAlignment="Left"
PlaceholderText="minecraft:diamond_sword" />
<TextBlock
Margin="10"
Style="{StaticResource SubtitleTextBlockStyle}"
Text="Custom Name" />
<TextBox
x:Name="CustomNameTextBox"
Width="340"
Margin="20"
HorizontalAlignment="Left"
PlaceholderText="My Custom Sword" />
<TextBlock
Margin="10"
Style="{StaticResource SubtitleTextBlockStyle}"
Text="Enchantments" />
<StackPanel Margin="20" HorizontalAlignment="Left">
<!-- Enchantment 1 -->
<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
<ComboBox
x:Name="EnchantmentComboBox1"
Width="200"
Margin="0,0,10,0">
<ComboBoxItem Content="minecraft:sharpness" />
<ComboBoxItem Content="minecraft:smite" />
<ComboBoxItem Content="minecraft:bane_of_arthropods" />
<ComboBoxItem Content="minecraft:knockback" />
<ComboBoxItem Content="minecraft:fire_aspect" />
<ComboBoxItem Content="minecraft:looting" />
<!-- Add more enchantments as needed -->
</ComboBox>
<muxc:NumberBox
x:Name="EnchantmentLevelBox1"
Width="80"
SpinButtonPlacementMode="Inline"
Value="1" />
<CheckBox
x:Name="EnchantmentCheckBox1"
Margin="10,0,0,0"
Content="Enable"
IsChecked="True" />
</StackPanel>
<!-- Enchantment 2 -->
<StackPanel
Margin="10,0,0,0"
VerticalAlignment="Center"
Orientation="Horizontal">
<ComboBox
x:Name="EnchantmentComboBox2"
Width="200"
Margin="0,0,10,0">
<ComboBoxItem Content="minecraft:sharpness" />
<ComboBoxItem Content="minecraft:smite" />
<ComboBoxItem Content="minecraft:bane_of_arthropods" />
<ComboBoxItem Content="minecraft:knockback" />
<ComboBoxItem Content="minecraft:fire_aspect" />
<ComboBoxItem Content="minecraft:looting" />
<!-- Add more enchantments as needed -->
</ComboBox>
<muxc:NumberBox
x:Name="EnchantmentLevelBox2"
Width="80"
SpinButtonPlacementMode="Inline"
Value="1" />
<CheckBox
x:Name="EnchantmentCheckBox2"
Margin="10,0,0,0"
Content="Enable"
IsChecked="False" />
</StackPanel>
<!-- Add more enchantment selectors as needed -->
</StackPanel>
<TextBlock
Margin="10"
Style="{StaticResource SubtitleTextBlockStyle}"
Text="Attributes" />
<TextBox
x:Name="AttributesTextBox"
Width="340"
Margin="20"
HorizontalAlignment="Left"
PlaceholderText="[{"AttributeName":"generic.attack_damage","Name":"generic.attack_damage","Amount":10,"Operation":0,"UUID":[I;1,2,3,4]}]" />
<Button
Width="340"
Margin="20"
Content="Generate Command"
Style="{StaticResource AccentButtonStyle}" />
<TextBlock
Margin="20"
Style="{StaticResource SubtitleTextBlockStyle}"
Text="Generated Command:" />
<TextBox
x:Name="GeneratedCommandTextBox"
Width="340"
Margin="20"
HorizontalAlignment="Left"
IsReadOnly="True"
TextWrapping="Wrap" />
</StackPanel>
</StackPanel>
</Grid>
</Page>