modules.gui.textEditor#
- class modules.gui.textEditor.TextEditor(*args: Any, **kwargs: Any)#
Bases:
ContextLogic related to rendering the Hierarchy window
- __init__(context: EmberEngine)#
- fix_tabs() None#
“Hacky but fine for now
This will replace all tabs ‘ ‘ with 4 spaces, not just the freshly added tab
- get_current_file() None#
“Returns Path of current file, None if no file selected
- open_file(path: Path) None#
Opens a file and make its content the current text of the text editor
- render() None#
handles ImGuiColorTextEdit rendering and logic
- reset() None#
Completely clears the text editor and resets its state.
- save() None#