From 615ffb350702976983a6b5d1df0847d07b99e121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 25 Jun 2019 12:57:35 +0200 Subject: [PATCH] doctool: Fix writing theme_item descriptions We already had support for parsing and saving theme_item descriptions in DocData, and displaying it in the editor, but doctool would drop the changes as it was not writing them back to the XML. Part of #29868. --- doc/classes/TextEdit.xml | 14 ++++++++++++++ editor/doc/doc_data.cpp | 1 + 2 files changed, 15 insertions(+) diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml index e818d753d8c..8c87a4f2e76 100644 --- a/doc/classes/TextEdit.xml +++ b/doc/classes/TextEdit.xml @@ -521,12 +521,15 @@ + Sets the background [Color] of this [TextEdit]. [member syntax_highlighting] has to be enabled. + Sets the [Color] of the bookmark marker. [member syntax_highlighting] has to be enabled. + Sets the [Color] of the breakpoints. [member breakpoint_gutter] has to be enabled. @@ -553,6 +556,7 @@ + Sets the [Color] of the breakpoints. [member breakpoint_gutter] has to be enabled. @@ -563,38 +567,48 @@ + Sets the default [Font]. + Sets the font [Color]. + Sets the [Color] of the line numbers. [member show_line_numbers] has to be enabled. + Sets the spacing between the lines. + Sets the [Color] of marked text. + Sets the [StyleBox] of this [TextEdit]. + Sets the [StyleBox] of this [TextEdit] when [member readonly] is enabled. + Sets the highlight [Color] of text selections. + Sets a custom [Texture] for tab text characters. + Sets the highlight [Color] of multiple occurrences. [member highlight_all_occurrences] has to be enabled. diff --git a/editor/doc/doc_data.cpp b/editor/doc/doc_data.cpp index 7d2159d3659..041f81d0638 100644 --- a/editor/doc/doc_data.cpp +++ b/editor/doc/doc_data.cpp @@ -1126,6 +1126,7 @@ Error DocData::save_classes(const String &p_default_path, const Map"); + _write_string(f, 3, p.description.strip_edges().xml_escape()); _write_string(f, 2, ""); } _write_string(f, 1, "");