summaryrefslogtreecommitdiff
path: root/editor/editor_help.cpp
AgeCommit message (Collapse)Author
2022-06-29Fix `help_title_font_size` editor property to correctly apply to docsYuri Rubinsky
2022-06-01Merge pull request #60984 from fire-forge/doc-iconRémi Verschelde
Show class icon in the documentation page header
2022-05-30Fix help links with threaded RTL.bruvzg
2022-05-25Add type icon to documentation page headerFireForge
2022-05-21Fix class_desc_deselect handling of @GlobalScope.X linksSnailRhymer
Fix bug where links to class enums and class constants of the form @GlobalScope.X were broken. For an enum or constant with name "example_name", links of both forms @GlobalScope.example_name and example_name will now be correctly handled, including where example_name contains "." (e.g. Variant.Type).
2022-05-20Add a new HashSet templatereduz
* Intended to replace RBSet in most cases. * Optimized for iteration speed
2022-05-19[RTL] Add support for shaping in background thread.bruvzg
2022-05-16Replace most uses of Map by HashMapreduz
* Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
2022-05-12Fix _class_desc_select to handle Variant.TypeSnailRhymer
Change the order of checks in _class_desc_select to first try checking current page and GlobalScope before resorting to slicing either side of ".". Bug was caused by assumption that no enums or constants in @GlobalScope would contain ".". This is still assumed elsewhere in the file, so bugs may persist. Format some comments.
2022-04-23Rename theme properties to include underscoresFireForge
- check_vadjust -> check_v_adjust - close_h_ofs -> close_h_offset - close_v_ofs -> close_v_offset - commentfocus -> comment_focus - hseparation -> h_separation - ofs -> offset - selectedframe -> selected_frame - state_machine_selectedframe -> state_machine_selected_frame - table_hseparation -> table_h_separation - table_vseparation -> table_v_separation - vseparation -> v_separation
2022-03-22[Help] Add simulated slanted font support to the editor help.bruvzg
2022-03-12Initialize bools in the headers in editorAaron Franke
2022-03-03Use vformat() instead of string concatenation inside TTR()Haoyu Qiu
2022-02-16Port existing _notification code to use switch statements (part 1/3)jmb462
2022-02-12Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker
2022-02-08Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde
This reverts commit a988fad9a092053434545c32afae91ccbdfbe792. As discussed in #57725 and clarified in #57788, `SNAME` is not meant to be used everywhere but only in critical code paths. For theme methods specifically, it was by design that only getters use `SNAME` and not setters.
2022-02-06Add missing SNAME macro optimization to all theme methods calljmb462
2022-02-06Add missing SNAME macro optimization in some function callsjmb462
2022-02-05Rework TextureButton stretchkobewi
2022-02-03Merge pull request #57562 from AnilBK/string-add-containsRémi Verschelde
String: Add contains().
2022-02-04String: Add contains().Anilforextra
2022-02-03Remove get_focus_owner() from Control, replaced by ↵Gilles Roudière
get_viewport()->gui_get_focus_owner()
2022-02-02EditorHelpBit: Fix content height fit and RTL theme propagationRémi Verschelde
This reverts #51619 and fixes the issue properly, as well as enabling `fit_content_height` which is necessary following #57304. Fixes #57174. Also adds a placeholder for property and signal tooltips with no description, factoring the code while at it. Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2022-01-30Fix theming of doc backgroundYuri Roubinsky
2022-01-24[Editor] Do not update editor help theme, if calculated margin hasn't changed.bruvzg
2022-01-21Use a fixed-width font for internal references in the editor helpHugo Locurcio
Since internal references are often written in scripts, it makes sense to use a fixed-width font for them.
2022-01-18Improve spacing in built-in class referenceYuri Sizov
2022-01-07Generate editor docs on a threadreduz
* The main generation could not be moved to a thread, as it instantiates classes to get default values, interacts with ProjectSettings, etc. * Only uncompressing documentation and merging it is threaded. * Seems to improve editor load times by 0.5 seconds.
2022-01-03Update copyright statements to 2022Rémi Verschelde
Happy new year to the wonderful Godot community!
2022-01-03Merge pull request #55487 from YeldhamDev/scroll_bikesheddingRémi Verschelde
2021-12-09Replace String comparisons with "", String() to is_empty()Nathan Franke
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
2021-12-09align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke
2021-12-03Make overridden properties link to parent definitionYuri Sizov
Co-authored-by: Josh DeGraw <joshmdegraw@gmail.com>
2021-12-01Sort and group theme properties in docs, improve formatting for theme and enumsYuri Sizov
2021-11-30Rename all methods that return `ScrollBar` nodes to `get_*_scroll_bar()`Michael Alexsander
2021-11-18Add [theme_item] tag to editor helpkobewi
2021-11-15Allow dehardcoding documentation branch and URL in docs linksRémi Verschelde
This makes it possible to change the branch of the documentation that URLs are pointing to without having to modify all class reference files. In the XML class reference, the `$DOCS_URL` placeholder should be used, and will be replaced automatically in the editor and when generating the RST class reference. The documentation branch string is set in `version.py`. Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2021-11-12Use "enum class" for input enumsAaron Franke
2021-11-11String: Remove `erase` method, bindings can't mutate StringRémi Verschelde
2021-10-29Move the docs for constructors and operators out of methods sectionAaron Franke
2021-10-01Fix match counter in help pages not updatingMichael Alexsander
2021-09-30Use range iterators for `Map`Lightning_A
2021-09-17Merge pull request #52655 from Chaosus/toggle_scripts_panelRémi Verschelde
2021-09-16Remove bbcode_text from RichTextLabelHaSa1002
Also renames: - append_bbcode -> append_text - get_bbcode -> get_text - set_bbcode -> set_text - get_text -> get_parsed_text Property text is: set_text get_text
2021-09-15Merge pull request #52352 from williamd67/open-help-editor-at-correct-positionRémi Verschelde
2021-09-15Added status bar and toggle scripts panel button to EditorHelp/VScriptsYuri Roubinsky
2021-09-02Symbol lookup jumps to the correct position in help editorWilliam Deurwaarder
Commit `e4651a4` introduced `scroll_to_paragraph` and changed the implementation of `scroll_to_line`, which also counts lines within paragraphs. The help editor still used the `scroll_to_line` method while it should use the newly implemented `scroll_to_paragraph' as that is stored in its tables.
2021-08-30Show help for built-in functions (@GlobalScope)William Deurwaarder
2021-08-24Implement error return documetationreduz
Adds ability to add error return documetation to the binder and class reference. Usage example: ```C++ void MyClass::_bind_method() { [..] BIND_METHOD_ERR_RETURN_DOC("load", ERR_FILE_CANT_OPEN, ERR_FILE_UNRECOGNIZED); } ``` One function of ConfigFile was changed as example.
2021-08-23Implement NativeExtension pointer argumentsreduz
* Allows calling into native extensions directly with a pointer * Makes it easier to implement some APIs more efficiently * Appears with a "*" in the documentation for the argument. * Implementing the pointer handling is entirely up to the implementation, although the extension API provides some hint. * AudioStream has been implemented as an example, allowing to create NativeExtension based AudioStreams.