summaryrefslogtreecommitdiffstats
path: root/editor/shader_create_dialog.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg2022-10-071-16/+14
| | | | change warnings=all to use /W4.
* Improve naming of theme properties throughout GUI codeYuri Sizov2022-09-061-1/+1
| | | | | | | | | | | | | | Rename ItemList's bg -> panel Rename ItemList's bg_focus -> focus Rename ProgressBar's bg -> background Rename ProgressBar's fg -> fill Rename Tree's bg -> panel Rename Tree's bg_focus -> focus Rename ScrollContainer's bg -> panel Rename FileDialog's *_icon_modulate -> *_icon_color Rename FileDialog's files_disabled -> file_disabled_color Rename CheckButton's on/off -> checked/unchecked Rename check_v_adjust -> check_v_offset
* Add `String.to_{camel,pascal,snake}_case` methodsDanil Alexeev2022-08-301-1/+1
|
* Revert "Remove NOTIFICATION_ENTER_TREE when paired with ↵Rémi Verschelde2022-08-291-15/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTIFICATION_THEME_CHANGED" This reverts commit 4b817a565cab8af648c88cfc7ab6481e86ee3625. Fixes #64988. Fixes #64997. This caused several regressions (#64988, #64997, https://github.com/godotengine/godot/issues/64997#issuecomment-1229970605) which point at a flaw in the current logic: - `Control::NOTIFICATION_ENTER_TREE` triggers a *deferred* notification with `NOTIFCATION_THEME_CHANGED` as introduced in #62845. - Some classes use their `THEME_CHANGED` to cache theme items in member variables (e.g. `style_normal`, etc.), and use those member variables in `ENTER_TREE`, `READY`, `DRAW`, etc. Since the `THEME_CHANGE` notification is now deferred, they end up accessing invalid state and this can lead to not applying theme properly (e.g. for EditorHelp) or crashing (e.g. for EditorLog or CodeEdit). So we need to go back to the drawing board and see if `THEME_CHANGED` can be called earlier so that the previous logic still works? Or can we refactor all engine code to make sure that: - `ENTER_TREE` and similar do not depend on theme properties cached in member variables. - Or `THEME_CHANGE` does trigger a general UI update to make sure that any bad theme handling in `ENTER_TREE` and co. gets fixed when `THEME_CHANGE` does arrive for the first time. But that means having a temporary invalid (and possibly still crashing) state, and doing some computations twice which might be heavy (e.g. `EditorHelp::_update_doc()`).
* Remove NOTIFICATION_ENTER_TREE when paired with NOTIFICATION_THEME_CHANGEDAaron Record2022-08-271-21/+15
|
* Move ShaderCreateDialog's ShaderType enum out of the headerAaron Franke2022-08-151-0/+7
|
* Swap arguments of ResourceSaver.save()kobewi2022-07-291-2/+2
|
* Adding shader preprocessor supportYuri Roubinsky2022-07-221-92/+135
| | | | Co-authored-by: TheOrangeDay <6472143+TheOrangeDay@users.noreply.github.com>
* Add ok_button_text to AcceptDialog and cancel_button_text to ConfirmationDialogFireForge2022-07-091-6/+6
|
* Merge pull request #61888 from Chaosus/vs_remove_engine_versionRémi Verschelde2022-06-161-1/+0
|\ | | | | Remove engine version from visual shader
| * Remove engine version from visual shaderYuri Rubinsky2022-06-101-1/+0
| |
* | Move duplicate AutoWrap, Overrun and VisibleChar behavior enums to the ↵bruvzg2022-06-161-2/+2
|/ | | | TextServer.
* Add a new HashSet templatereduz2022-05-201-1/+1
| | | | | * Intended to replace RBSet in most cases. * Optimized for iteration speed
* Replace most uses of Map by HashMapreduz2022-05-161-1/+1
| | | | | | | | | | | | * 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!
* Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-031-2/+2
| | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* Make FileAccess and DirAccess classes reference counted.bruvzg2022-04-111-3/+3
|
* Convert _notification methods to switch - Chunk CJakob Bouchard2022-02-161-0/+1
|
* Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker2022-02-121-0/+3
|
* Revert "Add missing SNAME macro optimization to all theme methods call"Rémi Verschelde2022-02-081-5/+5
| | | | | | | | 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.
* Add missing SNAME macro optimization to all theme methods calljmb4622022-02-061-5/+5
|
* String: Add contains().Anilforextra2022-02-041-1/+1
|
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-5/+5
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* align to horizontal_alignment, valign to vertical_alignment, relatedNathan Franke2021-12-091-2/+2
|
* Add `New Shader` option to the FileSystemDock popup menu.Yuri Roubinsky2021-12-031-1/+6
|
* Infer shader type based on edited nodekobewi2021-11-031-1/+6
|
* Addition of FogVolumes, FogShaders, FogMaterial, and overhaul of VolumetricFogclayjohn2021-10-281-0/+5
| | | | Co-authored-by: Brian Semrau <brian.semrau@gmail.com>
* Add missing SNAME macro optimization for StringName in some functionsjmb4622021-08-201-6/+6
|
* Fix some bugs in shader creation dialog (continue)Yuri Roubinsky2021-08-091-42/+36
|
* Fix some bugs in shader creation dialogYuri Roubinsky2021-08-091-17/+7
|
* Added editor dialog for easily creating shaders.Yuri Roubinsky2021-08-071-0/+643