Interface logic execution method and device, electronic device, and medium
By receiving operations in the terminal interface, acquiring operable objects and selecting target objects according to prediction strategies, the problem of logical conflicts in multiple applications interfaces is solved and the user experience is improved.
Patent Information
- Application Number
- CN202111165928.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-20
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2040-11-20
AI Technical Summary
When multiple applications are loaded simultaneously in the terminal interface, the user's interface operations may trigger multiple interface logic at the same time, resulting in errors in the interface logic execution and affecting the user experience.
By receiving interface operations, multiple operable objects corresponding to the operation are obtained, and the target operation object is selected from them according to the prediction strategy, triggering their action logic to perform interface operations.
The interface logic execution error caused by misjudgment of the operation object when the same interface operation corresponds to multiple interface logic is avoided, and the interface effect that the user intends to achieve is achieved and the user experience is improved.
Smart Images

Figure CN113918067B_ABST
Abstract
Description
[0001] This invention is a divisional application of the Chinese patent application submitted to the China Patent Office on November 20, 2020, with application number 202011312410.1 and titled "An interface logic execution method and device, electronic device, and medium". Technical Field
[0002] The present invention belongs to the field of Internet technology, and in particular relates to an interface logic execution method and device, electronic equipment, and medium. Background Art
[0003] Currently, live video streaming is a popular live streaming method. Users enter the live streaming room of the live streaming platform through various terminal devices to watch live videos.
[0004] Taking game live broadcast as an example, users may open a game program (such as a game client) to play the game while watching the game live broadcast through the live broadcast program (such as a live broadcast client). In other words, the user loads the display windows of the game program and the live broadcast program at the same time in the terminal interface. At this time, the interface operations issued by the user on the terminal interface may trigger the interface logic of the game program and the live broadcast program at the same time, resulting in interface logic execution errors and affecting the user experience. Summary of the invention
[0005] The present invention provides an interface logic execution method and device, electronic equipment, and medium to solve the technical problem of interface logic execution errors caused by the same interface operation triggering multiple interface logics at the same time.
[0006] In a first aspect, the present invention provides an interface logic execution method, the method comprising: receiving an interface operation issued to a display interface; obtaining a plurality of operable objects in the display interface corresponding to the interface operation, the plurality of operable objects being displayed in a first display window and a second display window loaded in the display interface, the first display window and the second display window respectively corresponding to different applications; selecting a target operation object displayed in the first display window or the second display window from the plurality of operable objects according to a prediction strategy; and triggering the action logic corresponding to the target operation object so that the interface operation is executed.
[0007] In a second aspect, the present invention provides an interface logic execution device, which includes a transceiver module and a processing module. The transceiver module is used to receive an interface operation issued to a display interface; the processing module is used to obtain multiple operable objects corresponding to the interface operation in the display interface, the multiple operable objects are displayed in a first display window and a second display window loaded in the display interface, and the first display window and the second display window correspond to different applications respectively; select a target operation object displayed in the first display window or the second display window from the multiple operable objects according to a prediction strategy; trigger the action logic corresponding to the target operation object, so that the interface operation is executed.
[0008] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores executable code, and when the executable code is executed by the processor, the processor can at least implement the interface logic execution method in the first aspect.
[0009] An embodiment of the present invention further provides a system, including a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement an interface logic execution method described above.
[0010] An embodiment of the present invention further provides a computer-readable medium on which at least one instruction, at least one program, code set or instruction set is stored, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement an interface logic execution method described above.
[0011] In an embodiment of the present invention, in the case where the first display window and the second display window are loaded in the display interface, an interface operation issued to the display interface is received, and an operable object corresponding to the interface operation in the display interface is obtained. Furthermore, if there are multiple operable objects corresponding to the interface operation, it is necessary to determine which operable object is the target operation object of the user's intended operation. In this case, the target operation object displayed in the first display window or the second display window can be selected from the multiple operable objects according to the prediction strategy, thereby triggering the action logic corresponding to the target operation object so that the interface operation is executed. The embodiment of the present invention avoids the problem of interface logic execution errors caused by misjudgment of the operation object when the same operation corresponds to multiple interface logics, realizes the interface effect intended by the user, and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0013] Figure 1 A flowchart of an interface logic execution method provided by an embodiment of the present invention;
[0014] Figure 2 A schematic diagram of a display interface provided by an embodiment of the present invention;
[0015] Figure 3 A schematic diagram of the structure of an interface logic execution device provided by an embodiment of the present invention;
[0016] Figure 4 For Figure 3 A schematic diagram of the structure of an electronic device corresponding to the interface logic execution device provided in the illustrated embodiment. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0019] The interface logic execution scheme provided in the embodiment of the present invention can be executed by an electronic device, which can be a terminal device such as a smart phone, a tablet computer, a PC, a laptop computer, etc. In an optional embodiment, a service program for executing the interface logic execution scheme can be installed on the electronic device. The service program is, for example, a game program (also referred to as a game program in this article). The interface logic execution scheme can also be executed by the game program and a server of the game program. Of course, the interface logic execution scheme can also be executed by a server and a terminal device in cooperation.
[0020] In various terminal devices, users can view the game interface provided by the game program and perform interactive operations in the game interface. Of course, the game interface can also be provided by a web page or a medium. With the development of the game field, game programs can be carried on various terminal devices. Taking mobile phones as an example, more and more interactive content is provided in the game interface of mobile phones, and the interface logic control methods corresponding to various interactive contents often conflict. In fact, the interface logic of the game program will also conflict with the interface logic in other applications.
[0021] The following uses a mobile phone as an example to illustrate the actual technical problems existing in the prior art:
[0022] Most mobile phones use a buttonless touch screen. In order to avoid setting too many buttons in the live broadcast interface on the mobile phone, touch operations such as clicking and dragging are often used in the live broadcast interface on the mobile phone to control various interface logics.
[0023] Taking the game live broadcast scenario as an example, users may open the game program to play the game while watching the game live broadcast through the live broadcast program. In other words, the user loads the display windows of the game program and the live broadcast program at the same time in the terminal interface. In this case, due to the limitations of the interface operation method in the mobile phone, the interface operation issued by the user on the terminal interface may trigger the interface logic of the game program and the live broadcast program at the same time, resulting in the problem of interface logic execution error.
[0024] Taking a single-click operation as an example, a user clicks on the overlapping area of two display windows to obtain props in the game program. In this case, if the anchor follow button in the live broadcast program is also in the overlapping area, the anchor follow button in the live broadcast program may be used as the operation object in response to the single-click operation, resulting in an interface logic execution error and a poor user experience.
[0025] For example, in a game program, the player's operating object is in a combat state. At this time, sliding a finger horizontally on the mobile phone screen can trigger the player's operating object to release a certain skill. At the same time, the horizontal sliding operation is used to control the playback progress of the live content in the live broadcast program, such as replaying the live content that has been played. Assuming that the horizontal sliding operation falls into the display windows of the game program and the live broadcast program at the same time, which one is judged as responding to the horizontal sliding operation and which client's interface execution logic needs to be triggered.
[0026] In summary, in the case where the same interface operation in the terminal interface corresponds to multiple interface logics, it is easy to cause interface logic execution errors, resulting in a poor user experience.
[0027] The core idea of the interface logic execution solution provided by the embodiment of the present invention is:
[0028] In the case where the display interface is loaded with the first display window and the second display window, an interface operation issued to the display interface is received, and an operable object corresponding to the interface operation in the display interface is obtained. Furthermore, if there are multiple operable objects corresponding to the interface operation, it is necessary to determine which operable object is the target operation object of the user's intended operation. In this case, the target operation object displayed in the first display window or the second display window can be selected from the multiple operable objects according to the prediction strategy, thereby triggering the action logic corresponding to the target operation object so that the interface operation is executed. The embodiment of the present invention avoids the problem of interface logic execution errors caused by misjudgment of the operation object when the same interface operation corresponds to multiple interface logics, realizes the interface effect intended by the user, and improves the user experience.
[0029] After introducing the core idea of the interface logic execution solution, various non-limiting embodiments of the present invention are specifically described below.
[0030] The execution process of the interface logic execution method is described below in conjunction with the following embodiments.
[0031] Figure 1 A flowchart of an interface logic execution method provided by an embodiment of the present invention. The interface logic execution method is applied to a display interface, in which a first display window and a second display window are loaded (the "first" and "second" in this article are only used for distinction and do not limit the number or type of display windows). Figure 1 As shown, the interface logic execution method includes the following steps:
[0032] 101. Receive an interface operation issued to a display interface;
[0033] 102. Acquire a plurality of operable objects corresponding to the interface operation in the display interface, wherein the plurality of operable objects are displayed in a first display window and a second display window loaded in the display interface, and the first display window and the second display window correspond to different applications respectively;
[0034] 103. Selecting a target operation object displayed in the first display window or the second display window from a plurality of operable objects according to a prediction strategy;
[0035] 104. Trigger the action logic corresponding to the target operation object to execute the interface operation.
[0036] In the above-mentioned interface logic execution method, for multiple operable objects corresponding to the interface operation, the target operation object that the user intends to operate is screened out from the multiple operable objects, and the action logic corresponding to the target operation object is executed. This can avoid the problem of interface logic execution errors caused by misjudgment of the operation object when the same interface operation corresponds to multiple interface logics, thereby achieving the interface effect intended by the user and improving the user experience.
[0037] The embodiments of the present invention are applied to various display interfaces. The display interface mentioned in the above steps can be a display interface loaded in a terminal device, such as a mobile phone, a smart TV, or a computer. The display content in the display interface can be constructed by data transmitted from a service device to a terminal device, or can be constructed by data pre-loaded into the terminal device through an installation package.
[0038] To meet the actual needs of users, different display windows will be loaded in the display interface. Different display windows correspond to different applications. For example, in the game live broadcast scenario, users may play games while live broadcasting (or watching live broadcasting). In this case, the display interface will load the display windows of the game program and the live broadcast program respectively.
[0039] In fact, the embodiments of the present invention are also applicable to application scenarios in which multiple applications are loaded in the display interface. For example, the multiple applications loaded in the display interface may be a combination of a game program, a video playback client, and a browser, a combination of a game program and a drawing client, or a combination of a game program and a game editor.
[0040] In addition, it should be understood that the positional relationship between different display windows can overlap each other or be arranged side by side. Of course, in some implementations, the display interface dynamically adjusts the positional relationship between different display windows in response to a user's control instruction.
[0041] For ease of description, the following takes the game live broadcast scenario in various terminals as an example to explain in detail Figure 1 The specific execution process of the interface logic execution method shown is:
[0042] In the game live broadcast scenario, the display interface is loaded with a first display window and a second display window.
[0043] First, in 101, an interface operation issued to the display interface is received.
[0044] In the above steps, different types of interface operations are issued for different types of display interfaces according to actual conditions. Taking the display interface loaded in the mobile phone as an example, after the user touches the mobile phone screen, the touch operation issued to the mobile phone is received through the sensor, such as single-click, double-click, slide, and various control gestures corresponding to specific functions. Of course, the somatosensory control instructions issued to the mobile phone can also be obtained through the gravity sensor, so as to obtain the corresponding interface operation based on the somatosensory control instructions. For another example, in the display interface of a computer, interface operations issued to the computer can be received through input devices (mouse, keyboard, etc.), such as single-click, double-click, drag, and various operation instructions entered through the keyboard.
[0045] Of course, in addition to the above-mentioned method of acquiring the interface operation, the user image data may also be acquired through a camera or other image acquisition device, and the interface operation issued by the user may be parsed based on the user image data.
[0046] Then, after receiving the interface operation, in 102, a plurality of operable objects corresponding to the interface operation in the display interface are obtained.
[0047] Among them, the display interface includes at least one operable object. The operable object is an interface element in the display interface that can interact with the user. The operable object can be presented through the display interface carried by the terminal device. Of course, the operable object can also be in a hidden state in the display interface. For example, a prop or NPC in the game program is set not to be displayed in the display interface before the corresponding interface logic is triggered.
[0048] The display interface is loaded with different display windows, and different display windows correspond to different applications. The operable objects are respectively set in various applications and displayed through the display windows corresponding to the various applications. Taking the game program as an example, the operable objects set in the game program are displayed to the user through the display window corresponding to the game program. The operable objects set in the game program are, for example, player operation objects (i.e., game characters controlled by players), NPCs, and props. Taking the live broadcast program as an example, assuming that the live broadcast program is a live broadcast website, the display window of the live broadcast program is the live broadcast page of the live broadcast website, and the live broadcast page is the website page containing the live broadcast content. Here, the operable objects displayed on the live broadcast page are, for example, interface controls in the live broadcast page. Specifically, the interface controls in the live broadcast page are, for example, live broadcast room windows, title bars, live broadcast room list bars, interface buttons, list bars, and windows for jumping to other pages (such as advertising pop-ups, etc.).
[0049] Among them, the operable objects corresponding to the interface operation may be one or more. Optionally, the multiple operable objects corresponding to the interface operation are respectively in different operable areas. Specifically, the multiple operable objects correspond to different overlapping display windows in the display interface, and different display windows correspond to different applications. In fact, different operable areas are, for example, background layers, list layers, and pop-up windows at different levels. Optionally, these operable areas at different levels overlap each other. Different operable areas may also be at the same level.
[0050] It is understandable that if the interface logic triggering mode of a certain operable object includes the interface operation received in 101, then the operable object is considered to be the operable object corresponding to the interface operation involved in the above steps. Based on this, an optional implementation mode of 102 is, for example:
[0051] The track of the interface operation in the display interface is determined, and thus, based on the track of the interface operation and the interface logic triggering mode of each operable object, the operable object corresponding to the interface operation in the display interface is determined.
[0052] For example: Assume the display interface is Figure 2 The display interface shown in FIG. The display interface is loaded with display windows corresponding to the game program and the live broadcast program, respectively, and the display window of the live broadcast program is suspended in the lower right corner of the display window of the game program. Figure 2 In the example, the display window of the game program includes the player operation object a, the object to be attacked b, and the attack prop c; the display window of the live broadcast program includes the title bar, the live broadcast room window located in the center of the display window, and other live broadcast room jump spaces located on the right side of the display window, namely, rooms 1 to 3. Assume that the user issues a drag operation in the display interface through a finger. Assume that the operable objects in the current display interface include the player operation object a, the object to be attacked b, the attack prop c, the live broadcast room window, the volume control, and the brightness control. Among them, the volume control and the brightness control can be operable objects that are selected and then displayed on the display interface.
[0053] Based on the above assumptions, after the mobile phone detects the drag operation sent to the mobile phone screen through the sensor, it determines the track of the drag operation in the display interface, such as Figure 2 In this case, the track m ( Figure 2, the trajectory m covers the display windows corresponding to the game program and the live broadcast program respectively), as well as the interface logic triggering method of each operable object, and determines that the operable objects corresponding to the dragging operation are the attack prop c in the game program (the triggering method of the attack prop c is to apply a dragging operation to the display window of the game program) and the volume control in the live broadcast program (the triggering method of the volume control is to apply a dragging operation to the display window of the live broadcast program).
[0054] For another example: Assume that the received interface operation is a single-click operation. Assume that the operable objects set in the game program include player operation objects, attack props, and NPCs that players need to attack. Assume that the operable objects set in the live broadcast program include gift controls and volume controls. Based on the above assumptions, in 102, the trajectory of the interface operation in the display interface (such as contact point x in the display interface) is determined, and thus, based on the contact point x and the interface logic triggering method of each operable object, the operable object corresponding to the single-click operation in the display interface is determined to be the player operation object in the game program, the attack prop, the NPC that the player needs to attack, and the gift control in the live broadcast program. In fact, the single-click operation also needs to take into account the position of the single-click operation. For example, assuming that the position of the single-click operation is in the superimposed part of the attack prop and the gift control, in this case, the operable objects corresponding to the single-click operation should be the attack prop and the gift control.
[0055] In actual situations, according to different display interfaces and different interface operations, there are multiple operable objects corresponding to the interface operations in the display interface, which are not limited in the present invention.
[0056] Furthermore, assuming that there is one operable object corresponding to the interface operation obtained in 102, in this case, it is obviously possible to directly determine the operable object that the user intends to operate, and then, the preset interface logic corresponding to the operable object can be directly executed to interact with the user, so that the interface operation is executed.
[0057] Furthermore, assuming that there are multiple operable objects corresponding to the interface operation obtained in 102, in this case, it is impossible to directly determine the operable object that the user intends to operate. Compared with the interface logic in the live broadcast program (and other applications), the interface logic in the game program has higher requirements for real-time operation. Therefore, in order to ensure the real-time operation of the game program, in 103, if there are multiple operable objects corresponding to the interface operation, the target operation object displayed in the first display window or the second display window is selected from the multiple operable objects according to the prediction strategy.
[0058] According to the actual situation of various interface operations, there are many situations where the same interface operation corresponds to multiple operable objects. For example, continue to assume that the operable objects displayed in the first display window or the second display window include player operation objects, attack props, and NPCs that players need to attack. Assume that the operable objects set in the live broadcast program include gift controls and volume controls. Based on this, for the display interface loaded with game programs and live broadcast programs, the operable objects corresponding to the horizontal sliding operation are, for example, attack props and volume controls. Or, the operable objects corresponding to the single-click operation are, for example, attack props, and gift controls.
[0059] Assuming that the first display window corresponds to the game program, based on this, in 103, an optional implementation method of selecting a target operation object displayed in the first display window or the second display window from multiple operable objects according to the prediction strategy is as follows:
[0060] Determine the current state of the player's operation object in the game program; select a target operation object that matches the current state of the player's operation object from multiple operable objects.
[0061] In the above steps, the target operation object matching the current state is screened out from multiple operable objects according to the state of the player's operation object, so that the interface operation can timely trigger the operable object that matches the current state of the player's operation object, thereby further ensuring the real-time nature of the interface operation.
[0062] Among them, the player-operated character refers to the subject that carries the game function and is responsible for interacting with the game player. In the game scene, the player-operated character can interact with various interactive objects. The interactive object can be an NPC in the game scene. The NPC is a non-player-controlled unit that can interact with the player according to the preset execution logic. The functions of the NPC in different gameplays can be different.
[0063] In the game program, the current state of the player's operating object includes: combat state and non-combat state. The non-combat state includes item collection state, game copy state, etc. In essence, regardless of the name, the combat state has higher requirements for the real-time performance of the interface operation, while the non-combat state has lower requirements for the real-time performance of the interface logic.
[0064] In fact, in 103, an optional implementation method for determining the current state of the player's operation object in the game program is: obtaining historical behavior data of the player's operation object in the game program; and determining the current state of the player's operation object based on the historical behavior data. Optionally, in order to ensure the real-time nature of the interface operation trigger object, the historical behavior data of the player's operation object can be set as historical behavior data within a preset period of time.
[0065] For example, historical behavior data of a player's operation object within 3 minutes in a game program includes: entering a game copy. Based on the historical behavior data of entering a game copy, it is determined that the current state of the player's operation object is the game copy state.
[0066] In another optional implementation, the current state of the player's operation object is determined by acquiring configuration information of the player's operation object. The configuration information can be acquired from the server side or locally from the terminal device.
[0067] Furthermore, several optional implementation methods of selecting a target operation object that matches the current state of the player's operation object from multiple operable objects are described below with reference to specific examples:
[0068] In one embodiment of the present invention, in 103, if the current state of the player's operating object is a combat state, an optional implementation method of selecting a target operating object that matches the current state of the player's operating object from multiple operable objects is provided:
[0069] An operable object of the game program is selected from a plurality of operable objects as the target operable object.
[0070] Optionally, an implementation method of selecting an operable object of a game program from a plurality of operable objects as a target operable object is, for example:
[0071] Determine the operation type corresponding to each of at least two operable objects of the game program; obtain the target operation type corresponding to the combat state; and select the operable object corresponding to the target operation type from the at least two operable objects as the target operation object.
[0072] The operable objects of the game program correspond to at least one operation type. Optionally, the operation types include, for example, attack skill type, defense skill type, magic skill type, and healing skill type. The operable objects corresponding to the above operation types are attack props, defense props, magic props, and blood supplement props.
[0073] In fact, depending on the game settings, the operation type also includes a variety of situations. In order to enrich the player's operation experience, the operation type can also be defined by the player.
[0074] For example, assume that the multiple operable objects corresponding to the interface operation are attack props and defense props of the game program. Assume that the preset time period is 2 minutes. Assume that the historical behavior data of the player's operation object within the preset time period is: seeing the attack object, specifically, the attack object appears in the player's perspective (that is, the distance between the position of the attack object and the position of the player's operation object is less than the preset value), and the attack object has not launched an attack on the player's operation object first.
[0075] Based on the above assumptions, in 103, the historical behavior data of the player's operation object in the game program within 2 minutes (i.e., seeing the attack object) is obtained, and based on the historical behavior data of seeing the attack object, it is determined that the current state of the player's operation object is a state of actively initiating a battle, thereby determining the operation types corresponding to the attack props and defense props of the game program, namely the attack skill class and the defense skill class. In this case, since the player actively discovers the attack object, it can be determined that the target operation type corresponding to the player's operation object in this state is the attack skill class, and the attack props corresponding to the attack skill class are selected from the attack props and defense props as the target operation object.
[0076] For another example, suppose the historical behavior data of the player's operation object within a preset time period is: being attacked by NPCs. At this time, based on the historical behavior data of being attacked by NPCs, it is determined that the current state of the player's operation object is a state of actively initiating defense. Thus, the operation types corresponding to the attack props and defense props of the game program are determined, namely, the attack skill type and the defense skill type. In this case, it can be determined that the target operation type corresponding to the player's operation object in this state is the defense skill type, and the defense props corresponding to the defense skill type are selected from the attack props and defense props as the target operation object.
[0077] In the above embodiments, no matter which implementation method is adopted, the actual intention is to further screen out the target operation object that the user intends to control from multiple operable objects through further judgment of the state of the player's operation object, so that the action logic corresponding to the target operation object can be triggered in time later, thereby ensuring the real-time nature of the interface operation.
[0078] In another embodiment of the present invention, assuming that the second display window corresponds to a live broadcast program, based on this, if the current state of the player's operation object is a non-combat state, 103 also provides an optional implementation method of selecting a target operation object that matches the current state of the player's operation object from multiple operable objects:
[0079] Acquire multiple historical interface operations issued to the display interface; determine the correlation between the interface operation and the multiple historical interface operations; if the interface operation is associated with the historical interface operation issued to the game program, select the operable object associated with the game program from the multiple operable objects as the target operation object; if the interface operation is associated with the historical interface operation issued to the live broadcast program, select the operable object associated with the live broadcast program from the multiple operable objects as the target operation object.
[0080] In the above steps, based on the correlation between historical interface operations and currently received interface operations, the target operation object associated with the game program or live broadcast program is screened out from multiple operable objects, so that the action logic corresponding to the target operation object can be triggered in time later, thereby ensuring the real-time nature of the interface operation.
[0081] Specifically, determine whether the received interface operation is associated with multiple historical interface operations. If it is determined that the interface operation is associated with a continuous interface operation issued to a game program or a live broadcast program, it means that the interface operation is associated with the continuous interface operations that occurred previously. In this case, the operable object associated with the continuous interface operation among multiple operable objects is preferentially used as the target operation object.
[0082] Among them, continuous interface operations can be understood as multiple interface operations with a continuous execution order and the same action type, such as multiple single-click selection actions for a certain type of item.
[0083] Assume that the multiple historical interface operations issued to the display interface include: continuous interface operations issued to the game program. Based on the above assumption, an optional implementation method of 103 is provided to determine the association between the interface operation and the multiple historical interface operations: determine whether the received interface operation is associated with multiple historical interface operations, if it is determined that the interface operation is associated with the continuous interface operations issued to the game program, then the target operation object is: the operable object of the game program associated with these continuous interface operations.
[0084] In actual applications, the relevance of the currently received interface operation to the continuous interface operation can be determined based on the interface operation type. For example, if the currently received interface operation and the continuous interface operation belong to the same type of operation, it can be determined that the received interface operation is associated with the continuous interface operation.
[0085] Of course, for some types of interface operations, it is also necessary to combine other information interface operation information for judgment. For example, for sliding operations, it is also necessary to determine whether the sliding trajectory of the currently received interface operation is consistent with that of the continuous interface operation. If they are consistent, it is determined that the received interface operation is associated with the continuous interface operation. Alternatively, it is also possible to determine whether the sliding direction of the currently received interface operation is consistent with that of the continuous interface operation. If they are consistent, it is determined that the received interface operation is associated with the continuous interface operation. For another example, for a single-click operation, it is actually necessary to make a judgment in combination with the operation position of the single-click operation.
[0086] Furthermore, if it is determined that the received interface operation is associated with a continuous interface operation, a target operation object associated with the continuous interface operation is selected from a plurality of operable objects.
[0087] Depending on the actual situation, the continuous interface operations may be directed to the same operable object or to the same type of operable objects.
[0088] For continuous interface operations on the same operable object, a target operation object associated with the continuous interface operations is selected from multiple operable objects, specifically:
[0089] If the execution object of the continuous interface operations is the same operable object in the game program, an operable object consistent with the execution object is selected from multiple operable objects as the target operation object.
[0090] For example, suppose that when a player needs to replenish blood, he issues a continuous interface operation, that is, clicks on the medical kit multiple times. Suppose that the interactive pop-up window of the live broadcast room pushed to the user by the live broadcast program covers the medical kit. At this time, the operable objects corresponding to the single-click operation include the medical kit and the pop-up window. Based on this, since the execution object of the multiple clicks is the same medical kit in the game program, in this case, the medical kit can be selected from the medical kit and the pop-up window as the target operation object.
[0091] For continuous interface operations on operable objects of the same type, a target operation object associated with the continuous interface operations is selected from multiple operable objects, specifically:
[0092] If the execution objects of the continuous interface operations are operable objects of the same type in the game program, an operable object of the same type as the execution object is selected from the multiple operable objects as the target operation object.
[0093] For example, suppose that when a player needs to collect mushrooms, he issues a continuous interface operation, that is, clicks on the mushrooms multiple times, to collect multiple mushrooms growing on the ground. In this case, the execution objects of the continuous interface operation are multiple mushrooms in the game program. Suppose that the live broadcast room interactive information pushed to the user by the live broadcast program covers part of the mushrooms. Suppose that the single-click operation falls on the overlapping area of the interactive information and the mushrooms. In this case, the operable objects corresponding to the single-click operation include the blocked mushrooms and the interactive information.
[0094] Based on this, since the execution objects of multiple clicks are the same type of operable objects in the game program, namely, multiple mushrooms, in this case, the obscured mushrooms can be selected from the obscured mushrooms and the interactive information as the target operation object.
[0095] For another example, suppose a player is sending gifts by clicking the gift button multiple times in a live broadcast program. Suppose a trigger notification (including an opening option) of a game copy pushed to the user by the game program is covered on the gift button. At this time, the operable objects corresponding to the single-click operation include the trigger notification and the gift button. Based on this, since the execution object of the multiple clicks is the same gift button in the live broadcast program, in this case, the gift button can be selected from the trigger notification and the gift button as the target operation object.
[0096] In fact, no matter what implementation method is adopted, its actual intention is to filter out the target operation object that the user intends to manipulate from multiple operable objects through the correlation between historical interface operations and currently received interface operations, so that the action logic corresponding to the target operation object can be triggered in time later, thereby ensuring the real-time nature of the interface operation.
[0097] In another embodiment of the present invention, it is assumed that the second display window corresponds to the live broadcast program, and it is assumed that the historical interface operation issued to the game program corresponds to the game task of the game program. Based on this, if the current state of the player's operation object is a non-combat state, 103 also provides an optional implementation method of selecting a target operation object that matches the current state of the player's operation object from multiple operable objects:
[0098] Determine whether the interface operation is associated with a plot to be triggered or an object to be obtained in a game task; and select an operable object associated with the plot to be triggered or the object to be obtained from a plurality of operable objects as a target operation object based on the determination result.
[0099] In the above steps, according to the correlation between the currently received interface operation and the game task, the target operation object associated with the game program or the live broadcast program is screened out from multiple operable objects, so that the action logic corresponding to the target operation object can be triggered in time later, thereby ensuring the real-time nature of the interface operation.
[0100] Specifically, it is determined whether the currently received interface operation corresponds to the plot to be triggered or the object to be obtained in the game task. If it is determined that the currently received interface operation corresponds to the plot to be triggered in the game task, an operable object associated with the plot to be triggered is selected from multiple operable objects as the target operation object. If it is determined that the currently received interface operation corresponds to the object to be obtained in the game task, an operable object consistent with the object to be obtained is selected from multiple operable objects as the target operation object.
[0101] For example, suppose a player accepts a mushroom collection mission. Suppose the interactive information pushed to the user by the live broadcast program covers part of the mushrooms. Suppose a single-click operation falls on the overlapping area of the interactive information and the mushrooms. In this case, the operable objects corresponding to the single-click operation include the obscured mushrooms and the interactive information.
[0102] Based on the above assumptions, it is determined whether the received single-click operation is associated with the object to be obtained in the mushroom collection task (i.e., mushrooms). Since the received single-click operation falls in the overlapping area of the interactive information and the mushrooms, and the mushrooms are the objects to be obtained in the game task that the player is performing, in this case, it is determined that the single-click operation is associated with the object to be obtained in the mushroom collection task, and thus, the mushrooms are selected as the target operation object from the obscured mushrooms and the interactive information.
[0103] In another embodiment of the present invention, it is assumed that the second display window corresponds to a live broadcast program. Based on this, if the current state of the player's operating object is a non-combat state, 103 also provides an optional implementation method of selecting a target operating object that matches the current state of the player's operating object from multiple operable objects:
[0104] According to the layout information of the display interface, the positions of the multiple operable objects in the display interface are determined; according to the positions of the multiple operable objects in the display interface, the operable objects in the visual focus area of the display interface are selected as target operation objects.
[0105] Since the non-combat state does not require high real-time control of the game program, users are motivated to control operable objects in other applications. Therefore, in the above steps, the target operation objects associated with the game program or live broadcast program can be screened out from a visual perspective based on the layout information of the display interface, so that the action logic corresponding to the target operation object can be triggered in time later to ensure the real-time nature of the interface operation.
[0106] Among them, the operable objects in the visual focus area of the display interface include but are not limited to: operable objects whose distance from the center of the display interface is less than a threshold, operable objects at the top of the display interface, and operable objects in the right part of the operable area. In practical applications, the display interface includes an operable area. Assuming that the probability of a user selecting an operable object in the right part of the operable area is higher than the probability of selecting an operable object in the left part of the operable area, therefore, according to the positions of multiple operable objects in the display interface, the operable object in the right part of the operable area can be preferentially selected as the target object, so as to be closer to the user's usage habits.
[0107] Optionally, the visual focus area can be pre-set according to user behavior data, or can be set by the user actively. For example, the visual focus area can be set according to user preference data.
[0108] Finally, after selecting the target operation object from multiple optional operation objects through any of the above implementations, in 104, the action logic corresponding to the target operation object is triggered to execute the interface operation. Among them, the action logic corresponding to the target operation object refers to the functional logic or interface effect in the application program where the target operation object is located. Taking the game program as an example, the action logic corresponding to the attack props is, for example, the interface effect of causing damage to the attack object, and the action logic corresponding to the blood-replenishing props is, for example, the treatment effect implemented on the blood-replenishing object and the attribute adjustment logic of the blood-replenishing object, such as increasing the corresponding value corresponding to the blood-replenishing props.
[0109] In an optional embodiment of the display interface, it is assumed that the display interface is loaded with a first display window and a second display window. It is assumed that the target operation object belongs to the first display window, and the interface operation is an interface operation on the target operation object in the first display window. It is assumed that the first display window corresponds to the first application.
[0110] Based on the above assumption, after the target operation object is screened out in 103, it can also be determined whether the target operation object is associated with the second application corresponding to the second display window. If the target operation object is associated with the second application, the associated operation of the interface operation is performed in the second application.
[0111] In the above steps, the associated operations of performing the interface operation in the second application include but are not limited to: message reminder operation, regional broadcast operation, world broadcast operation, and operation of adjusting the properties of operable objects. Specifically, the operation of adjusting the properties of operable objects may be adjusting the number of items corresponding to the associated operation.
[0112] For example, assume that the first application is a live broadcast program and the second application is a game program. Assume that the second display window is a display window of the game program. Based on the above assumptions, when a gift item in the game program is sent in the live broadcast program, a regional broadcast operation can be performed in the game program to generate a corresponding regional broadcast message to notify a certain player of the gift item being sent. In this case, in response to the associated operation of sending a gift item, the number of gift items in the player's backpack is reduced by 1 in the game program.
[0113] Optionally, a prompt message may be displayed in the display window of the game program, and the prompt message is used to reflect the operation result of the associated operation. For example, after the number of gift props in the player's backpack is reduced by 1 in the game program, a corresponding prompt message is displayed in the display window of the game program to notify the player of the result of the reduction in the number of gift props in the backpack. Alternatively, a prompt message for thanking the player for sending the prop gift may also be displayed in the display window of the game program.
[0114] In this way, through Figure 1The interface logic execution method shown can avoid the problem of interface logic execution errors when the same interface operation corresponds to multiple interface logics, achieve the interface effect intended by the user, and improve the user experience.
[0115] The following will describe in detail the interface logic execution device of one or more embodiments of the present invention. Those skilled in the art will appreciate that these interface logic execution devices can be configured using commercially available hardware components through the steps taught in this solution.
[0116] Figure 3 The structure diagram of an interface logic execution device provided by an embodiment of the present invention is shown in FIG. The device is applied to various display interfaces, such as Figure 3 As shown, the interface logic execution device includes: a transceiver module 11 and a processing module 12.
[0117] The transceiver module 11 is used to receive interface operations issued to the display interface;
[0118] The processing module 12 is used to obtain the operable object corresponding to the interface operation in the display interface; if there are multiple operable objects corresponding to the interface operation, select the target operation object displayed in the first display window or the second display window from the multiple operable objects according to the prediction strategy; trigger the action logic corresponding to the target operation object to execute the interface operation.
[0119] Optionally, the first display window corresponds to a first application, and the second display window corresponds to a second application.
[0120] If the target operation object displayed in the first display window is selected from multiple operable objects, the processing module 12 is also used for: if the target operation object displayed in the first display window is selected from multiple operable objects, the method also includes: determining whether the target operation object is associated with the second application; if the target operation object is associated with the second application, executing the associated operation of the interface operation in the second application.
[0121] Optionally, the first application is a live broadcast program, the second application is a game program, and the second display window is a display window of the game program.
[0122] If the target operation object is associated with the game program, the processing module 12 is further used to: display a prompt message in the display window of the game program, and the prompt message is used to reflect the operation result of the associated operation.
[0123] Optionally, the first display window corresponds to a game program. When the processing module 12 selects a target operation object displayed in the first display window or the second display window from a plurality of operable objects according to a preset strategy, it is specifically used to:
[0124] Determine the current state of the player's operation object in the game program; select a target operation object that matches the current state of the player's operation object from multiple operable objects.
[0125] Optionally, when determining the current state of the player's operation object in the game program, the processing module 12 is specifically configured to:
[0126] Acquire historical behavior data of a player's operation object in the game program; and determine a current state of the player's operation object based on the historical behavior data.
[0127] Optionally, if the current state of the player's operation object is a combat state, the processing module 12 is specifically used to select a target operation object that matches the current state of the player's operation object from multiple operable objects:
[0128] An operable object of the game program is selected from a plurality of operable objects as the target operation object.
[0129] Optionally, when the processing module 12 selects the operable object of the game program from a plurality of operable objects as the target operable object, it is specifically configured to:
[0130] Determine the operation type corresponding to each of at least two operable objects of the game program; obtain the target operation type corresponding to the combat state; and select an operable object corresponding to the target operation type from at least two operable objects as the target operation object.
[0131] Optionally, the second display window corresponds to a live broadcast program. If the current state of the player's operating object is a non-combat state, the processing module 12 selects a target operation pair that matches the current state of the player's operating object from a plurality of operable objects, specifically for:
[0132] Acquire multiple historical interface operations issued to the display interface; determine the correlation between the interface operation and the multiple historical interface operations; if the interface operation is associated with the historical interface operation issued to the game program, select the operable object associated with the game program from multiple operable objects as the target operation object; or if the interface operation is associated with the historical interface operation issued to the live broadcast program, select the operable object associated with the live broadcast program from multiple operable objects as the target operation object.
[0133] Optionally, if the interface operation is associated with a continuous interface operation issued to the game program or the live broadcast program, the target operation object is an operable object among multiple operable objects that is associated with the continuous interface operation.
[0134] Optionally, the interface operation is associated with a game task of the game program.
[0135] When the processing module 12 selects the operable object associated with the game program as the target operation object from the plurality of operable objects, it is specifically used to:
[0136] Determine whether the interface operation is associated with the plot to be triggered or the object to be acquired in the game task; and select an operable object associated with the plot to be triggered or the object to be acquired from a plurality of operable objects as the target operation object based on the determination result.
[0137] Optionally, if the current state of the player's operation object is a non-combat state, the processing module 12 is specifically used to select a target operation object that matches the current state of the player's operation object from multiple operable objects:
[0138] According to the layout information of the display interface, the positions of multiple operable objects in the display interface are determined; according to the positions of multiple operable objects in the display interface, the operable objects in the visual focus area of the display interface are selected as the target operation objects.
[0139] Wherein, optionally, the operable object in the visual focus area of the display interface includes one of the following:
[0140] The operable objects whose distance from the center of the display interface is less than the threshold, the operable objects at the top of the display interface, and the operable objects on the right side of the operable area.
[0141] Figure 3 The interface logic execution device shown can execute the methods provided in the aforementioned embodiments. For the parts not described in detail in this embodiment, please refer to the relevant description of the aforementioned embodiments, which will not be repeated here.
[0142] In one possible design, the above Figure 3 The structure of the interface logic execution device shown can be implemented as an electronic device.
[0143] like Figure 4As shown, the electronic device may include: a processor 21 and a memory 22. The memory 22 stores executable code, and when the executable code is executed by the processor 21, the processor 21 can at least implement the interface logic execution method provided in the above embodiment. The structure of the electronic device may also include a communication interface 23 for communicating with other devices or communication networks.
[0144] In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of a wireless router, the processor executes the interface logic execution method provided in the aforementioned embodiments.
[0145] As needed, the systems, methods and devices of the embodiments of the present invention can be implemented as pure software (such as a software program written in Java), as pure hardware (such as a dedicated ASIC chip or FPGA chip), or as a system that combines software and hardware (such as a firmware system that stores fixed code or a system with a general-purpose memory and processor).
[0146] Another aspect of the present invention is a computer-readable medium having computer-readable instructions stored thereon, which can implement the methods of various embodiments of the present invention when the instructions are executed.
[0147] While various embodiments of the present invention have been described above, the above description is exemplary, non-exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The scope of the subject matter for which protection is sought is limited only by the appended claims.
Claims
1. A method for executing interface logic, comprising: Receive interface operations issued to the display interface; Acquire a plurality of operable objects corresponding to the interface operation in the display interface, wherein the plurality of operable objects are displayed in a first display window and a second display window loaded in the display interface, wherein the first display window and the second display window correspond to different applications respectively; Selecting a target operation object displayed in the first display window or the second display window from the multiple operable objects according to a prediction strategy; The selecting a target operation object displayed in the first display window or the second display window from the plurality of operable objects according to the prediction strategy includes: Determining the relevance of the interface operation to a plurality of historical interface operations issued to the display interface; If the interface operation is associated with a historical interface operation issued to a first application corresponding to the first display window, an operable object associated with the first application is selected from a plurality of operable objects as a target operation object; or if the interface operation is associated with a historical interface operation issued to a second application corresponding to the second display window, an operable object associated with the second application is selected from a plurality of operable objects as the target operation object; The action logic corresponding to the target operation object is triggered so that the interface operation is executed.
2. The interface logic execution method according to claim 1, characterized in that: The first display window corresponds to the game program; The step of selecting a target operation object displayed in the first display window or the second display window from the plurality of operable objects according to the prediction strategy further includes: Determine the current state of the player's operation object in the game program; A target operation object that matches the current state of the player's operation object is selected from the multiple operable objects.
3. The interface logic execution method according to claim 2, characterized in that: Determining the current state of the player's operation object in the game program includes: Acquire historical behavior data of a player's operation object in the game program, and determine a current state of the player's operation object based on the historical behavior data; or The configuration information of the player operation object in the game program is obtained, and the current state of the player operation object is determined based on the configuration information.
4. The interface logic execution method according to claim 2, characterized in that: If the current state of the player's operation object is a combat state, a target operation object matching the current state of the player's operation object is selected from the multiple operable objects, including: An operable object whose operation type corresponds to the target operation type of the combat state is selected from a plurality of operable objects as the target operation object.
5. The interface logic execution method according to claim 2, characterized in that: If the current state of the player's operating object is a non-combat state, a target operating object matching the current state of the player's operating object is selected from the multiple operable objects, including: Determining positions of a plurality of operable objects in the display interface according to the layout information of the display interface; According to the positions of multiple operable objects in the display interface, an operable object in a visually focused area of the display interface is selected as the target operation object.
6. The interface logic execution method according to claim 1, characterized in that: The first application is a game program, and the interface operation is associated with a game task of the game program; Selecting an operable object associated with the first application from the plurality of operable objects as the target operation object includes: Determining whether the interface operation is associated with a plot to be triggered or an object to be acquired in the game task; Based on the judgment result, an operable object associated with the scenario to be triggered or the object to be acquired is selected from a plurality of operable objects as the target operation object.
7. The interface logic execution method according to claim 1, characterized in that: If a target operation object displayed in the first display window is selected from the plurality of operable objects according to a prediction strategy, the method further includes: Determining whether the target operation object is associated with an application corresponding to the second display window; If the target operation object is associated with the application corresponding to the second display window, the associated operation of the interface operation is performed in the application corresponding to the second display window.
8. An interface logic execution device, comprising: A transceiver module, used for receiving interface operations issued to the display interface; a processing module, configured to obtain a plurality of operable objects corresponding to the interface operation in the display interface, wherein the plurality of operable objects are displayed in a first display window and a second display window loaded in the display interface, wherein the first display window and the second display window correspond to different applications respectively; select a target operation object displayed in the first display window or the second display window from the plurality of operable objects according to a prediction strategy; and trigger an action logic corresponding to the target operation object so that the interface operation is executed; The processing module is specifically used to determine the correlation between the interface operation and multiple historical interface operations issued to the display interface; if the interface operation is associated with a historical interface operation issued to a first application corresponding to the first display window, an operable object associated with the first application is selected from multiple operable objects as the target operation object; or if the interface operation is associated with a historical interface operation issued to a second application corresponding to the second display window, an operable object associated with the second application is selected from multiple operable objects as the target operation object.
9. An electronic device, characterized in that: It comprises a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, the interface logic execution method described in any one of claims 1 to 7 is implemented.
10. A computer readable medium having a non-volatile program code executable by a processor, characterized in that: The program code enables the processor to execute the interface logic execution method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Management method of intelligent device for having control over a plurality of windows simultaneously
CN103412713A
Selection method and device for object in games
CN107433036A