summaryrefslogtreecommitdiffstats
path: root/scene/resources/style_box.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Texture refactorJuan Linietsky2020-02-111-6/+6
| | | | | | | | -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
* Fixed StyleBoxFlat antialiasing with aa size of 1PouleyKetchoupp2020-01-051-3/+3
| | | | | | Also made aa size consistent when computing uv coordinates and fixed a warning about aa_border_width not initialized in some cases. fixes #34830
* Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | 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.
* Merge pull request #34488 from nekomatata/style_box_flat_aaRémi Verschelde2019-12-221-40/+39
|\ | | | | Fixed StyleBoxFlat border size with aa on
| * Fixed StyleBoxFlat border size with aa onPouleyKetchoupp2019-12-201-40/+39
| | | | | | | | | | | | The different Rect used to draw rings were wrongly calculated when anti-aliasing was enabled. Also getting rid of some overlapping glitches when using transparent colors for the filling or borders. Fixes #34104
* | Lower the maximum StyleBoxFlat corner detail to 20Hugo Locurcio2019-12-141-2/+2
|/ | | | | | This value should be sufficient even for very large corner radii. This closes #34354.
* StyleBox preview adjusted to fit all drawn contentPouleyKetchoupp2019-11-241-0/+21
| | | | | | | | This change allows StyleBox preview to take shadows and content margins into account to display how a whole panel would be rendered. The preview control clips contents so that in any case it doesn't bleed on controls around. Fixes #33801
* StyleBoxFlat doesn't draw content when width or height is zeroPouleyKetchoupp2019-11-171-1/+5
| | | | | | | | Causes unnecessary computations and drawing, and a division by zero when calculating uv coordinates. This case happened with ScriptEditor's member overview (ItemList), initialized with a minimum width of 0. Fixes #33634
* Validate array indexes in StyleBoxqarmin2019-10-101-0/+21
|
* Computes UV coordinates of the canvas_item vertices of StyleBoxFlatbyfron2019-09-021-1/+10
|
* Early exit when nothing to draw in style box flat (fixes #27764)PouleyKetchoupp2019-04-071-5/+8
|
* Properly handle different border widths in rounded corner aaPouleyKetchoupp2019-03-191-69/+81
| | | | Note: removed (unused and not implemented) support for multiple border colors
* Support for shadow offset in box stylePouleyKetchoupp2019-03-191-25/+53
|
* Update controls when a stylebox or icon override changes; change to ↵Bojidar Marinov2019-02-251-0/+1
| | | | | | | | CONNECT_REFERENCE_COUNTED Also, cleanup unnessesary calls to update() and NOTIFICATION_THEME_CHANGED. Fixes #25904.
* Ability to get the current canvas item being drawn from stylebox.Juan Linietsky2019-01-241-0/+7
|
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* -Moved EditorDefaultValue to ClassDB, made it coreJuan Linietsky2018-11-081-3/+3
| | | | -Removed one and zero hints for properties, replaced by default value
* Remove unnecessary "rings" variable from "draw_rings()" in StyleBoxMichael Alexsander Silva Dias2018-10-161-16/+12
|
* fix enum cast warnings on clangkarroffel2018-10-041-3/+3
|
* Visual Shaders are back.Juan Linietsky2018-07-141-12/+24
|
* -Ability to open resources in the same windowJuan Linietsky2018-05-171-0/+9
| | | | | -Plenty of fixes and improvements to new inspector -Fixes that were needed to make inspector work better
* Merge pull request #17828 from bojidar-bg/17779-progressbar-minimum-sizeJuan Linietsky2018-05-071-1/+1
|\ | | | | Fix StyleBox ignoring region rect and ProgressBar using center size
| * Fix StyleBox ignoring region rect and ProgressBar using center sizeBojidar Marinov2018-03-281-1/+1
| | | | | | | | | | | | | | ProgressBar used the center size of the stylebox to calculate its minimum size, thus disallowing certain setups. If the old behaviour is wanted, it can be forced by providing a custom minimum size, or by giving proper margins to the stylebox. Fixes #17779.
* | Fixed stylebox crashsersoong2018-04-271-1/+5
|/
* StyleBoxTexture: Texture instead of RES for texture and normal_map.Pieter-Jan Briers2018-02-221-4/+4
|
* Fix typos with codespellluz.paz2018-02-211-2/+2
| | | | | | | | | | | | | | Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt` Whitelist consists of: ``` ang doubleclick lod nd que te unselect ```
* attemp to fix #15870Mariano Suligoy2018-01-211-2/+2
|
* Bind many more properties to scriptsBojidar Marinov2018-01-121-0/+1
| | | | | | | 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
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | 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.
* Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* [DOCS] Fix a few typos.Andreas Haas2017-10-141-1/+1
|
* unified draw_center naming for (9patch,StyleBoxes)toger52017-08-311-15/+15
| | | | | | - filled -> draw_center - is_draw_center -> is_draw_center_enabled - get_draw_center -> is_draw_center_enabled
* Use HTTPS URL for Godot's website in the headersRémi Verschelde2017-08-271-1/+1
|
* fixed crash styleBoxTexture binding issuetoger52017-08-221-2/+2
|
* Merge pull request #10519 from toger5/remove_addition_borderRémi Verschelde2017-08-221-0/+38
|\ | | | | Remove addition border
| * added utility funtions for expand margins (in styleBox)toger52017-08-211-0/+38
| |
* | ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry2017-08-201-3/+3
|/
* Merge pull request #10444 from ↵Rémi Verschelde2017-08-191-3/+3
|\ | | | | | | | | toger5/styleBoxFlat_corner_detail_value_limitation styleBoxFlat: clamp corner_detail + aa_size
| * styleBoxFlat: clamp corner_detail + aa_sizetoger52017-08-191-3/+3
| |
* | Performance styleBoxFlat:toger52017-08-191-4/+5
|/ | | | | | - style box flat was always drawn with 8 verts per corner in case it was a rounded corner... now it uses only one vert if it has no rounded corner.
* Removes extra argument from StyleBoxFlat::get_border_color()Ignacio Etcheverry2017-08-191-1/+1
|
* Merge pull request #10265 from leezh/patchnine_styleboxRémi Verschelde2017-08-161-1/+39
|\ | | | | Added Tile and TileFit to StyleBoxes
| * Added Tile and TileFit to StyleBoxesZher Huei Lee2017-08-121-1/+39
| | | | | | | | | | Was already implemented for Patch9 boxes, but wasn't exposed here. Allows for use in other GUI elements like panels and buttons.
* | styleBoxFlat removed light, dark color entirelytoger52017-08-151-43/+5
| |
* | new StyleBoxFlat removed multiBorderColortoger52017-08-151-8/+9
| | | | | | | | | | - removed only the bindings because the drawing code is not done yet - kept c++ functions for setting individual border color for future implementation
* | new StyleBoxFlat limits for drawingtoger52017-08-151-36/+45
| | | | | | | | | | | | - corner and border are decreased if necassary to achoieve clean stylboxes - prohibits wired drawing artifacts when using wrong values - corner radius are relative to the partner corner when they would result in glitches
* | new StyleBoxFlat added more drawing featurestoger52017-08-151-4/+155
| | | | | | | | | | | | | | - corner radius bindings - shadow - antiAliasing - CornerDetail
* | NEW Style Box Flat Implementationtoger52017-08-151-72/+301
|/ | | | | | | - now use polygons! - renamed blend -> blend_border - draw_center -> filled - GDScript biding
* Removes type information from method bindsIgnacio Etcheverry2017-08-101-4/+4
|
* Merge pull request #8209 from robertdhernandez/Texture-Region-Editor-SyncRémi Verschelde2017-08-011-0/+1
|\ | | | | Texture region now updates when changing an Atlas region rect