View Single Post
Old 11-15-2018, 12:09 AM   #359
Human being with feelings
dsyrock's Avatar
Join Date: Sep 2018
Location: China
Posts: 145

Originally Posted by Lokasenna View Post
Ah. Yes, in that case you need to redeclare it - when you create a new slider, it only has the default slider methods.

If all of the sliders in your script make use of your extended method, you could extendGUI.Slidernmousedown instead to have all of them pick it up. You might have to declare that before creating them, I'm not sure.
Emmm... A new strange thing happened.I redeclared the function GUI.elms.myslidernmousedown(), it worked. But at the same time I redeclared the function GUI.elms.mysliderndrag() too, but I couldn't drag the slider anymore. Before I recreating the slider, both of them worked perfectly
dsyrock is offline   Reply With Quote