We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 436e996 commit 4babf49Copy full SHA for 4babf49
addons/mod_loader/api/log.gd
@@ -403,7 +403,8 @@ static func get_all_entries_as_string(log_entries: Array) -> Array:
403
# =============================================================================
404
405
static func _print_rich(prefix: String, message: String, color: Color, bold := true) -> void:
406
- if ModLoaderStore.has_feature.editor:
+ var in_editor: bool = OS.has_feature("editor") if not ModLoaderStore else ModLoaderStore.has_feature.editor
407
+ if in_editor:
408
var prefix_text := "[b]%s[/b]" % prefix if bold else prefix
409
print_rich("[color=%s]%s[/color]%s" % [
410
color.to_html(false),
0 commit comments