summaryrefslogtreecommitdiff
path: root/scene/gui/rich_text_label.cpp
AgeCommit message (Collapse)Author
2020-02-25Variant: Added 64-bit packed arrays, renamed Variant::REAL to FLOAT.Juan Linietsky
- Renames PackedIntArray to PackedInt32Array. - Renames PackedFloatArray to PackedFloat32Array. - Adds PackedInt64Array and PackedFloat64Array. - Renames Variant::REAL to Variant::FLOAT for consistency. Packed arrays are for storing large amount of data and creating stuff like meshes, buffers. textures, etc. Forcing them to be 64 is a huge waste of memory. That said, many users requested the ability to have 64 bits packed arrays for their games, so this is just an optional added type. For Variant, the float datatype is always 64 bits, and exposed as `float`. We still have `real_t` which is the datatype that can change from 32 to 64 bits depending on a compile flag (not entirely working right now, but that's the idea). It affects math related datatypes and code only. Neither Variant nor PackedArray make use of real_t, which is only intended for math precision, so the term is removed from there to keep only float.
2020-02-20Reworked signal connection system, added support for Callable and Signal ↵Juan Linietsky
objects and made them default.
2020-02-17Merge pull request #36229 from dreamsComeTrue/rich-text-label-key-eventsRémi Verschelde
RichTextLabel: proper handling of internal key events
2020-02-15Changed logic and optimized ObjectID in ObjectDB and Variant, removed RefPtr.Juan Linietsky
2020-02-14RichTextLabel: proper handling of internal key eventsDominik 'dreamsComeTrue' Jasiński
Fixes #36211
2020-02-11Texture refactorJuan Linietsky
-Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
2020-02-09Merge pull request #35768 from Eoin-ONeill-Yokai/hiddenRichTextRémi Verschelde
Fix to RichTextEffect `visibility` - Label Now Accounts for Skipped Characters.
2020-02-07Use modules_enabled.gen.h to improve inter dependency checksRémi Verschelde
- Fix build with gdscript module disabled. Fixes #31011. - Remove unused `gdscript` compile option. - Fix build with regex module disabled. - Fix ImageLoaderSVG to forward declare thirdparty structs.
2020-01-30Fix RichTextEffect `visibility` to Account for Skipped Characters.Eoin O'Neill
A picture is easier to describe this issue than words. Basically, rich text effects allowed for character visibility changes. While doing so would work properly, the rich text label would render the next `word` in an offset accounting for the hidden characters (leaving a huge space.) This patch fixes this issue by keeping track of the amount of `backtrack` necessary per line.
2020-01-08Emits meta_hover_ended when mouse exit RichTextLabelHaoyu Qiu
2020-01-08Fixes RichTextLabel click issue when cell text wrapsHaoyu Qiu
2020-01-07Check if cursor is inside meta when getting cursor shapeKanabenki
2020-01-01Update copyright statements to 2020Rémi Verschelde
Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
2019-12-12Fixes crash after remove_line in RichTextLabelHaoyu Qiu
`ItemFrame` always have a line.
2019-10-25Merge pull request #32870 from bergmannf/27850_rtl_bold_italicRémi Verschelde
Add push_* methods for fonts in rich_text_label
2019-10-22Shadows Now Properly Translate by RichTextEffect offset.Eoin O'Neill
Bugfix 32981.
2019-10-22Merge pull request #32965 from volzhs/richtextlabel-scroll-activeRémi Verschelde
Fix scrolling RichTextLabel with scroll_active=false
2019-10-22Fix scrolling RichTextLabel with scroll_active=falsevolzhs
2019-10-16Add push_* methods for fonts in rich_text_labelFlorian Bergmann
Provides method to push different font styles. If no fonts are set nothing will happen, when the methods are used. Fixes #27850
2019-10-16Support for resized images in RichTextLabelPouleyKetchoupp
BBCode Tag: [img=<width>x<height>]{path}[/img]
2019-10-05Fix crash in Control functionsqarmin
2019-09-26Implement #32347 - RichTextLabel's Item and Item* structs should not inherit ↵Relintai
Object, it's too expensive
2019-09-11Fix Sanitization BugEoin O'Neill
From issue #32089 -- I messed up the property hints by putting them in the wrong location. Should be working as intended now.
2019-09-03Update RichTextLabel to support real time effects and custom BBCodes.Eoin O'Neill
Added a new ItemFX type to RichTextLabel which supports dynamic text effects. RichTextEffect Resource Type was added which can be extended for more real time text effects.
2019-08-30Merge pull request #30927 from mahubu/console-multi-selection-cursorRémi Verschelde
Change cursor to multi-selection cursor when selecting text in RichTextLabel
2019-08-01Same method when redrawing as when theme changedCameron Reikes
2019-07-29Change cursor to multi-selection cursor when selecting text in RichTextLabel.Teto
Fix for #27545 : returns 'CURSOR_IBEAM' shape when selection is clicked.
2019-07-08Use base `Color()` constructors instead of `Color::html()`Hugo Locurcio
This results in slightly smaller binaries (-17 KB for an editor binary) as no strings need to be allocated.
2019-06-27Merge pull request #29941 from qarmin/redundant_code_and_othersRémi Verschelde
Remove redundant code, possible NULL pointers and others
2019-06-26Some code changed with Clang-Tidyqarmin
2019-06-20Fix for #29810Elia Sarti
Ensure indentation works properly in rich text Fix formatting
2019-06-14Fix RichTextLabel alignment tags not working properlyElia Sarti
Also fixes #6982 Fix error and formatting
2019-06-07Fix RichLabelText::_process_line crashqarmin
2019-05-27Fix uninitialised member variable 'meta_hovering' in RichTextLabelIbrahn Sahir
2019-04-27Fix the unclickable links inside the docDaw11
Fixes #27384
2019-04-23Revert "RichTextLabel: Adding the ability to change the default cursor"Rémi Verschelde
2019-04-22Merge pull request #27673 from qarmin/small_fixesRémi Verschelde
Small fixes, mostly duplicated code
2019-04-09Style: Apply new changes from clang-format 8.0Rémi Verschelde
It seems to stay compatible with formatting done by clang-format 6.0 and 7.0, so contributors can keep using those versions for now (they will not undo those changes).
2019-04-08Small fixes, mostly dupicated codeqarmin
2019-04-02Fixed an issue where changing the default_cursor on the RichTextLabel's ↵Robear Selwans
meta_hover_ended caused the entire project to crash
2019-03-08Added the ability to change the default cursor property for the ↵Robear Selwans
RichTextLabel component.
2019-02-22Use correct meta item in rich text.Kārlis Seņko
Prevent incorrect static cast and unnecesarry meta_hover_ended/started events.
2019-02-20Add -Wshadow=local to warnings and fix reported issues.marxin
Fixes #25316.
2019-01-01Update copyright statements to 2019Rémi Verschelde
Happy new year to the wonderful Godot community!
2018-12-13Merge pull request #22870 from semtri/godot-issue-7620Rémi Verschelde
Fix richtextlabel meta links shouldn't open when swiping to scroll
2018-12-02RichTextLabel: update the cache when the scroll hide.allkhor
2018-11-23RichTextLabel: clear the scroll offset.allkhor
2018-10-25Fix "fill" justification in RichTextLabel to only affect lines that have ↵Sean McCarthy
automatically wrapped.
2018-10-09Fix richtextlabel meta links shouldn't open when swiping to scrolldennisseong
2018-09-27Fix warnings about set but unused variables [-Wunused-but-set-variable]Rémi Verschelde
Fixes the following GCC 5 warnings: ``` drivers/gles2/rasterizer_canvas_gles2.cpp:814:8: warning: variable 'rt_size' set but not used [-Wunused-but-set-variable] drivers/gles2/rasterizer_scene_gles2.cpp:2270:11: warning: variable 'vp_height' set but not used [-Wunused-but-set-variable] drivers/gles2/rasterizer_scene_gles2.cpp:2673:22: warning: variable 'e' set but not used [-Wunused-but-set-variable] drivers/gles2/rasterizer_scene_gles2.cpp:715:7: warning: variable 'no_cull' set but not used [-Wunused-but-set-variable] drivers/gles2/shader_gles2.cpp:693:14: warning: variable 'cc' set but not used [-Wunused-but-set-variable] drivers/gles3/rasterizer_canvas_gles3.cpp:1226:8: warning: variable 'rt_size' set but not used [-Wunused-but-set-variable] drivers/gles3/rasterizer_scene_gles3.cpp:3039:10: warning: variable 'contrib' set but not used [-Wunused-but-set-variable] drivers/gles3/rasterizer_scene_gles3.cpp:4504:32: warning: variable 'vp_height' set but not used [-Wunused-but-set-variable] editor/editor_inspector.cpp:272:9: warning: variable 'guide_color' set but not used [-Wunused-but-set-variable] editor/editor_themes.cpp:1067:14: warning: variable 'alpha3' set but not used [-Wunused-but-set-variable] editor/editor_themes.cpp:263:8: warning: variable 'script_bg_color' set but not used [-Wunused-but-set-variable] editor/plugins/collision_shape_2d_editor_plugin.cpp:326:11: warning: variable 'cpoint' set but not used [-Wunused-but-set-variable] editor/plugins/mesh_editor_plugin.cpp:72:9: warning: variable 'size' set but not used [-Wunused-but-set-variable] editor/plugins/shader_editor_plugin.cpp:471:12: warning: variable 'mpos' set but not used [-Wunused-but-set-variable] editor/plugins/shader_editor_plugin.cpp:89:8: warning: variable 'basetype_color' set but not used [-Wunused-but-set-variable] editor/plugins/shader_editor_plugin.cpp:90:8: warning: variable 'type_color' set but not used [-Wunused-but-set-variable] editor/plugins/shader_editor_plugin.cpp:92:8: warning: variable 'string_color' set but not used [-Wunused-but-set-variable] modules/visual_script/visual_script_editor.cpp:2521:7: warning: variable 'seq_connect' set but not used [-Wunused-but-set-variable] platform/android/export/export.cpp:580:12: warning: variable 'styles_count' set but not used [-Wunused-but-set-variable] platform/android/export/export.cpp:584:12: warning: variable 'styles_offset' set but not used [-Wunused-but-set-variable] platform/osx/export/export.cpp:464:9: warning: variable 'zerr' set but not used [-Wunused-but-set-variable] scene/2d/tile_map.cpp:260:10: warning: variable 'tcenter' set but not used [-Wunused-but-set-variable] scene/3d/light.cpp:166:7: warning: variable 'editor_ok' set but not used [-Wunused-but-set-variable] scene/3d/navigation.cpp:566:11: warning: variable 'closest_navmesh' set but not used [-Wunused-but-set-variable] scene/gui/rich_text_label.cpp:869:8: warning: variable 'size' set but not used [-Wunused-but-set-variable] scene/main/viewport.cpp:705:14: warning: variable 'xform' set but not used [-Wunused-but-set-variable] scene/main/viewport.cpp:706:8: warning: variable 'ss' set but not used [-Wunused-but-set-variable] scene/main/viewport.cpp:726:14: warning: variable 'xform' set but not used [-Wunused-but-set-variable] scene/main/viewport.cpp:727:8: warning: variable 'ss' set but not used [-Wunused-but-set-variable] scene/resources/material.cpp:430:7: warning: variable 'using_world' set but not used [-Wunused-but-set-variable] servers/visual/shader_language.cpp:2026:7: warning: variable 'all_const' set but not used [-Wunused-but-set-variable] servers/visual/visual_server_scene.cpp:1383:28: warning: variable 'z_max_cam' set but not used [-Wunused-but-set-variable] ``` Also fixes two [-Wunused-value] warnings: ``` scene/gui/text_edit.cpp:4405:20: warning: statement has no effect [-Wunused-value] servers/visual/visual_server_scene.cpp:905:48: warning: value computed is not used [-Wunused-value] ``` Some of those are bugs and need further work, they are identified with `// FIXME` comments.