summaryrefslogtreecommitdiff
path: root/scene/gui/rich_text_label.cpp
AgeCommit message (Collapse)Author
2018-03-24Fix `RichTextLabel` column size growing beyond its calculated `max_width`robfram
When `RichTextLabel` calculated the actual width of columns, it let them grow to sizes greater than its calculated `max_width`. Now this PR ensures no columns grows beyond `max_width`, and the excess width is distributed among the columns which can still grow. It should fix #17731.
2018-03-18Fix bad rendering of BBCode tables in `RichTextLabel`robfram
Text overflowed canvas as tables didn't calculate correctly the width of their columns. They used the whole table width available for each column. Also, the `cell` parameter was wrongly parsed if used with its optional argument (expand ratio). This PR fixs the parsing of `cell` parameter (i.e. `cell=e`) and the distribution of the full table width between columns, but it overrides automatically the `expand` flag if the column is smaller than it could be, to allow a better UX out-of-the-box. It keeps the `expand_ratio` flag to let the user customize how every column grows in relation to the rest. Partially fix #6289.
2018-03-02Fix more regressions in RichTextLabel from PR 15711Bernhard Liebl
2018-03-01Fix regression through fa98637acaab9135568bf0d43a65c9c96b59c32dpoke1024
2018-01-14Fixes wrong vertical font layout in RichTextLabelBernhard Liebl
2018-01-12Bind many more properties to scriptsBojidar Marinov
Notable potentially breaking changes: - PROPERTY_USAGE_NOEDITOR is now PROPERTY_USAGE_STORAGE | PROPERTY_USAGE_NETWORK, without PROPERTY_USAGE_INTERNAL - Some properties were renamed, and sometimes even shadowed by new ones - New getter methods (some virtual) were added
2018-01-05Add missing copyright headers and fix formattingRémi Verschelde
Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
2018-01-04Merge pull request #15317 from poke1024/fix-rtl-underlineRémi Verschelde
RichTextLabel: don't draw underline character-wise
2018-01-04RichTextLabel: don't draw underline on single charactersBernhard Liebl
2018-01-04Fix word wrapping in tables in RichTextLabelBernhard Liebl
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-12-28Double-click word selection for RichTextLabel (i.e. docs)Bernhard Liebl
2017-12-15Fix thin lines in editor gui on hidpi (issue 14691)Bernhard Liebl
2017-12-13Fix crash (and bug) in RichTextLabelpoke1024
2017-12-10Fix crash in RichTextLabel::selection_copy()Bernhard Liebl
2017-12-04Rich Text Label: fixed deselection issueDmitry Koteroff
2017-11-21Native pan and zoom for macOSBernhard Liebl
2017-11-17Adding ability for single meta hoveringWill Nations
2017-11-05Fix selection and clicks on text in tables in RichTextLabelBernhard Liebl
2017-11-02Fixed RichTextLabel::add_newline() #12564Zher Huei Lee
2017-10-22Bind unbound enums, rearrange some by valuePoommetee Ketson
2017-10-15Merge pull request #11407 from toger5/selection_override_colorRémi Verschelde
added option to keep font color on selection + use consistent selection color in help (fixes: #11501)
2017-10-05Add NIL_IS_VARIANT usage to few definitionsRuslan Mustakov
The missing usage flag led to GDNative API descriptions containting arguments with "void" type.
2017-09-28keep font color on selection as defaulttoger5
2017-09-21RichTextLabel: Added get_visible_line_count method.Ferenc Arn
Also exposed get_line_count to GDScript.
2017-09-16Make clickable properly in editor helpvolzhs
fixes #3671
2017-09-04fixed copy on osx + help selection colortoger5
2017-09-02richTextLable implemented stylebox supporttoger5
- also fixed issue with total_chars ignoring first line
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-20ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry
2017-08-13Replace GUI anchor type by a float between 0 and 1Gilles Roudiere
2017-08-10Removes type information from method bindsIgnacio Etcheverry
2017-07-23Add object type hint for docsPoommetee Ketson
2017-07-08Added additional functions to RichTextLabel:TwistedTwigleg
* Added set_text function to RichTextLabel * Added percent_visible attributes and functions to RichTextLabel This should make switching from Label to RichTextLabel easier.
2017-06-24Add statements for script types of RichTextLabelgeequlim
2017-06-07Revert "Fix text warp in color blocks with CJK"Rémi Verschelde
This reverts commit cd778e00dc5362d00d4760c79fc301951f6f9b75. That commit introduced regressions for non-CJK languages are discussed in #8952. Fixes #9078.
2017-06-03InputEvent: Renamed "pos" property to "position"Andreas Haas
Make the naming consistent with other classes.
2017-05-27Fix text warp in color blocks with CJKGeequlim
(cherry picked from commit cd778e00dc5362d00d4760c79fc301951f6f9b75)
2017-05-20Removal of InputEvent as built-in Variant type..Juan Linietsky
this might cause bugs I haven't found yet..
2017-05-07Implemented scrolling factor for smooth trackpad scrollingtoger5
Working platforms platform: OSX, Windows. Support for almost all ui elements, including project list.
2017-04-08Add "Godot Engine contributors" copyright lineRémi Verschelde
2017-03-24Fix typos in source code using codespellRémi Verschelde
From https://github.com/lucasdemarchi/codespell
2017-03-05A Whole New World (clang-format edition)Rémi Verschelde
I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
2017-02-16RichTextLabel add function remove_lineVincent
2017-02-13Rename the _MD macro to D_METHODHein-Pieter van Braam
This new name also makes its purpose a little clearer This is a step towards fixing #56
2017-02-13Remove use of _SCS from ADD_METHODHein-Pieter van Braam
This saves typing and is a step towards fixing #56
2017-01-16Style: Fix statements ending with ';;'Rémi Verschelde
2017-01-13New API for visibility in both CanvasItem and SpatialJuan Linietsky
visible (property) - access set_visible(bool) is_visible() is_visible_in_tree() - true when visible and parents visible show() hide() - for convenience
2017-01-09-All types have editable script now in propertiesJuan Linietsky
-Changed clip to a property in Control which can be set by the user
2017-01-08renamed _input_event for GUI events to _gui_input, so it's more ↵Juan Linietsky
differentiated than generalized _input