Control method, device and equipment for control in graphical user interface and storage medium

文档序号:1091005 发布日期:2020-09-25 浏览:11次 中文

阅读说明:本技术 图形用户界面中控件的控制方法、装置、设备及存储介质 (Control method, device and equipment for control in graphical user interface and storage medium ) 是由 黄华颖 郭宇 于 2020-06-17 设计创作,主要内容包括:本申请提供一种图形用户界面中控件的控制方法、装置、设备及存储介质,涉及游戏技术领域。该方法包括:响应针对图形用户界面上目标控件输入的悬浮移动操作,控制目标控件跟随悬浮移动操作移动;响应与悬浮移动操作连续的确认操作,获取悬浮移动操作的最终操作点在图形用户界面中对应的目标位置,并将目标控件设置于目标位置;响应作用于目标控件的触控操作,执行目标控件对应的功能。本申请的方法通过悬浮操作实现控件控制,丰富了控件自定义的交互方式,可避免触控操作时手指或者触控笔对图形用户界面上控件的遮挡,防止误操作,从而提高了控件控制的精确性。(The application provides a control method, a control device, control equipment and a storage medium for a control in a graphical user interface, and relates to the technical field of games. The method comprises the following steps: responding to the suspension movement operation input aiming at the target control on the graphical user interface, and controlling the target control to move along with the suspension movement operation; responding to the continuous confirmation operation of the suspension moving operation, acquiring a target position corresponding to a final operation point of the suspension moving operation in the graphical user interface, and setting a target control at the target position; and responding to the touch operation acted on the target control, and executing the function corresponding to the target control. According to the method, control is achieved through suspension operation, the user-defined interaction mode of the control is enriched, the situation that fingers or a touch pen block the control on a graphical user interface during touch operation can be avoided, misoperation is prevented, and therefore the control accuracy is improved.)

1. A control method for a control in a graphical user interface is characterized in that the graphical user interface is obtained by executing a software application on a processor of a mobile terminal and rendering the software application on a display of the mobile terminal, and the content displayed by the graphical user interface at least comprises the following steps: at least one control; the method comprises the following steps:

responding to the suspension movement operation input aiming at the target control on the graphical user interface, and controlling the target control to move along with the suspension movement operation;

responding to a confirmation operation continuous with the suspension moving operation, acquiring a target position corresponding to a final operation point of the suspension moving operation in the graphical user interface, and setting the target control at the target position;

and responding to the touch operation acted on the target control, and executing the function corresponding to the target control.

2. The method of claim 1, wherein responding to the hover movement operation for the target control input on the graphical user interface is preceded by:

and responding to the hovering operation in front of the graphical user interface within a preset identification range, and identifying the target control from the at least one control.

3. The method of claim 2, further comprising:

and when the target control is identified, providing first prompt information.

4. The method of claim 3, wherein the first prompt comprises:

and performing identification display on the target control on the graphical user interface.

5. The method of claim 4, wherein the identifying the target control on the graphical user interface comprises:

highlighting the target control on the graphical user interface.

6. The method of claim 3, wherein the first prompt comprises a vibration prompt or a voice prompt.

7. The method of claim 1, wherein in controlling the target control to move following the hover move operation, the method further comprises:

and rendering the initial position of the target control in a first preset display mode.

8. The method of claim 7, wherein when the target control is set to the target position, the method further comprises:

and canceling the first preset display mode.

9. The method of claim 1, wherein the confirming operation is: a hover operation, or a hover press operation.

10. The method according to claim 8, wherein the first predetermined display mode is: and the transparent display mode has preset transparency.

11. The method of claim 1, wherein when the target control is set to the target position, the method further comprises:

and sending out second prompt information to indicate that the target control is moved to the target position.

12. The method of claim 1, wherein the setting the target control at the target position comprises:

determining whether the target location on the graphical user interface has other controls;

and if the target position on the graphical user interface does not have other controls, setting the target control at the target position.

13. The method of claim 12, further comprising:

and if the target position on the graphical user interface has other controls, setting the target control at the initial position of the target control.

14. The method of claim 1, further comprising:

responding to the suspension adjustment operation input aiming at the target control, and acquiring an adjustment parameter corresponding to the suspension adjustment operation, wherein the adjustment parameter comprises: a size adjustment parameter and an angle adjustment parameter;

and adjusting the target control according to the adjusting parameters.

15. The method of claim 14, wherein the adjusting the target control according to the adjustment parameter comprises:

and zooming the display size of the target control according to the size adjusting parameter.

16. The method of claim 15, wherein the scaling the display size of the target control according to the size adjustment parameter comprises:

and if the size adjusting parameter is larger than or equal to a preset size threshold, zooming the display size of the target control according to the size threshold.

17. The method of claim 14, wherein the adjusting the target control according to the adjustment parameter comprises:

and rotating the display angle of the target control according to the angle adjusting parameter.

18. The method of claim 1, further comprising:

and responding to the input suspension canceling operation, and canceling the corresponding operation on the target control.

19. The method of claim 18, wherein the hover cancellation operation is: and (5) performing suspension double-click operation.

