rush2112 wrote: 12 Feb 2025, 10:00
Hello @asoo ,
I'm having difficulty getting the color to work properly on my GTR3 Pro. The issue seems to be that the pointer is not aligning with the selected color. No matter what color I choose, the pointer does not change accordingly. Can you provide guidance on how to resolve this issue?
Thank you!
From checking, it seems that you did not use the script I did to create the dial, but you used the ability to click to change the Backgorund in the editor to create it. If that's the case, you would not be able to manage in the step pointer element change section, because the editor does not have that section.
So if you want to change the color of the step pointer, you can do it in 2 ways:
1. Use a custom script to manage it.
2. Insert the script in the original script that the editor created. ( in index.js )
In this case, I will do the second way to give you an example.
By inserting a script to toggle the step pointer, using the variable "backgroundindex" in the Change background section as the handler to change the color order of step pointer.
Code: Select all
normal_step_pointer_progress_img_pointer.setProperty(hmUI.prop.MORE, {
src: "Pointer" + parseInt(backgroundIndex + 1) + ".png",
center_x: 240,
center_y: 240,
x: 10,
y: 238,
start_angle: 270,
end_angle: 379,
invalid_visible: false,
type: hmUI.data_type.STEP,
show_level: hmUI.show_level.ONLY_NORMAL,
});
Insert this script into the
- switchBackground() function
- //SwitchBackground
in index.js that created by the editor.