Use int64_t for EditorPropertyInteger and warn when out of double range

This commit is contained in:
Aaron Franke
2020-01-15 20:37:08 -05:00
parent e889100f2f
commit 5e1dad3b28
2 changed files with 11 additions and 6 deletions

View File

@ -263,14 +263,14 @@ class EditorPropertyInteger : public EditorProperty {
GDCLASS(EditorPropertyInteger, EditorProperty);
EditorSpinSlider *spin;
bool setting;
void _value_changed(double p_val);
void _value_changed(int64_t p_val);
protected:
static void _bind_methods();
public:
virtual void update_property();
void setup(int p_min, int p_max, int p_step, bool p_allow_greater, bool p_allow_lesser);
void setup(int64_t p_min, int64_t p_max, int64_t p_step, bool p_allow_greater, bool p_allow_lesser);
EditorPropertyInteger();
};