Fix highlight typo

This commit is contained in:
supaiku 2017-04-06 17:35:08 +02:00
parent 0ede0302ba
commit d51fe99a8b
5 changed files with 20 additions and 20 deletions

View file

@ -1088,7 +1088,7 @@ void EditorNode::_dialog_action(String p_file) {
GlobalConfig::get_singleton()->set("application/main_scene", p_file); GlobalConfig::get_singleton()->set("application/main_scene", p_file);
GlobalConfig::get_singleton()->save(); GlobalConfig::get_singleton()->save();
//would be nice to show the project manager opened with the hilighted field.. //would be nice to show the project manager opened with the highlighted field..
} break; } break;
case FILE_SAVE_OPTIMIZED: { case FILE_SAVE_OPTIMIZED: {

View file

@ -524,7 +524,7 @@ bool SpatialEditorViewport::_gizmo_select(const Vector2 &p_screenpos, bool p_hil
return false; return false;
if (get_selected_count() == 0) { if (get_selected_count() == 0) {
if (p_hilite_only) if (p_hilite_only)
spatial_editor->select_gizmo_hilight_axis(-1); spatial_editor->select_gizmo_highlight_axis(-1);
return false; return false;
} }
@ -558,7 +558,7 @@ bool SpatialEditorViewport::_gizmo_select(const Vector2 &p_screenpos, bool p_hil
if (p_hilite_only) { if (p_hilite_only) {
spatial_editor->select_gizmo_hilight_axis(col_axis); spatial_editor->select_gizmo_highlight_axis(col_axis);
} else { } else {
//handle rotate //handle rotate
@ -598,7 +598,7 @@ bool SpatialEditorViewport::_gizmo_select(const Vector2 &p_screenpos, bool p_hil
if (p_hilite_only) { if (p_hilite_only) {
spatial_editor->select_gizmo_hilight_axis(col_axis + 3); spatial_editor->select_gizmo_highlight_axis(col_axis + 3);
} else { } else {
//handle rotate //handle rotate
_edit.mode = TRANSFORM_ROTATE; _edit.mode = TRANSFORM_ROTATE;
@ -610,7 +610,7 @@ bool SpatialEditorViewport::_gizmo_select(const Vector2 &p_screenpos, bool p_hil
} }
if (p_hilite_only) if (p_hilite_only)
spatial_editor->select_gizmo_hilight_axis(-1); spatial_editor->select_gizmo_highlight_axis(-1);
return false; return false;
} }
@ -1069,7 +1069,7 @@ void SpatialEditorViewport::_sinput(const InputEvent &p_event) {
spatial_editor->set_over_gizmo_handle(selected_handle); spatial_editor->set_over_gizmo_handle(selected_handle);
spatial_editor->get_selected()->update_gizmo(); spatial_editor->get_selected()->update_gizmo();
if (selected_handle != -1) if (selected_handle != -1)
spatial_editor->select_gizmo_hilight_axis(-1); spatial_editor->select_gizmo_highlight_axis(-1);
} }
} }
} }
@ -2229,7 +2229,7 @@ SpatialEditorSelectedItem::~SpatialEditorSelectedItem() {
VisualServer::get_singleton()->free(sbox_instance); VisualServer::get_singleton()->free(sbox_instance);
} }
void SpatialEditor::select_gizmo_hilight_axis(int p_axis) { void SpatialEditor::select_gizmo_highlight_axis(int p_axis) {
for (int i = 0; i < 3; i++) { for (int i = 0; i < 3; i++) {

View file

@ -484,7 +484,7 @@ public:
void update_transform_gizmo(); void update_transform_gizmo();
void select_gizmo_hilight_axis(int p_axis); void select_gizmo_highlight_axis(int p_axis);
void set_custom_camera(Node *p_camera) { custom_camera = p_camera; } void set_custom_camera(Node *p_camera) { custom_camera = p_camera; }
void set_undo_redo(UndoRedo *p_undo_redo) { undo_redo = p_undo_redo; } void set_undo_redo(UndoRedo *p_undo_redo) { undo_redo = p_undo_redo; }

View file

@ -812,8 +812,8 @@ void TextEdit::_notification(int p_what) {
keyword_color = *col; keyword_color = *col;
} }
if (select_identifiers_enabled && hilighted_word != String()) { if (select_identifiers_enabled && highlighted_word != String()) {
if (hilighted_word == range) { if (highlighted_word == range) {
underlined = true; underlined = true;
} }
} }
@ -1463,9 +1463,9 @@ void TextEdit::_gui_input(const InputEvent &p_gui_input) {
int row, col; int row, col;
_get_mouse_pos(Point2i(mb.x, mb.y), row, col); _get_mouse_pos(Point2i(mb.x, mb.y), row, col);
if (mb.mod.command && hilighted_word != String()) { if (mb.mod.command && highlighted_word != String()) {
emit_signal("symbol_lookup", hilighted_word, row, col); emit_signal("symbol_lookup", highlighted_word, row, col);
return; return;
} }
@ -1608,13 +1608,13 @@ void TextEdit::_gui_input(const InputEvent &p_gui_input) {
if (mm.mod.command && mm.button_mask == 0) { if (mm.mod.command && mm.button_mask == 0) {
String new_word = get_word_at_pos(Vector2(mm.x, mm.y)); String new_word = get_word_at_pos(Vector2(mm.x, mm.y));
if (new_word != hilighted_word) { if (new_word != highlighted_word) {
hilighted_word = new_word; highlighted_word = new_word;
update(); update();
} }
} else { } else {
if (hilighted_word != String()) { if (highlighted_word != String()) {
hilighted_word = String(); highlighted_word = String();
update(); update();
} }
} }
@ -1655,11 +1655,11 @@ void TextEdit::_gui_input(const InputEvent &p_gui_input) {
if (k.pressed) { if (k.pressed) {
hilighted_word = get_word_at_pos(get_local_mouse_pos()); highlighted_word = get_word_at_pos(get_local_mouse_pos());
update(); update();
} else { } else {
hilighted_word = String(); highlighted_word = String();
update(); update();
} }
} }
@ -3174,7 +3174,7 @@ void TextEdit::insert_text_at_cursor(const String &p_text) {
} }
Control::CursorShape TextEdit::get_cursor_shape(const Point2 &p_pos) const { Control::CursorShape TextEdit::get_cursor_shape(const Point2 &p_pos) const {
if (hilighted_word != String()) if (highlighted_word != String())
return CURSOR_POINTING_HAND; return CURSOR_POINTING_HAND;
int gutter = cache.style_normal->get_margin(MARGIN_LEFT) + cache.line_number_w + cache.breakpoint_gutter_width; int gutter = cache.style_normal->get_margin(MARGIN_LEFT) + cache.line_number_w + cache.breakpoint_gutter_width;

View file

@ -252,7 +252,7 @@ class TextEdit : public Control {
bool raised_from_completion; bool raised_from_completion;
String hilighted_word; String highlighted_word;
uint64_t last_dblclk; uint64_t last_dblclk;