20. An apparatus for controlling a control in a graphical user interface, wherein the graphical user interface is obtained by executing a software application on a processor of a mobile terminal and rendering the software application on a display of the mobile terminal, and the content displayed by the graphical user interface at least comprises: at least one control; the device comprises: the device comprises a control module, a setting module and an execution module;

the control module is used for responding to the suspension movement operation input aiming at the target control on the graphical user interface and controlling the target control to move along with the suspension movement operation;

the setting module is used for responding to a confirmation operation continuous with the suspension moving operation, acquiring a target position corresponding to a final operation point of the suspension moving operation in the graphical user interface, and setting the target control at the target position;

and the execution module is used for responding to the touch operation acted on the target control and executing the function corresponding to the target control.

21. A mobile terminal device, characterized by comprising: a processor, a storage medium and a bus, the storage medium storing program instructions executable by the processor, the processor and the storage medium communicating via the bus when the mobile terminal device is running, the processor executing the program instructions to perform the steps of the method for controlling a control in a graphical user interface according to any one of claims 1 to 19.

22. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for controlling a control in a graphical user interface according to any one of claims 1 to 19.

Technical Field

The invention relates to the technical field of games, in particular to a control method, a control device, control equipment and a storage medium for a control in a graphical user interface.

Background

The online games are deeply liked by the majority of users, and more online games attract the attention of the users by designing exquisite game interaction interfaces. The exquisite game interaction interface can not only improve the appreciation of the user, but also enable the game operability of the user to be stronger.

Disclosure of Invention

The present invention provides a method, an apparatus, a device, and a storage medium for controlling a control in a graphical user interface, so as to solve the problems of complex control operation and low control efficiency of the control in the graphical user interface in the prior art.

In order to achieve the above purpose, the technical solutions adopted in the embodiments of the present application are as follows:

in a first aspect, an embodiment of the present application provides a method for controlling a control in a graphical user interface, where the graphical user interface is obtained by executing a software application on a processor of a mobile terminal and rendering the software application on a display of the mobile terminal, and content displayed by the graphical user interface at least includes: at least one control; the method comprises the following steps:

responding to the suspension movement operation input aiming at the target control on the graphical user interface, and controlling the target control to move along with the suspension movement operation;

responding to a confirmation operation continuous with the suspension moving operation, acquiring a target position corresponding to a final operation point of the suspension moving operation in the graphical user interface, and setting the target control at the target position;

and responding to the touch operation acted on the target control, and executing the function corresponding to the target control.

Optionally, before responding to the hover movement operation input for the target control on the graphical user interface, the method includes:

and responding to the hovering operation in front of the graphical user interface within a preset identification range, and identifying the target control from the at least one control.

Optionally, the method further comprises:

and when the target control is identified, providing first prompt information.

Optionally, the first prompt message includes:

and performing identification display on the target control on the graphical user interface.

Optionally, the performing, on the graphical user interface, an identification display on the target control includes:

highlighting the target control on the graphical user interface.

Optionally, the first prompt message includes a vibration prompt message or a voice prompt message.

Optionally, in the process of controlling the target control to move along with the hover movement operation, the method further includes:

and rendering the initial position of the target control in a first preset display mode.

Optionally, when the target control is set at the target position, the method further includes:

and canceling the first preset display mode.

Optionally, the confirming operation is: a hover operation, or a hover press operation.

Optionally, the first preset display mode is: and the transparent display mode has preset transparency.

Optionally, when the target control is set at the target position, the method further includes:

and sending out second prompt information to indicate that the target control is moved to the target position.

Optionally, the setting the target control at the target position includes:

determining whether the target location on the graphical user interface has other controls;

and if the target position on the graphical user interface does not have other controls, setting the target control at the target position.

Optionally, the method further comprises:

and if the target position on the graphical user interface has other controls, setting the target control at the initial position of the target control.

Optionally, the method further comprises:

responding to the suspension adjustment operation input aiming at the target control, and acquiring an adjustment parameter corresponding to the suspension adjustment operation, wherein the adjustment parameter comprises: a size adjustment parameter and an angle adjustment parameter;

and adjusting the target control according to the adjusting parameters.

Optionally, the adjusting the target control according to the adjustment parameter includes:

and zooming the display size of the target control according to the size adjusting parameter.

Optionally, the scaling the display size of the target control according to the size adjustment parameter includes:

and if the size adjusting parameter is larger than or equal to a preset size threshold, zooming the display size of the target control according to the size threshold.

Optionally, the adjusting the target control according to the adjustment parameter includes:

and rotating the display angle of the target control according to the angle adjusting parameter.

Optionally, the method further comprises:

and responding to the input suspension canceling operation, and canceling the corresponding operation on the target control.

Optionally, the suspension cancellation operation is: and (5) performing suspension double-click operation.

In a second aspect, an embodiment of the present application further provides a control apparatus for a control in a graphical user interface, where the graphical user interface is obtained by executing a software application on a processor of a mobile terminal and rendering the software application on a display of the mobile terminal, where content displayed by the graphical user interface at least includes: at least one control; the device comprises: the device comprises a control module, a setting module and an execution module;

