WIP
This commit is contained in:
committed by
Jérôme Leclercq
parent
481702c109
commit
05c78da22a
@@ -3,15 +3,7 @@
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/Widgets/ButtonWidget.hpp>
|
||||
#include <Nazara/Graphics/BasicMaterial.hpp>
|
||||
#include <Nazara/Graphics/Material.hpp>
|
||||
#include <Nazara/Graphics/MaterialPass.hpp>
|
||||
#include <Nazara/Graphics/SlicedSprite.hpp>
|
||||
#include <Nazara/Graphics/Components/GraphicsComponent.hpp>
|
||||
#include <Nazara/Utility/AbstractTextDrawer.hpp>
|
||||
#include <Nazara/Utility/Components/NodeComponent.hpp>
|
||||
#include <Nazara/Widgets/Canvas.hpp>
|
||||
#include <Nazara/Widgets/Widgets.hpp>
|
||||
#include <Nazara/Widgets/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
@@ -56,7 +48,7 @@ namespace Nz
|
||||
|
||||
// If user clicks inside button and holds it outside, a release mouse button event will be triggered outside of the widget
|
||||
// we don't want this to trigger the button, so double-check
|
||||
if (IsInside(x, y))
|
||||
if (IsInside(float(x), float(y)))
|
||||
OnButtonTrigger(this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user