Skip to content

Commit 1979ae2

Browse files
authored
Merge pull request #22 from TheRealDjmr/Patch7
Patch7
2 parents 18d9e2d + 25baa79 commit 1979ae2

File tree

8 files changed

+7664
-4517
lines changed

8 files changed

+7664
-4517
lines changed
Binary file not shown.
Binary file not shown.

ImprovedUI/Public/Game/GUI/Library/CharacterSheetTemplates.xaml

-1,213
This file was deleted.

ImprovedUI/Public/Game/GUI/Library/DataTemplates.xaml

+503-518
Large diffs are not rendered by default.

ImprovedUI/Public/Game/GUI/Library/Tooltips.xaml

+6,879-2,599
Large diffs are not rendered by default.

ImprovedUI/Public/Game/GUI/StateMachine.xaml

+159-41
Large diffs are not rendered by default.

ImprovedUI/Public/Game/GUI/Widgets/CharacterCreation.xaml

+103-135
Large diffs are not rendered by default.

ImprovedUI/Public/Game/GUI/Widgets/Dialogue.xaml

+20-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5-
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
5+
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
66
xmlns:ls="clr-namespace:ls;assembly=SharedGUI"
77
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
88
xmlns:noesis="clr-namespace:NoesisGUIExtensions;assembly=Noesis.GUI.Extensions"
@@ -15,7 +15,7 @@
1515
<ResourceDictionary>
1616
<ResourceDictionary.MergedDictionaries>
1717
<ResourceDictionary Source="../Library/DialogueTemplates.xaml"/>
18-
<!-- MOD START -->
18+
<!-- MOD START -->
1919
<ResourceDictionary Source="../Library/ImprovedUITemplates.xaml"/>
2020
<!-- MOD END -->
2121
</ResourceDictionary.MergedDictionaries>
@@ -38,7 +38,7 @@
3838

3939
<Style x:Key="Dialogue.ContinueBinding" TargetType="ls:LSInputBinding">
4040
<Setter Property="PlayerId" Value="{Binding DataContext.CurrentPlayer.PlayerId, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" />
41-
<Setter Property="Command" Value="{Binding SelectorEnterCommand.ActionCommand}" />
41+
<Setter Property="Command" Value="{Binding SelectorSkipCommand.ActionCommand}" />
4242
<Setter Property="CommandParameter" Value="{Binding DataContext.CurrentPlayer.PlayerId, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" />
4343
<Setter Property="SoundID" Value="UI_Input_Dialogue_Continue"/>
4444
</Style>
@@ -56,7 +56,7 @@
5656
</ResourceDictionary>
5757
</ls:UIWidget.Resources>
5858

59-
<Grid DataContext="{Binding CurrentPlayer.SelectedCharacter.ActiveDialogue}" d:DataContext="{d:DesignInstance {x:Type ls:Dialogue}, IsDesignTimeCreatable=False}">
59+
<Grid DataContext="{Binding CurrentPlayer.SelectedCharacter.ActiveDialogue}">
6060
<ContentControl Template="{DynamicResource PollNotification}" VerticalAlignment="Top" HorizontalAlignment="Center">
6161
<ContentControl.Style>
6262
<Style TargetType="ContentControl" BasedOn="{StaticResource {x:Type ContentControl}}">
@@ -76,7 +76,7 @@
7676

7777
<ls:LSInputBinding PlayerId="{Binding DataContext.CurrentPlayer.PlayerId, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" BoundEvent="UIUp" Command="{Binding SelectorUpCommand.ActionCommand}" />
7878
<ls:LSInputBinding PlayerId="{Binding DataContext.CurrentPlayer.PlayerId, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" BoundEvent="UIDown" Command="{Binding SelectorDownCommand.ActionCommand}" />
79-
<ls:LSInputBinding BoundEvent="UIEndTurn" Style="{StaticResource Dialogue.ContinueBinding}" />
79+
<ls:LSInputBinding BoundEvent="UISkipDialog" Style="{StaticResource Dialogue.ContinueBinding}" />
8080