the control module is used for responding to the suspension movement operation input aiming at the target control on the graphical user interface and controlling the target control to move along with the suspension movement operation;

the setting module is used for responding to a confirmation operation continuous with the suspension moving operation, acquiring a target position corresponding to a final operation point of the suspension moving operation in the graphical user interface, and setting the target control at the target position;

and the execution module is used for responding to the touch operation acted on the target control and executing the function corresponding to the target control.

Optionally, the apparatus further comprises: an identification module;

the identification module is used for responding to the hovering operation in a preset identification range in front of the graphical user interface and identifying the target control from the at least one control.

Optionally, the apparatus further comprises: providing a module;

the providing module is used for providing first prompt information when the target control is identified.

Optionally, the first prompt message includes: and performing identification display on the target control on the graphical user interface.

Optionally, the apparatus further comprises: a display module;

the display module is used for highlighting the target control on the graphical user interface.

Optionally, the first prompt message includes a vibration prompt message or a voice prompt message.

Optionally, the apparatus further comprises: a rendering module;

and the rendering module is used for rendering the initial position of the target control in a first preset display mode.

Optionally, the apparatus further comprises: a cancellation module;

the cancellation module is used for canceling the first preset display mode.

Optionally, the confirming operation is: a hover operation, or a hover press operation.

Optionally, the first preset display mode is: and the transparent display mode has preset transparency.

Optionally, the providing module is further configured to issue a second prompt message to indicate that the target control is moved to the target position.

Optionally, the setting module is configured to determine whether the target location on the graphical user interface has other controls; and if the target position on the graphical user interface does not have other controls, setting the target control at the target position.

Optionally, the setting module is further configured to set the target control at an initial position of the target control if the target position on the graphical user interface has other controls.

Optionally, the apparatus further comprises: the device comprises an acquisition module and an adjustment module;

the obtaining module is configured to obtain an adjustment parameter corresponding to a suspension adjustment operation in response to the suspension adjustment operation input for the target control, where the adjustment parameter includes: a size adjustment parameter and an angle adjustment parameter;

and the adjusting module is used for adjusting the target control according to the adjusting parameters.

Optionally, the adjusting module is specifically configured to zoom the display size of the target control according to the size adjustment parameter.

Optionally, the adjusting module is further configured to, if the size adjusting parameter is greater than or equal to a preset size threshold, zoom the display size of the target control by using the size threshold.

Optionally, the adjusting module is specifically configured to rotate the display angle of the target control according to the angle adjusting parameter.

Optionally, the cancelling module is further configured to cancel, in response to an input suspension cancelling operation, a corresponding operation on the target control.

Optionally, the suspension cancellation operation is: and (5) performing suspension double-click operation.

In a third aspect, an embodiment of the present application further provides a mobile terminal device, including: the control method comprises a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, when the mobile terminal device runs, the processor and the storage medium communicate through the bus, and the processor executes the program instructions to execute the steps of the control method of the control in the graphical user interface according to the first aspect.

In a fourth aspect, the present application further provides a computer-readable storage medium, where the storage medium stores a computer program, and the computer program is executed by a processor to perform the steps of the method for controlling a control in a graphical user interface according to the first aspect.

The beneficial effect of this application is:

the application provides a control method, a control device, control equipment and a storage medium for a control in a graphical user interface, wherein the method comprises the following steps: responding to the suspension movement operation input aiming at the target control on the graphical user interface, and controlling the target control to move along with the suspension movement operation; responding to the continuous confirmation operation of the suspension moving operation, acquiring a target position corresponding to a final operation point of the suspension moving operation in the graphical user interface, and setting a target control at the target position; and responding to the touch operation acted on the target control, and executing the function corresponding to the target control. The method realizes the movement control of the target control in the graphical user interface by responding to the suspension movement operation of the user, and compared with the method for realizing the control on the graphical user interface through touch operation in the prior art, the method realizes the control through the suspension operation, enriches the user-defined interaction mode of the control, can avoid the shielding of fingers or a touch pen on the control on the graphical user interface during the touch operation, prevents misoperation, and improves the accuracy of the control.

In addition, various suspension adjusting operations are further provided, the display effect of the control is adjusted based on different adjusting operations, and the user experience is effectively improved.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.

Fig. 1 is a schematic flowchart of a control method for a control in a graphical user interface according to an embodiment of the present disclosure;

FIG. 2 is a first graphical user interface display provided in an embodiment of the present application;

FIG. 3 is a second graphical user interface display diagram provided by an embodiment of the present application;

fig. 4 is a schematic flowchart of a control method for a control in a graphical user interface according to an embodiment of the present application;

fig. 5 is a schematic flowchart of a control method for a control in a graphical user interface according to an embodiment of the present application;

fig. 6 is a schematic flowchart of a control method for a control in a graphical user interface according to an embodiment of the present application;

fig. 7 is a schematic diagram of a control device of a control in a graphical user interface according to an embodiment of the present application;

fig. 8 is a schematic diagram of a mobile terminal device according to an embodiment of the present application.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention.

