mirror of
https://github.com/godotengine/godot.git
synced 2025-10-23 09:53:25 +00:00
parent
132e2f458d
commit
8d51618949
134 changed files with 1107 additions and 1110 deletions
|
@ -514,26 +514,26 @@ void VisualScriptPropertySelector::_item_selected() {
|
|||
if (names->find(name) != NULL) {
|
||||
Ref<VisualScriptOperator> operator_node = VisualScriptLanguage::singleton->create_node_from_name(name);
|
||||
if (operator_node.is_valid()) {
|
||||
Map<String, DocData::ClassDoc>::Element *E = dd->class_list.find(operator_node->get_class_name());
|
||||
if (E) {
|
||||
Map<String, DocData::ClassDoc>::Element *F = dd->class_list.find(operator_node->get_class_name());
|
||||
if (F) {
|
||||
text = Variant::get_operator_name(operator_node->get_operator());
|
||||
}
|
||||
}
|
||||
Ref<VisualScriptTypeCast> typecast_node = VisualScriptLanguage::singleton->create_node_from_name(name);
|
||||
if (typecast_node.is_valid()) {
|
||||
Map<String, DocData::ClassDoc>::Element *E = dd->class_list.find(typecast_node->get_class_name());
|
||||
if (E) {
|
||||
text = E->get().description;
|
||||
Map<String, DocData::ClassDoc>::Element *F = dd->class_list.find(typecast_node->get_class_name());
|
||||
if (F) {
|
||||
text = F->get().description;
|
||||
}
|
||||
}
|
||||
|
||||
Ref<VisualScriptBuiltinFunc> builtin_node = VisualScriptLanguage::singleton->create_node_from_name(name);
|
||||
if (builtin_node.is_valid()) {
|
||||
Map<String, DocData::ClassDoc>::Element *E = dd->class_list.find(builtin_node->get_class_name());
|
||||
if (E) {
|
||||
for (int i = 0; i < E->get().constants.size(); i++) {
|
||||
if (E->get().constants[i].value.to_int() == int(builtin_node->get_func())) {
|
||||
text = E->get().constants[i].description;
|
||||
Map<String, DocData::ClassDoc>::Element *F = dd->class_list.find(builtin_node->get_class_name());
|
||||
if (F) {
|
||||
for (int i = 0; i < F->get().constants.size(); i++) {
|
||||
if (F->get().constants[i].value.to_int() == int(builtin_node->get_func())) {
|
||||
text = F->get().constants[i].description;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue