Commit Graph
777 Commits
Author SHA1 Message Date
LuoZheng2002 7ec002f00c Renamed pool method typed_ref to try_get (#846)
* replaced the BorrowAs trait with ObjectOrVariant trait; added explicit trait bounds in pool and graph's typed_ref method.

* renamed pool's typed_ref to try_get

* renamed try_get to try_get_node in BaseSceneGraph

* deleted try_get_mut from impl Graph, and replaced all occurrences with try_get_node_mut

* renamed typed_ref in SceneGraph to try_get

* added graph::prelude which contains AbstractSceneGraph, BaseSceneGraph and SceneGraph traits; added use graph::prelude::* in the script template to expose try_get functionalities.

* resolved merge issues

* formatted code

* added use fyrox::graph::prelude::* to template game/src/lib.rs to expose UserInterface's try_get functionality

* added "#[allow(unused_imports)]" on game template and script template
2025-10-01 20:54:17 +03:00
Dmitry Stepanov f8e3d2577b configurable render mode for ui 2025-09-30 19:28:57 +03:00
LuoZheng2002 32b131a896 added pure color texture (#845) 2025-09-30 14:13:57 +03:00
b-guild 7a71aa9bb5 Correcting InheritableVariable::visit and physics integration parameters dt (#844) 2025-09-30 14:13:02 +03:00
Dmitry Stepanov 2b382a9179 docs + fixed warnings 2025-09-30 10:57:41 +03:00
Dmitry Stepanov 16cd27dd76 added srgba8/srgb8 texture formats 2025-09-30 10:57:23 +03:00
Dmitry ad78773d3b ui rendering api improvements (draft) 2025-09-29 17:50:03 +03:00
LuoZheng2002andDmitry e0e8218a72 Replaced the BorrowAs trait with ObjectOrVariant trait. (#841)
* replaced the BorrowAs trait with ObjectOrVariant trait; added explicit trait bounds in pool and graph's typed_ref method.

* fixed tests

* fixed restore_integrity test

- it was failing spontaneously due do conflicting resource registries from two tests

* fixed clippy warnings

* install rustfmt + clippy on a CI machine before running the tests

* fixed confusing documentation about batching

* updated changelog

* changelog fixes

* ability to set runs via respective message

* replaced the BorrowAs trait with ObjectOrVariant trait; added explicit trait bounds in pool and graph's typed_ref method.

* removed unused imports

* satisfied cargo doc

---------

Co-authored-by: Dmitry <[email protected]>
2025-09-29 00:30:48 +03:00
Dmitry a3880e83a2 fixed confusing documentation about batching 2025-09-27 20:53:10 +03:00
Dmitry db63c92b0f fixed clippy warnings 2025-09-27 12:09:08 +03:00
Dmitry f3863812b6 fixed restore_integrity test
- it was failing spontaneously due do conflicting resource registries from two tests
2025-09-27 12:00:01 +03:00
Dmitry 0fa623f444 pass ui handle in Plugin::on_ui_message 2025-09-26 22:45:44 +03:00
Dmitry Stepanov 416fcabf31 named constants for mouse buttons + helper methods for mouse input 2025-09-21 13:51:11 +03:00
Dmitry Stepanov 09cec6418b added ability to check for pressed/released mouse buttons 2025-09-21 11:50:30 +03:00
Dmitry Stepanov 269fb0d322 - fixed wasm compilation
- rollback to rand 0.8, because fuck the devs of this library who constantly invent ways to screw up someone's project
2025-09-18 22:33:35 +03:00
Dmitry Stepanov beff11c872 fixed compilation in hot reloading mode
- #839
2025-09-18 21:34:18 +03:00
Dmitry Stepanov 669b38dd9c updated deps
- attempt to fix hot reloading
2025-09-18 20:30:50 +03:00
Dmitry Stepanov f8e88df8ea docs fixes 2025-09-17 23:27:28 +03:00
Dmitry Stepanov 5ab74626d0 ability to flip Rectangle node
- #838
2025-09-17 23:16:43 +03:00
Dmitry Stepanov 2ce3d0eb55 cargo fmt 2025-09-17 20:57:36 +03:00
Dmitry Stepanov f249b0ef3b fixed sprite node docs 2025-09-17 20:30:41 +03:00
Dmitry Stepanov aa317efb5d fixed sprite flipping issues + added ability to flip x/y
- fixed incorrect sprite size if used arbitrary uv rect
- #838
2025-09-17 19:26:20 +03:00
Dmitry Stepanov b2ecaafe79 prevent consecutive keypress events interfere with pressed/released keys 2025-09-17 17:33:32 +03:00
Dmitry Stepanov d2375e35db added is_key_pressed + is_key_released to InputState 2025-09-16 21:35:46 +03:00
Dmitry Stepanov 18318d0256 pass input state to script contexts 2025-09-16 20:34:05 +03:00
Dmitry Stepanov 32db5908c2 simplified way of getting input state 2025-09-15 23:27:40 +03:00
Dmitry Stepanov f0050a0f9a removed useless #![allow(missing_docs)] and improved the docs 2025-09-12 20:18:46 +03:00
Dmitry Stepanov 4842f43395 docs for renderer's observer 2025-09-12 20:12:22 +03:00
Dmitry Stepanov f5f3b48f74 moved re-export of fyrox-graphics to the root of fyrox-impl as graphics
- additionally exposed fyrox-graphics-gl crate as graphics_gl
2025-09-11 21:08:48 +03:00
Zheng Luo 906b5db037 formatted joint.rs 2025-09-09 17:44:02 -07:00
Zheng Luo 17d4641af6 added the corresponding ball joint motor for 2d 2025-09-09 14:32:26 -07:00
Zheng Luo c79fca4b75 added ball joint motor for 3d 2025-09-09 14:20:40 -07:00
Dmitry Stepanov 41af40422e backward compatibility + property editors for joint motor params 2025-09-09 20:17:14 +03:00
Zheng Luo 0b15f2ba81 joint motor 2d implemented 2025-09-08 18:11:09 -07:00
Zheng Luo ec4bd857c5 joint motor 3d implemented 2025-09-08 13:45:33 -07:00
Dmitry Stepanov 2b834d5b78 fixed ambient lighting in case of non-skybox lighting 2025-09-04 19:00:01 +03:00
Dmitry Stepanov 287dd6c252 hide "revert" button for inheritable properties when no parent object
- having this button visible for new objects without a parent prefab is very confusing, it also did nothing so it was even more confusing
2025-09-03 23:09:58 +03:00
Dmitry Stepanov 462e7fd26e Merge pull request #833 from b-guild/graphics
Clarifying graphics code with comments and slight corrections.
2025-08-31 17:08:03 +03:00
b-guild 89a3228e6b Clarifying fyrox-graphics and rendering code in fyrox-impl 2025-08-29 00:11:20 -07:00
Dmitry Stepanov b40bc9cefd migrate to latest winit + glutin 2025-08-27 23:42:08 +03:00
Dmitry Stepanov c1f1200efc moved set_panic_hook to engine initialization for wasm builds 2025-08-26 22:01:26 +03:00
Dmitry Stepanov 48f0614ad6 fixed blending issues when batching multiple rectangles
- each layer now has its own batch
- #725
2025-08-26 17:38:40 +03:00
Dmitry Stepanov 26cbde5955 configurable fadeout margin for particle systems 2025-08-25 22:50:10 +03:00
Dmitry Stepanov bb45368a96 handle invalid aabb/division by zero when doing camera fitting
- prevents infinity and nan values from sneaking in the final result
- fixes "corrupted" asset preview in the editor in some cases
2025-08-21 21:51:07 +03:00
Dmitry Stepanov 056db07914 expose instance id + add docs 2025-08-16 12:20:55 +03:00
Dmitry Stepanov 25652975e0 use doc comment for property description 2025-08-16 12:11:32 +03:00
Dmitry Stepanov c8c4cbe595 expose more properties in the inspector 2025-08-16 11:10:52 +03:00
Dmitry Stepanov 85e654937a unhide node's global transform in the inspector 2025-08-16 11:02:53 +03:00
Dmitry Stepanov f97851f11d updated deps 2025-08-10 10:24:13 +03:00
Dmitry Stepanov 9dbfdfc694 updated to rapier 0.28 + nalgebra 0.34 2025-08-10 10:04:59 +03:00