mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-14 11:53:55 +00:00
General Housekeeping
This commit is contained in:
@@ -80,13 +80,13 @@ namespace qController
|
||||
|
||||
connectLabel.HorizontalOptions = LayoutOptions.CenterAndExpand;
|
||||
connectLabel.VerticalOptions = LayoutOptions.CenterAndExpand;
|
||||
connectLabel.Text = "\uF1EB";
|
||||
connectLabel.Text = QIcon.WIFI;
|
||||
connectLabel.FontSize = 40;
|
||||
connectLabel.TextColor = Color.LimeGreen;
|
||||
|
||||
deleteLabel.HorizontalOptions = LayoutOptions.CenterAndExpand;
|
||||
deleteLabel.VerticalOptions = LayoutOptions.CenterAndExpand;
|
||||
deleteLabel.Text = "\uE802";
|
||||
deleteLabel.Text = QIcon.TRASH_EMPTY;
|
||||
deleteLabel.FontSize = 40;
|
||||
deleteLabel.TextColor = Color.Red;
|
||||
|
||||
@@ -105,6 +105,7 @@ namespace qController
|
||||
|
||||
void Connect(object sender, EventArgs e)
|
||||
{
|
||||
App.rootPage.MenuPage.ChangeToControl();
|
||||
App.NavigationPage.Navigation.PushAsync(new ControlPage(nameLabel.Text,addressLabel.Text));
|
||||
|
||||
Console.WriteLine("Connect To " + nameLabel.Text + " Pressed");
|
||||
|
||||
@@ -66,14 +66,14 @@ namespace qController
|
||||
};
|
||||
|
||||
number = new Label {
|
||||
Text = "N/A",
|
||||
Text = "",
|
||||
FontAttributes = FontAttributes.Bold,
|
||||
FontSize = 30,
|
||||
Margin = new Thickness(5)
|
||||
};
|
||||
|
||||
name = new Label {
|
||||
Text = "N/A",
|
||||
Text = "Loading Workspace....",
|
||||
FontAttributes = FontAttributes.Bold,
|
||||
HorizontalTextAlignment = TextAlignment.Center,
|
||||
FontSize = 20,
|
||||
@@ -81,7 +81,7 @@ namespace qController
|
||||
};
|
||||
|
||||
type = new Label {
|
||||
Text = "",
|
||||
Text = QIcon.SPIN3,
|
||||
FontFamily = App.QFont,
|
||||
VerticalTextAlignment = TextAlignment.Center,
|
||||
HorizontalTextAlignment = TextAlignment.End,
|
||||
@@ -89,14 +89,14 @@ namespace qController
|
||||
FontSize = 27
|
||||
};
|
||||
|
||||
notes = new Label { Text = "Viewing Notes Currently Unavailable" };
|
||||
notes = new Label { Text = "Loading Cue Lists and Playhead Position" };
|
||||
notes.HorizontalTextAlignment = TextAlignment.Center;
|
||||
notes.Margin = new Thickness(0, 0, 0, 10);
|
||||
|
||||
topGrid.Children.Add(number, 0, 0);
|
||||
topGrid.Children.Add(type, 4, 0);
|
||||
Grid.SetColumnSpan(number, 2);
|
||||
Grid.SetColumnSpan(type, 3);
|
||||
Grid.SetColumnSpan(number, 3);
|
||||
Grid.SetColumnSpan(type, 1);
|
||||
|
||||
bottomGrid.Children.Add(name, 0, 0);
|
||||
bottomGrid.Children.Add(notes, 0, 1);
|
||||
|
||||
@@ -7,22 +7,25 @@ namespace qController
|
||||
{
|
||||
public class QSelectedCueOptionsCell : Frame
|
||||
{
|
||||
void AudioLevelsUpdated(object source, AudioLevelArgs args)
|
||||
void OnCueInfoUpdated(object source, CueEventArgs args)
|
||||
{
|
||||
Device.BeginInvokeOnMainThread(() => {
|
||||
activeCue = args.cue_id;
|
||||
levels = args.levels;
|
||||
if (mainSlider != null)
|
||||
activeCue = args.Cue.uniqueID;
|
||||
if(args.Cue.levels != null)
|
||||
{
|
||||
mainSlider.Value = levels[0];
|
||||
}
|
||||
if (leftSlider != null)
|
||||
{
|
||||
leftSlider.Value = levels[1];
|
||||
}
|
||||
if (rightSlider != null)
|
||||
{
|
||||
rightSlider.Value = levels[2];
|
||||
levels = args.Cue.levels[0];
|
||||
if (mainSlider != null)
|
||||
{
|
||||
mainSlider.Value = levels[0];
|
||||
}
|
||||
if (leftSlider != null)
|
||||
{
|
||||
leftSlider.Value = levels[1];
|
||||
}
|
||||
if (rightSlider != null)
|
||||
{
|
||||
rightSlider.Value = levels[2];
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -34,7 +37,7 @@ namespace qController
|
||||
Slider rightSlider;
|
||||
public QSelectedCueOptionsCell(QController qController)
|
||||
{
|
||||
qController.qClient.qParser.AudioLevelsUpdated += AudioLevelsUpdated;
|
||||
qController.qClient.qParser.CueInfoUpdated += OnCueInfoUpdated;
|
||||
Padding = new Thickness(5);
|
||||
CornerRadius = 20;
|
||||
BackgroundColor = Color.FromHex("D8D8D8");
|
||||
|
||||
Reference in New Issue
Block a user