Interface display control method and device, medium, equipment and program product
Through group-based focus navigation configuration, the problems of low efficiency of focus navigation logic configuration and code coupling are solved, and efficient and flexible focus navigation is achieved to adapt to differences in different devices and interfaces.
Patent Information
- Application Number
- CN202510353857.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-24
- Publication Date
- 2025-07-04
AI Technical Summary
In the prior art, the focus navigation logic configuration is inefficient and strongly coupled with game program code, which makes it difficult to deal with conflicting needs of different devices or interfaces.
Through group-based transfer relationship configuration, in response to control commands of the control, the target transfer relationship is determined using the control group identification, and the corresponding control is found to realize focus navigation, decouple from the game program code, and allow independent update of the configuration.
It improves the configuration efficiency of focus navigation, reduces maintenance difficulty, and can flexibly respond to differentiated needs of different devices and interfaces without modifying game program code.
Smart Images

Figure CN120255756A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technologies, and in particular, to a method, apparatus, medium, device, and program product for controlling interface display. Background Art
[0002] In order to help a user focus on a specific area or target in a visual interface of an electronic device, it is necessary to navigate a focus that attracts the user's attention in the interface based on an interaction operation performed by the user on the visual interface. Summary of the Invention
[0003] This Summary of the Invention section is provided to introduce concepts in a brief form that will be described in detail in the Detailed Description section later. This Summary of the Invention section is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to be used to limit the scope of the claimed technical solution.
[0004] In a first aspect, the present disclosure provides a method for controlling interface display, where the control method includes: In response to a first control instruction for a first control, determining a first target transfer relationship according to the first control instruction and an identifier of a group to which the first control belongs, where the first control is a control where the focus in the interface is located, the first target transfer relationship includes the first control instruction, a first group identifier, and a second group identifier, and the identifier of the group to which the first control belongs is the first group identifier; Searching for a second control in the group corresponding to the second group identifier at least according to the first target transfer relationship, where each group includes at least one control in the interface; Controlling the focus to transfer from the first control to the second control.
[0005] In a second aspect, the present disclosure provides a device for controlling interface display, where the control device includes: A first response module, configured to, in response to a first control instruction for a first control, determine a first target transfer relationship according to the first control instruction and an identifier of a group to which the first control belongs, where the first control is a control where the focus in the interface is located, the first target transfer relationship includes the first control instruction, a first group identifier, and a second group identifier, and the identifier of the group to which the first control belongs is the first group identifier; A first search module, configured to search for a second control in the group corresponding to the second group identifier at least according to the first target transfer relationship, where each group includes at least one control in the interface; A first control module, configured to control the focus to transfer from the first control to the second control.
[0006] In a third aspect, the present disclosure provides a computer-readable medium having stored thereon a computer program which, when executed by a processing device, implements the steps of the control method described in the first aspect.
[0007] In a fourth aspect, the present disclosure provides an electronic device, comprising: a storage device having stored thereon a computer program; a processing device configured to execute the computer program in the storage device to implement the steps of the control method described in the first aspect.
[0008] In a fifth aspect, the present disclosure provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the control method described in the first aspect.
[0009] Through the above technical solution, in response to a first control instruction for a first control, a first target transfer relationship is determined according to the first control instruction and the identifier of the group to which the first control belongs, where the first control is the control at which the focus in the interface is located, the first target transfer relationship includes the first control instruction, the first group identifier, and the second group identifier, and the identifier of the group to which the first control belongs is the first group identifier; according to the first target transfer relationship, a second control in the group corresponding to the second group identifier is found, and the focus is controlled to transfer from the first control to the second control, thereby realizing the navigation of the focus; each group includes at least one control in the interface. Thus, based on the group, the configuration of the transfer relationship is realized. Compared with the method of configuring the transfer relationship based on a single control in the related art, configuring the transfer relationship based on the group can improve the configuration efficiency; in addition, the transfer relationship is decoupled from the program code of the game. If the transfer relationship changes, the configuration of the transfer relationship can be directly updated without modifying and compiling the code of the game program, further improving the configuration efficiency of the transfer relationship.
[0010] Other features and advantages of the present disclosure will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In combination with the accompanying drawings and with reference to the following specific implementation, the above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the original and elements are not necessarily drawn to scale. In the drawings: Figure 1 is a flowchart of a control method for interface display according to an embodiment of the present disclosure.
[0012] Figure 2 is a schematic diagram of an interface according to an embodiment of the present disclosure.
[0013] Figure 3 It is a schematic diagram of an interface shown according to an embodiment of the present disclosure.
[0014] Figure 4 It is a flowchart of a control method for interface display shown according to an embodiment of the present disclosure.
[0015] Figure 5 It is a schematic diagram of determining a fifth control shown according to an embodiment of the present disclosure.
[0016] Figure 6 It is a schematic diagram of the relative positions of a first control and a fifth control in an evaluation dimension shown according to an embodiment of the present disclosure.
[0017] Figure 7 It is a block diagram of a control device for interface display shown according to an embodiment of the present disclosure.
[0018] Figure 8 It is a schematic diagram of the structure of an electronic device shown according to an embodiment of the present disclosure. Detailed Embodiments
[0019] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Instead, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not used to limit the protection scope of the present disclosure.
[0020] It should be understood that the various steps recited in the method embodiments of the present disclosure can be executed in a different order and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this regard.
[0021] As used herein, the term "including" and its variants are open-ended, that is, "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0022] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependent relationships.
[0023] It should be noted that the modifiers "a" and "multiple" mentioned in this disclosure are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise clearly specified in the context, it should be understood as "one or more".
[0024] The names of the messages or information exchanged between multiple devices in the embodiments of this disclosure are only for illustrative purposes and are not used to limit the scope of these messages or information.
[0025] It can be understood that before using the technical solutions disclosed in the embodiments of this disclosure, the types, usage scopes, usage scenarios, etc. of the personal information involved in this disclosure should be informed to users and the authorization of users should be obtained through appropriate means in accordance with relevant laws and regulations.
[0026] For example, when responding to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested by the user will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, an application program, a server, or a storage medium that performs the operations of the technical solutions of this disclosure based on the prompt message.
[0027] As an optional but non-limiting implementation manner, the manner of sending a prompt message to the user in response to receiving an active request from the user can be, for example, in the form of a pop-up window, and the prompt message can be presented in text in the pop-up window. In addition, the pop-up window can also carry selection controls for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0028] It can be understood that the above process of notifying and obtaining user authorization is only illustrative and does not constitute a limitation on the implementation manner of this disclosure. Other manners that meet relevant laws and regulations can also be applied to the implementation manner of this disclosure.
[0029] At the same time, it can be understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) should comply with the requirements of the corresponding laws, regulations and related provisions.
[0030] In the field of games, in order to help users focus their attention on specific areas or targets in the interface of game devices, it is necessary to navigate the focus of attention that attracts users in the interface based on the operations performed by users through game devices.
[0031] In the related art, the configuration of the navigation logic based on a single control has low configuration efficiency; moreover, the navigation logic is strongly coupled with the program code of the game. If a developer wants to adjust the navigation logic, they need to modify the source code and recompile, which increases the maintenance difficulty of the navigation logic. In addition, the navigation logic is separated from the interface or the device carrying the game, and it is difficult for the same navigation logic to overcome the conflicting requirements caused by differences such as different devices or different interfaces.
[0032] In view of this, to solve the problems of low configuration efficiency and conflicting requirements caused by differences such as different devices or different interfaces, embodiments of the present disclosure provide a control method, device, medium, device, and program product for interface display.
[0033] The following explains and illustrates the present disclosure with reference to the accompanying drawings.
[0034] Figure 1 is a flowchart of the control method for interface display shown according to an embodiment of the present disclosure. The control method for interface display can be applied to an electronic device, and the control of the interface display can be executed by a control device for interface display. Among them, the control device for interface display can be implemented by software and / or hardware, and the software and / or hardware can be configured in, for example, the above-mentioned electronic device. Refer to Figure 1 and the control method for interface display may include step 110, step 120, and step 130.
[0035] In step 110, in response to a first control instruction for a first control, a first target transfer relationship is determined according to the first control instruction and the identifier of the group to which the first control belongs. The first control is the control where the focus is located in the interface. The first target transfer relationship includes the first control instruction, the first group identifier, and the second group identifier, and the identifier of the group to which the first control belongs is the first group identifier; In step 120, at least according to the first target transfer relationship, a second control in the group corresponding to the second group identifier is searched for. Each group includes at least one control in the interface; In step 130, the focus is controlled to transfer from the first control to the second control.
[0036] Through the above technical solution, in response to a first control instruction for a first control, a first target transfer relationship is determined according to the first control instruction and the identifier of the group to which the first control belongs. The first control is the control where the focus is located in the interface. The first target transfer relationship includes the first control instruction, the first group identifier, and the second group identifier. The identifier of the group to which the first control belongs is the first group identifier. According to the first target transfer relationship, a second control in the group corresponding to the second group identifier is found, and the focus is controlled to transfer from the first control to the second control, thereby realizing the navigation of the focus. Each group includes at least one control in the interface. Thus, the configuration of the transfer relationship is realized based on the group. Compared with the method of configuring the transfer relationship based on a single control in the related art, the configuration of the transfer relationship based on the group can improve the configuration efficiency. In addition, the transfer relationship is decoupled from the program code of the game. If the transfer relationship changes, the configuration of the transfer relationship can be directly updated without modifying and compiling the code of the game program, further improving the configuration efficiency of the transfer relationship.
[0037] The interface in the embodiments of the present disclosure refers to the interface currently displayed on the electronic device. Further, as an example, the interface in the embodiments of the present disclosure is, for example, a game interface. The present disclosure will be exemplarily described below with a game interface.
[0038] It can be understood that the first control is the control where the focus is currently located in the interface. The first control instruction is used to trigger the transfer of the focus between controls in different groups, that is, in this embodiment, the groups to which the first control and the second control belong are different.
[0039] In some embodiments, the first control instruction can be triggered by an external device and sent to the electronic device through the communication connection between the external device and the electronic device. As an example, the external device can be, for example, a gamepad or a keyboard. Further, the user can trigger the first control instruction through a physical button or a virtual button on the external device.
[0040] In some embodiments, the same game may include multiple interfaces, such as a mall interface and a battle interface, etc. Different interfaces have a hierarchical relationship. For example, usually the first interface displayed in the game is the highest level, that is, the interface of the first level. On the basis of this interface, another interface that is further opened can be used as the interface of the second level. Among them, the level of the controls in the first interface is higher than that of the controls in the second interface, and the level where the first interface is located is higher than the level where the second interface is located.
[0041] In an embodiment of the present disclosure, the first target transfer relationship is one of the configured transfer relationships. It can be understood that the transfer relationship stores the corresponding relationship between the control instruction, the source group identifier, and the target group identifier. It should be noted that the source group identifier is the identifier of the group to which the control where the focus is currently located belongs (for example, the first group identifier), and the target group identifier is the identifier of the group to which the control where the focus is transferred belongs (for example, the second group identifier).
[0042] In some embodiments, at least one group can be obtained in the following manner: obtain the attribute information of the controls in the interface; group the controls in the interface according to the attribute information of the controls to obtain at least one group, where the controls in each group have the same attribute information.
[0043] In this embodiment, the controls to be grouped are the controls that need to be focused in the interface.
[0044] Among them, the attribute information may include at least one of type, usage frequency, and logical relationship with other controls. Among them, the type can be a type divided by function; the usage frequency of the control is used to describe the frequency of the user selecting the control; the logical relationship between the control and other controls may include the relationship of inclusion and being included. For example, in the interface, clicking on control A needs to expand controls A1, A2, and A3, and controls A1, A2, and A3 are included in control A.
[0045] Among them, for the interface, the controls in the interface have corresponding parent-child relationships. Therefore, on the basis of grouping, the parent-child relationships between groups can still be reflected, and the parent-child relationships help to construct a clear and modular interface. Figure 2 is a schematic diagram of the interface shown according to the embodiments of the present disclosure. In Figure 2 it, the interface is divided into two regions, left and right. Among them, the controls in the left region 201 may be assigned to the same group, and the controls in the right region 202 may be assigned to the same group. A certain control in the group where the left region 201 is located is the parent control of the corresponding control in the group where the right region 202 is located. Similarly, some controls in the right region 202 are the child controls of a certain control in the left region 201. The parent-child relationships here can be configured during game development.
[0046] Among them, the parent-child relationships of the controls in the interface can be represented by a tree structure. For example, the tree structure includes multiple nodes and directed edges between the nodes. Each node corresponds to a control in the interface, and the directed edge is used to describe the parent-child relationship between the two nodes connected by the directed edge. In other embodiments, the tree structure can also determine the hierarchical relationship of the controls in the interface. Further, the level of each node can be represented by the depth of the tree structure, and the depth is the path length from the root node to the current node in the tree structure.
[0047] In the above manner, the controls in the interface can be grouped from different dimensions, which can enhance the diversity of focus control implemented based on groups.
[0048] In some embodiments, the transfer relationship is configured in the configuration information of controls belonging to a preset type. Among them, the preset type includes types for supporting the storage of user-defined information. In this way, it is convenient for developers to expand the controls to implement the storage of the transfer relationship.
[0049] Based on the above situation where the transfer relationship is configured in the configuration information of controls belonging to a preset type, the step of determining the first target transfer relationship according to the first control instruction and the identifier of the group to which the first control belongs in response to the first control instruction for the first control can be implemented in the following manner: in response to the first control instruction for the first control, determine the first control as the current control; determine whether the current control belongs to the preset type; in the case where the current control belongs to the preset type, determine the first target transfer relationship that matches the identifier of the group to which the first control belongs and the first control instruction in the configuration information of the current control.
[0050] It should be noted that in order to enhance the diversity of focus navigation, multiple target transfer relationships that match the first control instruction and the identifier of the group to which the first control belongs can be configured. Therefore, the priorities between multiple target transfer relationships can be set to facilitate the navigation of the focus according to this priority during the control of the focus. At the same time, considering that in a game, there is a nested relationship between different controls in the interface. Therefore, this nested relationship can be utilized to configure transfer relationships that can reflect the priority. That is, multiple transfer relationships with corresponding priorities can be configured according to the nested relationship of the controls. It can be understood that among multiple transfer relationships, any one transfer relationship matches the first control instruction and the identifier of the group to which the first control belongs.
[0051] For example, the priority of the first target transfer relationship configured in the control where the focus is located is the highest. Therefore, the first control where the focus is located is preferentially used as the current control, and it is judged whether there is a first target transfer relationship that matches the identifier of the group to which the first control belongs and the first control instruction in the configuration information of the current control. And since the transfer relationship is configured in the configuration information of controls belonging to the preset type, before judging whether there is a first target transfer relationship that matches the identifier of the group to which the first control belongs and the first control instruction in the configuration information of the current control, it can be first judged whether the current control belongs to the preset type.
[0052] In the above manner, by virtue of the nesting relationship of the controls in the interface, first determine whether the first control where the focus is located belongs to a preset type, and in the case where the first control belongs to the preset type, determine whether there is a first target transfer relationship in the configuration information of the first control that matches the identifier of the group to which the first control belongs and the first control instruction.
[0053] In some embodiments, the step of determining the first target transfer relationship according to the first control instruction and the identifier of the group to which the first control belongs in response to the first control instruction for the first control may further include the following steps: when the current control does not belong to the preset type, determine the parent control of the current control according to the tree structure; determine the parent control as the new current control, and return to execute the step of determining whether the current control belongs to the preset type.
[0054] As can be seen from the above, the tree structure is at least used to describe the parent-child relationship of the controls in the interface. In other embodiments, the tree structure further includes the hierarchical relationship of different interfaces.
[0055] As can be seen from the above, the transfer relationship is configured in the configuration information of the control belonging to the preset type. Therefore, when the current control does not belong to the preset type, the tree structure can be used to continue to access other controls upward until the matching first target transfer relationship is determined.
[0056] In the above manner, when the current control does not belong to the preset type, the tree structure used to describe the parent-child relationship of the controls in the interface is used to re-determine the current control, providing a data basis for finding the first target transfer relationship that matches the identifier of the group to which the first control belongs and the first control instruction.
[0057] In some embodiments, the step of finding the second control in the group corresponding to the second group identifier at least according to the first target transfer relationship may be implemented in the following manner: find the second control according to the second group identifier, the current control, and the interface in the first target transfer relationship, where the second control is the first control among the visible controls in the interface that is located below the current control level and matches the second group identifier.
[0058] It can be understood that when the second control is found, the electronic device can then control the focus to transfer from the first control to the second control. Figure 3 is a schematic diagram of the interface shown according to an embodiment of the present disclosure. Combining Figure 2 and Figure 3 , before the electronic device responds to the first control instruction, the position of the focus in the interface is as Figure 2 shown. After the second control is found, the focus of the control interface is transferred to the second control, and the position of the focus in the interface is as Figure 3As shown. Among them, the above-mentioned drawings are only for exemplary illustration, and the display mode of specific focus can be flexibly adjusted according to user needs. For example, it can be displayed in a frame with a certain width, and the display mode of the specific position where the focus is located can be flexibly adjusted according to user needs.
[0059] Continuing with Figure 2 the example shown, when switching the control in the left area 201, the sub-controls in the right area 202 will be updated simultaneously. For example, the starting position of the right area 202 will display the first sub-control corresponding to the switched control. On this basis, the second control is the first control among the visible controls in the interface that matches the second group of identifiers. In addition, from the perspective of the hierarchical relationship between controls, the second control can preferably be a control located below the current control's hierarchy level.
[0060] Therefore, through the above method, combined with the hierarchical relationship between controls in the game field, by limiting the determination of the second control among the controls located below the current control's hierarchy level, the search efficiency of the second control can be improved; and the focus transfer is preferably achieved within the same interface.
[0061] Figure 4 is a flowchart of a control method for interface display shown according to an embodiment of the present disclosure. Referring to Figure 4 , the above control method for interface display may include the following steps: determining that the jump key is pressed; determining the current control; determining whether the current control belongs to a preset type; in the case where the current control belongs to the preset type, determining a first target transfer relationship in the configuration information of the current control that matches the identifier of the group to which the first control belongs and the first control instruction; searching for the second control according to the second group identifier in the first target transfer relationship; in the case where the second control is found, controlling the focus to transfer from the first control to the second control; in the case where the second control is not found, determining to re-search for the control based on the obtained first alternative search rule or the second alternative search rule (such as the third control or the fourth control in the following text); in the case where it is determined that a qualified control (such as the third control or the fourth control in the following text) is found, controlling the focus to transfer from the first control to the corresponding control (such as the third control or the fourth control in the following text); in the case where it is determined that no qualified control (such as the third control or the fourth control in the following text) can be found, ending the execution of the method.
[0062] In this embodiment, the user can press the jump key through an external device to trigger the first control instruction.
[0063] In this embodiment, the user can pre-configure the priorities of the first alternative search rule and the second alternative search rule, and determine the preferentially obtained search rule according to the priority level.
[0064] Taking the first candidate search rule and the second candidate search rule as examples respectively, the re-search for controls will be exemplarily described below.
[0065] In some embodiments, when it is determined to re-search for a control based on the obtained first candidate search rule, since the first candidate search rule is used to search for a third control among the controls below the level where the first target control is located based on the first target transfer relationship, and the level where the first target control is located is above the level where the current control is located. Therefore, when it is determined to search for the third control based on the first candidate search rule, the first target control can be determined first, and then, according to the first target transfer relationship, search for the third control that matches the second set of identifiers among the controls below the level where the first target control is located.
[0066] As an example, the first target control can be the parent control of the current control. Further, the first target control can be a control belonging to a preset type.
[0067] In this embodiment, the third control can be a control in the interface or a control in another interface.
[0068] For example, in some cases, the level where the first control in the visible controls in the interface that matches the second set of identifiers is located may not be below the level where the current control is located, but above the level where the current control is located.
[0069] Therefore, when the second control cannot be found, a qualified third control can be re-searched from other controls to provide a fallback solution for focus navigation.
[0070] In addition, when it is determined to re-search for a control based on the obtained first candidate search rule, if the first target control cannot be determined or the third control that matches the second set of identifiers cannot be found among the controls below the level where the first target control is located, it can be determined that no qualified control can be found, and the execution of the method ends.
[0071] In some embodiments, when it is determined to re-locate a control based on the obtained second candidate search rule, since the second candidate search rule is used to match the identifier of the group to which the first control belongs and the second target transfer relationship that matches the first control instruction, and the fourth control is located based on the second target transfer relationship, the second group identifier in the second target transfer relationship is different from the second group identifier in the first target transfer relationship. Therefore, in this case, when it is determined to locate the third control based on the second candidate search rule, it is possible to access upward a control that is above the current control level and belongs to a preset type, and re-use this control as the current control, and match the second target transfer relationship in the current control to locate the fourth control. As an example, the current control here may be a control in the upper interface of the interface. Further, the fourth control may be a control in the upper interface of the current interface. In other embodiments, the fourth control may be a control in the current interface, which is not limited in this embodiment.
[0072] As can be seen from the above, multiple transfer relationships that match the identifier of the group to which the first control belongs and the first control instruction can be configured. Therefore, when the second control cannot be located based on the first target transfer relationship, the fourth control can be located based on the matching second target transfer relationship to provide a fallback solution for focus navigation.
[0073] In addition, when it is determined to re-locate a control based on the obtained second candidate search rule, if a new current control cannot be determined or a qualified fourth control cannot be located under the current control, it can be determined that no qualified control can be located, and the execution of the method ends.
[0074] In some embodiments, when the corresponding control cannot be located based on the search rule with a higher priority, the corresponding control can be located based on the search rule with a lower priority. Thereby, a fallback solution for focus navigation is further provided.
[0075] In some embodiments, the above control method may further include the following steps: in response to a second control instruction for the first control, determining a fifth control according to the second control instruction and the identifier of the group to which the first control belongs, where the fifth control is a control in the target direction of the first control and belongs to the same group as the first control, and the target direction includes the direction indicated by the second control instruction; determining the relative position between the first control and the fifth control by using a preset rule, where the preset rule is associated with the interface type of the interface, and / or the preset rule is associated with the device type that displays the interface; determining the target fifth control that is closest to the first control from all the fifth controls according to the relative position; and controlling the focus to transfer from the first control to the target fifth control.
[0076] Among them, the second control instruction is used to trigger the transfer of the focus among the controls within the same group, that is, the group to which the first control and the target fifth control belong is the same. Among them, similar to the first control instruction, the second control instruction can be triggered by an external device and sent to the electronic device through the communication connection between the external device and the electronic device. As an example, the external device can be a handle, and the user triggers the second control instruction through a physical button or a virtual button on the external device. The physical button or the virtual button in this embodiment can be a button representing a direction, such as an upward direction button, a downward direction button, a leftward direction button, or a rightward direction button.
[0077] Among them, the direction indicated by the second control instruction is determined by the direction indicated by the button representing the direction. For example, if the second control instruction is triggered by a rightward direction button, the target direction is right. For another example, if the second control instruction is triggered by a downward direction button, the target direction is downward. Figure 5 is a schematic diagram of determining the fifth control according to an embodiment of the present disclosure. Refer to Figure 5 , the controls in the first target box 501 belong to the same group. The user triggers the second control instruction for the first control 503 through an external device, and the second control instruction is triggered by the rightward direction button in the external device. Therefore, the target direction is right. Further, the controls in the first target box 502 are all to the right of the first control 503. Therefore, the controls in the first target box 502 can be used as the fifth control.
[0078] Among them, the relative position can be characterized by a numerical value. On this basis, the smaller the numerical value, the higher its priority, that is, the fifth control with the smallest numerical value can be used as the target fifth control closest to the first control, so that the focus is finally transferred to the target fifth control.
[0079] As can be seen from the above, the interface type of the interface can be a mall interface, a battle interface, etc., or in other embodiments, the interface can be classified according to the density of the controls in the interface.
[0080] Among them, the device type can refer to a television device, a wearable device, a computer device, etc.
[0081] In the above manner, by setting a preset rule associated with the interface type or device type of the interface to determine the target fifth control closest to the first control, the preset rules corresponding to different interface types or device types can be configured, so as to be associated with the game scenario and the device scenario, and meet the need to solve the conflicts caused by hardware differences and interface type differences in focus navigation, thereby improving the effect of focus navigation.
[0082] In some embodiments, the relative position can be used to reflect the relative position in at least one evaluation dimension among the horizontal direction, the vertical direction, and the angle. In other words, the relative position can be determined from at least one evaluation dimension among the horizontal direction, the vertical direction, and the angle. Further, the relative position of the first control and the fifth control in the horizontal direction is used to describe the distance between the first control and the fifth control in the horizontal direction; the relative position of the first control and the fifth control in the vertical direction is used to describe the distance between the first control and the fifth control in the vertical direction; the relative position of the first control and the fifth control in terms of the angle is used to describe the deflection angle of the fifth control relative to the first control.
[0083] Taking the evaluation dimensions of the horizontal direction, the vertical direction, and the angle as an example, Figure 6 is a schematic diagram of the relative position of the first control and the fifth control in the evaluation dimension shown according to an embodiment of the present disclosure. Referring to Figure 6 , is the distance between the first control 601 and the fifth control 602 in the horizontal direction, is the distance between the first control 601 and the fifth control 602 in the vertical direction, is the deflection angle of the fifth control 602 relative to the first control 601.
[0084] Further, the process of determining the relative position of the first control and the fifth control using the preset rule can be as follows: according to the relative position of the first control and the fifth control in the evaluation dimension, determine the corresponding value in the evaluation dimension; perform a weighted operation based on the corresponding values in all evaluation dimensions and the weight coefficients corresponding to each evaluation dimension to obtain a target value, and the target value is used to represent the relative position of the first control and the fifth control.
[0085] Among them, the weight coefficient can be associated with the interface type of the interface, and / or the weight coefficient is associated with the device type of the display interface. Further, the preset rule can be represented by the following formula: ; where, is the weight coefficient corresponding to the horizontal direction, is the weight coefficient corresponding to the vertical direction, is the weight coefficient corresponding to the angle, is the distance between the first control and the fifth control in the horizontal direction, is the distance between the first control and the fifth control in the vertical direction, is the deflection angle of the fifth control relative to the first control, is a preset numerical value, is pi.
[0086] It should be noted that by using and , it can be achieved , , Perform normalization processing to eliminate the influence of different dimensions under different evaluation dimensions.
[0087] In some embodiments, the weight coefficients can be configured according to the priorities or importance of different evaluation dimensions for different interface types or different device types. For example, when the demand angle is prioritized under a certain interface type, a higher .
[0088] As an example, , and can have a value range of [0, 1].
[0089] Through the above method, the weight coefficients of different evaluation dimensions are introduced, and the weight coefficients are configured according to the priorities or importance of different evaluation dimensions for different interface types or different device types, so as to be associated with the game scene and the device scene, and meet the requirement of solving the conflicts caused by hardware differences and interface type differences for focus navigation.
[0090] Figure 7 is a block diagram of a control device for interface display shown according to an embodiment of the present disclosure. Referring to Figure 6 , the control device 700 for interface display includes: A first response module 701, configured to respond to a first control instruction for a first control, and determine a first target transfer relationship according to the first control instruction and an identifier of a group to which the first control belongs, where the first control is the control where the focus is located in the interface, the first target transfer relationship includes the first control instruction, a first group identifier, and a second group identifier, and the identifier of the group to which the first control belongs is the first group identifier; A first search module 702, configured to search for a second control in the group corresponding to the second group identifier at least according to the first target transfer relationship, where each group includes at least one control in the interface; A first control module 703, configured to control the focus to transfer from the first control to the second control.
[0091] Optionally, at least one group is obtained by the following method: Obtain attribute information of the controls in the interface; Group the controls in the interface according to the attribute information of the controls to obtain the at least one group, where the controls in each group have the same attribute information.
[0092] Optionally, the transfer relationship is configured in the configuration information of a control belonging to a preset type, where the preset type includes a type for supporting the storage of user-defined information. The first response module 701 includes: A first determination sub-module, configured to determine the first control as the current control in response to a first control instruction for the first control; A second determination sub-module, configured to determine whether the current control belongs to the preset type; A third determination sub-module, configured to, when the current control belongs to the preset type, determine a first target transfer relationship that matches the identifier of the group to which the first control belongs and the first control instruction in the configuration information of the current control.
[0093] Optionally, the first response module 701 further includes: A fourth determination sub-module, configured to, when the current control does not belong to the preset type, determine the parent control of the current control according to a tree structure, where the tree structure is at least used to describe the parent-child relationship of the controls in the interface; A fifth determination sub-module, configured to determine the parent control as the new current control, and return to execute the step of determining whether the current control belongs to the preset type.
[0094] Optionally, the first search module 702 is further configured to: search for a second control according to the second group identifier in the first target transfer relationship, the current control, and the interface, where the second control is the first control among the visible controls in the interface that is located below the current control level and matches the second group identifier.
[0095] Optionally, the control device 700 for interface display further includes: A first acquisition module, configured to, when the second control is not found, acquire a first alternative search rule, where the first alternative search rule is used to search for a third control among the controls located below the level of the first target control based on the first target transfer relationship, the level of the first target control is above the level of the current control, and the third control is a control that matches the second group identifier; A second search module, configured to search for the third control according to the first alternative search rule; A second control module, configured to control the focus to transfer from the first control to the third control.
[0096] Optionally, the control device 700 for interface display further includes: A second acquisition module, configured to obtain a second candidate search rule when the second control is not found, where the second candidate search rule is used to match a second target transfer relationship that matches the identifier of the group to which the first control belongs and the first control instruction, and to search for a fourth control based on the second target transfer relationship, and the second group identifier in the second target transfer relationship is different from the second group identifier in the first target transfer relationship; A third search module, configured to search for the fourth control according to the second candidate search rule; A third control module, configured to control the focus to transfer from the first control to the fourth control.
[0097] Optionally, the attribute information includes at least one of the following: Type; Usage frequency; Logical relationship with other controls.
[0098] Optionally, the control device 700 for interface display further includes: A second response module, configured to, in response to a second control instruction for the first control, determine a fifth control according to the second control instruction and the identifier of the group to which the first control belongs, where the fifth control is a control in the target direction of the first control and belonging to the same group as the first control, and the target direction includes the direction indicated by the second control instruction; A first determination module, configured to determine the relative position between the first control and the fifth control by using a preset rule, where the preset rule is associated with the interface type of the interface, and / or the preset rule is associated with the device type for displaying the interface; A second determination module, configured to determine a target fifth control closest to the first control from all the fifth controls according to the relative position; A fourth control module, configured to control the focus to transfer from the first control to the target fifth control.
[0099] The relative position is used to reflect the relative position under at least one of the following evaluation dimensions: Horizontal direction; Vertical direction; Angle.
[0100] Wherein, the implementation manners of the modules in the above control device 700 for interface display may refer to the method embodiments above, and are not elaborated herein.
[0101] Based on the same inventive concept, embodiments of the present disclosure further provide a computer-readable medium, on which a computer program is stored, and when the computer program is executed by a processing device, the steps of the above-described control method for interface display are implemented.
[0102] Based on the same inventive concept, embodiments of the present disclosure further provide a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the above-described control method for interface display are implemented.
[0103] Based on the same inventive concept, embodiments of the present disclosure further provide an electronic device, including: a storage device, on which a computer program is stored; a processing device, configured to execute the computer program in the storage device to implement the steps of the above-described control method for interface display.
[0104] Next, refer to Figure 8 , which shows a schematic structural diagram of an electronic device 800 suitable for implementing embodiments of the present disclosure. The terminal device in embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), PMPs (Portable Multimedia Players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The electronic device shown is merely an example and should not impose any limitation on the functions and usage scope of embodiments of the present disclosure.
[0105] As Figure 8 shown, the electronic device 800 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 801, which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0106] Generally, the following devices may be connected to the I / O interface 805: an input device 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 8An electronic device 800 with various devices is shown, but it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices may be implemented or had.
[0107] In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, an embodiment of the present disclosure includes a computer program product that includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program codes for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device 809, or installed from a storage device 808, or installed from a ROM 802. When the computer program is executed by a processing device 801, the above functions defined in the methods of the embodiments of the present disclosure are performed.
[0108] It should be noted that the above computer-readable medium in the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. And in the present disclosure, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program codes. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable signal medium can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program codes contained on the computer-readable medium can be transmitted with any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0109] In some embodiments, the electronic device can communicate using any currently known or future-developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed network.
[0110] The above computer-readable medium can be included in the above electronic device; it can also exist separately without being assembled into the electronic device.
[0111] The above computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: in response to a first control instruction for a first control, determine a first target transfer relationship according to the first control instruction and the identifier of the group to which the first control belongs, the first control being the control that is the focus in the interface, the first target transfer relationship including the first control instruction, a first group identifier, and a second group identifier, and the identifier of the group to which the first control belongs being the first group identifier; at least according to the first target transfer relationship, find a second control in the group corresponding to the second group identifier, each group including at least one control in the interface; and control the focus to transfer from the first control to the second control.
[0112] Computer program code for performing the operations of the present disclosure can be written in one or more programming languages or combinations thereof. The above programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., by using an Internet service provider to connect through the Internet).
[0113] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks may occur in a different order than noted in the drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or by a combination of dedicated hardware and computer instructions.
[0114] The modules described in the embodiments of the present disclosure can be implemented in software or in hardware. In some cases, the name of the module does not constitute a limitation on the module itself.
[0115] The functions described above herein can be performed, at least in part, by one or more hardware logic components. By way of example, and without limitation, exemplary types of hardware logic components that can be used include: Field Programmable Gate Arrays (FPGA), Application Specific Integrated Circuits (ASIC), Application Specific Standard Products (ASSP), System on a Chip (SOC), Complex Programmable Logic Devices (CPLD), and the like.
[0116] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM or Flash memory), an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0117] The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present disclosure.
[0118] In addition, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments may also be implemented combinatorially in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.
[0119] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. On the contrary, the specific features and acts described above are merely example forms for implementing the claims. Regarding the apparatus in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be elaborated here.
Claims
1. A control method for interface display, characterized in that The control method includes: In response to a first control instruction for a first control, determining a first target transfer relationship according to the first control instruction and the identifier of the group to which the first control belongs, where the first control is the control at the focus in the interface, the first target transfer relationship includes the first control instruction, a first group identifier, and a second group identifier, and the identifier of the group to which the first control belongs is the first group identifier; Searching for a second control in the group corresponding to the second group identifier at least according to the first target transfer relationship, where each group includes at least one control in the interface; Controlling the focus to transfer from the first control to the second control.
2. The control method according to claim 1, characterized in that, Obtaining at least one group in the following manner: Obtaining the attribute information of the controls in the interface; Grouping the controls in the interface according to the attribute information of the controls to obtain the at least one group, where the controls in each group have the same attribute information.
3. The control method according to claim 1, wherein The transfer relationship is configured in the configuration information of the controls belonging to a preset type, the preset type includes a type for supporting the storage of user-defined information, and the determining of the first target transfer relationship in response to a first control instruction for a first control according to the first control instruction and the identifier of the group to which the first control belongs includes: In response to a first control instruction for a first control, determining the first control as the current control; Determining whether the current control belongs to the preset type; In the case where the current control belongs to the preset type, determining a first target transfer relationship matching the identifier of the group to which the first control belongs and the first control instruction in the configuration information of the current control.
4. The control method according to claim 3, wherein The determining of the first target transfer relationship in response to a first control instruction for a first control according to the first control instruction and the identifier of the group to which the first control belongs further includes: In the case where the current control does not belong to the preset type, determining the parent control of the current control according to a tree structure, where the tree structure is at least used to describe the parent-child relationship of the controls in the interface; Determining the parent control as the new current control and returning to execute the step of determining whether the current control belongs to the preset type.
5. The control method according to claim 3 or 4, characterized in that The searching for a second control in the group corresponding to the second group identifier at least according to the first target transfer relationship includes: Searching for a second control according to the second group identifier, the current control, and the interface in the first target transfer relationship, where the second control is a control located below the current control level and is the first control in the visible controls in the interface that matches the second group identifier.
6. The control method according to claim 5, characterized in that The control method further includes: In the case where the second control is not found, obtaining a first candidate search rule, where the first candidate search rule is used to search for a third control in the controls located below the level of the first target control based on the first target transfer relationship, the level of the first target control is above the current control level, and the third control is a control that matches the second group identifier; Search for the third control according to the first candidate search rule; Control the focus to transfer from the first control to the third control.
7. The control method according to claim 5, wherein The control method further includes: In the case where the second control is not found, obtain a second candidate search rule, where the second candidate search rule is used to match a second target transfer relationship that matches the identifier of the group to which the first control belongs and the first control instruction, and search for a fourth control based on the second target transfer relationship, where the second group identifier in the second target transfer relationship is different from the second group identifier in the first target transfer relationship; Search for the fourth control according to the second candidate search rule; Control the focus to transfer from the first control to the fourth control.
8. The control method according to claim 2, wherein The attribute information includes at least one of the following: Type; Usage frequency; Logical relationship with other controls.
9. The control method according to claim 1, wherein The control method further includes: In response to a second control instruction for the first control, determine a fifth control according to the second control instruction and the identifier of the group to which the first control belongs, where the fifth control is a control in the target direction of the first control and belonging to the same group as the first control, and the target direction includes the direction indicated by the second control instruction; Determine the relative position between the first control and the fifth control by using a preset rule, where the preset rule is associated with the interface type of the interface, and / or the preset rule is associated with the device type for displaying the interface; Determine the target fifth control closest to the first control from all the fifth controls according to the relative position; Control the focus to transfer from the first control to the target fifth control.
10. The control method according to claim 9, characterized in that The relative position is used to reflect the relative position under at least one of the following evaluation dimensions: Horizontal direction; Vertical direction; Angle.
11. A control device for interface display, characterized in that, The device includes: A first response module, configured to respond to a first control instruction for a first control, and determine a first target transfer relationship according to the first control instruction and the identifier of the group to which the first control belongs, where the first control is the control where the focus is located in the interface, and the first target transfer relationship includes the first control instruction, a first group identifier, and a second group identifier, and the identifier of the group to which the first control belongs is the first group identifier; A first search module, configured to search for a second control in the group corresponding to the second group identifier at least according to the first target transfer relationship, where each group includes at least one control in the interface; A first control module, configured to control the focus to transfer from the first control to the second control.
12. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processing device, it implements the steps of the method according to any one of claims 1-10.
13. An electronic device, characterized in that, Including: A storage device, on which a computer program is stored; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1-10.
14. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-10.