Skip to content

Commit 69eec9e

Browse files
committed
Added Ignore Play State and some other stuff
1 parent 4a53203 commit 69eec9e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+417
-246
lines changed
23.5 KB
Binary file not shown.

SyncPlayWPF/SyncPlayWPF/Common/Settings.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,19 @@ private static bool GetBooleanValue(XDocument doc, string section, string attrib
107107
return doc.Element("Config").Element(section).Element(attribute).Value == "True" ? true : false;
108108
}
109109

110+
public static bool GetCurrentConfigBoolValue(string section, string attribute) {
111+
return GetBooleanValue(Common.Shared.CurrentConfig, section, attribute);
112+
}
113+
114+
public static string GetCurrentConfigStringValue(string section, string attribute) {
115+
return GetStringValue(Common.Shared.CurrentConfig, section, attribute);
116+
}
117+
110118
public static void WriteConfigurationToView(Pages.SettingsPage Page) {
111119
XDocument doc = XDocument.Parse(System.IO.File.ReadAllText("SyncPlayConfig.xml"));
112120

113121
Page.ServerAddressField.Text = GetStringValue(doc, "Basics", "Address");
114122
Page.UsernameField.Text = GetStringValue(doc, "Basics", "Username");
115-
//Page.PasswordField.ActualPassword = "BLANKPASSWORDS";
116123
Page.RoomNameField.Text = GetStringValue(doc, "Basics", "RoomName");
117124
Page.PathToMediaPlayer.Text = GetStringValue(doc, "Basics", "PathToMediaPlayer");
118125
Page.PathToVideo.Text = GetStringValue(doc, "Basics", "PathToVideo");

SyncPlayWPF/SyncPlayWPF/Common/Shared.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public class Shared {
2525
public static Common.LogFileDump MasterLogDump;
2626
public static XDocument CurrentConfig;
2727

28+
public static bool IgnorePlayerStateChanges = false;
29+
2830
public static void ThrowException(Exception e) {
2931
MasterOverrideTransition.IsHitTestVisible = true;
3032
var exp_view = new Pages.ApplicationPages.ExceptionView();
171 KB
Binary file not shown.
171 KB
Binary file not shown.
173 KB
Binary file not shown.
75.6 KB
Binary file not shown.

SyncPlayWPF/SyncPlayWPF/MainWindow.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@
7171
Grid.Column="0"
7272
Style="{StaticResource DarkMode_TitleBarText}"
7373
Foreground="{StaticResource DarkMode_ScaleGradient}"
74-
FontWeight="DemiBold">SyncPlay.NET</Label>
74+
FontFamily="Open Sans"
75+
FontWeight="SemiBold">SyncPlay.NET</Label>
7576
<custom:ImageButton
7677
Grid.Column="1"
7778
x:Name="WindowMinimiseButton"

SyncPlayWPF/SyncPlayWPF/Pages/ApplicationPages/NotificationLayer.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<Grid>
1414
<Grid.ColumnDefinitions>
1515
<ColumnDefinition Width="0.65*"/>
16-
<ColumnDefinition Width="0.35*"/>
16+
<ColumnDefinition Width="0.35*" MinWidth="400"/>
1717
</Grid.ColumnDefinitions>
1818
<StackPanel Grid.Column="1" Margin="6" x:Name="NotificationStack">
1919
<!--<custom:ToastNotification

SyncPlayWPF/SyncPlayWPF/Pages/ApplicationPages/NotificationLayer.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ private void NotificationLayer_Loaded(object sender, RoutedEventArgs e) {
2828
Common.Shared.NotificationLayer = this;
2929
}
3030

31-
public void CreateNotification(String title, String message, int dur = 2000) {
31+
public void CreateNotification(String title, String message, int dur = 10000) {
3232

3333

3434

0 commit comments

Comments
 (0)