Data Processing Method, Apparatus, Electronic Device, and Storage Medium
By responding to target event triggers in game development, obtaining interface status categories and determining the switching method, the complex problems of the existing game development process are solved, and efficient interface management and development process simplification is achieved.
Patent Information
- Application Number
- CN202210348478.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-01
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2042-04-01
AI Technical Summary
The existing game development process is complicated, resulting in low development efficiency and high maintenance costs.
The game interface is provided through the terminal device, and in response to the target event trigger, the first interface status category of the current game interface is obtained, and the mapping relationship between the interface status category and the switching method is obtained based on the status category, the target switching method is determined, and the interface switching display is controlled.
It realizes comprehensive management of interface status categories and switching methods, improves management flexibility and efficiency, simplifies the development process, improves the development efficiency of the game interface and reduces development costs.
Smart Images

Figure CN114653061B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of data processing, and particularly to a data processing method, apparatus, electronic device, and storage medium. Background Art
[0002] With the rapid development of Internet technology and the growing entertainment and cultural needs of the people, the development of games has entered a new era. In order to reflect the diversity in the game interaction process, various game interfaces are often developed in games to improve the game interaction experience of players.
[0003] When developing existing game interfaces, game developers often need to develop separately for the trigger events corresponding to various message types in each game interface.
[0004] It can be seen that the existing game development process is relatively complex. Therefore, there are problems of low development efficiency and high maintenance cost. Summary of the Invention
[0005] The purpose of this application is to provide a data processing method, apparatus, electronic device, and storage medium, which can improve the development efficiency of games and reduce the maintenance cost, aiming at the deficiencies in the above-mentioned existing technologies.
[0006] To achieve the above purpose, the technical solutions adopted in the embodiments of this application are as follows:
[0007] In a first aspect, the present invention provides a data processing method. A game interface is provided through a terminal device, and the method includes:
[0008] In response to the triggering of a target event, obtain the first interface state category of the current game interface;
[0009] According to the first interface state category of the current game interface, obtain the first mapping relationship between the interface state category and the switching method. The switching method includes at least one of the following: displaying a first notification window corresponding to the event trigger in the current game interface and jumping to a first target game interface corresponding to the event trigger, displaying a second notification window corresponding to the event trigger in the current game interface but not jumping to a second target game interface corresponding to the event trigger, not displaying a third notification window corresponding to the event trigger in the current game interface and not jumping to a third target game interface corresponding to the event trigger;
[0010] Determine the target switching method corresponding to the current game interface according to the first mapping relationship, and control the current game interface to be switched and displayed according to the target switching method.
[0011] In an alternative embodiment, the method further includes: obtaining a first mapping relationship between an interface state category and a switching method and / or a second mapping relationship between an operation type and a switching method according to a preset configuration table;
[0012] Determining the target switching method corresponding to the current game interface according to the first mapping relationship includes:
[0013] Obtaining the target operation type corresponding to the triggering of the target event, and querying and obtaining the switching method corresponding to the target operation type based on the second mapping relationship;
[0014] Determining the switching method corresponding to the first interface state category according to the first mapping relationship;
[0015] Determining the target switching method corresponding to the current game interface according to the switching method corresponding to the first interface state category and the switching method corresponding to the target operation type.
[0016] In an alternative embodiment, the operation types include: a first operation type, a second operation type, and a third operation type;
[0017] Among them, the switching method of the first operation type is not to display the third notification window corresponding to the event trigger in the current game interface and not to jump to the third target game interface corresponding to the event trigger;
[0018] The switching method of the second operation type is to display the second notification window corresponding to the event trigger in the current game interface but not to jump to the second target game interface corresponding to the event trigger;
[0019] The switching method of the third operation type is to display the first notification window corresponding to the event trigger in the current game interface and jump to the first target game interface corresponding to the event trigger.
[0020] In an alternative embodiment, if it is determined that the target switching method is to display the first notification window corresponding to the event trigger in the current game interface and jump to the first target game interface corresponding to the event trigger, controlling the current game interface to be switched and displayed according to the target switching method includes:
[0021] Displaying the first notification window corresponding to the target event trigger according to the target switching method corresponding to the current game interface;
[0022] In response to the triggering operation on the confirmation control in the first notification window, switching and displaying the current game interface to the target game interface.
[0023] In an alternative embodiment, the preset configuration table further includes: state weights corresponding to different game interfaces, and the step of switching the current game interface to display the target game interface further includes:
[0024] Obtaining a first state weight corresponding to the current game interface and a second state weight corresponding to the target game interface;
[0025] If the first state weight is greater than the second state weight, setting the second interface state of the target game interface to be the same as the first interface state.
[0026] In an alternative embodiment, the method further includes:
[0027] If it is determined that the first state weight is less than or equal to the second state weight, obtaining the second interface state of the target game interface according to the interface state mapping table, where the interface state mapping table includes the mapping relationship between the interface identifier and the interface state.
[0028] In an alternative embodiment, if the second interface state is the combat state, the method further includes:
[0029] Receiving a status change signal sent by the server according to the game settlement result;
[0030] According to the status change signal, switching the target game interface from the second interface state to the third interface state corresponding to the status change signal, and modifying the second state weight corresponding to the target game interface to a preset weight value, where the third interface state is the idle state.
[0031] In an alternative embodiment, the method further includes:
[0032] In response to an editing operation on the preset configuration table, editing the preset configuration table according to the editing operation, where the editing operation includes at least one of the following: an editing operation on the mapping relationship between the operation type and the switching method, and an editing operation on the state weights corresponding to different game interfaces.
[0033] In an alternative embodiment, if it is determined that the target switching method is to display a second notification window corresponding to the event trigger on the current game interface, then the step of controlling the current game interface to switch and display according to the target switching method includes:
[0034] Controlling the current game interface to display the second notification window according to the target switching method corresponding to the current game interface, where the second notification window includes the reason why the interface cannot be jumped.
[0035] In an alternative embodiment, obtaining a first interface state category of the current game interface in response to a target event trigger includes:
[0036] In response to a target event trigger, obtaining a target interface identifier of the current game interface;
[0037] According to the target interface identifier of the current game interface and an interface state category mapping table, obtaining a first interface state category of the current game interface, where the interface state category mapping table includes a mapping relationship between an interface identifier and an interface state category.
[0038] In a second aspect, the present invention provides a data processing device that provides a game interface through a terminal device. The data processing device includes:
[0039] A response module, configured to obtain a first interface state category of the current game interface in response to a target event trigger;
[0040] An obtaining module, configured to obtain a first mapping relationship between an interface state category and a switching method according to the first interface state category of the current game interface, where the switching method includes at least one of the following: displaying a first notification window corresponding to the event trigger on the current game interface and jumping to a first target game interface corresponding to the event trigger, displaying a second notification window corresponding to the event trigger on the current game interface but not jumping to a second target game interface corresponding to the event trigger, not displaying a third notification window corresponding to the event trigger on the current game interface and not jumping to a third target game interface corresponding to the event trigger;
[0041] A control module, configured to determine a target switching method corresponding to the current game interface according to the first mapping relationship, and control the current game interface to be switched and displayed according to the target switching method.
[0042] In an alternative embodiment, the obtaining module is specifically configured to obtain a first mapping relationship between an interface state category and a switching method and / or a second mapping relationship between an operation type and a switching method according to a preset configuration table;
[0043] In an alternative embodiment, the control module is specifically configured to obtain a target operation type corresponding to the target event trigger, and query and obtain a switching method corresponding to the target operation type based on the second mapping relationship;
[0044] According to the first mapping relationship, determining a switching method corresponding to the first interface state category;
[0045] According to the switching method corresponding to the first interface state category and the switching method corresponding to the target operation type, determining a target switching method corresponding to the current game interface.
[0046] In an alternative embodiment, the operation types include: a first operation type, a second operation type, and a third operation type;
[0047] Among them, the switching method of the first operation type is that in the current game interface, the third notification window corresponding to the event trigger is not displayed and the third target game interface corresponding to the event trigger is not jumped to;
[0048] The switching method of the second operation type is that in the current game interface, the second notification window corresponding to the event trigger is displayed but the second target game interface corresponding to the event trigger is not jumped to;
[0049] The switching method of the third operation type is that in the current game interface, the first notification window corresponding to the event trigger is displayed and the first target game interface corresponding to the event trigger is jumped to.
[0050] In an alternative embodiment, if it is determined that the target switching method is to display the first notification window corresponding to the event trigger in the current game interface and jump to the first target game interface corresponding to the event trigger, the control module is specifically configured to display the first notification window corresponding to the target event trigger according to the target switching method corresponding to the current game interface;
[0051] In response to the triggering operation on the confirmation control in the first notification window, the current game interface is switched to display the target game interface.
[0052] In an alternative embodiment, the preset configuration table further includes: status weights corresponding to different game interfaces, and the control module is further configured to obtain the first status weight corresponding to the current game interface and the second status weight corresponding to the target game interface;
[0053] If the first status weight is greater than the second status weight, the second interface state of the target game interface is set to be the same as the first interface state.
[0054] In an alternative embodiment, the control module is further configured to, if it is determined that the first status weight is less than or equal to the second status weight, obtain the second interface state of the target game interface according to the interface state mapping table, and the interface state mapping table includes the mapping relationship between the interface identifier and the interface state.
[0055] In an alternative embodiment, if the second interface state is the combat state, the data processing device further includes: a processing module, configured to receive a status change signal sent by the server according to the game settlement result;
[0056] According to the state change signal, switch the target game interface from the second interface state to the third interface state corresponding to the state change signal, and modify the second state weight corresponding to the target game interface to a preset weight value, where the third interface state is an idle state.
[0057] In an alternative embodiment, the data processing device further includes: an editing module, configured to, in response to an editing operation on a preset configuration table, edit the preset configuration table according to the editing operation, where the editing operation includes at least one of the following: an editing operation on the mapping relationship between the operation type and the switching method, and an editing operation on the state weights corresponding to different game interfaces.
[0058] In an alternative embodiment, if it is determined that the target switching method is to display a second notification window corresponding to the event trigger on the current game interface, the control module is specifically configured to control the current game interface to display the second notification window according to the target switching method corresponding to the current game interface, where the second notification window includes the reason why the interface cannot be jumped.
[0059] In an alternative embodiment, the response module is specifically configured to, in response to a target event trigger, obtain the target interface identifier of the current game interface;
[0060] According to the target interface identifier of the current game interface and the interface state category mapping table, obtain the first interface state category of the current game interface, where the interface state category mapping table includes the mapping relationship between the interface identifier and the interface state category.
[0061] In a third aspect, the present invention provides an electronic device, including: a processor, a storage medium, and a bus, where the storage medium stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the data processing method according to any one of the foregoing embodiments.
[0062] In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, it performs the steps of the data processing method according to any one of the foregoing embodiments.
[0063] The beneficial effects of this application are:
[0064] In a data processing method, apparatus, electronic device, and storage medium provided by an embodiment of the present application, a game interface can be provided by a terminal device. The method includes: in response to the triggering of a target event, obtaining a first interface state category of the current game interface; according to the first interface state category of the current game interface, obtaining a first mapping relationship between the interface state category and the switching method, and according to the first mapping relationship, determining a target switching method corresponding to the current game interface, and controlling the current game interface to be switched and displayed according to the target switching method. It realizes the comprehensive management of the interface state category and the switching method through the first mapping relationship, and has the characteristics of flexible management and high management efficiency. Moreover, when determining the target switching method corresponding to the current game interface in the present application, it can be quickly determined by querying the first mapping relationship. Compared with the method of separately developing trigger events corresponding to various message types in the game interface in the prior art, the present application can simplify the development process, effectively improve the development efficiency of the game interface, and reduce the development cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0066] Figure 1 It is an architecture diagram of a cloud interaction system provided by an embodiment of the present application;
[0067] Figure 2 It is a flowchart of a data processing method provided by an embodiment of the present application;
[0068] Figure 3 It is a flowchart of another data processing method provided by an embodiment of the present application;
[0069] Figure 4 It is a flowchart of yet another data processing method provided by an embodiment of the present application;
[0070] Figure 5 It is a flowchart of another data processing method provided by an embodiment of the present application;
[0071] Figure 6 It is a flowchart of yet another data processing method provided by an embodiment of the present application;
[0072] Figure 7 It is a flowchart of another data processing method provided by an embodiment of the present application;
[0073] Figure 8A flowchart of another data processing method provided by an embodiment of the present application;
[0074] Figure 9 A schematic diagram of functional modules of a data processing device provided by an embodiment of the present application;
[0075] Figure 10 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0076] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are some but not all of the embodiments of the present application. The components of the embodiments of the present application usually described and illustrated in the accompanying drawings here can be arranged and designed in various different configurations.
[0077] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed present application, but merely represents selected embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts fall within the scope of protection of the present application.
[0078] It should be noted that: like reference numerals and letters denote like items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.
[0079] The data processing method in one embodiment of the present application can run on a terminal device or a server. Among them, the terminal device can be a local terminal device. When the data processing method runs on the server, the data processing method can be implemented and executed based on a cloud interaction system, where the cloud interaction system can include a server and client devices.
[0080] Figure 1 A schematic diagram of the architecture of a cloud interaction system provided by an embodiment of the present application, as Figure 1 shown, the system can include: client device 10 and server 20. Among them, client device 10 can be connected to server 20 through network 30.
[0081] In an alternative embodiment, various cloud applications can run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the running entity of the game program and the presenting entity of the game screen are separated. The storage and running of the game character teleportation method are completed on the cloud game server. The role of the client device 10 is for data reception, transmission, and the presentation of the game screen. For example, the client device 10 can be a display device with data transmission function near the user side, such as a mobile terminal, a television, a computer, a personal digital assistant, etc.; however, the terminal device for information processing is the cloud game server in the cloud. When playing a game, the player operates the client device 10 to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses data such as the game screen, and returns it to the client device 10 through the network. Finally, the game screen is decoded and output through the client device 10.
[0082] In an alternative embodiment, the terminal device can be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used to present the game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, conventionally, the game program is downloaded and installed on an electronic device and run. The way the local terminal device provides the graphical user interface to the player can include various methods. For example, it can be rendered and displayed on the display screen of the terminal, or provided to the player through holographic projection. For example, the local terminal device can include a display screen and a processor. The display screen is used to present the graphical user interface, which includes the game screen. The processor is used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.
[0083] Figure 2 It is a schematic flowchart of a data processing method provided by an embodiment of the present application. The execution entity of this method can be a terminal device or a server. Among them, the terminal device can provide a game interface, such as Figure 2 shown, and this method can include:
[0084] S101. In response to the triggering of a target event, obtain the first interface state category of the current game interface.
[0085] Among them, the interface states of the game interfaces included in the game can be divided according to the states of the player characters in the game. Through the division, the interface state categories of each game interface can be determined. Optionally, the interface states of the game interfaces can include: idle state, busy state, team matching state, novice guidance state, combat state, plot playback state, etc., which are not limited herein and may vary according to different game categories. In some embodiments, the interface state category of the current game interface can be any of the above interface states, for example, it can be the idle state, which is not limited herein.
[0086] Optionally, the target event trigger can be generated by the player based on the touch screen through various touch operations such as clicking, swiping, long pressing, hard pressing, dragging, and pulling, or it can be automatically triggered by the game system according to the plot, game data / experience value, which is not limited herein. For example, the target event trigger can specifically be a team invitation, a convocation invitation, a resource bar preview, etc. It can be understood that if the player generates a target event trigger through a certain touch method, it means that the player has performed a certain interaction operation to request the response of the current game interface. In this case, the first interface state category of the current game interface can be obtained, and the corresponding target switching method of the current game interface can be determined with reference to the following steps.
[0087] S102. Obtain the first mapping relationship between the interface state category and the switching method according to the first interface state category of the current game interface.
[0088] Among them, the switching method can include at least one of the following: displaying the first notification window corresponding to the event trigger in the current game interface and jumping to the first target game interface corresponding to the event trigger, displaying the second notification window corresponding to the event trigger in the current game interface but not jumping to the second target game interface corresponding to the event trigger, not displaying the third notification window corresponding to the event trigger in the current game interface and not jumping to the third target game interface corresponding to the event trigger.
[0089] The first interface state category of the current game interface can be used as the trigger condition for obtaining the first mapping relationship. Optionally, the first mapping relationship can be obtained by querying configuration files such as configuration tables, tree data structures, and databases, that is, the first mapping relationship can be obtained based on the configuration file. Among them, it can be understood that the obtained first mapping relationship will also include the switching method corresponding to the first interface state category. Of course, the present application does not limit the presentation form of the configuration file herein, and it can be flexibly set according to the actual application scenario. In some embodiments, the obtained first mapping relationship can be stored in the form of a table in the database.
[0090] It should also be noted that the present application does not limit the notification content in the first notification window and the second notification window in the above switching method. Optionally, the notification content in the first notification window and the second notification window may include: reminder information of any type such as text, voice, animation, etc. In some embodiments, the first notification window may further include preset controls, such as cancel control, play control, confirmation control, etc., which are not limited herein and may vary according to different game scenarios. Of course, the present application also does not limit the specific content of the first target game interface. Optionally, the first target game interface may include: game scene, game character, mini-map interface, preset button, etc., which are not limited herein and may vary according to the current game stage and the game type to which it belongs (for example, shooting game, competitive game, war game, action game, etc.).
[0091] S103. Determine the target switching method corresponding to the current game interface according to the first mapping relationship, and control the current game interface to be switched and displayed according to the target switching method.
[0092] Based on the above description, it can be seen that the above first mapping relationship will also include the switching methods corresponding to the first interface state category. Therefore, the target switching method corresponding to the current game interface can be determined according to the first mapping relationship. Among them, the target switching method may be any one of the switching methods shown above. After determining the target switching method, the current game interface can be controlled to be switched and displayed. Applying the embodiments of the present application realizes the comprehensive management of the interface state category and the switching method through the first mapping relationship, which has the characteristics of flexible management and high management efficiency. Moreover, when the present application determines the target switching method corresponding to the current game interface, it can be quickly determined by querying the first mapping relationship. Compared with the prior art, in which different switching logics are developed for different game interfaces and different event triggers, the present application can simplify the development process, effectively improve the development efficiency of the game interface, and reduce the development cost.
[0093] It should be noted that, as can be seen from the above switching method, in some embodiments, the target switching method may also be not to perform any switching operation, that is, not to display any notification window and not to perform the jump of the game interface. In this case, only the current game interface needs to be maintained. In summary, the embodiments of the present application provide a data processing method, which can provide a game interface through a terminal device. The method includes: in response to the triggering of a target event, obtaining a first interface state category of the current game interface; according to the first interface state category of the current game interface, obtaining a first mapping relationship between the interface state category and the switching method, and according to the first mapping relationship, determining the target switching method corresponding to the current game interface, and controlling the current game interface to be switched and displayed according to the target switching method, realizing the comprehensive management of the interface state category and the switching method through the first mapping relationship, having the characteristics of flexible management and high management efficiency. Moreover, when the present application determines the target switching method corresponding to the current game interface, it can quickly determine by querying the first mapping relationship. Compared with the method of separately developing for the triggering events corresponding to various message types in the game interface in the prior art, the present application can simplify the development process, effectively improve the development efficiency of the game interface, and reduce the development cost.
[0094] Optionally, the above method further includes: obtaining the first mapping relationship between the interface state category and the switching method and / or the second mapping relationship between the operation type and the switching method according to a preset configuration table.
[0095] Figure 3 It is a schematic flowchart of another data processing method provided by the embodiments of the present application. Based on the above embodiments, as Figure 3 shown, the above determining the target switching method corresponding to the current game interface according to the first mapping relationship includes:
[0096] S105. Obtaining a target operation type corresponding to the triggering of the target event, and querying and obtaining the switching method corresponding to the target operation type based on the second mapping relationship.
[0097] Optionally, the above preset configuration table may include an event configuration table, and the event configuration table may include the operation types corresponding to the triggering of each event. Among them, different event triggers may correspond to the same or different operation types, and the operation type may represent the operation method corresponding to the event trigger (for example, whether the current game interface can display a notification window, whether it can jump from the current game interface to other game interfaces, etc.). Based on this description, optionally, the target operation type corresponding to the triggering of the target event may be obtained by querying the event configuration table.
[0098] Furthermore, since the second mapping relationship may include the correspondence between the operation type and the switching method, based on this second mapping relationship, the switching method corresponding to the target operation type can be queried. Among them, the switching method corresponding to the target operation type may include one or more.
[0099] S106. Determine the switching method corresponding to the first interface state category according to the first mapping relationship.
[0100] S107. Determine the target switching method corresponding to the current game interface according to the switching method corresponding to the first interface state category and the switching method corresponding to the target operation type.
[0101] It can be understood that according to the above first mapping relationship, the switching method corresponding to the first interface state category can be determined. Therefore, the switching method corresponding to the first interface state category and the switching method corresponding to the target operation type can be combined to uniquely determine the target switching method corresponding to the current game interface.
[0102] Optionally, the above operation type may include at least one. In some embodiments, it may include: a first operation type, a second operation type, and a third operation type.
[0103] Among them, the switching method of the first operation type is that the third notification window corresponding to the event trigger is not displayed on the current game interface and does not jump to the third target game interface corresponding to the event trigger; the switching method of the second operation type is that the second notification window corresponding to the event trigger is displayed on the current game interface but does not jump to the second target game interface corresponding to the event trigger; the switching method of the third operation type is that the first notification window corresponding to the event trigger is displayed on the current game interface and jumps to the first target game interface corresponding to the event trigger.
[0104] In an alternative embodiment, the first notification window, the second notification window, and the third notification window may be the same notification window.
[0105] To better understand the present application, the above first operation type can be understood as the non-displayable and non-jumpable type, the second operation type can be understood as the displayable but non-jumpable type, and the third operation type can be understood as the displayable and jumpable type. Based on this classification of operation types, it can be understood that different switching methods will correspond to different operation types in the embodiments of the present application, so that the requirements of most application scenarios can be met.
[0106] The embodiments of the present application will be described below in conjunction with specific configuration tables. Table 1 is a configuration table of interface state categories provided by the embodiments of the present application, and Table 2 is an event configuration table provided by the embodiments of the present application. Among them, in Table 1 and Table 2, A, B, and C respectively represent the switching methods corresponding to the first operation type, the second operation type, and the third operation type. For the column "Event trigger corresponding to the second operation type" in Table 1, its meaning is which events can trigger the switching method corresponding to the second operation type. In other words, which event triggers can trigger the switching method corresponding to the second operation type. Taking the row where the busy state is located as an example, it can be seen that events R2 and R3 will trigger the switching method corresponding to the second operation type.
[0107] Table 1
[0108]
[0109] Table 2
[0110] Event trigger Switching method Resource bar jump (R1) A, C Invitation event (R2) A, B, C New message event (R3) A, B, C
[0111] Combining Table 1 and Table 2, if the current game interface is in the idle state, it can be seen from Table 1 that the interface state category corresponding to the idle state is 1, that is, the first interface state category of the current game interface is 1, and the switching method corresponding to this first interface state category (denoted as the first switching method) is the switching method corresponding to the third operation type; if the target event trigger is a resource bar jump, it can be seen from Table 2 that the switching method corresponding to this target event trigger (denoted as the second switching method) is the switching methods corresponding to the first operation type and the third operation type. Then, combining Table 1 and Table 2, taking the intersection of the first switching method and the second switching method, it can be obtained that the target switching method corresponding to the current game interface is the switching method corresponding to the third operation type, that is, the target switching method corresponding to the current game interface is to display the first notification window corresponding to the target event trigger in the current game interface and jump to the first target game interface corresponding to the target event trigger.
[0112] Furthermore, if the current game interface is in the busy state, that is, the first interface state category of the current game interface is 4, and the first switching method corresponding to this first interface state category is the switching methods corresponding to the first operation type and the second operation type; if the target event trigger is a resource bar jump, it can be seen from Table 2 that the second switching method corresponding to this target event trigger is the switching methods corresponding to the first operation type and the third operation type. Then, combining Table 1 and Table 2, taking the intersection of the first switching method and the second switching method, it can be obtained that the target switching method corresponding to the current game interface is the switching methods corresponding to the first operation type and the second operation type.
[0113] Continuing to refer to Table 1, for the switching method (B) corresponding to the second operation type, since it cannot be triggered by the resource bar jump event (R1), while for the switching method (A) corresponding to the first operation type, it can be triggered by the resource bar jump event (R1). Therefore, it can be further determined that the target switching method corresponding to the current game interface is the switching method corresponding to the first operation type. The switching methods corresponding to other types of game interfaces can be referred to the above content and will not be limited here.
[0114] Figure 4 This is a schematic flowchart of another data processing method provided by an embodiment of the present application. Optionally, if it is determined that the target switching method is to display the first notification window corresponding to the event trigger in the current game interface and jump to the first target game interface corresponding to the event trigger, as Figure 4 shown, the above control of the current game interface to switch and display according to the target switching method includes:
[0115] S201. Display the first notification window corresponding to the target event trigger according to the target switching method corresponding to the current game interface.
[0116] S202. In response to the trigger operation on the confirmation control in the first notification window, switch and display the current game interface to the target game interface.
[0117] Among them, if the target switching method indicates that the first notification window corresponding to the event trigger can be displayed and can jump to the target game interface corresponding to the event trigger, then the first notification window corresponding to the target event trigger can be displayed in the current game interface. Optionally, the first notification window can be displayed in the current game interface in the form of a pop-up window, a floating window, etc. The first notification window can include a confirmation control, a cancel control, etc., which are not limited here. For example, when the target event trigger is a teaming operation, the first notification window can be a teaming invitation window, and the teaming invitation window can include: existing team member identifiers, teaming time, teaming tasks, etc. and preset controls such as a confirmation control, a cancel control, etc., which are not limited here.
[0118] Based on the above description, touch operations such as clicking, long pressing, pressing hard, swiping, dragging, and pulling on the confirmation control in the first notification window can be performed based on the touch screen. In response to the trigger operation on the confirmation control, at this time, the current game interface can be switched and displayed (i.e., jump displayed) to the target game interface corresponding to the target event trigger, so as to implement the jump operation of the game interface. Based on the above example, for example, the current game interface can be switched and displayed to the teaming success interface, which is not limited here.
[0119] Applying the embodiments of the present application, it can be seen that the method provided by the present application can fully meet the application scenarios that require displaying a first notification window corresponding to a target event trigger in the current game interface and jumping to the target game interface corresponding to the target event trigger, and has strong applicability.
[0120] Figure 5 It is a schematic flowchart of another data processing method provided by the embodiments of the present application. Optionally, the preset configuration table further includes: status weights corresponding to different game interfaces, such as Figure 5 As shown, the above-mentioned switching the current game interface to the target game interface further includes:
[0121] S301. Obtain the first status weight corresponding to the current game interface and the second status weight corresponding to the target game interface.
[0122] S302. If the first status weight is greater than the second status weight, set the second interface status of the target game interface to be the same as the first interface status.
[0123] S303. If it is determined that the first status weight is less than or equal to the second status weight, obtain the second interface status of the target game interface according to the interface status mapping table.
[0124] Among them, the interface status mapping table includes the mapping relationship between the interface identifier and the interface status.
[0125] In some embodiments, considering that different game interfaces may correspond to the same interface status. Therefore, after controlling the current game interface to switch to the target game interface corresponding to the target switching method, it is necessary to separately obtain the first status weight corresponding to the current game interface and the second status weight corresponding to the target game interface, and determine the second interface status corresponding to the target game interface according to the magnitude relationship between the first status weight and the second status weight.
[0126] Among them, if it is determined that the first status weight is less than or equal to the second status weight, obtain the second interface status of the target game interface according to the interface status category mapping table, otherwise, set the second interface status of the target game interface to be the same as the first interface status. Applying the embodiments of the present application enables the current game interface with a high status weight to be switched to the target game interface with a low status weight, and can ensure that the second interface status of the target game interface is consistent with the first interface status of the current game interface. When the current game interface with a low status weight is switched to the target game interface with a high or low status weight, it can ensure that the second interface status of the target game interface is switched in a timely manner, thereby realizing flexible adjustment of the target switching method corresponding to the current game interface in different scenarios, and improving the scalability and applicability of the method of the present application.
[0127] Optionally, the state weight corresponding to the game interface can be identified by a number. Optionally, the higher the state weight corresponding to the game interface, the larger the number corresponding to the state weight; the lower the state weight corresponding to the game interface, the smaller the number corresponding to the state weight. Of course, the present application does not limit the specific identification method here, which may vary according to the actual application scenario.
[0128] Exemplarily, in combination with Table 1 above, a certain game includes a game notice interface and a game play selection interface. Among them, the game notice interface can be the game home page interface, specifically, it can be the game interface when a player first enters a certain game. The game play selection interface can be the game interface when a player selects a certain game task, specifically, it can be the game interface when a player selects a game level. And the state weight corresponding to the game notice interface is 1, the corresponding interface state category is 1, and the corresponding interface state is the idle state. The state weight corresponding to the game play selection interface is 4, the corresponding interface state category is 4, and the specific corresponding interface state is the busy state. Then, during the game process, if the player's current game interface is the game notice interface, and if the player tries to open the game play selection interface at this time, since the state weight (4) corresponding to the game play selection interface is greater than the state weight (1) corresponding to the game notice interface, then at this time, the interface state category of the game interface will change, that is, it will change from the idle state to the busy state.
[0129] Continuing to illustrate based on the above example, if the game further includes: a game plot playback interface, which is used to play a preset plot to enhance the player's game interest. The state weight corresponding to the game plot playback interface is 2, the corresponding interface state category is 2, for example, the specific corresponding interface state is the plot state. Then, during the game process, if the player's current game interface is the game plot playback interface, and if a plot is called in the game at this time and played through the game plot playback interface, it can be understood that since the state weight (4) corresponding to the game play selection interface is greater than the state weight (2) corresponding to the game plot playback interface, therefore, at this time, the interface state category of the game plot playback interface will be set to the interface state category corresponding to the game play selection interface, that is, it will be set to the busy state. Of course, the specific application scenario is not limited to this and may vary according to the actual application scenario.
[0130] Figure 6 It is a flowchart of another data processing method provided by an embodiment of the present application. Optionally, if the second interface state is the combat state, as Figure 6 shown, the above method further includes:
[0131] S501. Receive a state change signal sent by the server according to the game settlement result.
[0132] S502. According to the status change signal, switch the target game interface from the second interface state to the third interface state corresponding to the status change signal, and modify the second state weight corresponding to the target game interface to a preset weight value.
[0133] Among them, the third interface state is the idle state. The game settlement result may include: game level parameter, ranking parameter, combat power parameter, reward virtual item parameter, etc., which are not limited herein.
[0134] Among them, in order to change the interface state corresponding to the game interface in a timely manner after the game ends, through the change, the target game interface can respond to the trigger of the target event and control the further switching display of the target game interface. Optionally, taking the terminal device as an example, the terminal device can receive the status change signal sent by the server according to the game settlement result. According to this status signal, the target game interface can be switched from the combat state to the idle state. In addition, the second state weight corresponding to the target game interface can also be modified to a preset weight value. Optionally, the preset weight value can be the lowest state weight value. For example, it can be 1, which is not limited herein.
[0135] Figure 7 It is a flowchart of another data processing method provided by an embodiment of the present application. Optionally, as Figure 7 shown, the above method further includes:
[0136] S701. In response to an editing operation on the preset configuration table, edit the preset configuration table according to the editing operation.
[0137] Among them, the editing operation includes at least one of the following: the editing operation of the mapping relationship between the operation type and the switching method, and the editing operation of the state weights corresponding to different game interfaces.
[0138] In some embodiments, considering the need to update the preset configuration table for different versions of the game, optionally, an editing operation on the preset configuration table can be generated based on the touch screen through a touch operation. The editing type indicated by the editing operation can be: modification, deletion, etc., which are not limited herein. In response to this editing operation, the preset configuration table can be edited according to this editing operation to obtain an updated preset configuration table, which can improve the flexibility of the method of the present application.
[0139] It should be noted that, according to different application scenarios, the editing operation can specifically be a modification or deletion operation on any content such as the interface state category, operation type, switching method, etc. It is not limited here. It can be understood that through this editing operation, the editing of the mapping relationship among the three in the preset configuration table can be achieved. In addition, if the preset configuration table further includes: the state weights corresponding to different game interfaces, then this editing operation can also be an editing operation on the state weights corresponding to different game interfaces, which is not limited here.
[0140] Optionally, if it is determined that the target switching method is to display a second notification window corresponding to the event trigger in the current game interface, then control the current game interface to be switched and displayed according to the target switching method, including:
[0141] Control the current game interface to display a second notification window according to the target switching method corresponding to the current game interface.
[0142] Among them, the second notification window includes the reason why the interface cannot be jumped.
[0143] Based on the above description, it can be understood that if the target switching method is to display a second notification window corresponding to the event trigger, then when controlling the current game interface to be switched and displayed, the current game interface can be controlled to display this second notification window. Furthermore, considering that in some scenarios, the purpose of the user generating the above target event trigger is to perform an interface jump, then in this case, the reason why the interface cannot be jumped can be displayed in the second notification window to improve the game interaction experience of players. For example, the content in the second notification window can be: Insufficient current game currency, unable to enter the next level, or it can be that the current game level is too low to equip the selected virtual item for the virtual character, etc. It is not limited here and can vary according to different game scenarios.
[0144] Figure 8 It is a schematic flowchart of another data processing method provided by an embodiment of the present application. Optionally, as Figure 8 shown, the above-mentioned obtaining the first interface state category of the current game interface in response to the target event trigger includes:
[0145] S801. In response to the target event trigger, obtain the target interface identifier of the current game interface.
[0146] S802. According to the target interface identifier of the current game interface and the interface state category mapping table, obtain the first interface state category of the current game interface.
[0147] Among them, the interface status category mapping table includes the mapping relationship between the interface identifier and the interface status category. Optionally, in the interface status category mapping table, different interface identifiers can correspond to the same interface status category, that is, the same interface status category can correspond to multiple interface identifiers. In some embodiments, the interface status category mapping table can be a mapping table pre-configured in advance according to the interface status and interface identifier of each game interface, which is not limited herein. Referring to Table 1 above, it can be seen that the interface status category corresponding to interface identifier 2 is 1, and the interface status category corresponding to interface identifiers 2 and 3 is 4. Of course, the specific classification method is not limited thereto.
[0148] Based on the above description, in response to the triggering of a target event, the target interface identifier of the current game interface can be obtained. According to the target interface identifier, the first interface status category of the current game interface can be queried and obtained in the interface status category mapping table. Applying the embodiments of the present application enables the classification management of each game interface in the game according to its interface status category, improving the management efficiency of each game interface.
[0149] Figure 9 It is a schematic diagram of the functional modules of a data processing device provided by an embodiment of the present application. The basic principle and the technical effects generated by this device are the same as those of the corresponding method embodiment described above. For the sake of brief description, for the parts not mentioned in this embodiment, reference can be made to the corresponding content in the method embodiment. As Figure 9 shown, the data processing device 100 includes:
[0150] A response module 110, configured to obtain the first interface status category of the current game interface in response to the triggering of a target event;
[0151] An acquisition module 120, configured to obtain a first mapping relationship between the interface status category and the switching method according to the first interface status category of the current game interface, where the switching method includes at least one of the following: displaying a first notification window corresponding to the event trigger in the current game interface and jumping to a first target game interface corresponding to the event trigger, displaying a second notification window corresponding to the event trigger in the current game interface but not jumping to a second target game interface corresponding to the event trigger, and not displaying a third notification window corresponding to the event trigger in the current game interface and not jumping to a third target game interface corresponding to the event trigger;
[0152] A control module 130, configured to determine a target switching method corresponding to the current game interface according to the first mapping relationship, and control the current game interface to be switched and displayed according to the target switching method.
[0153] In an alternative embodiment, the obtaining module 120 is specifically configured to obtain a first mapping relationship between an interface state category and a switching method and / or a second mapping relationship between an operation type and a switching method according to a preset configuration table;
[0154] In an alternative embodiment, the control module 130 is specifically configured to obtain a target operation type corresponding to the trigger of the target event, and query and obtain a switching method corresponding to the target operation type based on the second mapping relationship;
[0155] Determine a switching method corresponding to the first interface state category according to the first mapping relationship;
[0156] Determine a target switching method corresponding to the current game interface according to the switching method corresponding to the first interface state category and the switching method corresponding to the target operation type.
[0157] In an alternative embodiment, the operation types include: a first operation type, a second operation type, and a third operation type;
[0158] Among them, the switching method of the first operation type is that the third notification window corresponding to the trigger of the event is not displayed on the current game interface and does not jump to the third target game interface corresponding to the trigger of the event;
[0159] The switching method of the second operation type is that the second notification window corresponding to the trigger of the event is displayed on the current game interface but does not jump to the second target game interface corresponding to the trigger of the event;
[0160] The switching method of the third operation type is that the first notification window corresponding to the trigger of the event is displayed on the current game interface and jumps to the first target game interface corresponding to the trigger of the event.
[0161] In an alternative embodiment, if it is determined that the target switching method is to display the first notification window corresponding to the trigger of the event on the current game interface and jump to the first target game interface corresponding to the trigger of the event, the control module 130 is specifically configured to display the first notification window corresponding to the trigger of the target event according to the target switching method corresponding to the current game interface;
[0162] In response to a trigger operation on a confirmation control in the first notification window, switch the display of the current game interface to the target game interface.
[0163] In an alternative embodiment, the preset configuration table further includes: state weights corresponding to different game interfaces, and the control module is further configured to obtain a first state weight corresponding to the current game interface and a second state weight corresponding to the target game interface;
[0164] If the weight of the first state is greater than the weight of the second state, set the second interface state of the target game interface to be the same as the first interface state.
[0165] In an alternative embodiment, the control module 130 is further configured to, if it is determined that the weight of the first state is less than or equal to the weight of the second state, obtain the second interface state of the target game interface according to the interface state mapping table, where the interface state mapping table includes the mapping relationship between the interface identifier and the interface state.
[0166] In an alternative embodiment, if the second interface state is the combat state, the data processing device further includes: a processing module, configured to receive a state change signal sent by the server according to the game settlement result;
[0167] According to the state change signal, switch the target game interface from the second interface state to the third interface state corresponding to the state change signal, and modify the weight of the second state corresponding to the target game interface to a preset weight value, where the third interface state is the idle state.
[0168] In an alternative embodiment, the data processing device further includes: an editing module, configured to, in response to an editing operation on a preset configuration table, edit the preset configuration table according to the editing operation, where the editing operation includes at least one of the following: an editing operation on the mapping relationship between the operation type and the switching method, and an editing operation on the state weights corresponding to different game interfaces.
[0169] In an alternative embodiment, if it is determined that the target switching method is to display a second notification window corresponding to the event trigger on the current game interface, the control module 130 is specifically configured to control the current game interface to display the second notification window according to the target switching method corresponding to the current game interface, where the second notification window includes the reason why the interface jump cannot be performed.
[0170] In an alternative embodiment, the response module 110 is specifically configured to, in response to a target event trigger, obtain the target interface identifier of the current game interface;
[0171] According to the target interface identifier of the current game interface and the interface state category mapping table, obtain the first interface state of the current game interface, where the interface state mapping table includes the mapping relationship between the interface identifier and the interface state.
[0172] The above device is used to execute the method provided in the foregoing embodiments, and its implementation principle and technical effects are similar, and will not be described in detail here.
[0173] The above-mentioned modules may be one or more integrated circuits configured to implement the above methods. For example: one or more Application Specific Integrated Circuits (ASICs), or, one or more microprocessors, or, one or more Field Programmable Gate Arrays (FPGAs), etc. Again, when a certain module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processors that can call program code. Again, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0174] Figure 10 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. As Figure 10 shown, the electronic device may include: a processor 210, a storage medium 220, and a bus 230. The storage medium 220 stores machine-readable instructions executable by the processor 210. When the electronic device is running, the processor 210 communicates with the storage medium 220 through the bus 230, and the processor 210 executes the machine-readable instructions to perform the steps of the above method embodiment. The specific implementation manners and technical effects are similar and will not be elaborated here.
[0175] Optionally, the present application also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is run by a processor, it performs the steps of the above method embodiment. The specific implementation manners and technical effects are similar and will not be elaborated here.
[0176] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other may be through some interfaces. The indirect couplings or communication connections of devices or units may be in electrical, mechanical or other forms.
[0177] The unit described as a separation component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or distributed across multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0178] In addition, the functional units in various embodiments of the present application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or in the form of a combination of hardware and software functional units.
[0179] The above integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium. The above software functional units stored in a storage medium include several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute some steps of the methods in various embodiments of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (English: Read-Only Memory, abbreviated as: ROM), random access memories (English: Random Access Memory, abbreviated as: RAM), magnetic disks, or optical discs that can store program codes.
[0180] It should be noted that in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising one..." does not exclude the existence of another identical element in the process, method, article or device comprising the element.
[0181] The above are only the preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various modifications and variations can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application. It should be noted that similar reference numerals and letters denote similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. The above are only the preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various modifications and variations can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.
Claims
1. A data processing method, characterized in that, a game interface is provided by a terminal device, and the method includes: in response to the triggering of a target event, obtaining a first interface state category of the current game interface; according to the first interface state category of the current game interface, obtaining a first mapping relationship between the interface state category and the switching method, where the switching method includes at least one of the following: displaying a first notification window corresponding to the triggered event in the current game interface and jumping to a first target game interface corresponding to the triggered event, displaying a second notification window corresponding to the triggered event in the current game interface but not jumping to a second target game interface corresponding to the triggered event, not displaying a third notification window corresponding to the triggered event in the current game interface and not jumping to a third target game interface corresponding to the triggered event; according to the first mapping relationship, determining a target switching method corresponding to the current game interface, and controlling the current game interface to be switched and displayed according to the target switching method; the method further includes: obtaining the first mapping relationship between the interface state category and the switching method and / or the second mapping relationship between the operation type and the switching method according to a preset configuration table; the determining, according to the first mapping relationship, the target switching method corresponding to the current game interface includes: obtaining a target operation type corresponding to the triggered target event, and querying and obtaining a switching method corresponding to the target operation type based on the second mapping relationship; according to the first mapping relationship, determining a switching method corresponding to the first interface state category; according to the switching method corresponding to the first interface state category and the switching method corresponding to the target operation type, determining the target switching method corresponding to the current game interface.
2. The method according to claim 1, characterized in that, the operation type includes: a first operation type, a second operation type, and a third operation type; wherein, the switching method of the first operation type is not displaying a third notification window corresponding to the triggered event in the current game interface and not jumping to a third target game interface corresponding to the triggered event; the switching method of the second operation type is displaying a second notification window corresponding to the triggered event in the current game interface but not jumping to a second target game interface corresponding to the triggered event; the switching method of the third operation type is displaying a first notification window corresponding to the triggered event in the current game interface and jumping to a first target game interface corresponding to the triggered event.
3. The method according to claim 1, characterized in that, if it is determined that the target switching method is to display a first notification window corresponding to the triggered event in the current game interface and jump to a first target game interface corresponding to the triggered event, the controlling the current game interface to be switched and displayed according to the target switching method includes: displaying a first notification window corresponding to the triggered target event according to the target switching method corresponding to the current game interface; in response to a triggering operation on a confirmation control in the first notification window, switching and displaying the current game interface to the target game interface.
4. The method according to claim 3, characterized in that, The preset configuration table further includes: state weights corresponding to different game interfaces, and the step of switching the current game interface to display the target game interface further includes: Obtaining a first state weight corresponding to the current game interface and a second state weight corresponding to the target game interface; If the first state weight is greater than the second state weight, setting the second interface state of the target game interface to be the same as the first interface state.
5. The method according to claim 4, wherein, the method further includes: If it is determined that the first state weight is less than or equal to the second state weight, obtaining the second interface state of the target game interface according to the interface state mapping table, where the interface state mapping table includes the mapping relationship between the interface identifier and the interface state.
6. The method according to claim 4, wherein, If the second interface state is the combat state, the method further includes: Receiving a state change signal sent by the server according to the game settlement result; According to the state change signal, switching the target game interface from the second interface state to the third interface state corresponding to the state change signal, and modifying the second state weight corresponding to the target game interface to a preset weight value, where the third interface state is the idle state.
7. The method according to claim 4, wherein, the method further includes: In response to an editing operation on the preset configuration table, editing the preset configuration table according to the editing operation, where the editing operation includes at least one of the following: an editing operation on the mapping relationship between the operation type and the switching method, and an editing operation on the state weights corresponding to different game interfaces.
8. The method according to claim 1, wherein, If it is determined that the target switching method is to display the second notification window corresponding to the event trigger in the current game interface, then the step of controlling the current game interface to switch and display according to the target switching method includes: Controlling the current game interface to display the second notification window according to the target switching method corresponding to the current game interface, where the second notification window includes the reason why the interface cannot be jumped.
9. The method according to claim 1, wherein, The step of obtaining the first interface state category of the current game interface in response to the trigger of the target event includes: In response to the trigger of the target event, obtaining the target interface identifier of the current game interface; According to the target interface identifier of the current game interface and the interface state category mapping table, obtaining the first interface state category of the current game interface, where the interface state category mapping table includes the mapping relationship between the interface identifier and the interface state category.
10. A data processing device, wherein, providing a game interface through a terminal device, the data processing device includes: a response module, configured to obtain the first interface state category of the current game interface in response to the trigger of the target event; An acquisition module, configured to obtain a first mapping relationship between an interface state category and a switching method according to the first interface state category of the current game interface, where the switching method includes at least one of the following: displaying a first notification window corresponding to the event trigger in the current game interface and jumping to a first target game interface corresponding to the event trigger, displaying a second notification window corresponding to the event trigger in the current game interface but not jumping to a second target game interface corresponding to the event trigger, not displaying a third notification window corresponding to the event trigger in the current game interface and not jumping to a third target game interface corresponding to the event trigger; A control module, configured to determine a target switching method corresponding to the current game interface according to the first mapping relationship, and control the current game interface to perform a switching display according to the target switching method; The acquisition module is further configured to obtain the first mapping relationship between the interface state category and the switching method and / or the second mapping relationship between the operation type and the switching method according to a preset configuration table; The control module is specifically configured to obtain a target operation type corresponding to the target event trigger, and query and obtain a switching method corresponding to the target operation type based on the second mapping relationship; determine a switching method corresponding to the first interface state category according to the first mapping relationship; determine a target switching method corresponding to the current game interface according to the switching method corresponding to the first interface state category and the switching method corresponding to the target operation type.
11. An electronic device, characterized in that, it includes: A processor, a storage medium, and a bus, where the storage medium stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the data processing method according to any one of claims 1-9.
12. A computer-readable storage medium, characterized in that, a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, it performs the steps of the data processing method according to any one of claims 1-9.
Citation Information
Patent Citations
Switching method and device of game interfaces, terminal device and storage medium
CN110465084A
Display interface control method, electronic device and storage medium
CN113050861A