Detailed Description
In order to make the present application better understood by those skilled in the art, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In order to further improve the flexibility of control adjustment and simplify operations to be executed when the control is adjusted by the object user definition, the embodiment of the application provides a control adjustment method.
In the control adjusting method, control level adjusting operation triggered by a target interface is responded, and a level adjusting control corresponding to a candidate control in the target interface is displayed; receiving a hierarchy adjustment operation triggered by a target hierarchy adjustment control; and further, according to the hierarchy adjustment operation, adjusting the hierarchy of the target candidate control corresponding to the target hierarchy adjustment control, and adjusting the hierarchy of the reference candidate control related to the hierarchy adjustment operation, wherein the reference candidate control is a control which is except for the target candidate control and needs to change the hierarchy in response to the hierarchy adjustment operation.
The control adjusting method creatively provides a scheme for supporting adjustment of the level of the control in the display interface, namely the method supports the user-defined adjustment of the level of the control in the display interface by using the object according to the actual requirement, so that when the control areas of a plurality of controls overlap, the user-defined object can adjust the level of the control according to the actual requirement so as to self-define the control responded by the overlapped control area, namely the function of the overlapped control area is self-defined; the flexibility of control adjustment is further improved, and the operation required to be executed when the control is adjusted by the object user definition can be simplified to a certain extent. In addition, in order to ensure that when the control areas of any plurality of controls in the display interface are overlapped, the controls responded by the overlapped control areas can be definitely determined according to the levels of the controls, so that the levels of the controls in the display interface are required to be different; based on this, in the embodiment of the present application, when the level of the target candidate control is adjusted according to the level adjustment operation triggered for the target candidate control, the levels of other reference candidate controls affected by the level adjustment operation are also adaptively adjusted, so that the different levels of the candidate controls in the target interface are ensured, and thus the reliability of the scheme for custom adjusting the level of the control in practical application is ensured.
It should be understood that the control adjustment method provided by the embodiment of the present application may be applied to any electronic device with a display function, where the electronic device may be, for example, a terminal device, where the terminal device includes, but is not limited to, a mobile phone, a computer, an intelligent voice interaction device, an intelligent home appliance, a vehicle-mounted terminal, an aircraft, and the like.
In order to facilitate understanding of the control adjustment method provided by the embodiment of the present application, an application scenario to which the control adjustment method is applicable is first described in an exemplary manner.
Referring to fig. 1, fig. 1 is an application scenario schematic diagram of a control adjustment method provided by an embodiment of the present application. As shown in fig. 1, the application scenario includes a terminal device 110; the terminal device 110 is provided with a target application program, which supports the user-defined adjustment of the display interface of the target application program by using an object, and the target application program may be, for example, a game application program, a social application program, a shopping application program, etc., and the application is not limited in any way.
In practical application, the terminal device 110 may respond to a control level adjustment operation triggered by the use object for a target interface in the target application program, and display a level adjustment control corresponding to a candidate control in the target interface. The target interface may be any interface in the target application program supporting the user-defined adjustment of the control using the object, for example, when the target application program is a game application program, the target interface may be a game interface in the game application program supporting the triggering of the game operation. The control hierarchy adjustment operation is an operation for triggering and adjusting the hierarchy of the control in the target interface, and the control hierarchy adjustment operation can be triggered by the control hierarchy adjustment control corresponding to the target interface. The candidate controls are hierarchically adjustable controls in the target interface, and in practical application, each control in the target interface can be a candidate control, or part of the controls in the target interface can be candidate controls. The hierarchy adjustment control corresponding to the candidate control is a control for triggering and adjusting the hierarchy of the candidate control; it should be appreciated that the hierarchy of candidate controls can determine the response priority of the candidate control, and the manipulation area of the candidate control with a higher hierarchy will typically be overlaid on the manipulation area of the candidate control with a lower hierarchy, based on which, when there is an overlap in the manipulation areas of the candidate controls, the overlapping manipulation area is used to respond to the candidate control with the highest hierarchy in the candidate controls.
In the case where the terminal device 110 displays the hierarchy adjustment control corresponding to each candidate control in the target interface, the terminal device 110 may further receive a hierarchy adjustment operation triggered by the target hierarchy adjustment control. It should be understood that the target hierarchical adjustment control may be any one of the hierarchical adjustment controls corresponding to each candidate control, and in the embodiment of the present application, the candidate control corresponding to the target hierarchical adjustment control is regarded as a target candidate control. The hierarchy adjustment operation is an operation for adjusting the hierarchy of the target candidate control corresponding to the target hierarchy adjustment control.
After receiving the level adjustment operation triggered by the target level adjustment control, the terminal device 110 may adjust the level of the target candidate control corresponding to the target level adjustment control according to the level adjustment operation, and adjust the level of the reference candidate control related to the level adjustment operation.
It should be noted that, in the embodiment of the present application, in order to ensure that when the control areas of any multiple candidate controls in the target interface overlap, the candidate controls responded by the overlapping control areas can be definitely determined according to the respective levels of the multiple candidate controls, so that it is required to ensure that the levels of the candidate controls in the target interface are different, that is, ensure the uniqueness of the level of each candidate control in the target interface. Based on this, when the terminal device 110 adjusts the hierarchy of the target candidate control according to the hierarchy adjustment operation triggered for the target candidate control, other candidate controls affected by the hierarchy adjustment operation in the target interface are also determined accordingly, that is, candidate controls in the target interface, whose hierarchy needs to be changed due to the influence of the hierarchy adjustment operation, are determined, and such candidate controls are regarded as reference candidate controls in the embodiment of the present application, and adaptively adjust the hierarchy of the reference candidate control, so that it is ensured that after the hierarchy of the related candidate control in the target interface is adjusted in response to the hierarchy adjustment operation, the hierarchy of each candidate control in the target interface still has uniqueness.
Optionally, in the embodiment of the present application, the terminal device 110 may support, in addition to using the object to adjust the hierarchy of the candidate controls in the target interface, using the object to adjust the display style of the candidate controls in the target interface, for example, using the object to select a plurality of candidate controls in the target interface, so as to uniformly adjust the display style of the selected plurality of candidate controls.
It should be understood that the application scenario shown in fig. 1 is only an example, and in practical application, the control adjustment method provided by the embodiment of the present application may be applied to other scenarios besides the above scenario, and no limitation is made to the application scenario to which the control adjustment method provided by the embodiment of the present application is applicable.
The control adjustment method provided by the application is described in detail below through the method embodiment.
Referring to fig. 2, fig. 2 is a flowchart of a control adjustment method according to an embodiment of the present application, where an execution body of the method is a terminal device. As shown in fig. 2, the control adjustment method includes the following steps:
step 201: and responding to control hierarchy adjustment operation triggered by aiming at a target interface, and displaying hierarchy adjustment controls corresponding to candidate controls in the target interface.
In the embodiment of the application, the terminal equipment responds to the control hierarchy adjustment operation triggered by the use object aiming at the target interface, and the hierarchy adjustment control corresponding to the candidate control in the target interface can be correspondingly displayed.
It should be noted that the target interface may be any interface supporting the user-defined adjustment of the control therein using the object. The target interface may specifically be an interface displayed under the support of a system application program of the terminal device, for example, a display interface in a system application program of the terminal device. The target interface may specifically be a display interface of a target application program additionally installed on the terminal device, the target application program may be any application program supporting the user-defined adjustment of the control in the display interface of the target application program, and the target application program may include, but is not limited to, a game application program, a social application program, and a shopping application program. Of course, in practical application, the target interface may also be another type of interface supporting the user-defined adjustment of the control in the object, and the present application does not limit the target interface at all.
The candidate control in the target interface is a control supporting the custom adjustment of the candidate control in the target interface. In practical application, all the controls in the target interface can be used as candidate controls according to practical requirements, for example, when the target interface is a game interface in a game application program, each control used for triggering game operation in the game interface can be regarded as a candidate control; and a part of the control in the target interface can be used as a candidate control according to actual requirements, for example, a part of the adjustable control in the target interface is used as a candidate control.
The hierarchy adjustment control corresponding to the candidate control is a control for supporting adjustment of the hierarchy of the candidate control; in the embodiment of the present application, the level adjustment control corresponding to the candidate control may be, for example, a level adjustment card corresponding to the candidate control in the control level adjustment window corresponding to the target interface, or may be, for example, a level information display area corresponding to the candidate control in the target interface (in which a level of the candidate control is carried); of course, in practical application, the hierarchical adjustment control corresponding to the candidate control may also be expressed in other forms, and the present application does not limit the expression form of the hierarchical adjustment control corresponding to the candidate control.
It should be noted that, in the embodiment of the present application, the hierarchy of the candidate control is a parameter for determining the response priority of the candidate control, and in general, the higher the hierarchy of the candidate control, the higher the response priority thereof; that is, the manipulation area of the higher-level candidate control will typically be overlaid on the manipulation area of the lower-level candidate control, and when there is an overlap in the manipulation areas of the plurality of candidate controls, the overlapping manipulation areas will be used to respond to the operation triggered for the highest-level candidate control in the plurality of candidate controls.
As an example, the usage object may trigger a control hierarchy adjustment operation for a target interface by: the user object can trigger the user-defined adjustment operation for the target interface through the user-defined control corresponding to the touch target interface; the terminal equipment responds to the self-defined adjustment operation, and can correspondingly display the level adjustment control corresponding to the target interface, and further, the application object can trigger the control level adjustment operation aiming at the target interface through the level adjustment control corresponding to the target interface; fig. 3 is an exemplary interface diagram supporting control level adjustment operation triggered by a target interface according to an embodiment of the present application, where the interface diagram is an interface diagram displayed in response to a custom adjustment operation triggered by an object for the target interface, and includes a control 301 for supporting control level adjustment operation triggered by the target interface (i.e., a level adjustment control corresponding to the target interface). Of course, in practical application, the use object may trigger the control level adjustment operation for the target interface in other manners, and the present application does not limit any implementation manner of the control level adjustment operation for the target interface.
In one possible implementation manner, the terminal device responds to a control level adjustment operation triggered by the target interface, and can display a control level adjustment window corresponding to the target interface; the control hierarchy adjustment window comprises hierarchy adjustment cards corresponding to candidate controls in the target interface.
For example, reference may be made to fig. 4, and fig. 4 is a schematic diagram of a control hierarchy adjustment window in such an implementation provided by an embodiment of the present application.
As shown in fig. 4 (a), in response to a control level adjustment operation triggered by an object for a target interface, the terminal device may display a control level adjustment window 401 corresponding to the target interface, where the control level adjustment window includes level adjustment cards corresponding to candidate controls in the target interface, and each level adjustment card is arranged according to a current level of the candidate control corresponding to each level adjustment card. For example, in the control hierarchy adjustment window 401, each hierarchy adjustment card arranged from left to right and from top to bottom is arranged in order of the hierarchy of its respective candidate control from top to bottom, that is, the hierarchy of the candidate control corresponding to the hierarchy adjustment card "small map" is higher than the hierarchy adjustment card "driving, the hierarchy of the candidate control corresponding to the riding" is higher than the hierarchy of the candidate control corresponding to the hierarchy adjustment card "open door", and so on. In this implementation manner, the positions of the respective hierarchy adjustment cards in the control hierarchy adjustment window 401 can reflect the hierarchy of each candidate control accordingly, the higher the hierarchy of the candidate control corresponding to the hierarchy adjustment card is arranged in the control hierarchy adjustment window 401, and the lower the hierarchy of the candidate control corresponding to the hierarchy adjustment card is arranged in the control hierarchy adjustment window 401.
As shown in fig. 4 (b), in response to a control hierarchy adjustment operation triggered by using an object for a target interface, the terminal device may display a control hierarchy adjustment window 402 corresponding to the target interface, where each candidate control in the target interface includes a hierarchy adjustment card corresponding to each candidate control, and each hierarchy adjustment card includes a hierarchy of its corresponding candidate control. For example, in the control hierarchy adjustment window 402, the hierarchy adjustment card "mini-map" includes the hierarchy 13 of its corresponding candidate controls, the hierarchy adjustment card "ride" includes the hierarchy 12 of its corresponding candidate controls, and so on. In such an implementation, each level adjustment card reflects the respective level of each candidate control directly through the level parameters it carries.
It should be understood that, in practical applications, the control hierarchy adjustment window 401 shown in (a) in fig. 4 and the control hierarchy adjustment window 402 shown in (b) in fig. 4 generally include hierarchy adjustment cards corresponding to a plurality of candidate controls, where the control hierarchy adjustment window includes more hierarchy adjustment cards, the object may be used to adjust the hierarchy adjustment card currently displayed in the control hierarchy adjustment window by sliding a scroll bar on the right side of the control hierarchy adjustment window or triggering a sliding operation in the control hierarchy adjustment window.
In another possible implementation manner, the terminal device responds to the control level adjustment operation triggered by the target interface, and the level information display areas corresponding to the candidate controls can be displayed in the target interface; the hierarchy information display area carries the hierarchy of the candidate control corresponding to the hierarchy information display area, and the display position of the hierarchy information display area is determined according to the display position of the candidate control corresponding to the hierarchy information display area.
For example, reference may be made to fig. 5, and fig. 5 is a schematic diagram of a hierarchical information display area in such an implementation manner according to an embodiment of the present application. As shown in fig. 5, in response to a control level adjustment operation triggered by an object for a target interface, the terminal device may display a level information display area 501 corresponding to each candidate control in the target interface, and display a current level of the corresponding candidate control in each level information display area 501; for example, the hierarchical information display area 501 corresponding to each candidate control may be displayed in the upper right corner of the candidate control, and the current hierarchical level of the candidate control may be displayed therein.
It should be understood that the display position of the hierarchical information display area corresponding to the candidate control may be set according to actual requirements, for example, may be displayed in an upper left corner, an upper right corner, a lower left corner, a lower right corner, etc. of the candidate control, and may also be displayed in a manipulation area of the candidate control.
It should be understood that the above manner of displaying the hierarchical adjustment control corresponding to the candidate control in the target interface is only an example, and in practical application, the hierarchical adjustment control corresponding to the candidate control in the target interface may also be displayed in other manners according to practical requirements.
Step 202: a hierarchy adjustment operation triggered by the target hierarchy adjustment control is received.
In the case that the terminal device displays the hierarchy adjustment control corresponding to the candidate control in the target interface, the terminal device may further receive a hierarchy adjustment operation triggered by the target hierarchy adjustment control through the use object.
It should be understood that the target hierarchical adjustment control may be any one of the displayed hierarchical adjustment controls corresponding to each candidate control, and in the embodiment of the present application, the candidate control corresponding to the target hierarchical adjustment control will be regarded as a target candidate control. In other words, if the object is used and the hierarchy of the target candidate control needs to be adjusted, the object may trigger the hierarchy adjustment operation for the target candidate control through the target hierarchy adjustment control corresponding to the target candidate control.
In a possible implementation manner, when the terminal device responds to a hierarchy adjustment operation triggered by a target interface, and displays a control hierarchy adjustment window corresponding to the target interface, and each hierarchy adjustment card arranged according to the hierarchy of the corresponding candidate control is included in the control hierarchy adjustment window, the terminal device may receive a card selection operation triggered by the hierarchy adjustment card in the control hierarchy adjustment window, and determine that the hierarchy adjustment card selected by the card selection operation is the target hierarchy adjustment card; and receiving a drag operation of adjusting the card for the target hierarchy as a hierarchy adjustment operation.
For example, reference may be made to fig. 6, and fig. 6 is a schematic diagram illustrating a hierarchy adjustment operation in such an implementation manner provided in an embodiment of the present application. As shown in fig. 6 (a), in the control hierarchy adjustment window 601, each hierarchy adjustment card arranged from left to right and from top to bottom is arranged in order of the hierarchy of its corresponding candidate control from top to bottom; the use object may touch-select any hierarchical adjustment card in the control hierarchical adjustment window 601 as the target hierarchical adjustment card 602, for example, the use object may touch-select the hierarchical adjustment card "small map" as the target hierarchical adjustment card 602 by clicking or long pressing the hierarchical adjustment card. To prompt the use of the object's selected target-level adjustment card, and the target candidate control to which the target-level adjustment card corresponds, the terminal device may highlight the target-level adjustment card, and highlight the target candidate control in the target interface.
As shown in fig. 6 (b), after the object is used to select the target level adjustment card 602 in the control level adjustment window 601, a drag operation may be further performed on the target level adjustment card 602, so as to trigger the level adjustment operation through the target level adjustment card. In order to facilitate the user to know the current position of the target level adjustment card dragged by the user, the terminal device may display a card display area where the target level adjustment card currently arrives in a dotted line, and once the user finishes the dragging operation (such as that a finger leaves a touch screen or releases a mouse control) of the target level adjustment card, the target level adjustment card is displayed in the card display area displayed in the dotted line.
In another possible implementation manner, when the terminal device responds to the hierarchy adjustment operation triggered by the target interface, a control hierarchy adjustment window corresponding to the target interface is displayed, and each hierarchy adjustment card carrying the hierarchy of the corresponding candidate control is included in the control hierarchy adjustment window, the terminal device may receive the editing operation triggered by the hierarchy of the target candidate control included in the target hierarchy adjustment card as the hierarchy adjustment operation.
The object may be used to select any level adjustment card in the control level adjustment window as a target level adjustment card, and trigger editing of a level carried in the target level adjustment card, where editing of a level carried in the target level adjustment card essentially means editing and adjusting a level of a target candidate control corresponding to the target level adjustment card, so as to implement level adjustment operation for the target candidate control.
In yet another possible implementation manner, when the terminal device responds to the hierarchy adjustment operation triggered for the target interface, and displays the respective corresponding hierarchy information display area (in which the hierarchy of the corresponding candidate control is carried) of each candidate control in the target interface, the terminal device may receive the editing operation triggered for the hierarchy of the target candidate control in the target hierarchy information display area as the hierarchy adjustment operation.
The object may be used to select any level information display area in the target interface as a target level information display area, and trigger editing a level carried in the target level information display area, where editing a level carried in the target level information display area essentially means editing and adjusting a level of a target candidate control corresponding to the target level display area, so as to implement a level adjustment operation for the target candidate control.
It should be understood that the above implementation manner of triggering the level adjustment operation through the target level adjustment control is merely an example, and in practical applications, other implementation manners of triggering the level adjustment operation through the target level adjustment control may also be set according to practical requirements, and the present application does not limit any implementation manner of triggering the level adjustment operation through the target level adjustment control herein.
Step 203: according to the hierarchy adjustment operation, adjusting the hierarchy of the target candidate control corresponding to the target hierarchy adjustment control, and adjusting the hierarchy of the reference candidate control related to the hierarchy adjustment operation; the reference candidate control is a control requiring a change in hierarchy in response to the hierarchy adjustment operation, other than the target candidate control.
After receiving the hierarchy adjustment operation triggered by the object through the target hierarchy adjustment control, the terminal device can correspondingly adjust the hierarchy of the target candidate control corresponding to the target hierarchy adjustment control according to the received hierarchy adjustment operation, and adaptively adjust the hierarchy of the reference candidate control related to the hierarchy adjustment operation.
It should be noted that, in the embodiment of the present application, in order to ensure that when the control areas of any multiple candidate controls in the target interface overlap, the candidate controls responded by the overlapping control areas can be definitely determined according to the levels of the multiple candidate controls, so that it is required to ensure that the levels of the candidate controls in the target interface are different, that is, it is ensured that the level of each candidate control in the target interface is unique. Based on the above, when the terminal equipment adjusts the level of the candidate control according to the level adjustment operation triggered by the target level adjustment control, not only the level of the target candidate control corresponding to the target level adjustment control needs to be adjusted, but also the level of other candidate controls influenced by the level adjustment operation needs to be adaptively adjusted, and the candidate control of which the level needs to be changed under the influence of the level adjustment operation is the reference candidate control in the embodiment of the application; therefore, the hierarchy of each candidate control in the target interface is guaranteed to have uniqueness by adjusting the hierarchy of the target candidate control and the reference candidate control.
In one possible implementation, when the implementation of triggering the hierarchy adjustment operation by the target hierarchy adjustment control is that the drag operation is triggered for the target hierarchy adjustment card in the control hierarchy adjustment window, the terminal device may adjust the hierarchy of the target candidate control and the reference candidate control by: and according to the initial position and the end position corresponding to the dragging operation, adjusting the display position of the target level adjustment card in the control level adjustment window, and adjusting the display position of the reference level adjustment card in the control level adjustment window.
In the implementation manner, the initial position corresponding to the drag operation is the display position of the target level adjustment card in the control level adjustment window before the drag operation; the reference level adjustment card corresponds to the reference candidate control, and is determined according to a starting position and a stopping position corresponding to the dragging operation; the display position of the hierarchy adjustment card in the control hierarchy adjustment window can represent the hierarchy of the candidate control corresponding to the hierarchy adjustment card.
Specifically, the terminal device may respond to a drag operation triggered by the object for the target level adjustment card, adjust a display position of the target level adjustment card in the control level adjustment window, for example, adjust the target level adjustment card to display in a card display area at a termination position corresponding to the drag operation; following the change in the display position of the target level adjustment card in the control level adjustment window, the display position of the reference level adjustment card in the control level adjustment window also needs to be changed accordingly. In this implementation manner, each card display area in the control level adjustment window corresponds to one level, and each card display area corresponds to a different level, and the candidate control corresponding to the level adjustment card displayed in one card display area has the level corresponding to the card display area.
As an example, when the reference level adjustment card includes a level adjustment card located at a termination position before a drag operation and a level adjustment card located between a start position and the termination position before the drag operation, the terminal device adjusts the display positions of the target level adjustment card and the reference level adjustment card, the target level adjustment card may be adjusted to be displayed in a card display area corresponding to the termination position, and the display positions of the respective reference level adjustment cards may be adjusted in a direction pointing to the start position.
Fig. 7 is a schematic diagram of an exemplary adjustment level adjustment card according to an embodiment of the present application. As shown in fig. 7 (a), in the case of the drag operation shown in fig. 6 (b), that is, in the case of dragging the target level adjustment card "small map" to the display position of the level adjustment card "click-and-play", the start position corresponding to the drag operation is the display position of the target level adjustment card "small map" in the control level adjustment window, and the end position corresponding to the drag operation is the display position of the level adjustment card "click-and-play" in the control level adjustment window.
In this example, the reference level adjustment card includes a level adjustment card "driving, riding", a level adjustment card "opening a door", a level adjustment card "rescue" and a level adjustment card "click-and-play", when the terminal device detects that the use object ends the drag operation at the display position of the level adjustment card "click-and-play", the adjustment target level adjustment card "small map" may be displayed at the display position of the level adjustment card "click-and-play", and at the same time, the terminal device also needs to move forward one position in order of the reference level adjustment card "driving, riding", the reference level adjustment card "opening a door", the reference level adjustment card "rescue" and the reference level adjustment card "click-and-play", that is, the adjustment reference level adjustment card "driving", the riding "is displayed at the display position of the reference level adjustment card" driving ", the riding" original display position, and so on.
Through the adjustment of the display positions of the target level adjustment card and the reference level adjustment card, the levels of the target candidate control corresponding to the target level adjustment card and the reference candidate control corresponding to each reference level adjustment card are correspondingly adjusted, namely, the level of the target candidate control "small map" is adjusted to the level originally possessed by the reference candidate control "click broadcasting", the level of the reference candidate control "driving" is adjusted to the level originally possessed by the target candidate control "small map", the level of the reference candidate control "door opening" is adjusted to the level originally possessed by the reference candidate control "driving", and the like.
As another example, when the reference level adjustment card includes only the level adjustment card located at the end position before the drag operation, the terminal device may directly adjust the display positions of the target level adjustment card and the reference level adjustment card to be displayed in the card display area corresponding to the end position, and adjust the display of the reference level adjustment card in the card display area corresponding to the start position.
As shown in fig. 7 (b), in the case of the drag operation shown in fig. 6 (b), that is, in the case of dragging the target level adjustment card "small map" to the display position of the level adjustment card "click-and-play", the start position corresponding to the drag operation is the display position of the target level adjustment card "small map" in the control level adjustment window, and the end position corresponding to the drag operation is the display position of the level adjustment card "click-and-play" in the control level adjustment window.
In this example, the reference level adjustment card only includes the level adjustment card "kill report", when the terminal device detects that the use object has ended the drag operation at the display position of the level adjustment card "kill report", the terminal device may directly exchange the display position of the target level adjustment card "small map" and the reference level adjustment card "kill report" in the control level adjustment window, that is, the adjustment target level adjustment card "small map" is displayed at the original display position of the reference level adjustment card "kill report", and the adjustment reference level adjustment card "kill report" is displayed at the original display position of the target level adjustment card "small map".
Through the above-mentioned exchange of the display positions of the target level adjustment card and the reference level adjustment card, the levels of the target candidate control corresponding to the target level adjustment card and the reference candidate control corresponding to the reference level adjustment card are also exchanged accordingly, that is, the level of the target candidate control "small map" is adjusted to the level originally possessed by the reference candidate control "click and play" and the level of the reference candidate control "click and play" is adjusted to the level originally possessed by the target candidate control "small map".
In another possible implementation manner, when the level adjustment operation is triggered by the target level adjustment control in such a manner that the level of the target candidate control included in the target level adjustment card is edited, or the level of the target candidate control included in the target level information display area is edited, the terminal device may adjust the levels of the target candidate control and the reference candidate control in the following manner: and adjusting the level of the target candidate control and the level of the reference candidate control according to the pre-editing level and the post-editing level corresponding to the editing operation.
In this implementation, the pre-editing hierarchy is a hierarchy of target candidate controls before editing operation, and the post-editing hierarchy is a hierarchy obtained through editing operation; the reference candidate control is determined according to the pre-editing hierarchy and the post-editing hierarchy.
Specifically, the terminal device may determine, as the reference candidate control, a candidate control whose hierarchy needs to be changed under the influence of the editing operation, according to a hierarchy (i.e., the pre-editing hierarchy) possessed by the target candidate control before the editing operation is performed by using the object, and a new hierarchy (i.e., the post-editing hierarchy) configured for the target candidate control by using the object through the editing operation. And adjusting the hierarchy of the target candidate control according to the edited hierarchy, and adjusting the hierarchy of the reference candidate control according to the pre-editing hierarchy.
As an example, when the reference candidate control includes a candidate control having a post-editing hierarchy before the above-described editing operation and a candidate control having a hierarchy between the pre-editing hierarchy and the post-editing hierarchy before the editing operation, the terminal device can adjust the hierarchies of the target candidate control and the reference candidate control by: the hierarchy of the target candidate control is adjusted to be an edited hierarchy, and the hierarchy of each reference candidate control is adjusted along the direction pointing to the pre-editing hierarchy.
For example, assuming that the target candidate control originally has a hierarchy of 8, the object triggers an editing operation for the hierarchy of the target candidate control through the target hierarchy adjustment card or the target hierarchy information display area, and adjusts the hierarchy of the target candidate control to 11, each candidate control originally having the hierarchies of 9, 10 and 11 belongs to a reference candidate control affected by the editing operation. In this case, after receiving the editing operation triggered by the use object, the terminal device adjusts the level of the target candidate control from 8 to 11, and adjusts the level of the reference candidate control with the original level of 9 from 9 to 8, adjusts the level of the reference candidate control with the original level of 10 from 10 to 9, and adjusts the level of the reference candidate control with the original level of 11 from 11 to 10.
As another example, when the reference candidate control includes only candidate controls having post-editing levels prior to the editing operation, the terminal device may adjust the levels of the target candidate control and the reference candidate control by: the hierarchy of the target candidate control is adjusted to be the post-editing hierarchy, and the hierarchy of the reference candidate control is adjusted to be the pre-editing hierarchy.
For example, assuming that the target candidate control originally has a hierarchy of 8, an editing operation is triggered by using an object through a target hierarchy adjustment card or a target hierarchy information display area for the hierarchy of the target candidate control, and the hierarchy of the target candidate control is adjusted to 11, the candidate control originally having the hierarchy of 11 belongs to a reference candidate control affected by the editing operation. In this case, after receiving the editing operation triggered by the use object, the terminal device adjusts the levels originally possessed by the target candidate control and the reference candidate control, that is, adjusts the level of the target candidate control from 8 to 11, and adjusts the level of the reference candidate control from 11 to 8.
It should be understood that the above implementation manner of adjusting the levels of the target candidate control and the reference candidate control according to the level adjustment operation is only an example, and in practical application, the respective levels of the target candidate control and the reference candidate control may also be adjusted in other manners according to practical requirements, and the present application does not make any limitation on the implementation manner of adjusting the respective levels of the target candidate control and the reference candidate control.
In the embodiment of the application, after the terminal equipment responds to the level adjustment operation and adjusts the respective levels of the target candidate control and the reference candidate control, the terminal equipment can respond to the operation triggered by the use object in the target interface aiming at the control area of the target candidate control or the reference candidate control according to the adjusted levels of the target candidate control and the adjusted levels of the reference candidate control.
Specifically, when the terminal device receives a first operation triggered by the manipulation area corresponding to the target candidate control, whether the target candidate control responds to the first operation may be determined based on the adjusted hierarchy of the target candidate control. Similarly, when the terminal device receives a second operation triggered by the manipulation area corresponding to the reference candidate control, it may determine whether the reference candidate control is responsive to the second operation based on the adjusted hierarchy of the reference candidate control.
For example, in the case that there is an overlap between the manipulation area of the target candidate control and the manipulation areas of other candidate controls in the target interface, for the overlapped manipulation area, the terminal device may determine, according to the adjusted hierarchy of the target candidate control and the hierarchy of the other candidate controls, the control to which the overlapped manipulation area corresponds. If the target candidate control is determined to be the candidate control with the highest hierarchy in the candidate controls based on the adjusted hierarchy of the target candidate control, the overlapped control area can be determined to be used for responding to the target candidate control; accordingly, when the terminal device receives a first operation triggered by the use object in the overlapped control area, the target candidate control can be controlled based on the first operation. Otherwise, if the target candidate control is determined to be not the candidate control with the highest hierarchy in the candidate controls based on the adjusted hierarchy of the target candidate control, it may be determined that the overlapped control area is not used for responding to the target candidate control; accordingly, when the terminal device receives the first operation triggered by the use object in the overlapped control area, the target candidate control is not controlled based on the first operation.
Similarly, for the reference candidate control whose hierarchy is adjusted, when there is an overlap between the manipulation area of the reference candidate control and the manipulation areas of other candidate controls in the target interface, the above manner is also adopted to determine whether the overlapped manipulation area is used for responding to the reference candidate control, and accordingly determine whether the second operation received in the overlapped manipulation area is used for manipulating the reference candidate control.
The control adjusting method creatively provides a scheme for supporting adjustment of the level of the control in the display interface, namely the method supports the user-defined adjustment of the level of the control in the display interface by using the object according to the actual requirement, so that when the control areas of a plurality of controls overlap, the user-defined object can adjust the level of the control according to the actual requirement so as to self-define the control responded by the overlapped control area, namely the function of the overlapped control area is self-defined; the flexibility of control adjustment is further improved, and the operation required to be executed when the control is adjusted by the object user definition can be simplified to a certain extent. In addition, in order to ensure that when the control areas of any plurality of controls in the display interface are overlapped, the controls responded by the overlapped control areas can be definitely determined according to the levels of the controls, so that the levels of the controls in the display interface are required to be different; based on this, in the embodiment of the present application, when the level of the target candidate control is adjusted according to the level adjustment operation triggered for the target candidate control, the levels of other reference candidate controls affected by the level adjustment operation are also adaptively adjusted, so that the different levels of the candidate controls in the target interface are ensured, and thus the reliability of the scheme for custom adjusting the level of the control in practical application is ensured.
In addition, the embodiment of the application also provides a scheme for supporting the custom adjustment of the display style of the candidate control in the target interface. Referring to fig. 8, fig. 8 is a flowchart of a control display style adjustment method provided by an embodiment of the present application, where an execution body of the method is also a terminal device, and as shown in fig. 8, the control display style adjustment method includes the following steps:
step 801: and responding to the control style adjustment operation triggered by the target interface, and displaying the style adjustment control.
In the embodiment of the application, the terminal equipment responds to the control style adjustment operation triggered by the use object aiming at the target interface, and can display the style adjustment control.
It should be appreciated that the style adjustment controls displayed are controls for adjusting the display style of candidate controls in the target interface. The style adjustment control can be, for example, a control in a slide bar form, and supports the use of an object to adjust the display style of the candidate control by triggering the slide bar sliding operation; of course, in practical application, the style adjustment control may also be in other forms, and the present application is not limited in any way to the form of the style adjustment control. In addition, the displayed style adjustment controls may include controls for adjusting display styles of different dimensions, for example, may include at least one of a style adjustment control for adjusting a size of the control, a style adjustment control for adjusting a transparency of the control, a style adjustment control for adjusting a display position of the control, and a style adjustment control for adjusting a shape of the control, and the application is not limited in any way herein to a display style specifically adjusted by the displayed style adjustment control.
As an example, the usage object may trigger a control style adjustment operation for a target interface by: the user-defined adjustment operation for the target interface can be triggered by the user-defined control corresponding to the touch target interface through the object, and the user-defined adjustment operation triggered for the target interface can be regarded as the control style adjustment operation triggered for the target interface. Fig. 3 is an interface diagram of triggering a custom adjustment operation for a target interface according to an embodiment of the present application, as shown in fig. 3, a terminal device may display a control style adjustment window corresponding to the target interface in response to the custom adjustment operation (i.e., a control style adjustment operation) triggered by an object for the target interface, where the style adjustment control 302 includes a style adjustment control 302, and the style adjustment control 302 specifically includes a style adjustment control for adjusting a size of the control, a style adjustment control for adjusting transparency of the control, and a style adjustment control for adjusting a display position 4 of the control.
It should be understood that in practical application, other implementation manners for adjusting the style of the target interface trigger control may be set according to practical requirements, and the implementation manner for adjusting the style of the target interface trigger control is not specifically limited herein.
It should be understood that displaying the style adjustment control in the control style adjustment window corresponding to the target interface is only an example, and in practical application, other modes may be used to display the style adjustment control; for example, the terminal device may respond to a control style adjustment operation triggered by using the object for the target interface, and display, in the target interface, a style information display area corresponding to each candidate control, where a style adjustment control for adjusting a display style of the corresponding candidate control is carried in the style information display area, and a display position of the style information display area may be determined according to a display position of the corresponding candidate control in the target interface. The present application is not limited in any way to the manner in which the style adjustment control is displayed.
Optionally, in the embodiment of the present application, the terminal device responds to a control style adjustment operation triggered for the target interface, and may display a mode selection control in addition to a style adjustment control; the mode selection control is used for supporting selection of any one mode in a single selection mode and a multi-selection mode, wherein the single selection mode is used for supporting selection of one type of candidate control to be adjusted in a target interface, and the multi-selection mode is used for supporting selection of at least one type of candidate control to be adjusted in the target interface.
As shown in fig. 3, in the control style adjustment window corresponding to the target interface, a mode selection control 303 is further included, where the mode selection control 303 is represented as a switch control, and a selection mode according to which a candidate control to be adjusted in a style is selected later in the target interface can be selected by the mode selection control 303. If the user object selects a single selection mode through the mode selection control, the user object can only select one type of candidate control to be adjusted when selecting the candidate control to be adjusted in the style in the target interface later; if the using object selects the multi-selection mode through the mode selection control, when the using object subsequently selects the candidate control to be adjusted in the style in the target interface, one candidate control to be adjusted in style can be selected, and a plurality of candidate controls to be adjusted in style can be selected.
Step 802: and receiving a control selection operation triggered by the candidate control in the target interface, and determining a candidate control to be adjusted in a style according to the control selection operation.
And under the condition that the terminal equipment displays the style adjustment control, the terminal equipment can also receive control selection operation triggered by the candidate control in the target interface and determine the candidate control to be adjusted in style according to the control selection operation. It should be understood that the style candidate control to be adjusted herein is a candidate control whose display style needs to be adjusted using object selection.
As introduced in step 801 above, in the embodiment of the present application, the terminal device responds to the control style adjustment operation triggered by the use object for the target interface, and may display a mode selection control in addition to the style adjustment control, and support the selection of a single-selection mode or a multiple-selection mode through the mode selection control by using the object. In this case, after receiving a control selection operation triggered for a candidate control in the target interface, the terminal device may determine that the style is to be adjusted for the candidate control based on the mode selected by the mode selection control and the received control selection operation.
When the mode selected by the mode selection control by the use object is the single-selection mode, the terminal device can determine the candidate control selected by the last control selection operation as the candidate control to be adjusted in style. Specifically, in the single selection mode, if the terminal device detects that the use object triggers a control selection operation for a certain candidate control, the selected candidate control can be determined to be a candidate control to be adjusted in style; if the terminal equipment detects that the use object triggers the control selection operation for another candidate control, the selected candidate control can be redetermined to be the candidate control to be regulated in the style, and the candidate control selected before the terminal equipment is determined not to be the candidate control to be regulated in the style any more, namely the use object is considered to be switched to the candidate control to be regulated in the style selected by the use object.
When the mode selected by the object through the mode selection control is the multi-selection mode, the terminal equipment can determine each candidate control selected through each received control selection operation to serve as a candidate control to be adjusted in style. Specifically, in the multi-selection mode, the terminal device may use the candidate controls selected by the control selection operation of the use object each time as the candidate controls to be adjusted in style, that is, before the terminal device detects that the use object triggers the style adjustment operation for the candidate controls to be adjusted in style, each candidate control selected by the control selection operation of the use object may be used as the candidate controls to be adjusted in style.
Optionally, when the mode selected by the object through the mode selection control is a multi-selection mode, the terminal device may display a control category selection control, where the control category selection control includes control category options corresponding to multiple control categories, where the multiple control categories are determined by classifying candidate controls in the target interface. The terminal device may then receive an option selection operation triggered using the object for a control category option in the control category selection control and determine a target control category option selected by the option selection operation. Furthermore, the terminal equipment can determine each candidate control belonging to the target control category corresponding to the target control category option in the target interface as a candidate control to be adjusted in each style.
In view of the fact that in many cases in practical application, the use object tends to uniformly adjust the display style of the candidate control belonging to the same category in the target interface, based on this, in order to simplify the operation of using the object selection style to adjust the candidate control, in the embodiment of the present application, a control category selection control is further provided in a multi-selection mode, where the control category selection control includes control category options corresponding to various control categories, and the various control categories are obtained by classifying each candidate control included in the target interface, and may include, for example, a role gesture control category, a role attack action control category, a role avoidance action control category, and so on.
Furthermore, the terminal device may receive an option selection operation triggered by the use object through the control category selection control, that is, determine a control category option selected by the use object in the control category selection control, and take the control category option selected by the use object as a target control category option. Accordingly, each candidate control belonging to the target control category corresponding to the target control category option in the target interface can be regarded as a candidate control to be adjusted in style. In this way, the selection of the candidate controls of one type is realized by selecting the control type option, so that the operation required to be executed when the candidate controls are to be adjusted by using the object selection style can be greatly simplified.
In some cases, the application object can also switch the mode used when the application object selects the candidate control to be adjusted according to the mode selected by the mode selection control in the process of selecting the candidate control to be adjusted according to the mode, and in this case, the terminal equipment needs to respond to the switching operation of the mode, and correspondingly switch the logic for responding to the control selection operation to determine the candidate control to be adjusted according to the mode.
Specifically, when the terminal device detects that the mode selected by the mode selection control is switched from the multi-selection mode to the single-selection mode, the candidate control selected by the last control selection operation in the multi-selection mode can be determined to be the candidate control to be adjusted in the style. If the terminal equipment detects that the using object triggers the control selection operation aiming at another candidate control in the target interface, the candidate control can be redetermined to be the candidate control to be regulated in the style, and meanwhile, the candidate control which is selected through the control selection operation before is determined to be no longer the candidate control to be regulated in the style.
When the terminal device detects that the mode selected by the mode selection control is switched from the single-selection mode to the multi-selection mode, the mode selected in the single-selection mode can be reserved for the candidate control to be adjusted. And if the terminal equipment detects that the using object triggers the control selection operation aiming at other candidate controls in the target interface, the candidate controls selected through the control selection operation can be regarded as candidate controls with patterns to be adjusted.
It should be understood that, in practical application, in the case of not supporting selection of the single-selection mode and the multiple-selection mode, the terminal device may default to the selection operation of the received control, to adopt the candidate control selection logic for pattern adjustment in the single-selection mode or the multiple-selection mode, and determine the candidate control for pattern adjustment based on the received control selection operation.
Step 803: and receiving a style adjustment operation triggered by the style adjustment control, and adjusting the display style of the candidate control to be adjusted according to the style adjustment operation.
After determining the candidate control to be adjusted in the style required to be adjusted according to the control selection operation triggered by the use object, the terminal equipment can further receive the style adjustment operation triggered by the use object through the style adjustment control, and correspondingly adjust the display style of the candidate control to be adjusted in the style according to the style adjustment operation.
When the user object selects a single selection mode through the mode selection control or the terminal equipment defaults to select a candidate control to be regulated in a mode based on the control selection logic of the single selection mode, after receiving a style regulation operation triggered by the user object through the style regulation control, the terminal equipment can only regulate the display style of the selected candidate control to be regulated in a single mode according to the style regulation operation.
When the multi-selection mode is selected by the use object through the mode selection control, or the terminal equipment defaults to select the candidate control to be regulated according to the control selection logic of the multi-selection mode, after receiving the style regulation operation triggered by the use object through the style regulation control, the terminal equipment can uniformly regulate the display style of each selected candidate control to be regulated according to the style regulation operation. For example, according to style adjustment operation triggered by the use object, style parameters of candidate controls to be adjusted in each style can be adjusted to the same parameter, for example, the candidate controls to be adjusted in each style are adjusted to candidate controls with the same size and the same transparency; fig. 9 is a schematic diagram of an exemplary adjustment control display style provided in an embodiment of the present application, as shown in fig. 9, for a plurality of style candidate controls to be adjusted selected in a multi-selection mode, a terminal device may uniformly adjust display styles of the plurality of style candidate controls to be adjusted according to a style adjustment operation triggered by the style adjustment control.
It should be understood that, in practical application, the current style parameter of the candidate control to be adjusted in the style adjustment control may be displayed in the style adjustment control, and in the multi-selection mode, the style parameter displayed in the style adjustment control may be changed according to the style parameter of the candidate control to be adjusted in the last selected style, that is, the style parameter of the candidate control to be adjusted in the last selected style may be displayed in the style adjustment control. Meanwhile, the display style of the candidate control to be adjusted of each style selected before can be correspondingly adjusted based on the style parameters displayed in the style adjustment control.
As an example, in the embodiment of the present application, the terminal device may receive a style adjustment operation triggered by the style adjustment control, and correspondingly adjust a display style of the candidate control to be style-adjusted, by at least one of the following manners:
when the style adjustment control is a slider control, the terminal device can receive a slider sliding operation triggered by the slider control, and further, adjust the display style of the candidate control to be adjusted according to style parameters corresponding to the slider sliding operation. In the interface shown in fig. 3, the style adjustment control for adjusting the size of the control and the style adjustment control for adjusting the transparency of the control are both slider controls, and the size and transparency of the candidate control to be adjusted in the selected style can be adjusted by using the object in a manner of sliding the slider.
When the style adjustment control is a parameter editing control, the terminal device can receive parameter editing operation triggered by the parameter editing control, and then adjust the display style of the candidate control to be adjusted according to the style parameter generated by the parameter editing parameter. The style adjustment control may be a parameter input box, and the use object may input a corresponding style parameter in the parameter input box, and accordingly, the terminal device may adjust a display style of the candidate control to be adjusted based on the style parameter input by the use object.
When the style adjustment control is an option selection control, the terminal equipment can receive an option selection operation triggered by the option selection control, and further adjust the display style of the candidate control to be adjusted according to style parameters corresponding to options selected by the option selection operation. The style adjustment control may be an option selection control, where the option selection control includes multiple selection options, where the multiple selection options respectively correspond to more common style parameters, the user object may select any one of the selection options in the option selection control, and correspondingly, the terminal device may adjust a display style of the candidate control to be adjusted according to the style parameter corresponding to the selection option selected by the user object.
When the style adjustment control is a position adjustment control, the terminal device can receive position adjustment operation triggered by the position adjustment control, and then adjust the display position of the candidate control to be adjusted according to the position adjustment operation. In the interface shown in fig. 3, the style adjustment control for adjusting the position of the control is a position adjustment control, which includes four directional controls, i.e., up, down, left, and right, respectively, for controlling the selected style to be adjusted candidate control to be moved in the corresponding direction; the using object can correspondingly control the candidate control to be adjusted in the style to move in the target interface through the direction control included in the position adjustment control, namely, the display position of the candidate control to be adjusted in the style in the target interface is adjusted.
It should be understood that, in practical application, the style adjustment control may also be in other forms, and the object may correspondingly adjust the display style of the candidate control to be adjusted based on the style adjustment control in other manners, and the present application does not limit any manner of adjusting the display style of the candidate control to be adjusted herein.
According to the control display style adjustment method, the realization mechanism for supporting the candidate controls to be adjusted in multiple selected styles and uniformly adjusting the display styles of the candidate controls to be adjusted in each selected style is provided, so that operations required to be executed when the candidate controls are adjusted in the display styles by using the objects are simplified, and meanwhile, the uniformity of the display styles of the selected candidate controls can be ensured.
In order to further understand the control adjustment method provided by the embodiment of the present application, an example of using the control adjustment method provided by the embodiment of the present application to adjust a game control in a game interface is described below, and in conjunction with fig. 10 and fig. 12, a control hierarchy adjustment mechanism and a control display style adjustment mechanism provided by the embodiment of the present application are respectively described in an overall exemplary manner.
Referring to fig. 10, fig. 10 is a schematic flow chart of an implementation of a control hierarchy adjustment mechanism according to an embodiment of the present application. As shown in fig. 10, a player may trigger entering a control hierarchy adjustment state of a game interface by clicking a control hierarchy adjustment control, and at this time, a control hierarchy adjustment window corresponding to the game interface will be displayed, where the control hierarchy adjustment window includes hierarchy adjustment cards corresponding to each game control in the game interface, and each hierarchy adjustment card arranged from left to right and from top to bottom is arranged according to the sequence from top to bottom of the hierarchy of each corresponding game control. At this time, if the player clicks the return control, the player may return to the previous state. If the player drags the scroll bar on the right side of the control level adjustment window, the scroll bar is triggered to scroll, and accordingly, the control level adjustment window also scrolls and displays the corresponding position.
The terminal device may determine whether the player presses a finger in the control level adjustment window, and if so, may determine a level adjustment card corresponding to the position of the pressed finger as a target level adjustment card, and determine a level of the target game control corresponding to the target level adjustment card as X.
After detecting that the player presses the finger in the control level adjustment window, the terminal equipment needs to detect whether the player lifts the finger all the time, if detecting that the player lifts the finger, whether the display position of the target level adjustment card in the control level adjustment window is changed or not needs to be judged, if not, any operation is not needed to be executed, the process is directly ended, if so, the level X of the target game control and the level Y of the reference game control need to be adjusted, and the process is ended after the adjustment is completed.
After detecting that the player presses the finger in the control level adjustment window, the terminal equipment can further judge whether the player triggers a dragging operation aiming at the target level adjustment card, if so, the target level adjustment card needs to be controlled to move along with the finger of the player, and the position to which the finger moves needs to be judged in real time; if the control is moved to the region D in fig. 11, no operation is performed, if the control is moved to the region a in fig. 11, the hierarchy adjustment card list in the control hierarchy adjustment window slides upward, if the control is moved to the region C in fig. 11, the hierarchy adjustment card list in the control hierarchy adjustment window slides downward, if the control is moved to the region B in fig. 11, the hierarchy Y of the reference game control corresponding to the hierarchy adjustment card to which the moved position belongs needs to be determined, and meanwhile, the hierarchy adjustment card to which the moved position belongs adopts the pattern feedback of the dotted line.
When the terminal equipment adjusts the hierarchy of the game control, the hierarchy relation between X and Y can be judged; if X is larger than Y, the level of the game control with the level larger than X is unchanged, the level of the game control with the level between X and Y and the level of the game control with the level of Y are unified to rise by one level, and the level of the game control with the level smaller than Y is unchanged; if X is smaller than Y, the level of the game control with the level larger than Y is unchanged, the level of the game control with the level between X and Y and the level of the game control with the level of Y are uniformly reduced by one level, and the level of the game control with the level larger than Y is unchanged; if X is equal to Y, it is indicated that the position of the target level adjustment card is unchanged, and no operation is required to be performed.
Referring to fig. 12, fig. 12 is a schematic flowchart of an implementation of a control display style adjustment mechanism according to an embodiment of the present application. As shown in fig. 12, when a player triggers a custom adjustment operation for a game interface, the terminal device may display the custom interface of the game interface, where the custom interface includes a control style adjustment window, and a mode selection control in the control style adjustment window defaults to a single selection mode.
The terminal device may detect whether the player triggers an adjustment of the selected mode via a mode selection control. If not, continuing to keep the single selection mode, in the single selection mode, clicking a certain game control by the player to select the game control, clicking other game controls by the player again to switch the selected game control, and only adjusting the display style of the single selected game control through the style adjustment control in the control style adjustment window. If the fact that the player selects the multi-selection mode through the mode selection control is detected, supporting the player to select a plurality of game controls in the game interface, and uniformly adjusting the display modes of the selected plurality of game controls; in the multi-selection mode, the style parameters in the style adjustment control are the style parameters of the last selected game control; in addition, if the terminal device detects that the player triggers the style adjustment operation through the style adjustment control, the display style of each selected game control is uniformly adjusted according to the style adjustment operation.
In the case that the player selects the multi-selection mode through the mode selection control, the terminal device needs to detect in real time whether the player switches the selected mode back to the single-selection mode, and if so, the control selection logic in the single-selection mode is restored.
Aiming at the control adjusting method, the application also provides a corresponding control adjusting device, so that the control adjusting method can be practically applied and realized.
Referring to fig. 13, fig. 13 is a schematic structural diagram of a control adjustment device 1300 corresponding to the control adjustment method shown in fig. 2 above. As shown in fig. 13, the control adjustment device 1300 includes:
the display module 1301 is configured to respond to a control level adjustment operation triggered for a target interface, and display a level adjustment control corresponding to a candidate control in the target interface;
an operation receiving module 1302, configured to receive a hierarchy adjustment operation triggered by the target hierarchy adjustment control;
the hierarchy adjustment module 1303 is configured to adjust a hierarchy of a target candidate control corresponding to the target hierarchy adjustment control according to the hierarchy adjustment operation, and adjust a hierarchy of a reference candidate control related to the hierarchy adjustment operation; the reference candidate control is a control requiring a change in hierarchy in response to the hierarchy adjustment operation, other than the target candidate control.
Optionally, the display module 1301 is specifically configured to:
responding to control level adjustment operation triggered by aiming at the target interface, and displaying a control level adjustment window corresponding to the target interface; and the control hierarchy adjustment window comprises hierarchy adjustment cards corresponding to each candidate control in the target interface.
Optionally, each level adjustment card in the control level adjustment window is arranged according to the level of the candidate control corresponding to each level adjustment card; the operation receiving module 1302 is specifically configured to:
receiving card selection operation triggered by the control hierarchy adjustment window aiming at the hierarchy adjustment card, and determining the hierarchy adjustment card selected by the card selection operation as a target hierarchy adjustment card; the target level adjustment card corresponds to the target candidate control;
and receiving a drag operation for the target hierarchy adjustment card as the hierarchy adjustment operation.
Optionally, the hierarchy adjustment module 1303 is specifically configured to:
according to the initial position and the end position corresponding to the dragging operation, adjusting the display position of the target level adjustment card in the control level adjustment window, and adjusting the display position of the reference level adjustment card in the control level adjustment window;
The initial position corresponding to the dragging operation is the display position of the target level adjustment card in the control level adjustment window before the dragging operation; the reference level adjustment card corresponds to the reference candidate control, and is determined according to a starting position and a stopping position corresponding to the dragging operation; and the display position of the hierarchy adjustment card in the control hierarchy adjustment window is used for representing the hierarchy of the candidate control corresponding to the hierarchy adjustment card.
Optionally, the hierarchy adjustment module 1303 is specifically configured to:
when the reference level adjustment card comprises a level adjustment card positioned at the end position before the drag operation and a level adjustment card positioned between the start position and the end position before the drag operation, adjusting the display position of each reference level adjustment card by adjusting the target level adjustment card to be displayed in a card display area corresponding to the end position and along the direction pointing to the start position;
when the reference level adjustment card comprises a level adjustment card positioned at the end position before the drag operation, the target level adjustment card is adjusted to be displayed in a card display area corresponding to the end position, and the reference level adjustment card is adjusted to be displayed in a card display area corresponding to the start position.
Optionally, each level adjustment card in the control level adjustment window includes a level of its corresponding candidate control; the operation receiving module 1302 is specifically configured to:
and receiving a hierarchy-triggered editing operation of the target candidate control included in the target hierarchy adjustment card as the hierarchy adjustment operation.
Optionally, the display module 1301 is specifically configured to:
responding to control level adjustment operation triggered by aiming at the target interface, and displaying level information display areas corresponding to candidate controls in the target interface; and the hierarchy information display area carries the hierarchy of the candidate control corresponding to the hierarchy information display area, and the display position of the hierarchy information display area is determined according to the display position of the candidate control corresponding to the hierarchy information display area.
Optionally, the operation receiving module 1302 is specifically configured to:
and receiving a hierarchy-triggered editing operation aiming at the target candidate control in a target hierarchy information display area as the hierarchy adjustment operation.
Optionally, the hierarchy adjustment module 1303 is specifically configured to:
according to the pre-editing level and the post-editing level corresponding to the editing operation, adjusting the level of the target candidate control and adjusting the level of the reference candidate control;
The pre-editing level is a level of the target candidate control before the editing operation, and the post-editing level is a level obtained through the editing operation; the reference candidate control is determined from the pre-editing hierarchy and the post-editing hierarchy.
Optionally, the hierarchy adjustment module 1303 is specifically configured to:
when the reference candidate control includes a candidate control having the post-editing hierarchy before the editing operation and a candidate control having a hierarchy between the pre-editing hierarchy and the post-editing hierarchy before the editing operation, adjusting the hierarchy of the target candidate control to the post-editing hierarchy, and adjusting the hierarchy of each of the reference candidate controls along a direction pointing to the pre-editing hierarchy;
when the reference candidate control includes a candidate control having the post-editing hierarchy prior to the editing operation, adjusting the hierarchy of the target candidate control to the post-editing hierarchy, and adjusting the hierarchy of the reference candidate control to the pre-editing hierarchy.
Optionally, the operation receiving module 1302 is further configured to:
when a first operation triggered by a control area corresponding to the target candidate control is received, determining whether the target candidate control responds to the first operation or not based on the adjusted hierarchy of the target candidate control;
And when a second operation triggered by the control area corresponding to the reference candidate control is received, determining whether the reference candidate control responds to the second operation or not based on the adjusted hierarchy of the reference candidate control.
Optionally, the display module 1301 is further configured to:
responding to a control style adjustment operation triggered by aiming at the target interface, and displaying a style adjustment control;
the operation receiving module 1302 is further configured to:
receiving a control selection operation triggered by a candidate control in the target interface, and determining a candidate control to be adjusted in a style according to the control selection operation;
and receiving a style adjustment operation triggered by the style adjustment control, and adjusting the display style of the candidate control to be adjusted according to the style adjustment operation.
Optionally, the display module 1301 is further configured to:
responding to control style adjustment operation triggered by aiming at the target interface, and displaying a mode selection control; the mode selection control is used for supporting to select any one mode from a single selection mode and a multi-selection mode, the single selection mode is used for supporting to select one type of candidate control to be adjusted in the target interface, and the multi-selection mode is used for supporting to select at least one type of candidate control to be adjusted in the target interface;
The operation receiving module 1302 is further configured to:
and receiving a control selection operation triggered by the candidate control in the target interface, and determining the candidate control to be adjusted in the style based on the mode selected by the mode selection control and the control selection operation.
Optionally, the operation receiving module 1302 is specifically configured to:
when the mode selected by the mode selection control is the multi-selection mode, determining each candidate control selected by each received control selection operation as each candidate control to be adjusted in the style;
receiving a style adjustment operation triggered by the style adjustment control, and uniformly adjusting the display style of each candidate control to be adjusted according to the style adjustment operation.
Optionally, the display module 1301 is further configured to:
when the mode selected by the mode selection control is a multi-selection mode, displaying a control category selection control; the control category selection control comprises control category options corresponding to various control categories respectively, and the various control categories are determined by classifying candidate controls in the target interface;
the operation receiving module 1302 is further configured to:
Receiving an option selection operation triggered by a control category option in the control category selection control, and determining a target control category option selected through the option selection operation;
and determining each candidate control belonging to the target control category corresponding to the target control category option in the target interface as each candidate control to be adjusted in the style.
Optionally, the operation receiving module 1302 is specifically configured to:
and when detecting that the mode selected by the mode selection control is switched from the multi-selection mode to the single-selection mode, determining the candidate control selected by the control selection operation for the last time in the multi-selection mode as the candidate control to be adjusted in the style.
Optionally, the operation receiving module 1302 is specifically configured to:
when the style adjustment control is a slide bar control, receiving a slide bar sliding operation triggered by the slide bar control, and adjusting the display style of the candidate control to be adjusted according to style parameters corresponding to the slide bar sliding operation;
when the style adjustment control is a parameter editing control, receiving parameter editing operation triggered by the parameter editing control, and adjusting the display style of the candidate control to be adjusted according to style parameters generated by the parameter editing parameters;
When the style adjustment control is an option selection control, receiving an option selection operation triggered by the option selection control, and adjusting the display style of the candidate control to be adjusted according to style parameters corresponding to options selected by the option selection operation;
and when the style adjustment control is a position adjustment control, receiving position adjustment operation triggered by the position adjustment control, and adjusting the display position of the candidate control to be adjusted according to the position adjustment operation.
The control adjusting device supports the user-defined adjustment of the control levels in the display interface according to the actual requirements of the user-defined object, so that when the control areas of a plurality of controls overlap, the user-defined object can adjust the control levels according to the actual requirements of the user-defined object so as to self-define the control responded by the overlapped control areas, namely, the function of the overlapped control areas is self-defined; the flexibility of control adjustment is further improved, and the operation required to be executed when the control is adjusted by the object user definition can be simplified to a certain extent. In addition, in order to ensure that when the control areas of any plurality of controls in the display interface are overlapped, the controls responded by the overlapped control areas can be definitely determined according to the levels of the controls, so that the levels of the controls in the display interface are required to be different; based on this, in the embodiment of the present application, when the level of the target candidate control is adjusted according to the level adjustment operation triggered for the target candidate control, the levels of other reference candidate controls affected by the level adjustment operation are also adaptively adjusted, so that the different levels of the candidate controls in the target interface are ensured, and thus the reliability of the scheme for custom adjusting the level of the control in practical application is ensured.
The embodiment of the application also provides an electronic device for adjusting the control, which can be specifically a terminal device, and the terminal device provided by the embodiment of the application is introduced from the aspect of hardware materialization.
Referring to fig. 14, fig. 14 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 14, for convenience of explanation, only the portions related to the embodiments of the present application are shown, and specific technical details are not disclosed, please refer to the method portions of the embodiments of the present application. The terminal may be any terminal device including a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), a Point of Sales (POS), a vehicle-mounted computer, and the like, taking the mobile phone as an example:
fig. 14 is a block diagram showing a part of the structure of a mobile phone related to a terminal provided by an embodiment of the present application. Referring to fig. 14, the mobile phone includes: radio Frequency (RF) circuitry 1410, memory 1420, input unit 1430 (including touch panel 1431 and other input devices 1432), display unit 1440 (including display panel 1441), sensor 1450, audio circuitry 1460 (which may connect speaker 1461 and microphone 1462), wireless fidelity (wireless fidelity, wiFi) module 1470, processor 1480, and power supply 1490. It will be appreciated by those skilled in the art that the handset construction shown in fig. 14 is not limiting of the handset and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The memory 1420 may be used to store software programs and modules, and the processor 1480 performs various functional applications and data processing of the cellular phone by executing the software programs and modules stored in the memory 1420. The memory 1420 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, memory 1420 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 1480 is a control center of the handset, connects various parts of the entire handset using various interfaces and lines, performs various functions of the handset and processes data by running or executing software programs and/or modules stored in the memory 1420, and invoking data stored in the memory 1420. In the alternative, processor 1480 may include one or more processing units; preferably, the processor 1480 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1480.
In the embodiment of the present application, the processor 1480 included in the terminal is further configured to execute the steps of any implementation manner of the control adjustment method provided in the embodiment of the present application.
The embodiment of the application also provides a computer readable storage medium for storing a computer program for executing any one of the control adjustment methods described in the foregoing embodiments.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read from the computer-readable storage medium by a processor of a computer device, and executed by the processor, to cause the computer device to perform any one of the control adjustment methods described in the foregoing respective embodiments.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RandomAccess Memory, RAM), a magnetic disk, or an optical disk, or other various media in which a computer program can be stored.
It should be understood that in the present application, "at least one (item)" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.