Skip to content

Commit

Permalink
Add Scrollbars to community view
Browse files Browse the repository at this point in the history
This keep the task bar or resizing from keeping the text from being seen.
  • Loading branch information
JohnAFernandez committed Jun 19, 2024
1 parent a866d09 commit df9f782
Showing 1 changed file with 45 additions and 42 deletions.
87 changes: 45 additions & 42 deletions Knossos.NET/Views/CommunityView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,38 @@

<TabControl>
<TabItem Header="Resources">
<StackPanel Margin="40,20,20,10">
<Button Command="{Binding JoinHLPDiscord}" ToolTip.Tip="Hard Light Productions Discord - Permanent Invitation: https://discord.gg/cyhMBhMHzK" Classes="CommunityLink">
<WrapPanel Margin="10,5,15,5">
<Image Margin="0,3,0,0" Height="64" Width="64" Source="/Assets/general/discordicon.png"/>
<TextBlock FontSize="18" Margin="30,5,0,0" Width="800" TextWrapping="Wrap">Join our discord! With more than two thousand members and the collective wisdom of the community's modders, mission designers and scripters, you'll have everything you need to bring your FSO vision to life!</TextBlock>
</WrapPanel>
</Button>
<Button Command="{Binding VisitHLPWiki}" ToolTip.Tip="Hard-Light Productions wiki https://wiki.hard-light.net/index.php/Main_Page" Margin="0,20,0,0" Classes="CommunityLink">
<WrapPanel Margin="10,5,15,10">
<Image Height="64" Width="64" Source="/Assets/knossos-icon.ico"/>
<TextBlock FontSize="18" Margin="30,15,0,0" Width="800" TextWrapping="Wrap">Our wiki has documentation for modding the game, additional resources for creating your own missions, and details about the Freespace canon.</TextBlock>
</WrapPanel>
</Button>
<Button Command="{Binding OpenFredTutorial}" ToolTip.Tip="Fred Tutorial Selection https://wiki.hard-light.net/index.php/FRED_tutorials" Margin="0,15,0,0" Classes="CommunityLink">
<WrapPanel Margin="10,10,15,10">
<Image Height="64" Width="64" Source="/Assets/general/fred.png"/>
<TextBlock FontSize="18" Margin="30,15,0,0" Width="800" TextWrapping="Wrap">Learn how to make your own custom missions for FSO with this tutorial for our mission editor, called FRED.</TextBlock>
</WrapPanel>
</Button>
<Button Command="{Binding VisitScriptingRepo}" ToolTip.Tip="Scripting Repository https://github.com/FSO-Scripters/fso-scripts" Margin="0,15,0,0" Classes="CommunityLink">
<WrapPanel Margin="10,10,15,10">
<Image Height="64" Width="64" Source="/Assets/general/fsolua.png"/>
<TextBlock FontSize="18" Margin="30,15,0,0" Width="800" TextWrapping="Wrap">For advanced users, you can download custom scripts to use in your mods and missions that enable new features.</TextBlock>
</WrapPanel>
</Button>

