Io/zerospace converter #1
@@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="ZeroSpace.MapEditor.Views.MapEditorPage"
|
||||
Title="ZeroSpace Map Editor">
|
||||
<Grid RowDefinitions="Auto,*" ColumnDefinitions="*,340">
|
||||
<HorizontalStackLayout Grid.Row="0" Grid.ColumnSpan="2" Padding="8" Spacing="8">
|
||||
<Button Text="Open Folder" Clicked="OnOpenFolderClicked" />
|
||||
<Button x:Name="SaveButton" Text="Save" Clicked="OnSaveClicked" IsEnabled="False" />
|
||||
<Button Text="+" WidthRequest="44" Clicked="OnZoomInClicked" />
|
||||
<Button Text="−" WidthRequest="44" Clicked="OnZoomOutClicked" />
|
||||
<Button Text="Reset View" Clicked="OnResetViewClicked" />
|
||||
<Label x:Name="StatusLabel"
|
||||
Text="No folder loaded."
|
||||
VerticalOptions="Center"
|
||||
Margin="8,0,0,0" />
|
||||
</HorizontalStackLayout>
|
||||
|
||||
<GraphicsView Grid.Row="1" Grid.Column="0" x:Name="MapView">
|
||||
<GraphicsView.GestureRecognizers>
|
||||
<PointerGestureRecognizer PointerPressed="OnPointerPressed"
|
||||
PointerMoved="OnPointerMoved"
|
||||
PointerReleased="OnPointerReleased" />
|
||||
</GraphicsView.GestureRecognizers>
|
||||
</GraphicsView>
|
||||
|
||||
<ScrollView Grid.Row="1" Grid.Column="1" x:Name="InspectorScroll" IsVisible="False">
|
||||
<VerticalStackLayout Padding="12" Spacing="6">
|
||||
<Label Text="Inspector" FontSize="18" FontAttributes="Bold" />
|
||||
|
||||
<Label Text="Name" FontAttributes="Bold" />
|
||||
<Label x:Name="NameLabel" />
|
||||
|
||||
<Label Text="Kind" FontAttributes="Bold" />
|
||||
<Label x:Name="KindLabel" />
|
||||
|
||||
<Label Text="Yields" FontAttributes="Bold" />
|
||||
<Label x:Name="YieldsLabel" />
|
||||
|
||||
<Label Text="Occupation buff" FontAttributes="Bold" />
|
||||
<Label x:Name="BuffLabel" />
|
||||
|
||||
<Label Text="System mastery" FontAttributes="Bold" />
|
||||
<Label x:Name="MasteryLabel" />
|
||||
|
||||
<Label Text="X" FontAttributes="Bold" />
|
||||
<Entry x:Name="XEntry" Keyboard="Numeric" TextChanged="OnPositionTextChanged" />
|
||||
|
||||
<Label Text="Y" FontAttributes="Bold" />
|
||||
<Entry x:Name="YEntry" Keyboard="Numeric" TextChanged="OnPositionTextChanged" />
|
||||
|
||||
<Label Text="Connected systems" FontAttributes="Bold" />
|
||||
<CollectionView x:Name="ConnectionsView" SelectionMode="None">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Label Text="{Binding}" Padding="0,2" />
|
||||
</DataTemplate>
|
||||
</CollectionView.ItemTemplate>
|
||||
</CollectionView>
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
</Grid>
|
||||
</ContentPage>
|
||||
Reference in New Issue
Block a user