Skip to content

Commit

Permalink
Added support to display send tasks in the general output so they can…
Browse files Browse the repository at this point in the history
… be ordered.
  • Loading branch information
vchelaru committed Feb 5, 2024
1 parent cd64fdf commit afa3fa2
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ internal set

public static CommandSender Self { get; private set; }


#endregion

static CommandSender()
Expand Down Expand Up @@ -113,6 +114,7 @@ private CommandSender() { }
if(CompilerViewModel.IsShowParametersChecked && CompilerViewModel.CommandParameterCheckboxVisibility == System.Windows.Visibility.Visible)
{
PrintOutput(text);
GlueCommands.Self.PrintOutput(text);
PrintOutput("------------------------------------------");
}
else
Expand All @@ -124,6 +126,7 @@ private CommandSender() { }
prefix = text.Substring(0, indexOfColon);
}
PrintOutput(prefix);
GlueCommands.Self.PrintOutput(prefix);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,10 @@ public async void ShowState(string stateName, string categoryName)
await _refreshManager.PushGlueSelectionToGame(categoryName, stateName);
}


public void SetIsLoggingSentCommands(bool isLoggingSentCommands)
{
CompilerViewModel.IsPrintEditorToGameCheckboxChecked = isLoggingSentCommands;
}


private void HandleGrabbedTreeNodeChanged(ITreeNode treeNode, TreeNodeAction action)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<CheckBox IsChecked="{Binding LogQueueChanges}" VerticalContentAlignment="Center">Log Queueing - if unchecked only processing is logged</CheckBox>
<CheckBox IsChecked="{Binding LogPluginCalls}" VerticalContentAlignment="Center">Log Plugin Calls</CheckBox>
<CheckBox IsChecked="{Binding LogFileWatch}" VerticalContentAlignment="Center">Log File Watch</CheckBox>
<CheckBox IsChecked="{Binding LogGameCommunication}" VerticalContentAlignment="Center">Log FRB->Game Commands</CheckBox>

<Label Content="{Binding CurrentTaskText}"></Label>
</StackPanel>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ public bool LogFileWatch
}
}

public bool LogGameCommunication
{
get => Get<bool>();
set
{
if (Set(value))
{
// send this to the game communication plugin:
PluginManager.CallPluginMethod("Glue Compiler", "SetIsLoggingSentCommands", value);
}
}
}

public TaskDisplayerViewModel()
{
TaskManager.Self.TaskAddedOrRemoved += HandleSyncTaskAddedOrRemoved;
Expand Down

0 comments on commit afa3fa2

Please sign in to comment.