8181
<!-- this is an alternative to allow pressing "1" to on continue nodes -->
8282
<ls:LSInputBinding BoundEvent="UISelectSlot1" Style="{StaticResource Dialogue.ContinueBinding}" IsEnabled="{Binding ShowAnswers, Converter={StaticResource InvertBoolConverter}, Mode=OneWay}" />
@@ -168,14 +168,14 @@
168168
</ContentControl>
169169
<!--#endregion-->
170170
<StackPanel Orientation="Horizontal">
171-
<ls:LSButton x:Name="btnMenu" Style="{StaticResource GameMenuButtonStyle}" Command="{Binding DataContext.CustomEvent, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" CommandParameter="ToggleGameMenu" Content="{Binding ShortShortcut}" SoundID="UI_HUD_EscapeMenu_Open"
171+
<ls:LSButton x:Name="btnMenu" Style="{StaticResource GameMenuButtonStyle}" Command="{Binding DataContext.CustomEvent, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" CommandParameter="ToggleGameMenu" Content="{Binding Shortcut}" SoundID="UI_HUD_EscapeMenu_Open"
172172
DataContext="{Binding DataContext.CurrentPlayer.UIData.InputEvents, Converter={StaticResource FindInputEventConverter}, ConverterParameter='Menu', RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}" ToolTipService.Placement="Center" ToolTipService.VerticalOffset="-88">
173173
<ls:LSButton.ToolTip>
174174
<ls:LSTooltip Content="{Binding Source='hb9a8dd57g134fg425fg9da0g1dc579af0c60',Converter={StaticResource TranslatedStringConverter}, ConverterParameter='Loca'}"/>
175175
</ls:LSButton.ToolTip>
176176
</ls:LSButton>
177177

178-
<ls:LSToggleButton x:Name="btnToggleCharacters" ToolTipService.Placement="Center" ToolTipService.VerticalOffset="-88" HorizontalAlignment="Left" Style="{StaticResource Dialogue.ExpandCharactersButtonStyle}" Visibility="{Binding CurrentPlayer.AssignedCharacters.Count, Converter={StaticResource CountToVisibleConverter}, ConverterParameter={StaticResource ShowCharacterSelectionCount}}" SoundID="UI_HUD_Dialogue_ExpandCharacters">
178+
<ls:LSToggleButton x:Name="btnToggleCharacters" ToolTipService.Placement="Center" ToolTipService.VerticalOffset="-88" HorizontalAlignment="Left" Style="{StaticResource Dialogue.ExpandCharactersButtonStyle}" Visibility="{Binding CurrentPlayer.AssignedCharacters.Count, Converter={StaticResource CountToVisibilityConverter}, ConverterParameter={StaticResource ShowCharacterSelectionCount}}" SoundID="UI_HUD_Dialogue_ExpandCharacters">
179179
<ls:LSToggleButton.ToolTip>
180180
<ls:LSTooltip Content="{Binding Source='h455c1b64g1c6dg4ac4ga9aegb3f0d761858a',Converter={StaticResource TranslatedStringConverter}}"/>
181181
</ls:LSToggleButton.ToolTip>
@@ -196,7 +196,7 @@
196196
<ls:LSTooltip Content="{Binding Source='he9e4a39fg8a5dg4ac5gacffgaea214260c69',Converter={StaticResource TranslatedStringConverter}}"/>
197197
</ls:LSButton.ToolTip>
198198
</ls:LSButton>
199-
<!-- MOD START - Adds picture button -->
199+
<!-- MOD START - Adds picture button -->
200200
<ls:LSButton x:Name="PictureModeBtn" ToolTipService.Placement="Center" ToolTipService.VerticalOffset="-88" Style="{StaticResource PictureModeButtonStyle}"
201201
Command="{Binding Path=DataContext.CustomEvent, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ls:UIWidget}}}"
202202
CommandParameter="OpenPictureMode">
@@ -209,12 +209,21 @@
209209
</StackPanel>
210210

211211
<!-- MOD START - Remove early access text from dialogues
212-
<TextBlock VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="{StaticResource GiganticFontSize}" Opacity="0.7">
212+
<TextBlock VerticalAlignment="Top" HorizontalAlignment="Right" FontSize="{StaticResource GiganticFontSize}" Opacity="0.7">
213213
<Run Text="{Binding Source='h8be1f0ddgdfa7g4812ga2b5g04854b2a1a65', Converter={StaticResource TranslatedStringConverter}, ConverterParameter='ToUpper'}"/>
214214
<Run Text=" - "/>
215215
<Run Text="{Binding DataContext.Data.VersionString, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ls:UIWidget}}}"/>
216216
</TextBlock>
217-
MOD END -->
218-
217+
MOD END -->
218+
219219
</Grid>
220+
<b:Interaction.Triggers>
221+
<b:DataTrigger Binding="{Binding CurrentPlayer.SelectedCharacter.ActiveDialogue}" Value="{x:Null}">
222+
<b:InvokeCommandAction Command="{Binding Path=DataContext.CustomEvent, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ls:UIWidget}}}" CommandParameter="DialogueHide"/>
223+
</b:DataTrigger>
224+
225+
<b:EventTrigger EventName="WidgetClosing">
226+
<b:InvokeCommandAction Command="{Binding DataContext.RecheckReward, RelativeSource={RelativeSource AncestorType={x:Type ls:UIWidget}}}"/>
227+
</b:EventTrigger>
228+
</b:Interaction.Triggers>
220229
</ls:UIWidget>

0 commit comments

Comments
 (0)