The control method of the control in the graphical user interface in one embodiment of the disclosure can be operated on a mobile terminal device or a server. The terminal device may be a local terminal device. When the control method of the control in the graphical user interface is operated on the server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.

In an optional embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud games. Taking a cloud game as an example, a cloud game refers to a game mode based on cloud computing. In the running mode of the cloud game, the running main body of the game program and the game picture presenting main body are separated, the storage and the running of the control method of the control in the graphical user interface are finished on a cloud game server, and the client equipment is used for receiving and sending data and presenting the game picture, for example, the client equipment can be display equipment with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; however, the terminal device performing the information processing is a cloud game server in the cloud. When a game is played, a player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, data such as game pictures and the like are encoded and compressed, the data are returned to the client device through a network, and finally the data are decoded through the client device and the game pictures are output.

In an alternative embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used for presenting a game screen. The local terminal device is used for interacting with the player through a graphical user interface, namely, a game program is downloaded and installed and operated through an electronic device conventionally. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal or provided to the player through holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including a game screen and a processor for running the game, generating the graphical user interface, and controlling display of the graphical user interface on the display screen.

In a possible implementation manner, an embodiment of the present invention provides a method for controlling a control in a graphical user interface, where a graphical user interface is provided through a mobile terminal, where the mobile terminal may be the aforementioned local terminal device, and may also be the aforementioned client device in a cloud interaction system.

The technical solution of the present invention is explained below in a plurality of possible implementations.

Fig. 1 is a schematic flowchart of a control method for a control in a graphical user interface according to an embodiment of the present disclosure; fig. 2 is a first schematic view of a display of an image user interface according to an embodiment of the present application. Alternatively, the execution subject of the method may be the mobile terminal described above. The graphical user interface is obtained by executing a software application on a processor of the mobile terminal and rendering on a display of the mobile terminal. Wherein, the content displayed by the graphical user interface at least comprises: at least one control; as shown in fig. 1, the method may include:

s101, responding to the suspension movement operation input aiming at the target control on the graphical user interface, and controlling the target control to move along with the suspension movement operation.

It should be noted that the mobile terminal in the present application may be a terminal device provided with a plurality of spaced apart inductive sensors. The suspension operation input by a user can be sensed through the sensor so as to realize the suspension operation control of the application.

Optionally, the following embodiments of the present application are described by taking a game scenario as an example, and in this scenario, the control on the graphical user interface may be a game control. In practical application, the application scene is not limited to a game scene, and may also be any other non-game scene, and the corresponding control on the graphical user interface may be any control, for example: APP controls on the terminal device, and the like. When the method is applied to other scenes, the control methods are the same and can be controlled by the method.

Optionally, the conventional control methods are touch implementation methods, for example: when the position of an APP installed on a mobile terminal (mobile phone) needs to be moved, a control of a selected target APP is pressed by a finger, and the position of the control is changed along with the sliding of the finger on a terminal display. According to the existing implementation method, a user needs to click and press a display screen of the touch terminal, a finger or a touch pen can shield an interface, the control to be operated is difficult to touch, and the operation experience of the user is poor.

Optionally, in the scheme of the application, a touch manner is replaced by a suspension operation manner, so that the contact frequency with a terminal display in the operation process of a user is reduced, and more convenience is brought to the user.

Optionally, the user may input the hover movement operation at a position within a preset distance range above the graphical user interface, where a movement direction of the hover movement operation may be parallel to the graphical user interface, that is, during the hover movement operation, the movement of the finger of the user is in a linear movement manner. And the mobile terminal responds to the suspension movement operation and controls the target control selected by the user to move in the graphical user interface. As shown in fig. 2, the target control may be any control such as control 1, control 2, etc. shown in the figure.

Optionally, when the user triggers the hover operation, the virtual hand shown in fig. 1 may be correspondingly displayed at the start position of the hover operation, and the virtual hand may have a preset transparency, so as to reduce the occlusion of the graphical user interface.

And S102, responding to the continuous confirmation operation of the suspension moving operation, acquiring a target position corresponding to a final operation point of the suspension moving operation in the graphical user interface, and setting the target control at the target position.

In some embodiments, after the suspension movement operation is responded, after the tracking operation of the target control is triggered, the target control continuously moves according to the movement of the finger, and after the movement operation is stopped, a stop point can be obtained as a final operation point, wherein a target position corresponding to the final operation point can be determined as a target position corresponding to the target control, and the target control is moved to the target position in response to a confirmation operation which is continuous with the suspension movement operation.

And S103, responding to the touch operation acted on the target control, and executing the function corresponding to the target control.

Optionally, the touch operation on the target control may be a floating click operation, a sliding operation, or a re-pressing operation, and the function corresponding to the target control may be executed in response to the touch operation. The game control shown in fig. 2 may be a game skill control, and in response to a touch operation on the game skill control, release of a skill corresponding to the skill control may be implemented. Taking an XX game as an example, each virtual character in the game correspondingly has three skills, three skill controls are correspondingly displayed on a graphical user interface, and different skills can be correspondingly released in response to clicking operations acting on different skill controls.

