|
@@ -283,8 +283,7 @@ void EditorPropertyMultilineText::update_property() {
|
|
|
|
|
|
void EditorPropertyMultilineText::_notification(int p_what) {
|
|
void EditorPropertyMultilineText::_notification(int p_what) {
|
|
switch (p_what) {
|
|
switch (p_what) {
|
|
- case NOTIFICATION_THEME_CHANGED:
|
|
|
|
- case NOTIFICATION_ENTER_TREE: {
|
|
|
|
|
|
+ case NOTIFICATION_THEME_CHANGED: {
|
|
Ref<Texture2D> df = get_editor_theme_icon(SNAME("DistractionFree"));
|
|
Ref<Texture2D> df = get_editor_theme_icon(SNAME("DistractionFree"));
|
|
open_big_text->set_button_icon(df);
|
|
open_big_text->set_button_icon(df);
|
|
|
|
|
|
@@ -436,7 +435,6 @@ void EditorPropertyTextEnum::setup(const Vector<String> &p_options, bool p_strin
|
|
|
|
|
|
void EditorPropertyTextEnum::_notification(int p_what) {
|
|
void EditorPropertyTextEnum::_notification(int p_what) {
|
|
switch (p_what) {
|
|
switch (p_what) {
|
|
- case NOTIFICATION_ENTER_TREE:
|
|
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
edit_button->set_button_icon(get_editor_theme_icon(SNAME("Edit")));
|
|
edit_button->set_button_icon(get_editor_theme_icon(SNAME("Edit")));
|
|
accept_button->set_button_icon(get_editor_theme_icon(SNAME("ImportCheck")));
|
|
accept_button->set_button_icon(get_editor_theme_icon(SNAME("ImportCheck")));
|
|
@@ -529,7 +527,6 @@ void EditorPropertyLocale::setup(const String &p_hint_text) {
|
|
|
|
|
|
void EditorPropertyLocale::_notification(int p_what) {
|
|
void EditorPropertyLocale::_notification(int p_what) {
|
|
switch (p_what) {
|
|
switch (p_what) {
|
|
- case NOTIFICATION_ENTER_TREE:
|
|
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
locale_edit->set_button_icon(get_editor_theme_icon(SNAME("Translation")));
|
|
locale_edit->set_button_icon(get_editor_theme_icon(SNAME("Translation")));
|
|
} break;
|
|
} break;
|
|
@@ -642,7 +639,6 @@ void EditorPropertyPath::set_save_mode() {
|
|
|
|
|
|
void EditorPropertyPath::_notification(int p_what) {
|
|
void EditorPropertyPath::_notification(int p_what) {
|
|
switch (p_what) {
|
|
switch (p_what) {
|
|
- case NOTIFICATION_ENTER_TREE:
|
|
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
if (folder) {
|
|
if (folder) {
|
|
path_edit->set_button_icon(get_editor_theme_icon(SNAME("FolderBrowse")));
|
|
path_edit->set_button_icon(get_editor_theme_icon(SNAME("FolderBrowse")));
|
|
@@ -1235,7 +1231,6 @@ void EditorPropertyLayersGrid::_bind_methods() {
|
|
|
|
|
|
void EditorPropertyLayers::_notification(int p_what) {
|
|
void EditorPropertyLayers::_notification(int p_what) {
|
|
switch (p_what) {
|
|
switch (p_what) {
|
|
- case NOTIFICATION_ENTER_TREE:
|
|
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
button->set_texture_normal(get_editor_theme_icon(SNAME("GuiTabMenuHl")));
|
|
button->set_texture_normal(get_editor_theme_icon(SNAME("GuiTabMenuHl")));
|
|
button->set_texture_pressed(get_editor_theme_icon(SNAME("GuiTabMenuHl")));
|
|
button->set_texture_pressed(get_editor_theme_icon(SNAME("GuiTabMenuHl")));
|
|
@@ -1759,8 +1754,7 @@ void EditorPropertyEasing::setup(bool p_positive_only, bool p_flip) {
|
|
|
|
|
|
void EditorPropertyEasing::_notification(int p_what) {
|
|
void EditorPropertyEasing::_notification(int p_what) {
|
|
switch (p_what) {
|
|
switch (p_what) {
|
|
- case NOTIFICATION_THEME_CHANGED:
|
|
|
|
- case NOTIFICATION_ENTER_TREE: {
|
|
|
|
|
|
+ case NOTIFICATION_THEME_CHANGED: {
|
|
preset->clear();
|
|
preset->clear();
|
|
preset->add_icon_item(get_editor_theme_icon(SNAME("CurveLinear")), "Linear", EASING_LINEAR);
|
|
preset->add_icon_item(get_editor_theme_icon(SNAME("CurveLinear")), "Linear", EASING_LINEAR);
|
|
preset->add_icon_item(get_editor_theme_icon(SNAME("CurveIn")), "Ease In", EASING_IN);
|
|
preset->add_icon_item(get_editor_theme_icon(SNAME("CurveIn")), "Ease In", EASING_IN);
|
|
@@ -1827,7 +1821,6 @@ void EditorPropertyRect2::update_property() {
|
|
|
|
|
|
void EditorPropertyRect2::_notification(int p_what) {
|
|
void EditorPropertyRect2::_notification(int p_what) {
|
|
switch (p_what) {
|
|
switch (p_what) {
|
|
- case NOTIFICATION_ENTER_TREE:
|
|
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 4; i++) {
|
|
for (int i = 0; i < 4; i++) {
|
|
@@ -1922,7 +1915,6 @@ void EditorPropertyRect2i::update_property() {
|
|
|
|
|
|
void EditorPropertyRect2i::_notification(int p_what) {
|
|
void EditorPropertyRect2i::_notification(int p_what) {
|
|
switch (p_what) {
|
|
switch (p_what) {
|
|
- case NOTIFICATION_ENTER_TREE:
|
|
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 4; i++) {
|
|
for (int i = 0; i < 4; i++) {
|
|
@@ -2017,7 +2009,6 @@ void EditorPropertyPlane::update_property() {
|
|
|
|
|
|
void EditorPropertyPlane::_notification(int p_what) {
|
|
void EditorPropertyPlane::_notification(int p_what) {
|
|
switch (p_what) {
|
|
switch (p_what) {
|
|
- case NOTIFICATION_ENTER_TREE:
|
|
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 4; i++) {
|
|
for (int i = 0; i < 4; i++) {
|
|
@@ -2160,7 +2151,6 @@ void EditorPropertyQuaternion::_warning_pressed() {
|
|
|
|
|
|
void EditorPropertyQuaternion::_notification(int p_what) {
|
|
void EditorPropertyQuaternion::_notification(int p_what) {
|
|
switch (p_what) {
|
|
switch (p_what) {
|
|
- case NOTIFICATION_ENTER_TREE:
|
|
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 4; i++) {
|
|
for (int i = 0; i < 4; i++) {
|
|
@@ -2314,7 +2304,6 @@ void EditorPropertyAABB::update_property() {
|
|
|
|
|
|
void EditorPropertyAABB::_notification(int p_what) {
|
|
void EditorPropertyAABB::_notification(int p_what) {
|
|
switch (p_what) {
|
|
switch (p_what) {
|
|
- case NOTIFICATION_ENTER_TREE:
|
|
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 6; i++) {
|
|
for (int i = 0; i < 6; i++) {
|
|
@@ -2388,7 +2377,6 @@ void EditorPropertyTransform2D::update_property() {
|
|
|
|
|
|
void EditorPropertyTransform2D::_notification(int p_what) {
|
|
void EditorPropertyTransform2D::_notification(int p_what) {
|
|
switch (p_what) {
|
|
switch (p_what) {
|
|
- case NOTIFICATION_ENTER_TREE:
|
|
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 6; i++) {
|
|
for (int i = 0; i < 6; i++) {
|
|
@@ -2476,7 +2464,6 @@ void EditorPropertyBasis::update_property() {
|
|
|
|
|
|
void EditorPropertyBasis::_notification(int p_what) {
|
|
void EditorPropertyBasis::_notification(int p_what) {
|
|
switch (p_what) {
|
|
switch (p_what) {
|
|
- case NOTIFICATION_ENTER_TREE:
|
|
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 9; i++) {
|
|
for (int i = 0; i < 9; i++) {
|
|
@@ -2566,7 +2553,6 @@ void EditorPropertyTransform3D::update_using_transform(Transform3D p_transform)
|
|
|
|
|
|
void EditorPropertyTransform3D::_notification(int p_what) {
|
|
void EditorPropertyTransform3D::_notification(int p_what) {
|
|
switch (p_what) {
|
|
switch (p_what) {
|
|
- case NOTIFICATION_ENTER_TREE:
|
|
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 12; i++) {
|
|
for (int i = 0; i < 12; i++) {
|
|
@@ -2664,7 +2650,6 @@ void EditorPropertyProjection::update_using_transform(Projection p_transform) {
|
|
|
|
|
|
void EditorPropertyProjection::_notification(int p_what) {
|
|
void EditorPropertyProjection::_notification(int p_what) {
|
|
switch (p_what) {
|
|
switch (p_what) {
|
|
- case NOTIFICATION_ENTER_TREE:
|
|
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
const Color *colors = _get_property_colors();
|
|
const Color *colors = _get_property_colors();
|
|
for (int i = 0; i < 16; i++) {
|
|
for (int i = 0; i < 16; i++) {
|
|
@@ -2746,7 +2731,6 @@ void EditorPropertyColor::_popup_closed() {
|
|
|
|
|
|
void EditorPropertyColor::_notification(int p_what) {
|
|
void EditorPropertyColor::_notification(int p_what) {
|
|
switch (p_what) {
|
|
switch (p_what) {
|
|
- case NOTIFICATION_ENTER_TREE:
|
|
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
picker->set_custom_minimum_size(Size2(0, get_theme_constant(SNAME("color_picker_button_height"), EditorStringName(Editor))));
|
|
picker->set_custom_minimum_size(Size2(0, get_theme_constant(SNAME("color_picker_button_height"), EditorStringName(Editor))));
|
|
} break;
|
|
} break;
|
|
@@ -3027,7 +3011,6 @@ void EditorPropertyNodePath::setup(const Vector<StringName> &p_valid_types, bool
|
|
|
|
|
|
void EditorPropertyNodePath::_notification(int p_what) {
|
|
void EditorPropertyNodePath::_notification(int p_what) {
|
|
switch (p_what) {
|
|
switch (p_what) {
|
|
- case NOTIFICATION_ENTER_TREE:
|
|
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
case NOTIFICATION_THEME_CHANGED: {
|
|
menu->set_button_icon(get_editor_theme_icon(SNAME("GuiTabMenuHl")));
|
|
menu->set_button_icon(get_editor_theme_icon(SNAME("GuiTabMenuHl")));
|
|
menu->get_popup()->set_item_icon(ACTION_CLEAR, get_editor_theme_icon(SNAME("Clear")));
|
|
menu->get_popup()->set_item_icon(ACTION_CLEAR, get_editor_theme_icon(SNAME("Clear")));
|