75 lines
3.6 KiB
XML
75 lines
3.6 KiB
XML
<?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="Saved" Clicked="OnSaveClicked" IsEnabled="False" />
|
||
<Button Text="+" WidthRequest="44" Clicked="OnZoomInClicked" />
|
||
<Button Text="−" WidthRequest="44" Clicked="OnZoomOutClicked" />
|
||
<Button Text="Reset View" Clicked="OnResetViewClicked" />
|
||
<Button x:Name="PanModeButton" Text="Pan: Off" Clicked="OnPanModeClicked" />
|
||
<SearchBar x:Name="SearchControl"
|
||
Placeholder="Search systems..."
|
||
WidthRequest="220"
|
||
TextChanged="OnSearchTextChanged"
|
||
SearchButtonPressed="OnSearchButtonPressed" />
|
||
<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="Single"
|
||
SelectionChanged="OnConnectionSelectionChanged">
|
||
<CollectionView.ItemTemplate>
|
||
<DataTemplate>
|
||
<Label Text="{Binding}"
|
||
Padding="4,4"
|
||
TextColor="#4a90d9"
|
||
TextDecorations="Underline" />
|
||
</DataTemplate>
|
||
</CollectionView.ItemTemplate>
|
||
</CollectionView>
|
||
</VerticalStackLayout>
|
||
</ScrollView>
|
||
</Grid>
|
||
</ContentPage>
|