85 Commits

Author SHA1 Message Date
Vyacheslav Ivanov
5e70837d3f fix: optimization: PVS-Studio warning V815
The 'empty()' method is more efficient for checking if a string is empty compared to comparing it with an empty string literal.

The default constructor 'std::wstring()' is more efficient for creating an empty string compared to using a string literal.

The 'clear()' method is more efficient for clearing a std::wstring compared to assigning it an empty string literal.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:50:58 +03:00
Vyacheslav Ivanov
8c5e5559ec fix: optimization: PVS-Studio warning V831
Replaced 'at()' method with 'operator[]' to improve performance.

The 'at()' method performs bounds checking, which can introduce overhead. Using 'operator[]' bypasses this check and can improve performance when you are certain that the index is within bounds.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 17:46:29 +03:00
MihailRis
ba046a52c0
Revert "fix: optimization: Various PVS-Studio warnings" 2024-08-02 14:51:44 +03:00
Vyacheslav Ivanov
2c1103307f
fix: optimization: PVS-Studio warning V813
Passing large objects by const reference avoids unnecessary copying and enhances efficiency.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 05:35:55 +03:00
Vyacheslav Ivanov
5b325ac2bc
fix: optimization: PVS-Studio warning V815
The 'empty()' method is more efficient for checking if a string is empty compared to comparing it with an empty string literal.

The default constructor 'std::wstring()' is more efficient for creating an empty string compared to using a string literal.

The 'clear()' method is more efficient for clearing a std::wstring compared to assigning it an empty string literal.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 05:35:55 +03:00
Vyacheslav Ivanov
f3f872c7a3
fix: optimization: PVS-Studio warning V831
Replaced 'at()' method with 'operator[]' to improve performance.

The 'at()' method performs bounds checking, which can introduce overhead. Using 'operator[]' bypasses this check and can improve performance when you are certain that the index is within bounds.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 02:38:54 +03:00
MihailRis
f46e4a7989 add trackbar 'sub-consumer' for value label refresh when 'change-on-release' 2024-07-28 22:15:18 +03:00
MihailRis
8ca12127db add 'change-on-release' trackbar property & fix mouseRelease event timing 2024-07-28 12:38:31 +03:00
MihailRis
1f257d2db2 Merge branch 'main' into entities 2024-06-30 22:34:51 +03:00
MihailRis
71c754b039 fix Image for non-existing textures in atlas 2024-06-30 22:25:31 +03:00
MihailRis
316233816f Merge branch 'main' into entities 2024-06-30 22:16:14 +03:00
MihailRis
2dffdf757c add <image ...> atlases support 2024-06-30 22:05:12 +03:00
MihailRis
ee9f1639e9 refactor Content 2024-06-25 22:37:53 +03:00
MihailRis
d54b6b2e58 update Assets container - template-based now 2024-06-22 22:30:14 +03:00
MihailRis
0eab8ad8f2 fix: world reload fatal error fix 2024-06-11 14:01:18 +03:00
MihailRis
78de9c39d8 fix: TextBox.setCaret fails when font is not ready 2024-06-07 22:38:03 +03:00
Sergwest
ac0408d42a arch compability fixes and unwarning changes 2024-06-07 22:20:40 +03:00
MihailRis
a5dc187481 fix: function returns by const value 2024-06-07 15:17:32 +03:00
Pugemon
f25a425cb9 Optimize parameter passing to avoid unnecessary copying 2024-06-07 04:00:38 +03:00
MihailRis
2ee2ca7a38 fix: empty textbox double click causes fatal error 2024-06-04 23:20:22 +03:00
MihailRis
98abbfd838 checkbox tooltips fix 2024-06-04 12:47:16 +03:00
MihailRis
df2c024a3e settings tooltips 2024-06-04 12:44:33 +03:00
MihailRis
c59973505e added node:destruct() 2024-06-03 09:50:48 +03:00
MihailRis
2d27e5662a label size fix 2024-05-28 04:02:35 +03:00
MihailRis
030c9ca085 right click item increment fix with stack 2024-05-27 07:19:13 +03:00
MihailRis
cc27e4b224 fix: tooltip visibility when cursor is hidden 2024-05-25 06:24:54 +03:00
MihailRis
e3989cb178 added 'tooltip-delay' property 2024-05-24 13:18:20 +03:00
MihailRis
4400efae33 item captions format update 2024-05-24 09:23:26 +03:00
MihailRis
eb10904069 added tooltips 2024-05-24 08:03:05 +03:00
MihailRis
41ef80e938 checkbox fix 2024-05-22 22:39:27 +03:00
MihailRis
fad9dc85ad added image.src property 2024-05-22 22:37:17 +03:00
MihailRis
f47c7d00a2 again 2024-05-18 22:17:02 +03:00
MihailRis
35fdd475ee msvc build fix 2024-05-18 22:13:53 +03:00
MihailRis
535c7d8326 small fixes 2024-05-18 16:57:04 +03:00
MihailRis
3992ca8291 textbox.caret property 2024-05-17 12:18:39 +03:00
MihailRis
d0b7dec225 'help' command test 2024-05-16 20:50:16 +03:00
MihailRis
d5171f62da microfix 2024-05-16 14:15:09 +03:00
MihailRis
7be1c3f223 textbox onup, ondown callbacks 2024-05-16 13:02:20 +03:00
MihailRis
2bb6ad523e textbox:paste(...) scroll fix 2024-05-16 09:58:47 +03:00
MihailRis
46e9c7dbec Merge branch 'main' into devtools 2024-05-16 06:44:27 +03:00
MihailRis
a678eddb77 double click support 2024-05-16 06:43:53 +03:00
MihailRis
e4fe4a6f12 small update 2024-05-14 20:43:46 +03:00
MihailRis
8bf65eef1a textbox autoresize 2024-05-14 05:05:13 +03:00
MihailRis
1f11290635 more test commands 2024-05-13 21:28:55 +03:00
MihailRis
165525f18c includes refactor 2024-05-13 03:20:09 +03:00
MihailRis
f8a5f329a4 UINode size-func 2024-05-13 02:57:36 +03:00
MihailRis
1f3cf5ed53 textbox editable property fix 2024-05-12 19:50:07 +03:00
MihailRis
9522aedeec quick check with linters 2024-05-10 12:34:05 +03:00
MihailRis
b3a1cad0e1 msvc build fix 2024-05-06 17:15:48 +03:00
MihailRis
1627e21c1d the final rename 2024-05-06 03:38:19 +03:00