107 lines
5.7 KiB
XML
107 lines
5.7 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">
|
||
<ScrollView Grid.Row="0" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalScrollBarVisibility="Never">
|
||
<HorizontalStackLayout Padding="8" Spacing="8" VerticalOptions="Center">
|
||
<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" />
|
||
<CheckBox x:Name="BackgroundCheckBox" IsChecked="True" CheckedChanged="OnBackgroundToggled" VerticalOptions="Center" />
|
||
<Label Text="Galaxy map" VerticalOptions="Center" />
|
||
<BoxView WidthRequest="1" HeightRequest="24" Color="#334155" VerticalOptions="Center" Margin="4,0" />
|
||
<Label Text="Faction:" VerticalOptions="Center" FontAttributes="Bold" />
|
||
<Button x:Name="EdenFactionButton" Text="[A] Eden Accord" Clicked="OnEdenFactionClicked" />
|
||
<Button x:Name="KeeperFactionButton" Text="[S] Keeper Council" Clicked="OnKeeperFactionClicked" />
|
||
<Button x:Name="ObsidianFactionButton" Text="[D] Obsidian Order" Clicked="OnObsidianFactionClicked" />
|
||
<Button x:Name="NoneFactionButton" Text="None" Clicked="OnNoneFactionClicked" />
|
||
<Border x:Name="ActiveFactionBadge"
|
||
StrokeShape="RoundRectangle 4"
|
||
StrokeThickness="1"
|
||
Padding="6,2"
|
||
VerticalOptions="Center"
|
||
IsVisible="False">
|
||
<Label x:Name="ActiveFactionLabel"
|
||
FontSize="12"
|
||
FontAttributes="Bold" />
|
||
</Border>
|
||
<BoxView WidthRequest="1" HeightRequest="24" Color="#334155" VerticalOptions="Center" Margin="4,0" />
|
||
<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>
|
||
</ScrollView>
|
||
|
||
<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="Category" FontAttributes="Bold" />
|
||
<Label x:Name="CategoryLabel" />
|
||
|
||
<Label Text="Owner" FontAttributes="Bold" />
|
||
<Border x:Name="OwnerBadge"
|
||
StrokeShape="RoundRectangle 6"
|
||
StrokeThickness="1"
|
||
Padding="8,4"
|
||
HorizontalOptions="Start"
|
||
BackgroundColor="#1e293b"
|
||
Stroke="#334155">
|
||
<Label x:Name="OwnerLabel" Text="—" FontAttributes="Bold" TextColor="#94a3b8" />
|
||
</Border>
|
||
|
||
<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>
|