summaryrefslogtreecommitdiffstats
path: root/scene/resources/style_box.h
Commit message (Collapse)AuthorAgeFilesLines
* GDExtension: Mark virtual function as `is_required` in `extension_api.json`David Snopek2024-09-111-1/+1
| | | | Co-authored-by: Jovan Gerodetti <jovan.gerodetti@titannano.de>
* Extract ScriptInstance to simplify includesYuri Sizov2023-09-061-1/+0
| | | | | | | | | This allows to include script_instance.h directly in the generated gdvirtual.gen.inc, and remove excessive includes from the codebase. This should also allow Resource to use GDVIRTUAL macros, which wasn't possible previously due to a circular dependency.
* Extract StyleBoxFlat, StyleBoxTexture and StyleBoxLine in their own fileHendrik Brucker2023-07-171-183/+5
|
* Fix blurry borders on antialiased FlatStyleBoxDavid Giardi2023-04-171-1/+1
| | | | | | | | | | | This is a fix of the antialiasing logic of FlatStyleBox. It is now possible to have smooth rounded corners while keeping the edges sharp on the pixels. The antialiasing gradient positioning is ajusted so that the "hard" border corresponds to the middle of that gradient instead of one end. Checked against rendering of rounded rectangles in a vector graphics software.
* Remove size restrictions from StyleBoxTextureYuri Sizov2023-01-261-2/+0
|
* Clean-up, harmonize, and improve StyleBox APIYuri Sizov2023-01-191-33/+28
| | | | | | - Make all margin properties follow the same naming convention (their getter and setter too). - Remove a virtual counterpart of `get_style_margin` from API. - Allow to override `get_minimum_size` from scripting and remove `get_center_size`.
* One Copyright Update to rule them allRémi Verschelde2023-01-051-29/+29
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Add set_default_margin_all/individual to StyleBoxFireForge2022-09-071-0/+5
|
* Make `_validate_property` a multilevel methodYuri Sizov2022-08-221-1/+1
|
* Code quality: Fix header guards consistencyRémi Verschelde2022-07-251-1/+1
| | | | | Adds `header_guards.sh` bash script, used in CI to validate future changes. Can be run locally to fix invalid header guards.
* Merge pull request #58599 from Calinou/styleboxflat-add-skewRémi Verschelde2022-04-281-0/+4
|\ | | | | Add a Skew property to StyleBoxFlat
| * Add a Skew property to StyleBoxFlatHugo Locurcio2022-02-261-0/+4
| | | | | | | | | | | | | | This makes it possible to create more aesthetically pleasing styleboxes for GUI theming, especially in games that have a futuristic appearance (where skewed buttons and progress bars are common).
* | Discern between virtual and abstract class bindingsreduz2022-03-101-2/+8
|/ | | | | | | | | | | | | | * Previous "virtual" classes (which can't be instantiated) are not corretly named "abstract". * Added a new "virtual" category for classes, they can't be instantiated from the editor, but can be inherited from script and extensions. * Converted a large amount of classes from "abstract" to "virtual" where it makes sense. Most classes that make sense have been converted. Missing: * Physics servers * VideoStream * Script* classes. which will go in a separate PR due to the complexity involved.
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Use real_t and double where appropriate in ParticlesAaron Franke2021-08-121-2/+2
|
* StyleBox fake AA improvements (aa_size float property)Hendrik Brucker2021-08-101-18/+7
|
* Hide more options of disabled propertiesMichael Alexsander2021-03-031-0/+1
|
* Initialize class variables with default values in scene/ [2/2]Rafał Mikrut2021-02-091-22/+22
|
* Fix typo in theming methods ("botton" -> "bottom")Hugo Locurcio2021-01-181-1/+1
|
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Rename Control margin to offsetMarcel Admiraal2020-12-231-16/+16
|
* Cleanup unused engine codeTomasz Chabora2020-12-091-1/+0
|
* Reorganized core/ directory, it was too fatty alreadyreduz2020-11-071-1/+1
| | | | | | -Removed FuncRef, since Callable makes it obsolete -Removed int_types.h as its obsolete in c++11+ -Changed color names code
* Refactored 2D shader and lighting systemreduz2020-10-241-4/+0
| | | | | | | | | | -Removed normal/specular properties from nodes -Create CanvasTexture, which can contain normal/specular channels -Refactored, optimized and simplified 2D shaders -Use atlas for light textures. -Use a shadow atlas for shadow textures. -Use both items aboves to make light rendering stateless (faster). -Reorganized uniform sets for more efficiency.
* Add override keywords.Marcel Admiraal2020-07-101-13/+13
|
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-5/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Renaming of servers for coherency.Juan Linietsky2020-03-271-1/+1
| | | | | | | | | | VisualServer -> RenderingServer PhysicsServer -> PhysicsServer3D Physics2DServer -> PhysicsServer2D NavigationServer -> NavigationServer3D Navigation2DServer -> NavigationServer2D Also renamed corresponding files.
* 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
* 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.
* StyleBox preview adjusted to fit all drawn contentPouleyKetchoupp2019-11-241-0/+3
| | | | | | | | 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
* Remove redundant author doc commentsIAmActuallyCthulhu2019-08-121-3/+1
|
* Properly handle different border widths in rounded corner aaPouleyKetchoupp2019-03-191-5/+3
| | | | Note: removed (unused and not implemented) support for multiple border colors
* Support for shadow offset in box stylePouleyKetchoupp2019-03-191-0/+4
|
* Ability to get the current canvas item being drawn from stylebox.Juan Linietsky2019-01-241-0/+4
|
* Update copyright statements to 2019Rémi Verschelde2019-01-011-2/+2
| | | | Happy new year to the wonderful Godot community!
* Make core/ includes absolute, remove subfolders from include pathRémi Verschelde2018-09-121-1/+1
| | | | | | 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.
* Visual Shaders are back.Juan Linietsky2018-07-141-3/+7
|
* StyleBoxTexture: Texture instead of RES for texture and normal_map.Pieter-Jan Briers2018-02-221-4/+4
|
* 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!
* Renamed function arguments to keep them consistent between declaration and ↵Wilson E. Alvarez2017-09-141-2/+2
| | | | implementation
* unified draw_center naming for (9patch,StyleBoxes)toger52017-08-311-6/+6
| | | | | | - 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
|
* added utility funtions for expand margins (in styleBox)toger52017-08-211-0/+4
|
* Merge pull request #10265 from leezh/patchnine_styleboxRémi Verschelde2017-08-161-0/+18
|\ | | | | Added Tile and TileFit to StyleBoxes
| * Added Tile and TileFit to StyleBoxesZher Huei Lee2017-08-121-0/+18
| | | | | | | | | | 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-6/+1
| |
* | new StyleBoxFlat added more drawing featurestoger52017-08-151-1/+26
| | | | | | | | | | | | | | - corner radius bindings - shadow - antiAliasing - CornerDetail
* | NEW Style Box Flat Implementationtoger52017-08-151-15/+37
|/ | | | | | | - now use polygons! - renamed blend -> blend_border - draw_center -> filled - GDScript biding
* Added separators using StyleBoxLine, some theme style fixes, added variant iconDaniel J. Ramirez2017-07-181-0/+34
|