And by taking the APP installed on the mobile phone terminal as an example, responding to the touch operation of the APP, opening the APP correspondingly, entering the APP home page, responding to different functional controls displayed in the APP home page, and entering different display pages.

In summary, the method for controlling a control in a graphical user interface provided in this embodiment includes: responding to the suspension movement operation input aiming at the target control on the graphical user interface, and controlling the target control to move along with the suspension movement operation; responding to the continuous confirmation operation of the suspension moving operation, acquiring a target position corresponding to a final operation point of the suspension moving operation in the graphical user interface, and setting a target control at the target position; and responding to the touch operation acted on the target control, and executing the function corresponding to the target control. According to the method, control is achieved through suspension operation, the user-defined interaction mode of the control is enriched, the situation that fingers or a touch pen block the control on a graphical user interface during touch operation can be avoided, misoperation is prevented, and therefore the control accuracy is improved.

Optionally, in step S101, before responding to the hover movement operation input for the target control on the graphical user interface, the method of the present application may further include: and identifying a target control from the at least one control in response to the hovering operation in the preset identification range in front of the graphical user interface.

Optionally, due to a detection accuracy problem of the sensor, when a distance between the finger of the user and the graphical user interface satisfies a preset threshold, the hovering operation of the user enters a recognizable range. For example: the preset threshold is 20 cm, that is, when the user inputs the hover operation within 20 cm of the gui, the hover operation can be recognized, and when the hover operation is input outside 20 cm, the hover operation is not within the recognizable range, and thus the hover operation cannot be responded.

Optionally, the hovering operation is also an operation of hovering and keeping for a certain time, and when a finger of the user hovers over any control and keeps still, the mobile terminal may respond to the hovering operation, take the control corresponding to the finger as the target control, and thereby select the target control from all the controls. Of course, other operations may be used to implement the selection of the target control besides the hovering operation, which is not specifically limited in the present application.

Optionally, the method of the present application may further include: when the target control is identified, first prompt information is provided.

In some embodiments, after the target control is identified by responding to the hovering operation, the first prompt information may be further displayed at a preset position of the graphical user interface. Wherein. The preset position may be an edge position on the graphical user interface that does not affect the user operation, or a position corresponding to the target control. By providing the first prompt information, the user can be reminded that the current target control is identified and selected, and the user can execute the next moving operation, so that the operation experience of the user is better.

Optionally, the first prompt message may include: and identifying and displaying the target control on the graphical user interface.

In an implementation mode, the target control can be distinguished and displayed by identifying and displaying the target control and other non-target controls, and the target control can be identified and displayed, so that a user can intuitively feel the selection operation of the target control, and the operation feeling is stronger.

Optionally, the above-mentioned identifier display may be: the target control is highlighted on the graphical user interface. The highlight display also keeps the display brightness of other non-target controls unchanged, and the display brightness of the target control is improved so as to highlight the target control.

Optionally, the first prompt message may also be a vibration prompt message or a voice prompt message.

Of course, in addition to the above-mentioned identification display of the target control, the target control can be displayed differently by means of vibration prompt information or voice text prompt.

Optionally, after the target control is successfully identified and selected, the mobile terminal may vibrate for a preset duration to remind the user that the target control is successfully identified. Or, a prompt text indicating that the recognition is successful may be displayed at a preset position of the graphical user interface, or the recognition success of the target control may be broadcasted in a voice manner. In this embodiment, only a few prompting manners are listed by way of example, and the practical application may not be limited to the above manners, and the application is not limited thereto.

Optionally, after the target control is successfully identified and the first prompt information is provided, the target control may be displayed on the graphical user interface in an enlarged manner, so that the target control generates an enlarged effect separated from the graphical user interface, and starts to respond to the tracking characteristic of the target control, so as to move the target control. The tracking property is that the position of the target control moves along with the movement of the user's finger in the subsequent process.

Optionally, in step S101, in the process that the control target control moves along with the floating movement operation, the method of the present application may further include: and rendering the initial position of the target control in a first preset display mode.

In some embodiments, in the process of controlling the target control to move to the target position following the hovering operation, the display of the target control at the initial position of the target control may be displayed in a first preset display manner. To indicate that the target control is currently customizing the mobile position. The method and the device can avoid the phenomenon that two identical controls appear in a graphical user interface at the same time, and mislead the user to move, operate and use the controls.

Fig. 3 is a schematic diagram of a display of a graphical user interface according to an embodiment of the present application. In an implementation manner, the first preset display manner may be: and presetting a transparent display mode of transparency. That is, the filling display of the target control at the initial position is converted into a transparent display so as to virtualize the display mode of the target control at the initial position.

In another implementation manner, the first preset display manner may also be: the target control at the initial position is rendered in a preset color display manner, i.e., in a color different from the other controls. Of course, in practical applications, the first predetermined display mode is not limited to the two methods listed above. The control can also be marked to execute the custom operation and the like by marking a special mark on the target control at the initial position.

