-
Notifications
You must be signed in to change notification settings - Fork 3
enlarge ui and add suggestions #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
demo/SofiaConsole.csproj.old
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file can be removed if the project works properly.
demo/addons/sofiaconsole/Console.cs
Outdated
|
||
LoadCommands(); | ||
|
||
Print("[SofiaConsole] Version 1.2.0", PrintType.Success); | ||
Space(); | ||
|
||
GD.Print("[SofiaConsole] Done"); | ||
|
||
// _commandInput.TextChanged += _ => UpdateUi(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be removed if unused.
demo/addons/sofiaconsole/Console.cs
Outdated
@@ -65,20 +75,56 @@ public override void _Input(InputEvent @event) | |||
} | |||
|
|||
// Press Up to toggle between previous commands | |||
if (eventKey.Keycode == Key.Up && _commandInput.HasFocus() && _commandHistory.Count > 0) | |||
// TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be removed if unused.
demo/addons/sofiaconsole/Console.cs
Outdated
{ | ||
historyIndex = _commandHistory.Count; | ||
// _commandInput.Text = _suggestions[_currentSuggestionIndex]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be removed if unused.
demo/addons/sofiaconsole/Console.cs
Outdated
|
||
if (_currentSuggestionIndex >= 0 && _suggestions.Count > 0 && _currentSuggestionIndex < _suggestions.Count && _suggestions[_currentSuggestionIndex] == text) | ||
{ | ||
newLabel.AddThemeStyleboxOverride("normal", GD.Load<StyleBoxFlat>("res://addons/sofiaconsole/StyleBox.tres")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably give this asset a proper name, StyleBox does not indicate what it is used for.
@LauraWebdev |
enlarge ui and add suggestions.
edit: add paused when open console.