Skip to main content

hong-mo-zhui-zong

Touch Track

The Touch Track control is used to position the pointer in the control with respect to the background. The Touch Track control can be bound to 1 register and return up to 8 register values, where the high 4 bits are the horizontal coordinates of the pointer and the low 4 bits are the vertical coordinates of the pointer.

Click the "Add Control" button in the "Edit" menu, and then click "Touch Track" in the drop-down list of controls.

The message "Add Widget Successfully" will pop up in the upper right corner of the interface, and you can see the newly added control in the "Edit Area". Select the control, you can edit it in the "Properties" column.


Name, ID, Coordinates, Width, Height, Blocking Touch, Transform, Texture Compression Mode, Replaceable Upgrade, Texture are common attributes, which are introduced in the "Basic Design - Edit Attributes" section, so we won't repeat them here.

Bind the control to a register-enabled variable, and drag the pointer position in the runtime debugging interface, the variable value will be changed accordingly. In the following two diagrams, the pointer positions are (67,61) and (254,238) respectively.