As shown in fig. 3, the display manner of the target control at the initial position is represented in a display manner of a dotted line relative to the display line of the other controls, so as to facilitate understanding of the auxiliary scheme.

Optionally, in step S102, when the target control is set at the target position, the method of the present application may further include: and canceling the first preset display mode.

Optionally, when the target control is moved to the target position in response to the operation of following the hover movement, the first preset display manner of the target control at the initial position may be cancelled, that is, the target control at the initial position is deleted on the graphical user interface, so that only the target control at the target position is reserved in the graphical user interface, and the target position is used as the display position of the target control in the graphical user interface. The method and the device can avoid the situation that the same target control is multiple in the graphical user interface, so that the control is unreasonable in setting and wrong in use.

Optionally, in step S102, the confirming operation may be: a hover operation, or a hover press operation.

In some embodiments, when the target control is moved to the target position in response to the follow-up hover move operation for the target control, a confirmation operation needs to be further responded to successfully place the target control at the target position.

Optionally, the confirming operation may be a hovering operation, and the hovering operation may be the same as the operation when the target control is recognized, that is, the finger of the user performs hovering movement within a preset recognition range from the graphical user interface, and when the movement is stopped, the finger is kept at the stopped position for a preset time length, so that the mobile terminal successfully places the target control at the target position in response to the hovering operation.

Alternatively, the confirmation operation may be a floating pressing operation, the floating pressing operation may be a clicking operation, and the clicking operation may be a double-click operation, a single-click operation, or the like. The method comprises the steps that a user finger performs suspension movement within a preset identification range above a graphical user interface, when suspension movement operation is performed, suspension clicking is performed at a stop position, and a target control is successfully placed at a target position in response to the suspension clicking operation.

It should be noted that, when the target control is moved to the target position in response to the floating movement operation, if the confirmation operation is not performed, the target control is visually located at the target position, but at this time, the target control cannot perform the corresponding function, and after the target control is placed at the target position by the confirmation operation, the operation on the target control can be responded, the operation data corresponding to the target control is called, and the corresponding function is realized.

Optionally, in step S102, when the target control is set at the target position, the method of the present application may further include: and sending out second prompt information to indicate that the target control is moved to the target position.

Optionally, the second prompt information in this embodiment may be the same prompt information as the first prompt information, that is, the second prompt information may include: and at the target position on the graphical user interface, carrying out identification display on the target control, or carrying out vibration prompt, voice prompt, text prompt and the like. Similarly, similar to the beneficial effect brought by the first prompt message, the second prompt message is sent to remind the user that the target control has been successfully moved to the target position. Thereby improving the operation experience of the user.

Fig. 4 is a flowchart illustrating a control method of another gui control according to an embodiment of the present disclosure, and optionally, as shown in fig. 4, the setting the target control at the target position in step S102 may include:

s201, determining whether the target position on the graphical user interface has other controls.

In some embodiments, when the target control is moved to the target position, if there are other controls already existing in the target position, the target control is further continuously placed in the target position, and the other controls already existing in the target position are shielded, so that normal use of the controls is affected.

Based on this, in this embodiment, when the target control is moved to the target position, it is further necessary to determine whether there are other controls at the target position on the graphical user interface, and according to a determination result, different processing measures are taken to execute processing on the target control.

S202, if the target position on the graphical user interface does not have other controls, the target control is arranged at the target position.

Optionally, the target control may be converted from a floating display mode to a non-floating display mode, where the non-floating display mode indicates that the target control is successfully dropped and placed at the target position, and when the target control is moved to the target position, the target control is already placed at the target position from a visual perspective, but actually, the target control is displayed at the target position in a floating manner and does not actually drop to the target position.

And when the target position is determined to have no other control, responding to the confirmation operation and setting the target control at the target position.

Fig. 5 is a flowchart illustrating a control method of another graphical user interface provided in an embodiment of the present application, and optionally, as shown in fig. 5, the method may further include:

and S203, if other controls exist at the target position on the graphical user interface, setting the target control at the initial position of the target control.

And when the target position on the graphical user interface has other controls, the target control cannot be placed at the target position, so that in an implementation mode, the target control can be returned to the initial position, so that the user repeats the above-mentioned floating movement operation again to determine that the new target position places the target control. In yet another implementation, other idle positions near the target position by a preset distance may be identified, and the target control is moved to the other positions. The other position can be a position with a smaller distance from the target position, so that the target control is placed at a position closer to the original target position, and the moving result is closer to the expected result of the user. Of course, the practical application is not limited to the above processing method.

Optionally, the control method provided by the above embodiments can solve the problem that, due to too many systems in some games, there are many system entries in the graphical user interface, which may affect the user to implement the control operation through the graphical user interface, for example: because the number of the controls is too many, when the user selects and moves the controls in a touch mode, misoperation is easy to occur, and the non-target controls are selected. The user can move the position of the control according to the common functions or the preference of the user, the self-defined effect of the player is realized through the suspension operation mode, and more convenience and participation sense are given to the game process.

