Search Results

Found 1 results for "1fc630f65531048f1d331f1905325935" across all boards searching md5.

Anonymous /vg/531288638#531299374
7/15/2025, 11:50:18 AM
i got sick of naming my buttons in the scene tree but then they appear like [] because i forgot to put the text variable

so i made a custom derived button type that just sets text=name

then I also wanted the name to match the text in the scene tree, so i made name=text and modified it a bit so it won't recurse (test and only set if not alreadyt equal)

then this breaks the way i was assigning the onPressed handler as now the nodepath is changing whenever i change the label text

so then i added an export variable of nodepath of where the onPressed handler is, and an export variable of name of hte onPressed handler function, that worked, but then i wanted a drop down.

but then it was only showing the builtin methods, not my custom script attached methods

so i had to get teh script obejct, test if not null, and call get_script_method_list, then it was returning empty ebcasue i was using a builtin script rather than an external .gd script file beause fuck littering a million script fiels for little event handlers and stuff, so I use builtin scripts unless it is going to be big or is going to be attached to multiple nodes, anyway, so then i found that i can stil lget the source code, so then i split it on lines, looked for lines starting with func, and took from there until ( and now the dropdown works good.

EVERY single thing you try to do in goDONT because a rabbit hole...