Fixed an issue where pressing the delete key would remove an entity if the mouse was hovering over the entity tree list, instead of deleting a character in the TextInputField.
- Added functionality to prevent calling the backlog when the Home key is pressed while typing in the TextField.
The hotkeys could be called even while typing in the TextInputField. I found out that the following part from TextInputField::Update was causing this
if (state == DEACTIVATING)
{
state = IDLE;
typing_active = false;
}
So, I moved typing_active = false closer to the two lines calling Deactivate() in TextInputField::Update().
- Using explicit conversion when calling std::signbit() in AnimationWindow::speedSlider::OnSlide() to resolve the warning during compilation.
- Moved AnimationWindow::lastDirection to local scope within AnimationWindow::speedSlider::OnSlide(), as it is only used there.
Add new logic and buttons to AnimationWindow for playing backwards and for the new loop types.
Add new methods to control looping: AnimationComponent::IsPingPong, AnimationComponent::IsPlayingOnce, AnimationComponent::SetPingPong, and AnimationComponent::SetPlayOnce.
Add checks in Scene::RunAnimationUpdateSystem for the new loops when the animation reaches the end.
After a discussion with Matteo, we decided it's better
to use if_different on CMake 3.26+ and just copy_directory
on previous versions. It seems to copy less files each run,
so it's good to use it if available.
I accidentially used a CMake 3.26+ only command.
Copying the content directory doesn't take that long, so requiring 3.26
doesn't seem to be worth it at the time. So just replace it with
copy_directory
* Fixed windows template not being included
* added and modified cmake files
added cmake in the template folder
modified cmake file in root directory because we dont need platform depenedend option imo
CMake recommends against doing this because some build systems
might not support CONFIGURE_DEPENDS. But currently, the ones
we care about (Make, Ninja) do, and if there's ever a problem,
we can just start listing them again.
Using globs has the advantage that the linux build will not break
when a file is added in VS and somebody forgets to add the file to
cmakelists as well. I've also found some instances were some *.h
files were not listed, which means they weren't copied when installing.