Similarly, when the game is not the game graphical user interface, the method can also be used for solving the problem that the control is inconvenient to use due to the irregular sequencing of the controls in the graphical user interface, such as: the user can adjust the position of any APP control on the mobile phone terminal through the method, and moves the conventional APP to the homepage for use.

Fig. 6 is a flowchart illustrating a control method for a control in a graphical user interface according to an embodiment of the present application, and optionally, as shown in fig. 6, the method of the present application may further include:

s301, responding to the suspension adjustment operation input by aiming at the target control, and acquiring adjustment parameters corresponding to the suspension adjustment operation, wherein the adjustment parameters comprise: size adjustment parameters and angle adjustment parameters.

Optionally, the present embodiment further provides a method for adjusting the size and the display angle of the target control. By self-defining and adjusting the display size and the angle of the target control, the display effect of the target control can better accord with the preference of a user.

And S302, adjusting the target control according to the adjusting parameters.

Optionally, in response to the hover adjustment operation input by the user, an adjustment parameter corresponding to the hover adjustment operation may be acquired, so that according to the acquired adjustment parameter: and adjusting the target control according to the size adjusting parameter and the angle adjusting parameter.

It should be noted that the adjustment operation on the target control is not limited to occur before or during the floating movement operation performed on the target control.

In one implementation, the corresponding suspension adjustment operation may be input immediately after the target control is recognized, or in another implementation, the corresponding suspension adjustment operation may be input when the target control is recognized and the target control is moved to a preset position, or after the target control is moved to the target position, the corresponding suspension adjustment operation is input first, and then a confirmation operation is input, so that the target control with the display angle and the display size adjusted is placed at the target position.

Optionally, the step S302 may include: and zooming the display size of the target control according to the size adjusting parameter.

Alternatively, when the floating adjustment operation is a size adjustment operation, the size adjustment operation may be a finger hooking operation, and in order to be distinguished from the floating movement operation, the size adjustment operation in the present embodiment may be implemented by two fingers. To avoid identifying the size adjustment operation as a hover move operation.

Alternatively, the size adjustment parameter may be determined according to the operation distance and the operation direction of the size adjustment operation in response to the size adjustment operation input for the target control.

The finger-hooking operation can be understood as the same operation adopted when the method reduction operation is performed on the APP icon on the mobile phone terminal in the prior art. That is, when the two fingers move in opposite directions, the operation distance of the fingers increases, and the operation direction slides in the opposite direction. And the target control is amplified, and the two fingers move in opposite directions, so that the operating distance of the fingers is reduced, and the operating directions slide relatively. And realizing the reduction processing of the target control.

In addition, the size adjustment operation may also be other operations, such as: when the size of the target control is required to be adjusted, the target control can be clicked by other fingers near the current position of the target control to trigger the size adjustment operation, and the size of the target control can be adjusted by the sliding operation of the fingers. The sliding operation of the finger may be an enlargement process when the finger slides in a first preset direction, and a reduction process when the finger slides in a second preset direction.

Certainly, a suspension adjustment operation control may be set at a preset position on the graphical user interface, the suspension adjustment operation is triggered in response to the suspension adjustment operation input through the suspension adjustment operation control, and the target control is adjusted in response to the sliding operation of the finger.

In some embodiments, if the size adjustment parameter is greater than or equal to the preset size threshold, the display size of the target control is scaled by the size threshold.

Optionally, in order to ensure size reasonableness and viewing effect of the target control, there is no upper limit for adjusting the size of the target control, that is, there is a maximum value for the size of the target control, and when the obtained size adjustment parameter is greater than or equal to the preset size threshold, it may be considered that the target control is not increased any more, and the target control will be displayed with the size threshold. Similarly, there is a minimum size to control the minimum display size of the target control, which is not described herein.

Optionally, the step S302 may further include: and rotating the display angle of the target control according to the angle adjusting parameter.

Alternatively, when the floating adjustment operation is an angle adjustment operation, similar to the size adjustment operation, in order to distinguish the floating adjustment operation from the floating movement operation, the angle adjustment operation may be implemented by two fingers, and the two fingers may be rotated in a preset rotation direction to implement the angle adjustment.

Optionally, in response to the angle adjustment operation input for the target control, the angle adjustment parameter may be determined according to a sliding angle and a sliding direction of the floating sliding operation, where the sliding direction is clockwise or counterclockwise.

For example: the two fingers rotate in the clockwise direction or in the anticlockwise direction, and the angle of the target control changes along with the rotation angle synchronously.

Of course, similar to the size adjustment operation, the angle adjustment operation may also be triggered by a suspension adjustment operation control preset on the graphical user interface, and the angle adjustment of the target control may be achieved by a single-finger rotation. The present application is not limited to implementations having a levitation adjustment operation.

It should be noted that, in this embodiment, only two levitation adjustment operations are illustrated, and in practical applications, the two levitation adjustment operations may not be limited to the above two levitation adjustment operations.

Optionally, the method of the present application may further include: and responding to the input suspension canceling operation, and canceling the corresponding operation on the target control.

In some embodiments, a user's misoperation may result in the selected target control not being the desired target control, or the determined target position of the target control not being the desired target position. Then, the execution of the current operation can be cancelled by responding to the input suspension cancellation operation, so that a new operation can be obtained again, and the new operation is responded to realize accurate control.

