Code Monkey home page Code Monkey logo

Comments (9)

fian46 avatar fian46 commented on August 18, 2024

currently this feature is broken due to bug in Godot engine it self. The EditorInspector class signal is main blocking issue to resolve. I am opening this bug report in Godot main repository. i am hopping Godot still do maintenance release in near future so i can complete this feature.

from addons-btree.

ClubEdNZ avatar ClubEdNZ commented on August 18, 2024

object_id_selected: Emitted when the Edit button of an Object has been pressed in the inspector.

Silly question, but what's the 'edit' button of an object?

I'm currently using init.gd, func selection_changed() to track if a node with a BTREE is currently selected.

[edited to remove non-related error in my code, which I thought might have been related :) ]

from addons-btree.

fian46 avatar fian46 commented on August 18, 2024

Selection changed to handle tree in local tree. Remote tree need editor inspector

"object_id_selected ( int id )
Emitted when the Edit button of an Object has been pressed in the inspector. This is mainly used in the remote scene tree inspector'

from addons-btree.

fian46 avatar fian46 commented on August 18, 2024

I am not quite sure what this edit button means. Sorry my english is not so good.

from addons-btree.

fian46 avatar fian46 commented on August 18, 2024

If really needed maybe btree can make it own remote scene tree inspector for current running instance. This can eliminate blockage within godot it self. But required heavy net code to send scene tree data and current btree state. This is not ideal since godot already sending the same thing. Plus this lib written in gdscript, debugging maybe harder because the heavy net code operation can fill the entire profiler stack and make things worse.

from addons-btree.

fian46 avatar fian46 commented on August 18, 2024

i am assuming just by selecting the node in remote inspector can return such id ? i am not aware about EDIT button anywhere so... what do you think ?

Screenshot from 2020-09-09 17-10-54

The debugger idea is get the object id, reverse the id to actual BTREE Node by GDSCRIPT function Object instance_from_id(id), get the runtime_tree then animate the color in editor.

from addons-btree.

fian46 avatar fian46 commented on August 18, 2024

closed with #16

from addons-btree.

ClubEdNZ avatar ClubEdNZ commented on August 18, 2024

I just learned that on old versions of Godot, the Workspace toolbar had an "edit" button (see the first image, just under the "Script" tab: https://docs.godotengine.org/en/2.1/learning/editor/2d_and_3d_keybindings.html), which is no longer there in the current version. Perhaps object_id_selected() is not supposed to do anything anymore.

from addons-btree.

fian46 avatar fian46 commented on August 18, 2024

Too bad i just rewrite custom inspector for it. Its already in my local branch and never pushed.

from addons-btree.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.