mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 20:06:49 +01:00
Limit property default value in the editor's docs, to fix formatting for properties that return lots of data by default (Like Entity's sresources).
This commit is contained in:
parent
c1ebd9905a
commit
2c1eb4182b
@ -583,7 +583,16 @@ void EditorHelp::_update_doc() {
|
|||||||
class_desc->pop();
|
class_desc->pop();
|
||||||
|
|
||||||
class_desc->push_color(value_color);
|
class_desc->push_color(value_color);
|
||||||
_add_text(_fix_constant(cd.properties[i].default_value));
|
|
||||||
|
String default_text = _fix_constant(cd.properties[i].default_value);
|
||||||
|
|
||||||
|
//limit length to a reasonable value, as too much text breaks formatting.
|
||||||
|
if (default_text.size() > 30) {
|
||||||
|
default_text.resize(30);
|
||||||
|
default_text += "... ";
|
||||||
|
}
|
||||||
|
|
||||||
|
_add_text(default_text);
|
||||||
class_desc->pop();
|
class_desc->pop();
|
||||||
|
|
||||||
class_desc->push_color(symbol_color);
|
class_desc->push_color(symbol_color);
|
||||||
|
Loading…
Reference in New Issue
Block a user