Optionally, the suspension canceling operation may be: the floating double-click operation is not limited to the double-click operation, and the application is not limited thereto.

To sum up, the method for controlling a control in a graphical user interface provided by the embodiment of the present application includes: responding to the suspension movement operation input aiming at the target control on the graphical user interface, and controlling the target control to move along with the suspension movement operation; responding to the continuous confirmation operation of the suspension moving operation, acquiring a target position corresponding to a final operation point of the suspension moving operation in the graphical user interface, and setting a target control at the target position; and responding to the touch operation acted on the target control, and executing the function corresponding to the target control. According to the method, control is achieved through suspension operation, the user-defined interaction mode of the control is enriched, the situation that fingers or a touch pen block the control on a graphical user interface during touch operation can be avoided, misoperation is prevented, and therefore the control accuracy is improved.

In addition, various suspension adjusting operations are further provided, the display effect of the control is adjusted based on different adjusting operations, and the user experience is effectively improved.

Specific implementation processes and technical effects of apparatuses, devices, storage media and the like for executing the control method of the control in the graphical user interface provided by the present application are described below, and are not described in detail below.

Fig. 7 is a schematic diagram of a control device of a control in a graphical user interface according to an embodiment of the present application; obtaining a graphical user interface by executing a software application on a processor of the mobile terminal and rendering on a display of the mobile terminal, the content displayed by the graphical user interface including at least: at least one control. Alternatively, as shown in fig. 7, the apparatus may include: a control module 601, a setting module 602, and an execution module 603;

the control module 601 is configured to respond to a suspension movement operation input for a target control on a graphical user interface, and control the target control to move along with the suspension movement operation;

a setting module 602, configured to respond to a confirmation operation that is continuous with the hover moving operation, obtain a target position, in the graphical user interface, corresponding to a final operation point of the hover moving operation, and set the target control at the target position;

the executing module 603 is configured to respond to the touch operation applied to the target control, and execute a function corresponding to the target control.

Optionally, the apparatus further comprises: an identification module;

and the identification module is used for responding to the hovering operation in a preset identification range in front of the graphical user interface and identifying the target control from the at least one control.

Optionally, the apparatus further comprises: providing a module;

and the providing module is used for providing first prompt information when the target control is identified.

Optionally, the first prompt message includes: and identifying and displaying the target control on the graphical user interface.

Optionally, the apparatus further comprises: a display module;

and the display module is used for highlighting the target control on the graphical user interface.

Optionally, the first prompt message includes a vibration prompt message or a voice prompt message.

Optionally, the apparatus further comprises: a rendering module;

and the rendering module is used for rendering the initial position of the target control in a first preset display mode.

Optionally, the apparatus further comprises: a cancellation module;

and the canceling module is used for canceling the first preset display mode.

Optionally, the confirming operation is: a hover operation, or a hover press operation.

Optionally, the first preset display manner is: and the transparent display mode has preset transparency.

Optionally, the providing module is further configured to issue a second prompt message to indicate that the target control is moved to the target position.

Optionally, the setting module is configured to determine whether the target location on the graphical user interface has other controls; and if the target position on the graphical user interface does not have other controls, setting the target control at the target position.

Optionally, the setting module is further configured to set the target control at an initial position of the target control if the target position on the graphical user interface has other controls.

Optionally, the apparatus further comprises: the device comprises an acquisition module and an adjustment module;

the acquisition module is used for responding to the suspension adjustment operation input aiming at the target control, and acquiring adjustment parameters corresponding to the suspension adjustment operation, wherein the adjustment parameters comprise: a size adjustment parameter and an angle adjustment parameter;

and the adjusting module is used for adjusting the target control according to the adjusting parameters.

Optionally, the adjusting module is specifically configured to scale the display size of the target control according to the size adjusting parameter.

Optionally, the adjusting module is further configured to, if the size adjusting parameter is greater than or equal to a preset size threshold, zoom the display size of the target control by using the size threshold.

Optionally, the adjusting module is specifically configured to rotate the display angle of the target control according to the angle adjusting parameter.

Optionally, the cancelling module is further configured to cancel, in response to the input suspension cancelling operation, a corresponding operation on the target control.

Optionally, the levitation cancellation operation is: and (5) performing suspension double-click operation.

The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.

These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

Fig. 8 is a schematic diagram of a mobile terminal device according to an embodiment of the present application, where the device may be a mobile phone terminal or a tablet computer. A sensor is arranged on a display of the mobile terminal device and can respond to the suspension operation.

The apparatus may include: a processor 701, a memory 702.

The memory 702 is used for storing programs, and the processor 701 calls the programs stored in the memory 702 to execute the above method embodiments. The specific implementation and technical effects are similar, and are not described herein again.

Optionally, the invention also provides a program product, for example a computer-readable storage medium, comprising a program which, when being executed by a processor, is adapted to carry out the above-mentioned method embodiments.

In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.

The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

20页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种虚拟现实游戏手柄及其使用方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类