summaryrefslogtreecommitdiff
path: root/scene/resources/style_box.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-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-01-05Fixed StyleBoxFlat antialiasing with aa size of 1PouleyKetchoupp
Also made aa size consistent when computing uv coordinates and fixed a warning about aa_border_width not initialized in some cases. fixes #34830
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-22Merge pull request #34488 from nekomatata/style_box_flat_aaRémi Verschelde
Fixed StyleBoxFlat border size with aa on
2019-12-20Fixed StyleBoxFlat border size with aa onPouleyKetchoupp
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
2019-12-14Lower the maximum StyleBoxFlat corner detail to 20Hugo Locurcio
This value should be sufficient even for very large corner radii. This closes #34354.
2019-11-24StyleBox preview adjusted to fit all drawn contentPouleyKetchoupp
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
2019-11-17StyleBoxFlat doesn't draw content when width or height is zeroPouleyKetchoupp
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
2019-10-10Validate array indexes in StyleBoxqarmin
2019-09-02Computes UV coordinates of the canvas_item vertices of StyleBoxFlatbyfron
2019-04-07Early exit when nothing to draw in style box flat (fixes #27764)PouleyKetchoupp
2019-03-19Properly handle different border widths in rounded corner aaPouleyKetchoupp
Note: removed (unused and not implemented) support for multiple border colors
2019-03-19Support for shadow offset in box stylePouleyKetchoupp
2019-02-25Update controls when a stylebox or icon override changes; change to ↵Bojidar Marinov
CONNECT_REFERENCE_COUNTED Also, cleanup unnessesary calls to update() and NOTIFICATION_THEME_CHANGED. Fixes #25904.
2019-01-24Ability to get the current canvas item being drawn from stylebox.Juan Linietsky
2019-01-01Update copyright statements to 2019Rémi Verschelde
Happy new year to the wonderful Godot community!
2018-11-08-Moved EditorDefaultValue to ClassDB, made it coreJuan Linietsky
-Removed one and zero hints for properties, replaced by default value
2018-10-16Remove unnecessary "rings" variable from "draw_rings()" in StyleBoxMichael Alexsander Silva Dias
2018-10-04fix enum cast warnings on clangkarroffel
2018-07-14Visual Shaders are back.Juan Linietsky
2018-05-17-Ability to open resources in the same windowJuan Linietsky
-Plenty of fixes and improvements to new inspector -Fixes that were needed to make inspector work better
2018-05-07Merge pull request #17828 from bojidar-bg/17779-progressbar-minimum-sizeJuan Linietsky
Fix StyleBox ignoring region rect and ProgressBar using center size
2018-04-27Fixed stylebox crashsersoong
2018-03-28Fix StyleBox ignoring region rect and ProgressBar using center sizeBojidar Marinov
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.
2018-02-22StyleBoxTexture: Texture instead of RES for texture and normal_map.Pieter-Jan Briers
2018-02-21Fix typos with codespellluz.paz
Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt` Whitelist consists of: ``` ang doubleclick lod nd que te unselect ```
2018-01-21attemp to fix #15870Mariano Suligoy
2018-01-12Bind many more properties to scriptsBojidar Marinov
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
2018-01-05Add missing copyright headers and fix formattingRémi Verschelde
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.
2018-01-01Update copyright statements to 2018Rémi Verschelde
Happy new year to the wonderful Godot community!
2017-10-14[DOCS] Fix a few typos.Andreas Haas
2017-08-31unified draw_center naming for (9patch,StyleBoxes)toger5
- filled -> draw_center - is_draw_center -> is_draw_center_enabled - get_draw_center -> is_draw_center_enabled
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-22fixed crash styleBoxTexture binding issuetoger5
2017-08-22Merge pull request #10519 from toger5/remove_addition_borderRémi Verschelde
Remove addition border
2017-08-21added utility funtions for expand margins (in styleBox)toger5
2017-08-20ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry
2017-08-19Merge pull request #10444 from ↵Rémi Verschelde
toger5/styleBoxFlat_corner_detail_value_limitation styleBoxFlat: clamp corner_detail + aa_size
2017-08-19styleBoxFlat: clamp corner_detail + aa_sizetoger5
2017-08-19Performance styleBoxFlat:toger5
- 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.
2017-08-19Removes extra argument from StyleBoxFlat::get_border_color()Ignacio Etcheverry
2017-08-16Merge pull request #10265 from leezh/patchnine_styleboxRémi Verschelde
Added Tile and TileFit to StyleBoxes
2017-08-15styleBoxFlat removed light, dark color entirelytoger5
2017-08-15new StyleBoxFlat removed multiBorderColortoger5
- removed only the bindings because the drawing code is not done yet - kept c++ functions for setting individual border color for future implementation
2017-08-15new StyleBoxFlat limits for drawingtoger5
- 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
2017-08-15new StyleBoxFlat added more drawing featurestoger5
- corner radius bindings - shadow - antiAliasing - CornerDetail
2017-08-15NEW Style Box Flat Implementationtoger5
- now use polygons! - renamed blend -> blend_border - draw_center -> filled - GDScript biding
2017-08-12Added Tile and TileFit to StyleBoxesZher Huei Lee
Was already implemented for Patch9 boxes, but wasn't exposed here. Allows for use in other GUI elements like panels and buttons.
2017-08-10Removes type information from method bindsIgnacio Etcheverry