Compare commits
2 Commits
af0414bf35
...
f5934d0f5d
Author | SHA1 | Date |
---|---|---|
Wilson E. Alvarez | f5934d0f5d | |
Wilson E. Alvarez | 20c4d26700 |
|
@ -287,14 +287,14 @@ void EditorPropertyBBParam::update_property() {
|
||||||
variable_editor->update_property();
|
variable_editor->update_property();
|
||||||
variable_editor->show();
|
variable_editor->show();
|
||||||
bottom_container->hide();
|
bottom_container->hide();
|
||||||
type_choice->set_icon(get_editor_theme_icon(SNAME("LimboExtraVariable")));
|
type_choice->set_button_icon(get_editor_theme_icon(SNAME("LimboExtraVariable")));
|
||||||
} else {
|
} else {
|
||||||
_create_value_editor(param->get_type());
|
_create_value_editor(param->get_type());
|
||||||
variable_editor->hide();
|
variable_editor->hide();
|
||||||
value_editor->show();
|
value_editor->show();
|
||||||
value_editor->set_object_and_property(param.ptr(), SNAME("saved_value"));
|
value_editor->set_object_and_property(param.ptr(), SNAME("saved_value"));
|
||||||
value_editor->update_property();
|
value_editor->update_property();
|
||||||
type_choice->set_icon(get_editor_theme_icon(Variant::get_type_name(param->get_type())));
|
type_choice->set_button_icon(get_editor_theme_icon(Variant::get_type_name(param->get_type())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -316,7 +316,7 @@ void EditorPropertyBBParam::_notification(int p_what) {
|
||||||
|
|
||||||
{
|
{
|
||||||
String type = Variant::get_type_name(_get_edited_param()->get_type());
|
String type = Variant::get_type_name(_get_edited_param()->get_type());
|
||||||
type_choice->set_icon(get_editor_theme_icon(type));
|
type_choice->set_button_icon(get_editor_theme_icon(type));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize type choice.
|
// Initialize type choice.
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
#define IS_CLASS(m_obj, m_class) (m_obj->is_class_ptr(m_class::get_class_ptr_static()))
|
#define IS_CLASS(m_obj, m_class) (m_obj->is_class_ptr(m_class::get_class_ptr_static()))
|
||||||
#define RAND_RANGE(m_from, m_to) (Math::random(m_from, m_to))
|
#define RAND_RANGE(m_from, m_to) (Math::random(m_from, m_to))
|
||||||
#define RANDF() (Math::randf())
|
#define RANDF() (Math::randf())
|
||||||
#define BUTTON_SET_ICON(m_btn, m_icon) m_btn->set_icon(m_icon)
|
#define BUTTON_SET_ICON(m_btn, m_icon) m_btn->set_button_icon(m_icon)
|
||||||
#define RESOURCE_LOAD(m_path, m_hint) ResourceLoader::load(m_path, m_hint)
|
#define RESOURCE_LOAD(m_path, m_hint) ResourceLoader::load(m_path, m_hint)
|
||||||
#define RESOURCE_LOAD_NO_CACHE(m_path, m_hint) ResourceLoader::load(m_path, m_hint, ResourceFormatLoader::CACHE_MODE_IGNORE)
|
#define RESOURCE_LOAD_NO_CACHE(m_path, m_hint) ResourceLoader::load(m_path, m_hint, ResourceFormatLoader::CACHE_MODE_IGNORE)
|
||||||
#define RESOURCE_SAVE(m_res, m_path, m_flags) ResourceSaver::save(m_res, m_path, m_flags)
|
#define RESOURCE_SAVE(m_res, m_path, m_flags) ResourceSaver::save(m_res, m_path, m_flags)
|
||||||
|
|
Loading…
Reference in New Issue