Commit graph

141 commits

Author SHA1 Message Date
George Marques
03746da73f
Add editor highlight for type-safe lines
The line number is hightlighted to indicate that the line contains only
type-safe code.
2018-07-20 21:55:18 -03:00
Juan Linietsky
f6ce73f724 Visual Shaders are back. 2018-07-14 18:16:18 -03:00
Max Hilbrunner
23ad85c692
Merge pull request #19398 from godotengine/remove-left-margin
Remove default non-zero left margin
2018-07-03 16:41:04 +02:00
Juan Linietsky
0a1c1c660f -Added AnimationGraphPlayer (still missing features)
-Added ability to edit resources from built-in inspector (wip, needs testing and feedback)
2018-06-18 22:12:08 -03:00
Pedro J. Estébanez
12a87b257f
Remove default non-zero left margin 2018-06-06 20:10:43 +02:00
Juan Linietsky
005b69cf6e -New inspector.
-Changed UI resizing code, gained huge amount of speed.
-Reorganized timer sync to clean up behavior (sorry forgot commit this before)

-
2018-05-15 17:14:31 -03:00
Ruslan Mustakov
863dd9aa46 Always emit dynamic font change in update_oversampling
Fixes #15787.

The issue occurred when two (or more) separate DynamicFont instances
used the same DynamicFontAtSize instance due to having equal
properties. The first instance updated its data_at_size and emitted
"changed" signal, but the second did not because it considered the
data_at_size to be up to date, even though it has just been updated.
2018-05-08 19:01:15 +07:00
Ruslan Mustakov
5cd12f6649 Perfect FreeType-based outlines for DynamicFonts
- Implement outlines based on FreeType Stroker API. This allows
  artifact-free results, similar to what you will see in Web or any text
  editing tools. Outline is a part of DynamicFont rather than Label,
  because outlines have to be baked into the font's atlas. Font has a
  default outline_color and a Label can specify font_outline_modulator
  that will be multiplied with the Font's color to get the final result.

- draw_char now has to be called twice to fully render a text - first
  with p_outline == true for each character and then with
  p_outline == false for each character.

- Number of draw-calls is reduced from 5 to 2 per outlined character.

- Overall cleanup of DynamicFont code, extracted duplicated code pieces
  into separate methods.

- The change is backward-compatible - Labels still have outline
  properties that work exactly as they worked before.

Closes #16279.
2018-05-08 13:45:24 +07:00
Markus Törnqvist
1c6ea572ca Implement font shadows for RichTextLabel 2018-04-12 15:09:48 +03:00
Pedro J. Estébanez
ab3b1d9f3e Add radio-button-looking entries to PopupMenu
They work exactly the same as current checkbox-decorated items, but in order to preserve compatibility, separate methods are used, like `add_radio_check_item()`. The other option would have been to add a new parameter at the end of `add_check_item()` and the like, but that would have forced callers to provide the defaults manually.

`is_item_checkable()`, `is_item_checked()` and `set_item_checked()` are used regardless the item is set to look as check box or radio button.

Keeping check in the name adds an additional clue about these facts.

Closes #13055.
2018-03-27 19:19:45 +02:00
Paul Joannon
842cb1ad8c set a better initial size to TextEdit nodes
Address #15163
2018-01-11 12:11:44 +01:00
Rémi Verschelde
dc2cc6bc2b
Merge pull request #15186 from GodotExplorer/default-theme
Fix errors with custom theme and custom font in project settings.
2018-01-04 14:50:15 +01:00
Rémi Verschelde
b50a9114b1 Update copyright statements to 2018
Happy new year to the wonderful Godot community!
2018-01-01 14:40:47 +01:00
geequlim
bd0a9f4bd6 Fix errors with custom default theme and custom fonts. 2017-12-30 17:30:37 +08:00
volzhs
2afa2bc389 Fix CheckBox minimum size 2017-12-11 15:37:29 +09:00
volzhs
3c04d7798c Fix CheckButton minimum size 2017-12-11 14:52:32 +09:00
Paulb23
48ad133cf9 Changed current line draw order and added code folding color 2017-12-07 19:17:43 +00:00
Rémi Verschelde
7b557a4e1f
Merge pull request #13409 from YeldhamDev/textedit_disabled
Add disabled theme to TextEdit
2017-12-06 23:42:54 +01:00
Waldson Patrício
62b0799ba0 Fix missing stylebox for LinkButton's hover states 2017-12-06 16:36:44 -03:00
Michael Alexsander Silva Dias
6b07e8c624 Fixed FileDialog's "parent folder" button not having a texture. 2017-12-02 04:30:20 -02:00
Michael Alexsander Silva Dias
2773c12156 Add disabled theme to TextEdit. 2017-12-01 01:32:26 -02:00
geequlim
f3588b6b65 Fix style error with MenuButton in default theme 2017-11-24 19:31:20 +08:00
Rémi Verschelde
15a20f9746 Remove obsolete ButtonArray theming
ButtonArrays have been removed in 3.0.
[ci skip]
2017-11-15 22:53:38 +01:00
Daniel J. Ramirez
9001ba26aa Added and improved some missing icons, plus some other visual fixes. 2017-10-13 16:39:17 -05:00
hickop
57d8ff636c Added grabber_area to default_theme sliders. Fixes #11261 2017-10-11 16:33:17 +02:00
Daniel J. Ramirez
15986ea343 Several visual improvements.
Added proper label sizing
Improved text editor status bar
Fixed some issues with ItemList and also some style fixes
Added background to color picker samples (the mrcdk fix)
Fixed slider ticks.
Added VS breakpoint and error styleboxes.
2017-09-28 15:00:43 -05:00
Gilles Roudiere
b5f29fe073 Add some options and reorganize the 2D editor menus. Makes available forced snapping. 2017-09-18 23:20:18 +02:00
toger5
1c07d0e9aa rtl uses styleBoxEmpty as defualt 2017-09-06 16:29:22 +02:00
toger5
b606285219 Unified script panel backgrounds.
- simplefied it with using the new rtl.
 - removed ("ScriptPanel", "EditorStyles") for since rtl now can be used
 - unified backgrounds when script editor color is set to transparent => option to set background color adapt to theme is deprecated.
