Merge pull request #64445 from timothyqiu/action-completion-3.x
[3.x] Fix action name completion for `Input.get_{axis,vector}`
This commit is contained in:
commit
4196cc0c00
@ -142,11 +142,9 @@ void Input::get_argument_options(const StringName &p_function, int p_idx, List<S
|
|||||||
const String quote_style = EDITOR_GET("text_editor/completion/use_single_quotes") ? "'" : "\"";
|
const String quote_style = EDITOR_GET("text_editor/completion/use_single_quotes") ? "'" : "\"";
|
||||||
|
|
||||||
String pf = p_function;
|
String pf = p_function;
|
||||||
if (p_idx == 0 &&
|
if ((p_idx == 0 && (pf == "is_action_pressed" || pf == "action_press" || pf == "action_release" || pf == "is_action_just_pressed" || pf == "is_action_just_released" || pf == "get_action_strength" || pf == "get_action_raw_strength")) ||
|
||||||
(pf == "is_action_pressed" || pf == "action_press" || pf == "action_release" ||
|
(p_idx < 2 && pf == "get_axis") ||
|
||||||
pf == "is_action_just_pressed" || pf == "is_action_just_released" ||
|
(p_idx < 4 && pf == "get_vector")) {
|
||||||
pf == "get_action_strength" || pf == "get_action_raw_strength" ||
|
|
||||||
pf == "get_axis" || pf == "get_vector")) {
|
|
||||||
List<PropertyInfo> pinfo;
|
List<PropertyInfo> pinfo;
|
||||||
ProjectSettings::get_singleton()->get_property_list(&pinfo);
|
ProjectSettings::get_singleton()->get_property_list(&pinfo);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user