summaryrefslogtreecommitdiff
path: root/scene/gui/rich_text_label.cpp
AgeCommit message (Collapse)Author
2018-09-23Add proper strikethrough BBCode to RichTextLabelMichael Alexsander Silva Dias
2018-09-15Rename ScrollBar's drag_slave to drag_nodeRémi Verschelde
2018-09-12Merge pull request #21877 from DualMatrix/richlabelRémi Verschelde
Fixed the remove_line function in richtextlabel. It was totally broken
2018-09-12Make core/ includes absolute, remove subfolders from include pathRémi Verschelde
This allows more consistency in the manner we include core headers, where previously there would be a mix of absolute, relative and include path-dependent includes.
2018-09-08Fixed the remove_line function in richtextlabel. It was totally brokenDualMatrix
Fixed the remove_line function in richtextlabel. It was totally broken This fixes #21037
2018-08-24Make some debug prints verbose-only, remove othersRémi Verschelde
2018-07-26Reduce unnecessary COW on Vector by make writing explicitHein-Pieter van Braam
This commit makes operator[] on Vector const and adds a write proxy to it. From now on writes to Vectors need to happen through the .write proxy. So for instance: Vector<int> vec; vec.push_back(10); std::cout << vec[0] << std::endl; vec.write[0] = 20; Failing to use the .write proxy will cause a compilation error. In addition COWable datatypes can now embed a CowData pointer to their data. This means that String, CharString, and VMap no longer use or derive from Vector. _ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug builds. This is a lot faster for Vector in the editor and while running tests. The reason why this difference used to exist is because force-inlined methods used to give a bad debugging experience. After extensive testing with modern compilers this is no longer the case.
2018-07-20-Fix tooltips in inspector, now they show as rich text.Juan Linietsky
2018-07-01Fix underline_meta not working in RichTextLabelWill Nations
2018-05-08Change from "search dialog" to "search bar" on help screenGuilherme Silva
2018-05-08Perfect FreeType-based outlines for DynamicFontsRuslan Mustakov
- Implement outlines based on FreeType Stroker API. This allows artifact-free results, similar to what you will see in Web or any text editing tools. Outline is a part of DynamicFont rather than Label, because outlines have to be baked into the font's atlas. Font has a default outline_color and a Label can specify font_outline_modulator that will be multiplied with the Font's color to get the final result. - draw_char now has to be called twice to fully render a text - first with p_outline == true for each character and then with p_outline == false for each character. - Number of draw-calls is reduced from 5 to 2 per outlined character. - Overall cleanup of DynamicFont code, extracted duplicated code pieces into separate methods. - The change is backward-compatible - Labels still have outline properties that work exactly as they worked before. Closes #16279.
2018-05-07Merge pull request #18122 from olivergs/wip/rtl-content-heightMax Hilbrunner
RichTextLabel, doc: Added new method to get total content height
2018-05-05Merge pull request #18146 from mjtorn/gh-mjtorn-rtl-shadowMax Hilbrunner
Implement font shadows for RichTextLabel
2018-04-21fix clang6 assignment errorthfrwn
2018-04-12Implement font shadows for RichTextLabelMarkus Törnqvist
2018-04-11RichTextLabel, doc: Added new method to get total content heightOliver Gutierrez
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.