Commit d438ce5
Alejandro Casanovas
Improve Sections (#1392)
* Complete and improved docstrings with params
Section.draw_order can now be smaller than zero
Breaking change: Section.mouse_is_on_top now only checks for the section dimensions and not the event capture area. To check if a section should capture an event use Section.should_receive_mouse_event
Event capture properties removed and set as attributes that are automatically set
Improved some attribute access
Improved SectionManager.get_section_by_name
SectionManager.clear_sections will now call Section.on_hide_section on each one
Improved SectionManager.get_sections with a generator expression
Added event_capture param to SectionManager get_first_section and get_sections to allow to get sections based on event capture dimensions or on draw dimensions
* fix unexpected identation complain
* fix arcade.Camera: Vec2 now operates multiplication on scalar values and not on other Vec2
* fix docstrings
* fix docstrings ...
* fix docstrings ...
* fix docstrings ...
* fix docstrings ...1 parent e3d6501 commit d438ce5
3 files changed
Lines changed: 205 additions & 67 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | | - | |
| 492 | + | |
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| |||
0 commit comments