2017-09-02 18:28:35 +02:00
toger5
afc66f2f90 changed-"HSlider" -> "VSlider" for focus style fixes #728 2017-08-31 18:02:38 +02:00
Rémi Verschelde
b7f4dcbdd1 Merge pull request #10096 from toger5/label_stylebox
fixed Import LineEdit to label + label stylebox
2017-08-31 13:58:52 +02:00
Rémi Verschelde
bd282ff43f Use HTTPS URL for Godot's website in the headers 2017-08-27 14:16:55 +02:00
toger5
9fdc4874b2 fixed Import LineEdit to label + label stylebox
- added a normal stylebox to label. default is StyleBoxEmpty
 - changed drawing so that it draws correct with styleboxes with margins
 - changed the LineEdit in the import to use a label with the lineEdit
   stylebox
2017-08-17 00:15:11 +02:00
TwistedTwigleg
00f6c85928 Synchronize parameter names in definition and declaration
Fixes #10244.
2017-08-16 17:22:23 +02:00
kbake
a72d17cf11 Scroll bars now look different on press 2017-08-12 17:46:26 -04:00
Poommetee Ketson
668d00ff2d Fix ColorPicker to use theme constants 2017-07-18 09:43:16 +07:00
Poommetee Ketson
0c66078bcb Slider: add set/is_editable 2017-07-11 02:48:55 +07:00
Rémi Verschelde
f8d7670e82 Merge pull request #9038 from AlexHolly/rect2-rename-pos
renamed all Rect2.pos to Rect2.position
2017-06-05 15:52:05 +02:00
Juan Linietsky
01198cb896 Removed stupid right arrow to edit resource. Now simply click it.. 2017-06-04 20:35:45 -03:00
alexholly
a3c90b0293 renamed all Rect2.pos to Rect2.position 2017-06-04 02:09:17 +02:00
Rémi Verschelde
231511b2a6 Merge pull request #8631 from volzhs/editor-theme-custom
New customizable editor theme
2017-05-20 07:16:11 +02:00
Juan Linietsky
98a3296702 Removal of Image from Variant, converted to a Resource. 2017-05-17 07:37:45 -03:00
volzhs
bb81293047 New customizable editor theme 2017-05-09 17:46:54 +09:00
volzhs
17e8e343fb Revert "Add new editor and default theme (WIP)"
This reverts commit f045efe007.
2017-05-03 06:19:15 +09:00
Daniel J. Ramirez
f045efe007 Add new editor and default theme (WIP) 2017-04-27 08:04:57 +02:00
Rémi Verschelde
c88f56be64 Merge pull request #8376 from RayKoopa/fix_stylebox_expand_margin
Respect the expand margin for StyleBoxTextures again.
2017-04-20 02:10:55 +02:00
Ray Koopa
75f684bc17 Respect the expand margin for StyleBoTextures again. 2017-04-13 10:37:22 +02:00
volzhs
25a4daa5ce Fix editor style box for ToolButton 2017-04-12 12:40:16 +09:00
Rémi Verschelde
df61dc4b2b Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
Juan Linietsky
74808ac4d9 New particle system, mostly working, some small features missing. 2017-04-06 23:49:27 -03:00