summaryrefslogtreecommitdiff
path: root/editor/editor_help.cpp
AgeCommit message (Collapse)Author
2022-07-17Add padding for code blocks in the editor helpHugo Locurcio
This improves their appearance, making them look closer to code blocks in the online manual.
2022-07-13Merge pull request #62710 from ↵Rémi Verschelde
Calinou/editor-help-improve-code-kbd-ref-highlight
2022-07-07Merge pull request #62108 from bruvzg/font_config_v3Rémi Verschelde
2022-07-06Merge pull request #62713 from YuriSizov/docs-scripting-annotationsRémi Verschelde
2022-07-06Refactor Font configuration and import UI, and Font resources.bruvzg
2022-07-05Implement a BitField hintreduz
Allows to specify the binder that an enum must be treated as a bitfield.
2022-07-05Improve visibility of code, kbd and clickable references in editor helpHugo Locurcio
This adds a background color for inline code, code blocks, keyboard shortcuts and clickable references (such as `[member something]`).
2022-07-04Add support for documenting built-in annotationsYuri Sizov
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