Processing Method, Device, Processor and Electronic Device of Option Control
By displaying option controls in the game layered and determining target options using continuous touch operations, the problems of high operation complexity and frequent error operations are solved, and the efficiency and accuracy of gamers' option selection are improved.
Patent Information
- Application Number
- CN202110514332.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-07
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2041-05-07
AI Technical Summary
In the prior art, a number of option controls with pre-relationships are complex in the game and are prone to misoperation, affecting the game experience.
By executing software applications on the processor of the mobile terminal, in response to the touch operation of the initial option control, the option control collection is divided into multiple levels for display, and the target options are determined through continuous touch operations or restored to the initial display page, and the display and browsing of the option controls are optimized using chain relationships and position relationships.
The target options are selected faster and more accurately, reducing operation complexity and the possibility of misoperation, and optimizing gamers' skip experience for options without attention.
Smart Images

Figure CN113262472B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular, to a method and apparatus for processing option controls, a processor, and an electronic device. Background Art
[0002] Currently, multiple types of options with a pre - set relationship are usually set in various types of mobile games in the related art. After a specific option is selected by a game player, multiple new options may appear for the game player to make further selections. For example: in a multiplayer online battle arena (MOBA) game, in - game equipment synthesis; in a text - adventure game, virtual character dialogue options; and other situations where choices need to be made through conversations with non - player characters (NPCs). The following will separately illustrate two scenarios: equipment synthesis and NPC dialogue selection:
[0003] Figure 1 is a schematic diagram of an equipment synthesis chain according to the related art, as Figure 1 shown, the equipment synthesis process is usually a multi - level chain. "Equipment 1" located at the starting position can be regarded as the most pre - set option. When "Equipment 1" meets the preset conditions (such as gold conditions, etc.), it can be synthesized into "Equipment 2"; and when "Equipment 2" meets the preset conditions, it can be synthesized into any one of "Equipment 3 - 1", "Equipment 3 - 2", and "Equipment 3 - 3". It should be noted that the quantities shown in this equipment synthesis chain are only for illustrative purposes, and their actual types can be flexibly set according to the game type and game content.
[0004] Figure 2 is a schematic diagram of an NPC dialogue chain according to the related art, as Figure 2 shown, the NPC dialogue process is usually a multi - level chain, which can include multiple parts such as dialogue content and option content, thus jointly forming the NPC dialogue chain. When a dialogue control is displayed next to the NPC, the game player clicks on the dialogue control to display Dialogue 1. When the game player clicks on the screen, Dialogue 2 is displayed. When the game player clicks on the screen, Options 1, 2, and 3 are displayed. After the game player sees two pieces of NPC dialogue content on the screen, the game player will make a choice among Options 1, 2, and 3. When the game player clicks on a specific option, the terminal will execute an operation corresponding to the specific option. It should be noted that the quantities shown in this NPC dialogue chain are only for illustrative purposes, and their actual types can be flexibly set according to the game type and game content.
[0005] Therefore, the touch control method for the above - mentioned multiple options with a pre - set relationship in the related art has the following technical drawbacks:
[0006] (1) When there are a large number of pre - set options, game players need to frequently perform click operations and it is difficult to more conveniently skip the options that the game players do not care about.
[0007] (2) Although game players can skip the options they do not care about (e.g., NPC conversations) by quickly clicking on the screen, it is very likely that the area where the game player performs the click operation overlaps with the option display area. During the quick - click process, the game player is very likely to touch non - target options, resulting in misoperations and affecting the game experience. Moreover, after the game player performs a misoperation, it is usually not possible to immediately return to the pre - set options, and it is very likely that the game player still needs to skip the options they do not care about by quickly clicking on the screen again to re - select the target option.
[0008] For the above - mentioned problems, no effective solution has been proposed yet. Summary of the Invention
[0009] At least some embodiments of the present invention provide a method, device, processor, and electronic device for processing option controls, so as to at least solve the technical problems in the related art that the touch method for multiple options with a pre - set relationship is likely to increase the operation complexity and easily induce misoperations.
[0010] According to one embodiment of the present invention, a method for processing option controls is provided. By executing a software application on the processor of a mobile terminal and rendering a graphical user interface on the touch display of the mobile terminal, the method for processing option controls includes:
[0011] In response to a first touch operation on an initial option control, dividing a set of option controls to be browsed into multiple levels for display, where the set of option controls to be browsed includes: a plurality of option controls, each level in the multiple levels includes at least one option control, and the first level in the multiple levels includes: the initial option control; in response to a second touch operation continuous with the first touch operation, determining a target option control in the set of option controls based on the target touch position of the second touch operation, or restoring the current display page to the initial display page based on the target touch position.
[0012] Optionally, the method for processing option controls further includes: displaying the initial option control when a preset condition is met, where the preset condition is determined by the game type.
[0013] Optionally, dividing the set of option controls to be browsed into multiple levels for display includes: obtaining the chain relationship of the plurality of option controls, where the chain relationship is used to describe the display order of the plurality of option controls; performing hierarchical display on the plurality of option controls according to the chain relationship.
[0014] Optionally, multiple option controls are divided into first-level controls, second-level controls, and third-level controls. Among them, there is an indexing relationship between the first-level controls and the second-level controls, and there is an indexing relationship between the second-level controls and the third-level controls.
[0015] Optionally, the chain relationship includes one of the following: the in-game plot progression relationship and the in-game equipment synthesis relationship.
[0016] Optionally, determining the target option control based on the target touch position includes: obtaining the positional relationship between the target touch position and multiple option controls; based on the positional relationship, determining the option control where the target touch position is located as the target option control.
[0017] Optionally, restoring the current display page to the initial display page based on the target touch position includes: obtaining the positional relationship between the target touch position and multiple option controls; when the positional relationship determines that the target touch position is outside the multiple option controls, restoring the current display page to the initial display page.
[0018] Optionally, the display content of the current display page includes: multiple option controls displayed in multiple levels, and the display content of the initial display page includes: the initial option control.
[0019] Optionally, the above method for processing option controls further includes: responding to a third touch operation on the initial option control to display the first-level controls; responding to a third touch operation on the first target control in the first-level controls to display the second-level controls; responding to a third touch operation on the second target control in the second-level controls to display the third-level controls.
[0020] According to one embodiment of the present invention, there is also provided a device for processing option controls, which obtains a graphical user interface by executing a software application on a processor of a mobile terminal and rendering it on a touch display of the mobile terminal. The device for processing option controls includes:
[0021] A display module, configured to respond to a first touch operation on the initial option control and display a set of option controls to be browsed in multiple levels, where the set of option controls to be browsed includes: multiple option controls, each level in the multiple levels includes at least one option control, and the first level in the multiple levels includes: the initial option control; a processing module, configured to respond to a second touch operation consecutive to the first touch operation and determine a target option control in the set of option controls based on the target touch position of the second touch operation, or restore the current display page to the initial display page based on the target touch position.
[0022] Optionally, the display module is further configured to display an initial option control when a preset condition is met, where the preset condition is determined by the game type.
[0023] Optionally, the display module is configured to obtain the chain relationship of multiple option controls, where the chain relationship is used to describe the display order of the multiple option controls; and hierarchically display the multiple option controls according to the chain relationship.
[0024] Optionally, the multiple option controls are divided into a first-level control, a second-level control, and a third-level control, where there is an index relationship between the first-level control and the second-level control, and there is an index relationship between the second-level control and the third-level control.
[0025] Optionally, the chain relationship includes one of the following: the plot progression relationship in the game, the equipment synthesis relationship in the game.
[0026] Optionally, the processing module is configured to obtain the positional relationship between the target touch position and the multiple option controls; and based on the positional relationship, determine the option control where the target touch position is located as the target option control.
[0027] Optionally, the processing module is configured to obtain the positional relationship between the target touch position and the multiple option controls; when the positional relationship determines that the target touch position is outside the multiple option controls, restore the current display page to the initial display page.
[0028] Optionally, the display content of the current display page includes: multiple option controls displayed in multiple levels, and the display content of the initial display page includes: an initial option control.
[0029] Optionally, the processing module is further configured to respond to a third touch operation on the initial option control to display the first-level control; respond to a third touch operation on the first target control in the first-level control to display the second-level control; and respond to a third touch operation on the second target control in the second-level control to display the third-level control.
[0030] According to one embodiment of the present invention, there is also provided a non-volatile storage medium storing a computer program, where the computer program is configured to execute the processing method of the option control in any one of the above when running.
[0031] According to one embodiment of the present invention, there is also provided a processor for running a program, where the program is configured to execute the processing method of the option control in any one of the above when running.
[0032] According to one embodiment of the present invention, an electronic device is further provided, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the processing method of the option control in any one of the above.
[0033] In at least some embodiments of the present invention, by responding to a first touch operation acting on an initial option control, a set of option controls to be browsed is divided into multiple levels for display. The set of option controls to be browsed includes multiple option controls, each level in the multiple levels includes at least one option control, and the first level in the multiple levels includes the initial option control. By responding to a second touch operation consecutive to the first touch operation, a target option control is determined in the set of option controls based on the target touch position of the second touch operation or the current display page is restored to the initial display page based on the target touch position, achieving the purpose of intuitively enabling a gamer to know the content of all option controls by displaying multiple option controls in multiple levels at one time, thereby realizing the technical effects of more quickly and accurately selecting a target option, reducing the operation complexity, and reducing misoperations, and further solving the technical problem in the related art that the touch method for multiple options with a prepositional relationship is prone to increase the operation complexity and easily induce misoperations. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The drawings described herein are used to provide a further understanding of the present invention, and constitute a part of this application. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention, and do not constitute an improper limitation to the present invention. In the drawings:
[0035] Figure 1 is a schematic diagram of an equipment synthesis chain according to the related art;
[0036] Figure 2 is a schematic diagram of an NPC dialogue chain according to the related art;
[0037] Figure 3 is a flowchart of a processing method of an option control according to one embodiment of the present invention;
[0038] Figure 4 is a schematic diagram of a processing process of an option control according to one embodiment of the present invention;
[0039] Figure 5 is a structural block diagram of a processing device of an option control according to one embodiment of the present invention;
[0040] Figure 6 is a structural block diagram of a processing device of an option control according to one optional embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0041] To enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the scope of protection of the present invention.
[0042] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order different from those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0043] According to one embodiment of the present invention, an embodiment of a method for processing an option control is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0044] The method embodiments can be executed on a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, the mobile terminal can be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a personal digital assistant, and mobile Internet devices (abbreviated as MID), a PAD, and other terminal devices. The mobile terminal may include one or more processors (the processor may include, but is not limited to, a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microprocessor (MCU), a programmable logic device (FPGA), a neural network processor (NPU), a tensor processor (TPU), an artificial intelligence (AI) type processor, etc.) and a memory for storing data. Optionally, the above-mentioned mobile terminal may further include a transmission device for communication functions, an input / output device, and a display device. Those of ordinary skill in the art can understand that the above structural description is only illustrative and does not limit the structure of the above-mentioned mobile terminal. For example, the mobile terminal may further include more or fewer components than the above structural description, or have a configuration different from the above structural description.
[0045] The memory can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the processing method of the option control in the embodiments of the present invention. The processor executes various functional applications and data processing by running the computer program stored in the memory, that is, the processing method of the above-mentioned option control is implemented. The memory may include a high-speed random access memory, and may further include a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other non-volatile solid-state memories. In some instances, the memory may further include a memory remotely disposed relative to the processor, and these remote memories can be connected to the mobile terminal through a network. Examples of the above network include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0046] The transmission device is used to receive or send data via a network. Specific examples of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one instance, the transmission device includes a network interface controller (abbreviated as NIC), which can be connected to other network devices through a base station and thus communicate with the Internet. In one instance, the transmission device may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0047] The display device can be, for example, a touch-screen liquid crystal display (LCD) and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display enables a user to interact with the user interface of the mobile terminal. In some embodiments, the above-mentioned mobile terminal has a graphical user interface (GUI), and the user can perform human-computer interaction with the GUI through finger contacts and / or gestures on the touch-sensitive surface. The human-computer interaction function here optionally includes the following interactions: creating web pages, drawing, word processing, creating electronic documents, games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital videos, playing digital music, and / or web browsing, etc. The executable instructions for performing the above human-computer interaction functions are configured / stored in a computer program product or a readable storage medium executable by one or more processors.
[0048] In this embodiment, a processing method for an option control running on the above-mentioned mobile terminal is provided. Figure 3 It is a flowchart of the processing method of the option control according to an embodiment of the present invention. By executing a software application on the processor of the mobile terminal and rendering on the touch display of the mobile terminal, a graphical user interface is obtained, as Figure 3 shown, and the method includes the following steps:
[0049] Step S30, in response to a first touch operation acting on an initial option control, divide the set of option controls to be browsed into multiple levels for display, where the set of option controls to be browsed includes: a plurality of option controls, each level of the multiple levels includes at least one option control, and the first level of the multiple levels includes: the initial option control;
[0050] The above-mentioned initial option control is usually a pre-control for performing a specific operation in a game scenario. For example: the initial option control can be a pre-control for chatting with an NPC in a game scenario, or the initial option control can be a pre-control for equipment synthesis in a game scenario. The above-mentioned first touch operation can include, but is not limited to, a long-press operation and a hard-press operation, and the first touch operation does not conflict with the click operation originally performed in the graphical user interface, thus reasonably retaining the original operation habits of game players. The above-mentioned set of option controls to be browsed includes: a plurality of option controls. By performing a first touch operation on the initial option control, the plurality of option controls are divided into multiple levels for display. Each level of the multiple levels includes at least one option control, and the first level of the multiple levels includes: the initial option control. The above-mentioned plurality of option controls can either display all option controls simultaneously in the same graphical user interface or display some option controls separately in the same graphical user interface.
[0051] In an alternative embodiment, the above-mentioned multiple option controls are divided into first-level controls, second-level controls, and third-level controls. There is an indexing relationship between the first-level controls and the second-level controls, and there is an indexing relationship between the second-level controls and the third-level controls.
[0052] Figure 4 is a schematic diagram of the processing procedure of the option control according to an embodiment of the present invention. As Figure 4 shown, Option 1 is the initial option control, and the multiple option controls include: Option 1, Option 2, Option 3-1, Option 3-2, and Option 3-3. Option 1 is the first-level (the topmost level) control, Option 2 is the second-level control adjacent to Option 1, and Option 3-1, Option 3-2, and Option 3-3 are the third-level controls adjacent to Option 2. Option 3-1, Option 3-2, and Option 3-3 are controls of the same level. It should be noted that the quantities shown in the multiple option controls are only for illustrative purposes, and their actual types can be flexibly set according to the game type and game content. In addition, the arrangement order of the multiple display levels in the multiple option controls can be arranged sequentially from the left side of the graphical user interface to the right side of the graphical user interface, or from the right side of the graphical user interface to the left side of the graphical user interface, or from the upper side of the graphical user interface to the lower side of the graphical user interface, and no strict limitation is made here.
[0053] Step S31, in response to a second touch operation consecutive to the first touch operation, determine a target option control in the option control set based on the target touch position of the second touch operation, or restore the current display page to the initial display page based on the target touch position.
[0054] The above-mentioned second touch operation may include, but is not limited to, a swipe operation. By performing second touch operations in different directions within the graphical user interface, the above-mentioned multiple option controls can be browsed in multiple directions. For example, browse the multiple option controls in the horizontal direction, or browse the multiple option controls in the vertical direction. Thereby, it is convenient for game players to intuitively view all option controls from different angles, which can not only optimize the skipping experience of game players for option controls that do not need to be concerned about, but also avoid overlapping of the touch hotspots (i.e., the touch range or response area of each option control) of different option controls, reducing the possibility of misoperation by game players.
[0055] When the execution of the second touch operation terminates, the target touch position of the second touch operation can be obtained on the graphical user interface. For example: the end position of the sliding trajectory of a sliding operation. Based on the above target touch position, a target option control (i.e., the option control that the game player hopes to select) can be determined, or, based on the target touch position, the current display page can be restored to the initial display page (i.e., there is no option control that the game player hopes to select on the current display page). In an alternative embodiment, the display content of the current display page may include a plurality of option controls displayed in multiple levels, and the display content of the initial display page may include an initial option control. Still as Figure 4 shown, the display content of the current display page may include Option 1, Option 2, Option 3-1, Option 3-2, and Option 3-3. The display content of the initial display page may include Option 1.
[0056] Through the above steps, by responding to the first touch operation acting on the initial option control, the set of option controls to be browsed can be displayed in multiple levels. The set of option controls to be browsed includes a plurality of option controls, each level in the multiple levels includes at least one option control, and the first level in the multiple levels includes the initial option control. By responding to the second touch operation consecutive to the first touch operation, based on the target touch position of the second touch operation, a target option control is determined in the set of option controls or the current display page is restored to the initial display page based on the target touch position, the purpose of using a one-time display of a plurality of option controls in multiple levels so that the game player can intuitively know the content of all option controls is achieved, thereby realizing the technical effects of more quickly and accurately selecting the target option, reducing the operation complexity, and reducing misoperations. Furthermore, the technical problem in the related art that the touch method for a plurality of options with a preceding relationship provided in the related art is likely to increase the operation complexity and easily induce misoperations is solved.
[0057] Optionally, the processing method of the above option control may further include the following execution steps:
[0058] Step S32, when a preset condition is satisfied, display the initial option control, where the preset condition is determined by the game type.
[0059] The above initial option control can be either a regular option control that is defaultly displayed on the graphical user interface or an initial option control that is triggered for display when preset conditions are met, where the preset conditions are determined by the game type. For example: In a MOBA type mobile game, when the in-game equipment synthesis condition is met (e.g., the gold quantity accumulates to a preset value), an option control for weapon equipment (e.g., iron sword) that matches the in-game equipment synthesis condition is triggered for display within the graphical user interface. In a text adventure game, when the virtual character's dialogue condition with an NPC is met (e.g., an NPC is needed to guide the subsequent adventure process), a dialogue option control is triggered for display within the graphical user interface.
[0060] Optionally, in step S30, dividing the set of option controls to be browsed into multiple levels for display may include the following execution steps:
[0061] Step S300, obtain the chain relationship of multiple option controls, where the chain relationship is used to describe the display order of multiple option controls;
[0062] Step S301, perform hierarchical display on multiple option controls according to the chain relationship.
[0063] To perform hierarchical display on multiple option controls, it is necessary to obtain the chain relationship of multiple option controls. This chain relationship is used to describe the display order of multiple option controls (e.g., the in-game plot progression relationship, the in-game equipment synthesis relationship, etc.) so as to perform hierarchical display on multiple option controls according to the chain relationship. That is, among multiple option controls, the initial option control is taken as the first level (i.e., the first node of the entire chain relationship), and then subsequent multiple levels (i.e., the subsequent nodes of the entire chain relationship) are displayed in sequence. Still as Figure 4 shown, when the first level (the first level) of the chain relationship of multiple option controls is option 1, the second level adjacent to option 1 is option 2, and the third level adjacent to option 2 is option 3-1, option 3-2, and option 3-3, and option 3-1, option 3-2, and option 3-3 are at the same level, hierarchical display can be performed on multiple option controls according to the chain relationship. Thereby, not only can the skipping experience of game players for option controls that do not need to be concerned about be optimized, but also the overlapping of touch hot areas of different option controls can be avoided, reducing the possibility of game players' misoperations.
[0064] Optionally, the above method for processing option controls may further include the following execution steps:
[0065] Step S33, obtain the first operation direction of the second touch operation;
[0066] Step S34, browse option controls at different levels in the set of option controls to be browsed based on the first operation direction.
[0067] The first operation direction of the second touch operation described above may be the horizontal operation direction of the sliding operation. By swiping left and right in the horizontal operation direction, option controls at different levels in the set of option controls to be browsed can be browsed. Still, as Figure 4 shown, when the first level (the first level) of the chain relationship of multiple option controls is Option 1, the second level adjacent to Option 1 is Option 2, the third level adjacent to Option 2 is Option 3-1, Option 3-2, and Option 3-3, and Option 3-1, Option 3-2, and Option 3-3 are at the same level, any one of Option 1, Option 2, Option 3-1, Option 3-2, and Option 3-3 at different levels in the set of option controls to be browsed can be browsed by swiping left and right in the horizontal operation direction.
[0068] Optionally, the method for processing the option control described above may further include the following execution steps:
[0069] Step S35, obtaining the second operation direction of the second touch operation;
[0070] Step S36, browsing option controls at the same level in the set of option controls to be browsed based on the second operation direction.
[0071] The second operation direction of the second touch operation described above may be the vertical operation direction of the sliding operation. By swiping up and down in the vertical operation direction, option controls at the same level in the set of option controls to be browsed can be browsed. Still, as Figure 4 shown, when the first level (the first level) of the chain relationship of multiple option controls is Option 1, the second level adjacent to Option 1 is Option 2, the third level adjacent to Option 2 is Option 3-1, Option 3-2, and Option 3-3, and Option 3-1, Option 3-2, and Option 3-3 are at the same level, Option 3-1, Option 3-2, and Option 3-3 at the same level in the set of option controls to be browsed can be browsed by swiping up and down in the vertical operation direction.
[0072] Optionally, in step S31, determining the target option control based on the target touch position may include the following execution steps:
[0073] Step S310, obtaining the positional relationship between the target touch position and multiple option controls;
[0074] Step S311, determining the option control where the target touch position is located as the target option control based on the positional relationship.
[0075] The positional relationship between the target touch position and multiple option controls may include one of the following:
[0076] (1) The above target touch position is within the touch hot zone of any one of the multiple option controls;
[0077] (2) The above target touch position is outside the touch hot zones of all the multiple option controls.
[0078] By obtaining the positional relationship between the target touch position and the multiple option controls, when it is determined based on the positional relationship that the above target touch position is within the touch hot zone of any one of the multiple option controls, the option control where the target touch position is located can be determined as the target option control. Still as Figure 4 shown, when the target touch position is within the touch hot zone of Option 3-2, Option 3-2 is determined as the target option control.
[0079] Optionally, in step S31, restoring the current display page to the initial display page based on the target touch position may include the following execution steps:
[0080] Step S312, obtaining the positional relationship between the target touch position and the multiple option controls;
[0081] Step S313, when the positional relationship determines that the target touch position is outside the multiple option controls, restoring the current display page to the initial display page.
[0082] By obtaining the positional relationship between the target touch position and the multiple option controls, when it is determined based on the positional relationship that the above target touch position is outside the touch hot zones of all the multiple option controls, the current display page can be restored to the initial display page. Still as Figure 4 shown, the display content of the current display page may include Option 1, Option 2, Option 3-1, Option 3-2, and Option 3-3. The display content of the initial display page may include Option 1.
[0083] Optionally, the processing method of the above option control may further include the following execution steps:
[0084] Step S37, in response to a third touch operation on the initial option control, presenting the first-level control;
[0085] Step S38, in response to a third touch operation on the first target control in the first-level control, presenting the second-level control;
[0086] Step S39, in response to a third touch operation on the second target control in the second-level control, presenting the third-level control.
[0087] The above third touch operation may include, but is not limited to: single - click operation, double - click operation. In order to diversify the touch methods for multiple options with a pre - set relationship, different types of touch operations can also be used to adopt different display methods for multiple option controls respectively. When a first touch operation is performed on the initial option control, multiple option controls can be displayed in multiple levels at one time. When a third touch operation is performed on the initial option control, similar to the touch methods for multiple options with a pre - set relationship provided in the related art, multiple option controls can be displayed level by level. That is, first, respond to the click operation on the initial option control to display the first - level control, then respond to the click operation on the first target control in the first - level control to display the second - level control, and finally respond to the click operation on the second target control in the second - level control to display the third - level control.
[0088] Through the description of the above - mentioned embodiments, those skilled in the art can clearly understand that the method according to the above - mentioned embodiments can be implemented by means of software plus a necessary general - purpose hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present invention.
[0089] In this embodiment, a processing device for option controls is also provided. This device is used to implement the above - mentioned embodiments and preferred implementation methods, and those that have been described will not be repeated. As used hereinafter, the term "module" can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
[0090] Figure 5 It is a structural block diagram of a processing device for option controls according to one embodiment of the present invention. By executing a software application on the processor of a mobile terminal and rendering on the touch display of the mobile terminal, a graphical user interface is obtained, such as Figure 5As shown in the figure, the device includes: a display module 10, configured to respond to a first touch operation on an initial option control, and display a set of option controls to be browsed by dividing them into multiple levels. The set of option controls to be browsed includes: a plurality of option controls, each level of the multiple levels includes at least one option control, and the first level of the multiple levels includes: the initial option control; a processing module 20, configured to respond to a second touch operation consecutive to the first touch operation, determine a target option control in the set of option controls based on the target touch position of the second touch operation, or restore the current display page to the initial display page based on the target touch position.
[0091] Optionally, the display module 10 is further configured to display the initial option control when a preset condition is met, where the preset condition is determined by the game type.
[0092] Optionally, the display module 10 is configured to obtain the chain relationship of a plurality of option controls, where the chain relationship is used to describe the display order of the plurality of option controls; and display the plurality of option controls in hierarchical order according to the chain relationship.
[0093] Optionally, the plurality of option controls are divided into a first-level control, a second-level control, and a third-level control, where there is an index relationship between the first-level control and the second-level control, and there is an index relationship between the second-level control and the third-level control.
[0094] Optionally, the chain relationship includes one of the following: the in-game plot progression relationship, the in-game equipment synthesis relationship.
[0095] Optionally, Figure 6 is a structural block diagram of an option control processing device according to an optional embodiment of the present invention. As Figure 6 shown, the above-mentioned option control processing device further includes: a browsing module 30, configured to obtain the first operation direction of the second touch operation; and browse the option controls located in different levels in the set of option controls to be browsed based on the first operation direction.
[0096] Optionally, the browsing module 30 is further configured to obtain the second operation direction of the second touch operation; and browse the option controls located in the same level in the set of option controls to be browsed based on the second operation direction.
[0097] Optionally, the processing module 20 is configured to obtain the positional relationship between the target touch position and the plurality of option controls; and determine the option control where the target touch position is located as the target option control based on the positional relationship.
[0098] Optionally, a processing module 20 is configured to obtain the positional relationship between a target touch position and a plurality of option controls; when the positional relationship determines that the target touch position is outside the plurality of option controls, restore the current display page to the initial display page.
[0099] Optionally, the display content of the current display page includes: a plurality of option controls displayed in multiple levels, and the display content of the initial display page includes: an initial option control.
[0100] Optionally, the processing module 20 is further configured to respond to a third touch operation on the initial option control to display a first-level control; respond to a third touch operation on a first target control in the first-level control to display a second-level control; and respond to a third touch operation on a second target control in the second-level control to display a third-level control.
[0101] It should be noted that the above-mentioned modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules are respectively located in different processors in any combination.
[0102] An embodiment of the present invention also provides a non-volatile storage medium, in which a computer program is stored, and the computer program is configured to execute the steps in any one of the above method embodiments when running.
[0103] Optionally, in this embodiment, the above non-volatile storage medium can be configured to store a computer program for executing the following steps:
[0104] S1. Respond to a first touch operation on the initial option control to display a plurality of option controls to be browsed in multiple levels, where the set of option controls to be browsed includes: a plurality of option controls, each level in the multiple levels includes at least one option control, and the first level in the multiple levels includes: the initial option control;
[0105] S2. Respond to a second touch operation continuous with the first touch operation, and determine a target option control in the set of option controls based on the target touch position of the second touch operation, or restore the current display page to the initial display page based on the target touch position.
[0106] Optionally, in this embodiment, the above non-volatile storage medium may include, but is not limited to: various media such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disc that can store a computer program.
[0107] An embodiment of the present invention further provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0108] Optionally, the above electronic device may further include a transmission device and an input / output device, where the transmission device is connected to the above processor, and the input / output device is connected to the above processor.
[0109] Optionally, in this embodiment, the above processor may be configured to execute the following steps through a computer program:
[0110] S1. In response to a first touch operation on an initial option control, divide a set of option controls to be browsed into multiple levels for display, where the set of option controls to be browsed includes: multiple option controls, each level in the multiple levels includes at least one option control, and the first level in the multiple levels includes: the initial option control;
[0111] S2. In response to a second touch operation continuous with the first touch operation, determine a target option control in the set of option controls based on the target touch position of the second touch operation, or restore the current display page to the initial display page based on the target touch position.
[0112] Optionally, specific examples in this embodiment may refer to the examples described in the above embodiment and optional implementation manners, and will not be elaborated herein.
[0113] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0114] In the above embodiments of the present invention, the descriptions of the respective embodiments have their own emphases. For parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0115] In several embodiments provided in the present application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only illustrative. For example, the division of the units can be a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the units or modules can be in an electrical or other form.
[0116] The unit described as a separating 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 may be distributed over multiple units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0117] In addition, each functional unit in various embodiments of the present invention may be integrated into a processing unit, may exist separately as individual physical units, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
[0118] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: USB flash drives, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), mobile hard disks, magnetic disks or optical disks and other various media that can store program codes.
[0119] The above is only the preferred embodiment of the present invention. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present invention.
Claims
1. A method for processing an option control, characterized in that, A graphical user interface is obtained by executing a software application on a processor of a mobile terminal and rendering it on a touch display of the mobile terminal. The processing method of the option control includes: In response to a first touch operation on an initial option control, dividing a set of option controls to be browsed into multiple levels for display, where the set of option controls to be browsed includes: a plurality of option controls, each level of the multiple levels includes at least one option control, and the first level of the multiple levels includes: the initial option control; In response to a second touch operation consecutive to the first touch operation, determining a target option control in the set of option controls based on a target touch position of the second touch operation, or restoring the current display page to an initial display page based on the target touch position; Dividing the set of option controls to be browsed into the multiple levels for display includes: obtaining a chain relationship of the multiple option controls, where the chain relationship is used to describe a display order of the multiple option controls, and the chain relationship includes one of the following: an in-game plot progression relationship, an in-game equipment synthesis relationship; hierarchically displaying the multiple option controls according to the chain relationship, where all the option controls in the multiple option controls are displayed simultaneously in the same graphical user interface.
2. The processing method of the option control according to claim 1, characterized in that The processing method of the option control further includes: Displaying the initial option control when a preset condition is satisfied, where the preset condition is determined by a game type.
3. The processing method of the option control according to claim 1, characterized in that The multiple option controls are divided into a first-level control, a second-level control, and a third-level control, where there is an index relationship between the first-level control and the second-level control, and there is an index relationship between the second-level control and the third-level control.
4. The processing method of the option control according to claim 1, wherein, Determining the target option control based on the target touch position includes: Obtaining a position relationship between the target touch position and the multiple option controls; Based on the position relationship, determining the option control where the target touch position is located as the target option control.
5. The processing method of the option control according to claim 1, characterized in that Restoring the current display page to the initial display page based on the target touch position includes: Obtaining a position relationship between the target touch position and the multiple option controls; When the position relationship determines that the target touch position is outside the multiple option controls, restoring the current display page to the initial display page.
6. The processing method of the option control according to claim 1, characterized in that, The display content of the current display page includes: the multiple option controls divided into the multiple levels for display, and the display content of the initial display page includes: the initial option control.
7. A processing device for an option control, characterized in that, A graphical user interface is obtained by executing a software application on a processor of a mobile terminal and rendering it on a touch display of the mobile terminal. The processing device of the option control includes: A display module, configured to, in response to a first touch operation on an initial option control, divide a set of option controls to be browsed into multiple levels for display, where the set of option controls to be browsed includes: a plurality of option controls, each level of the multiple levels includes at least one option control, and the first level of the multiple levels includes: the initial option control; A processing module, configured to respond to a second touch operation consecutive to the first touch operation, determine a target option control from the set of option controls based on a target touch position of the second touch operation, or restore a current display page to an initial display page based on the target touch position; The display module is further configured to: obtain a chain relationship of the plurality of option controls, where the chain relationship is used to describe a display order of the plurality of option controls, and the chain relationship includes one of the following: an in-game plot progression relationship, an in-game equipment synthesis relationship; perform hierarchical display on the plurality of option controls according to the chain relationship, where all the option controls in the plurality of option controls are simultaneously displayed in the same graphical user interface.
8. A non-volatile storage medium, characterized in that, A computer program is stored in the storage medium, where the computer program is configured to execute the processing method of the option control described in any one of claims 1 to 6 when running.
9. A processor, characterized in that, The processor is configured to run a program, where the program is configured to execute the processing method of the option control described in any one of claims 1 to 6 when running.
10. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is configured to run the computer program to execute the processing method of the option control described in any one of claims 1 to 6.
Citation Information
Patent Citations
Application interface display method and mobile terminal
CN110109604A