</StackPanel>
<ScrollViewer HorizontalScrollBarVisibility="Visible">
<StackPanel Margin="40,20,20,10">
<Button Width="900" Command="{Binding JoinHLPDiscord}" ToolTip.Tip="Hard Light Productions Discord - Permanent Invitation: https://discord.gg/cyhMBhMHzK" Classes="CommunityLink">
<WrapPanel Margin="10,5,15,5">
<Image Margin="0,3,0,0" Height="64" Width="64" Source="/Assets/general/discordicon.png"/>
<TextBlock FontSize="18" Margin="30,5,0,0" TextWrapping="Wrap">Join our discord! With more than two thousand members and the collective wisdom of the community's modders, mission designers and scripters, you'll have everything you need to bring your FSO vision to life!</TextBlock>
</WrapPanel>
</Button>
<Button Width="900" Command="{Binding VisitHLPWiki}" ToolTip.Tip="Hard-Light Productions wiki https://wiki.hard-light.net/index.php/Main_Page" Margin="0,20,0,0" Classes="CommunityLink">
<WrapPanel Margin="10,5,15,10">
<Image Height="64" Width="64" Source="/Assets/knossos-icon.ico"/>
<TextBlock FontSize="18" Margin="30,15,0,0" TextWrapping="Wrap">Our wiki has documentation for modding the game, additional resources for creating your own missions, and details about the Freespace canon.</TextBlock>
</WrapPanel>
</Button>
<Button Width="900" Command="{Binding OpenFredTutorial}" ToolTip.Tip="Fred Tutorial Selection https://wiki.hard-light.net/index.php/FRED_tutorials" Margin="0,15,0,0" Classes="CommunityLink">
<WrapPanel Margin="10,10,15,10">
<Image Height="64" Width="64" Source="/Assets/general/fred.png"/>
<TextBlock FontSize="18" Margin="30,15,0,0" TextWrapping="Wrap">Learn how to make your own custom missions for FSO with this tutorial for our mission editor, called FRED.</TextBlock>
</WrapPanel>
</Button>
<Button Width="900" Command="{Binding VisitScriptingRepo}" ToolTip.Tip="Scripting Repository https://github.com/FSO-Scripters/fso-scripts" Margin="0,15,0,0" Classes="CommunityLink">
<WrapPanel Margin="10,10,15,10">
<Image Height="64" Width="64" Source="/Assets/general/fsolua.png"/>
<TextBlock FontSize="18" Margin="30,15,0,0" TextWrapping="Wrap">For advanced users, you can download custom scripts to use in your mods and missions that enable new features.</TextBlock>
</WrapPanel>
</Button>
</StackPanel>
</ScrollViewer>
</TabItem>

<TabItem Header="FAQ">
<ScrollViewer>
<ScrollViewer HorizontalScrollBarVisibility="Visible">
<StackPanel Margin="30,0,20,10">
<ItemsControl ItemsSource="{Binding Categories}">
<ItemsControl.ItemTemplate>
Expand Down Expand Up @@ -80,20 +81,22 @@
</TabItem>

<TabItem Header="Bug Reporting">
<StackPanel Margin="40,20,20,10">
<Button Command="{Binding VisitFSOIssues}" ToolTip.Tip="https://github.com/scp-fs2open/fs2open.github.com/issues" Margin="20,15,0,0" Classes="CommunityLink">
<WrapPanel Margin="10,10,15,10">
<Image Height="64" Width="64" Source="/Assets/general/github.png"/>
<TextBlock FontSize="18" Margin="30,15,0,0" Width="350" TextWrapping="Wrap">Freespace 2 Open Github Issues</TextBlock>
</WrapPanel>
</Button>
<Button Command="{Binding VisitKnossosNETIssues}" ToolTip.Tip="https://github.com/KnossosNET/Knossos.NET/issues" Margin="20,15,0,0" Classes="CommunityLink">
<WrapPanel Margin="10,10,15,10">
<Image Height="64" Width="64" Source="/Assets/general/github.png"/>
<TextBlock FontSize="18" Margin="30,15,0,0" Width="350" TextWrapping="Wrap">KnossosNET Github Issues</TextBlock>
</WrapPanel>
</Button>
</StackPanel>
<ScrollViewer HorizontalScrollBarVisibility="Visible">
<StackPanel Margin="40,20,20,10">
<Button Command="{Binding VisitFSOIssues}" ToolTip.Tip="https://github.com/scp-fs2open/fs2open.github.com/issues" Margin="20,15,0,0" Classes="CommunityLink">
<WrapPanel Margin="10,10,15,10">
<Image Height="64" Width="64" Source="/Assets/general/github.png"/>
<TextBlock FontSize="18" Margin="30,15,0,0" Width="350" TextWrapping="Wrap">Freespace 2 Open Github Issues</TextBlock>
</WrapPanel>
</Button>
<Button Command="{Binding VisitKnossosNETIssues}" ToolTip.Tip="https://github.com/KnossosNET/Knossos.NET/issues" Margin="20,15,0,0" Classes="CommunityLink">
<WrapPanel Margin="10,10,15,10">
<Image Height="64" Width="64" Source="/Assets/general/github.png"/>
<TextBlock FontSize="18" Margin="30,15,0,0" Width="350" TextWrapping="Wrap">KnossosNET Github Issues</TextBlock>
</WrapPanel>
</Button>
</StackPanel>
</ScrollViewer>
</TabItem>
</TabControl>

Expand Down

0 comments on commit df9f782

Please sign in to comment.