Browse Source

fixed terminal

master
jkpete 3 months ago
parent
commit
f6a5ece01b
  1. 6
      Example/ProtocolHelper/Scene/ProtocolHelper.tscn
  2. 26
      Example/ProtocolHelper/Script/ViewProtocolHelperTerminal.cs

6
Example/ProtocolHelper/Scene/ProtocolHelper.tscn

@ -126,9 +126,9 @@ layout_mode = 2
layout_mode = 2 layout_mode = 2
size_flags_vertical = 3 size_flags_vertical = 3
bbcode_enabled = true bbcode_enabled = true
text = "[color=gray]【13:45:55:105】127.0.0.1@6000 has been connected[/color] text = "[color=gray]【13:45:55:105】【TCP】127.0.0.1@6000 has been connected[/color]
[color=green]【13:45:55:265】127.0.0.1@6000:[/color]Request [color=green]【13:45:55:265】【TCP】127.0.0.1@6000:[/color]Request
[color=cyan]【13:45:55:358】127.0.0.1@6000:[/color][color=yellow]Response[/color]" [color=cyan]【13:45:55:358】【TCP】127.0.0.1@6000:[/color][color=yellow]Response[/color]"
[node name="SettingGroup" type="VSplitContainer" parent="PanelContainer/VSplitContainer"] [node name="SettingGroup" type="VSplitContainer" parent="PanelContainer/VSplitContainer"]
layout_mode = 2 layout_mode = 2

26
Example/ProtocolHelper/Script/ViewProtocolHelperTerminal.cs

@ -1,20 +1,26 @@
using EGFramework;
using Godot; using Godot;
using System; using System;
using System.Collections.Generic;
public partial class ViewProtocolHelperTerminal : RichTextLabel namespace EGFramework.ProtocolHelper
{ {
public override void _Ready() public partial class ViewProtocolHelperTerminal : RichTextLabel
{ {
base._Ready(); public Dictionary<long, ResponseMsg> MessageMappings { set; get; } = new Dictionary<long, ResponseMsg>();
} public override void _Ready()
{
public void ClearArea() }
{
} public void ClearArea()
public void RefreshProtocol() {
{
} }
public void RefreshProtocol()
{
}
}
} }
Loading…
Cancel
Save