Method and device for adjusting the position of an operation control, terminal, and computer program
The method and apparatus enable real-time adjustment and testing of operation control positions within games, addressing inefficiencies in existing systems by allowing users to switch to an adjustable state for immediate feedback and refinement during gameplay.
Patent Information
- Application Number
- JP2023558743
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-06-18
- Filing Date
- 2022-05-11
- Publication Date
- 2024-08-21
- Estimated Expiration
- 2042-05-11
AI Technical Summary
Existing methods for adjusting the position of operation controls in games require users to preview adjustments in still images and reopen settings interfaces, leading to low efficiency and inefficiency in fine-tuning the display position.
A method and apparatus that allow operation controls to switch from a fixed state to an adjustable state in response to a user's operation, enabling real-time adjustment and immediate feedback during gameplay, allowing users to adjust and test the position without reopening settings.
Enhances the efficiency and effectiveness of operation control position adjustments by allowing real-time testing and refinement, improving user experience and reducing the need for repeated interface openings.
Smart Images

Figure 0007537691000011 
Figure 0007537691000009 
Figure 0007537691000006
Abstract
Description
[Technical field]
[0001] (CROSS-REFERENCE TO RELATED APPLICATIONS) This application claims priority to a Chinese patent application filed on June 18, 2021, bearing application number 202110680988.0 and entitled "Method for adjusting the position of an operating control and the device, terminal, and storage medium therefor," the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the field of computer and Internet technology, and in particular to a method for adjusting the position of an operating control, an apparatus, and a computer program thereof. [Background technology]
[0003] Currently, a game includes a number of operation controls for controlling virtual objects to perform various actions, and in order to improve the user's operation feeling in the game, the user can adjust the display position of the operation controls according to actual needs.
[0004] In the related art, a user adjusts the display position of an operation control through a setting interface. Here, the setting interface has an option for setting the display position of the operation control, and the user can adjust the display position of the operation control in a game by adjusting the option. Furthermore, the setting interface displays a still image of a game interface, and when the user performs an adjustment operation on the option, the display position of the operation control in the still image is adjusted according to the adjustment operation.
[0005] However, in the above related technologies, the user can only preview the adjustment effect of the operation control using a still image, and can only grasp the operation feel of the operation control when starting a game. Based on the operation feel, the user must determine whether the operation control has been adjusted to an appropriate display position. If the operation control has not been adjusted to an appropriate display position, the user must reopen the setting interface and adjust the display position of the operation control, which makes the position adjustment of the operation control less efficient. Summary of the Invention [Problem to be solved by the invention]
[0006] The embodiments of the present application provide a method for adjusting the position of an operation control, which can improve the efficiency of adjusting the position of an operation control and optimize the effect of adjusting the position of the operation control, and also provide an apparatus, a terminal, and a computer program for adjusting the position of the operation control. [Means for solving the problem]
[0007] According to one aspect of the present embodiment, there is provided a method for adjusting a position of an operation control executed by a terminal, the method comprising: displaying a user interface for the game in response to a start operation for the game, the user interface displaying at least one operation control; switching the operational control from a fixed state to an adjustable state in response to a first state switching operation on the operational control; adjusting a display position of a first operational control in the adjustable state in response to an adjustment operation on a first operational control of the at least one operational control; and in the adjustable state, in response to a trigger operation on the first operation control, controlling a virtual object in the game to execute an action corresponding to the first operation control.
[0008] According to one aspect of the present invention, there is provided an apparatus for adjusting a position of an operating control, the apparatus comprising: an interface display module configured to display a user interface of the game game in response to a start operation for the game game, the user interface displaying at least one operation control; a state-switching module configured to switch the operational control from a fixed state to an adjustable state in response to a first state-switching operation on the operational control; a position adjustment module configured to adjust a display position of a first operational control of the at least one operational control in the adjustable state in response to an adjustment operation on the first operational control; and an object control module configured to, in the adjustable state, in response to a trigger operation on the first operation control, control a virtual object in the game to perform an action corresponding to the first operation control.
[0009] According to one aspect of the present embodiment, a terminal is provided having a processor and a memory, wherein at least one segment of a program is stored in the memory, and the processor executes the above-mentioned method for adjusting the position of an operating control by loading and executing the at least one segment of the program.
[0010] According to one aspect of the present embodiment, a computer-readable storage medium having at least one segment of a program stored thereon is provided, which, when loaded and executed by a processor, realizes the above-mentioned method for adjusting the position of an operating control.
[0011] According to one aspect of the present embodiment, there is provided a computer program product or computer program including computer instructions stored in a computer-readable storage medium, which, when read from the computer-readable storage medium and executed by a processor of a terminal, causes the terminal to perform the above-mentioned method for adjusting a position of an operating control. Effect of the Invention
[0012] The first state switching operation switches the operation control from the fixed state to the adjustable state, and in the adjustable state, the display position of the operation control can be adjusted in response to the adjustment operation, and the virtual object can be controlled to perform a corresponding action in response to the trigger operation, that is, when the user adjusts the display position of the operation control, the operation control can respond to the user's trigger operation, so that the user can control the virtual object. In this way, after the user adjusts the display position of the operation control, the user can use the operation control in real time to determine whether the use feel of the operation control meets his / her needs; further, during the use of the operation control, the operation control is still in the adjustable state, and if the user is not satisfied with the previous position adjustment result, the user can continue to adjust the display position of the operation control without re-opening the setting interface of the operation control, so that the position adjustment efficiency of the operation control can be improved; further, during the position adjustment process, the operation control can be used in real time to determine the operation feel of the operation control, so that the position adjustment effect of the operation control can be optimized. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a schematic diagram of an application execution environment according to one embodiment of the present application. [Diagram 2] 1 is a schematic diagram of a user interface when adjusting an operational control. [Diagram 3]2 is a flowchart of a method for adjusting the position of an operational control according to one embodiment of the present application. [Figure 4] 1A to 1C are schematic diagrams illustrating the display format of the first operating control in different states. [Diagram 5] FIG. 13 is a schematic diagram of another user interface when adjusting an operational control. [Figure 6] 4 is a flowchart of a method for adjusting the position of an operating control according to another embodiment of the present application. [Figure 7] FIG. 2 is a schematic diagram of a process for adjusting the position of an operating control. [Figure 8] 4 is a flowchart of a method for adjusting the position of an operating control according to another embodiment of the present application. [Figure 9] FIG. 1 is a block diagram of an operating control position adjustment device according to one embodiment of the present application. [Figure 10] FIG. 2 is a block diagram of an operating control position adjustment device according to another embodiment of the present application. [Figure 11] FIG. 2 is a block diagram of the structure of a terminal according to one embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] 1 shows a schematic diagram of an application execution environment according to one embodiment of the present application. The application execution environment may include a terminal 10 and a server 20.
[0015] The terminal 10 may be an electronic device such as a mobile phone, a tablet computer, a game console, an e-book reader, a multimedia playback device, a wearable device, or a personal computer (PC). A client of a target application may be installed in the terminal 10, and the target application may be any application capable of displaying an operation control. Exemplarily, the target application may be a game application, a social application, a reader application, a shopping application, or the like. Here, the target application may be an application that needs to be downloaded and installed, or may be a click-to-run application, and the embodiment of the present application is not limited thereto.
[0016] The server 20 is used to provide backend services to clients of the target applications in the terminals 10. For example, the server 20 may be a backend server of the above-mentioned target applications. The server 20 may be one server, a server cluster composed of multiple servers, or a cloud computing service center. In some embodiments, the server 20 provides backend services to the target applications in multiple terminals 10 simultaneously.
[0017] The terminal 10 and the server 20 can communicate with each other via a network 30 .
[0018] Optionally, in the present embodiment, the above operation control is an operation control whose display position is adjustable. As shown in Fig. 2, the user interface 20 includes a "Start Adjustment" button 21 for the operation control, when a user clicks the "Start Adjustment" button 21, the operation control switches from a fixed state to an adjustable state, and the user interface 20 displays each operation control and a position adjustment progress bar corresponding to each operation control, taking the first operation control 22 as an example, the user adjusts the position mark point 24 in the position adjustment progress bar 23 to adjust the display position of the first operation control 22 in the user interface 20.
[0019] 3 shows a flowchart of a method for adjusting the position of an operation control according to an embodiment of the present application. The method can be applied to the terminal 10 in the application execution environment shown in FIG. 1, and the execution subject of each step may be a client of a target application installed and executed on the terminal 10. The method may include at least one of the following steps (301 to 304).
[0020] In step 301, in response to a start operation for a game play, a user interface for the game play is displayed.
[0021] The start operation refers to an operation triggered and generated by a user to start a game match. In some embodiments, the user triggers and generates the above start operation by a trigger operation on a game match start control. Here, the game match start control is displayed on a user interface after the above target application is executed. Exemplarily, after the target application is started, a game match start control is displayed on the interface of the target application, and when a user's trigger operation on the game match start control is detected, a user interface of the game match is displayed on the interface. In some embodiments, the target application provides the user with different modes of game matches, such as a "one-hit kill game mode", a "5 vs. 5 game mode", and a "3 vs. 3 game mode". Before starting a game match, the user can select a game match mode in a mode selection interface, and then, when the client receives a start operation for a game match of a certain mode, the client displays a user interface of the game match of the certain mode. Here, the start operation for a game match of a certain mode is a trigger operation on the start control of the game match of the certain mode.
[0022] In some embodiments, the display contents in the user interface corresponding to the game matches of different modes are different, and exemplarily, different modes provide the user with different interaction scenarios (also referred to as virtual environments, virtual scenarios, etc.). Furthermore, the display contents in the user interface corresponding to different game matches of the same mode may also be different. Exemplarily, even in the same mode, the contents included in the game matches of each round are different. Here, the contents included in the game matches include, but are not limited to, at least one of a virtual object controlled by a user, a virtual object controlled by a computer program, and a virtual item in a virtual environment. The virtual object controlled by the user may be a virtual object selected by the user from a plurality of virtual objects, and corresponds to different appearances and / or skills corresponding to different virtual objects. The virtual item in the virtual environment may be a virtual item randomly assigned to the game matches.
[0023] In some embodiments, when the client detects a start operation for a game, the client displays a user interface for the game, where the user interface is used to display the content of the game to the user. In some embodiments, the display manner of the user interface corresponding to different games is different.
[0024] In one possible embodiment, in order to ensure the timeliness of the display of the user interface, when the client displays the user interface of the game match, the client renders the user interface based on the display elements stored in the client to display the user interface of the game match. In some embodiments, the stored display elements are stored when the target application is downloaded, that is, the client displays the user interface based on the information stored when the target application is downloaded, or the stored display elements are stored after the previous game match is started, that is, the client displays the user interface based on the information stored in the last game match. Of course, in an exemplary embodiment, when the game match is not started, the client can obtain new display elements from the server at a certain time interval and use the new display elements to update the previously stored display elements. It should be noted that when updating the previously stored display elements, the client may directly use the new display elements to overwrite the previously stored display elements, or may obtain a display element different from the previously stored display element from the new display element, and perform operations such as addition, deletion, replacement, etc. on the different display element.
[0025] In another possible embodiment, in order to ensure consistency in the display of user interfaces of different users, when a client displays a user interface of the game match, the client obtains display elements of the user interface via a server, renders the user interface using the display elements, and displays the user interface of the game match.
[0026] Here, the display elements include at least one of a character element, an image element, an audio element, and the like, but are not limited to these.
[0027] In some embodiments, the user interface displays at least one operational control, which in some embodiments is either directly displayed in the user interface or is displayed in an implicit manner in the user interface.
[0028] In one possible embodiment, the above operation control is directly displayed on a user interface. In some embodiments, when the client displays the above user interface, the client renders and displays the operation control on the user interface based on a display element corresponding to the operation control. Here, the display element corresponding to the operation control can be rendered and displayed in a trigger area corresponding to the operation control.
[0029] In another possible embodiment, the above operation control is displayed in a user interface in an implicit manner. In some embodiments, when the client displays the above user interface, the client does not need to obtain a display element of the operation control, but only determines a trigger area corresponding to the operation control, and ensures that when a trigger operation on the trigger area is detected subsequently, the client executes an operation corresponding to the corresponding operation control.
[0030] Of course, in other possible embodiments, the above operation control is displayed in the user interface in a semi-implicit manner. In some embodiments, when the client displays the above user interface, it only determines a trigger area corresponding to the operation control without obtaining a display element of the operation control, and then displays the operation control corresponding to the trigger area in the user interface when a trigger operation on the trigger area is detected.
[0031] In step 302, the operational control is switched from a fixed state to an adjustable state in response to a first state switching operation on the operational control.
[0032] The fixed state refers to a state in which the display position of the operation control is fixed. The adjustable state refers to a state in which the display position of the operation control is movable. The first state switching operation refers to an operation triggered by a user to switch the current state of the operation control. In some embodiments, the user triggers and generates the first state switching operation through a trigger operation on the state switching control. Here, the trigger operation may be a short press operation, a long press operation, a single click operation, a double click operation, a drag operation, a voice operation, etc., and the embodiments of the present application are not limited thereto.
[0033] In some embodiments, the client switches the operation control from the fixed state to the adjustable state when a first state switching operation on the operation control is detected. In some embodiments, the display format of the operation control in different states is different.
[0034] In some embodiments, after a game starts, the operation control is in a fixed state, and the operation control is displayed in a first display format on the user interface; then, the client receives the first state switching operation, and switches the operation control from the fixed state to an adjustable state based on the first state switching operation, and switches the display format of the operation control from the first display format to a second display format. Here, the difference between the first display format and the second display format includes, but is not limited to, at least one of different colors, different lines, different textures, different patterns, different rendering effects, etc. Exemplarily, as shown in FIG. 4, when the operation control 41 is in a fixed state, the operation control 41 is displayed in a solid line shape, and when the operation control is in an adjustable state, the operation control 41 is displayed in a dashed line shape.
[0035] In step 303, in the adjustable state, in response to an adjustment operation on a first operational control of the at least one operational control, the display position of the first operational control is adjusted.
[0036] In the embodiment of the present application, in the above adjustable state, when the client receives an adjustment operation for a first operational control among the at least one operational control, the client adjusts the display position of the first operational control. Here, the first operational control may be any one of the at least one operational control, and the adjustment operation may be an operation triggered and generated by a user. Exemplarily, the adjustment operation may be a short press operation, a long press operation, a single click operation, a double click operation, a drag operation, a voice operation, etc., and the embodiment of the present application is not limited thereto.
[0037] Optionally, in the present embodiment, the first state switching operation corresponds to a second state switching operation. After adjusting the display position of the first operation control, when the client detects a second state switching operation for the first operation control, the client switches the first operation control from an adjustable state to a fixed state and sends position adjustment information to the server. Here, the position adjustment information is used to instruct the server to record the current display position of the first operation control, so that when the client starts a next game, the first operation control is displayed based on the currently recorded current display position of the first operation control.
[0038] In some embodiments, the above-mentioned second state switching operation and the above-mentioned first state switching operation can be triggered and generated by the same trigger operation for the same state switching control. Illustratively, after detecting a trigger operation for the state switching control, the client determines that the trigger operation is a first state switching operation when the operation control is in a fixed state, and determines that the trigger operation is a second state switching operation when the operation control is in an adjustable state.
[0039] In some embodiments, the second state switching operation and the first state switching operation correspond to the same state switching control and different trigger operations, i.e., the second state switching operation and the first state switching operation can be triggered and generated by different trigger operations for the same state switching control. Exemplarily, after detecting a trigger operation for a state switching control, the client obtains attribute information of the trigger operation, and determines that the trigger operation is the first state switching operation if the attribute information includes first attribute information (e.g., click once, long press less than a certain value, drag to the left, etc.), and determines that the trigger operation is the second state switching operation if the attribute information includes second attribute information (e.g., click twice, long press more than a certain value, drag to the right, etc.).
[0040] In some embodiments, the second state switching operation and the first state switching operation correspond to different state switching controls, i.e., the second state switching operation and the first state switching operation can be triggered and generated by trigger operations on the different state switching controls. Exemplarily, when the client detects a trigger operation on the first state switching control, the client determines that the trigger operation is the first state switching operation, and when the client detects a trigger operation on the second state switching control, the client determines that the trigger operation is the second state switching operation. Here, the relative position between the first state switching control and the second state switching control may be any relative position, and the embodiments of the present application are not limited thereto.
[0041] Optionally, the above-mentioned second state switch operation and the above-mentioned first state switch operation correspond to the same state switch control and the same trigger operation, i.e., the second state switch operation and the first state switch operation can be triggered and generated by the same trigger operation for the same state switch control. Illustratively, after detecting a trigger operation for the state switch control, the client determines that a first state switch operation for the operation control is detected if the operation control is in a fixed state, and correspondingly, after detecting a trigger operation for the state switch control, the client determines that a second state switch operation for the operation control is detected if the operation control is in an adjustable state.
[0042] In step 304, in the adjustable state, in response to a trigger operation on the first operation control, a virtual object in the game is controlled to perform an action corresponding to the first operation control.
[0043] In the embodiment of the present application, in the adjustable state, when the client receives a trigger operation for the first operation control, the client controls a virtual object in the game to perform an action corresponding to the first operation control. Here, the virtual object is a virtual object controlled by a user account, and the user account can control one or more virtual objects, and the embodiment of the present application is not limited thereto. The trigger operation may be a single click operation, a double click operation, a long press operation, a short press operation, a slide operation, etc., and the embodiment of the present application is not limited thereto.
[0044] In some embodiments, different operation controls correspond to different trigger operations. Exemplarily, when the first operation control is an operation control for controlling a virtual object to activate a skill, the above-mentioned trigger operation may be a click operation, and when the client receives a click operation on the first operation control, the client controls the virtual object to activate the corresponding skill; when the first operation control is a slider for controlling and moving the virtual object, the above-mentioned trigger operation may be a slide operation, and when the client receives a slide operation on the first operation control, the client determines the slide direction of the slide operation as the moving direction of the virtual object, and further controls and moves the virtual object. Furthermore, in an exemplary embodiment, the same operation control may correspond to different trigger operations, and the different trigger operations correspond to different actions. Exemplarily, when the first operation control corresponds to a single click operation and a double click operation, the client controls the virtual object to switch from a standing position to a crouching position when the client receives a single click operation on the first operation control, and when the client receives a double click operation on the first operation control, the client controls the virtual object to switch from a standing position to a prone position.
[0045] Optionally, in the present embodiment, the first operation control corresponds to a trigger area, and when the client detects a trigger operation, the client obtains a trigger position of the trigger operation, and further determines whether the trigger operation is in the trigger area of the first operation control according to the trigger position. If the trigger operation is in the trigger area of the first operation control, the client determines that the trigger operation is a trigger operation for the first operation control, and further controls the virtual object to perform a corresponding operation. Here, the trigger area is larger than or equal to the display area of the first operation control. Illustratively, the trigger area is an area formed by a set of points whose distance from the center point of the first operation control is smaller than a target value.
[0046] To sum up, in the technical solution according to the embodiment of the present application, the first state switching operation switches the operation control from the fixed state to the adjustable state, and in the adjustable state, the display position of the operation control can be adjusted in response to the adjustment operation, and the virtual object can be controlled to perform a corresponding action in response to the trigger operation, that is, when the user adjusts the display position of the operation control, the operation control can respond to the user's trigger operation, so that the user can control the virtual object. In this way, after the user adjusts the display position of the operation control, the user can use the operation control in real time to determine whether the use feel of the operation control meets his / her needs; furthermore, during the use of the operation control, the operation control is still in the adjustable state, and if the user is not satisfied with the previous position adjustment result, the user can continue to adjust the display position of the operation control without re-opening the setting interface of the operation control, so as to improve the position adjustment efficiency of the operation control; furthermore, during the position adjustment process, the operation control can be used in real time to determine the operation feel of the operation control, so as to optimize the position adjustment effect of the operation control.
[0047] In addition, in the technical solution according to the embodiment of the present application, the first state switching operation controls the operation control to switch from the fixed state to the adjustable state, the trigger operation controls the virtual object to perform a corresponding action, and the second state switching operation controls the operation control to switch from the adjustable state to the fixed state, that is, the operation for controlling the state change of the operation control and the operation for controlling the first virtual object to perform an action are different operations and do not interfere with each other. When controlling the virtual object to perform an action, the user does not need to consider the state of the operation control, which improves the user's operation flexibility and enhances the impact of the game game. After the operation control is returned from the adjustable state to the fixed state, the server records the position adjustment information of the operation control. In the subsequent game game, the position adjustment information of the operation control can be directly obtained from the server without the need to readjust the position of the operation control in each game game, which simplifies the user's operation.
[0048] Below, we will introduce how to adjust the display position of the first operation control.
[0049] In some embodiments, the client adjusts a display position of the first operation control based on an effect of the adjustment operation. Optionally, in the present embodiment, the client displays an adjustment window when detecting a first state switching operation on the operation control. In some embodiments, the client obtains position information of the at least one operation control when detecting the first state switching operation, and displays the adjustment window based on the position information, thereby displaying the position information of the at least one operation control in the adjustment window.
[0050] In some embodiments, the adjustment window displays a position adjustment control for adjusting the display position of the operation control, and the adjustment operation is an operation on the position adjustment control, and when the client receives an operation on the position adjustment control, the client adjusts the display position of the first operation control.
[0051] In one possible embodiment, the position adjustment control includes a position adjustment progress bar, and the position adjustment progress bar displays a position mark point. In some embodiments, different operation controls correspond to different position progress bars, and the different position progress bars display position mark points corresponding to the corresponding operation controls, or different operation controls correspond to the same position progress bar, and the position progress bar displays position mark points corresponding to the different operation controls. Taking the first operation control as an example, when the client displays the above adjustment window, it obtains a display position of the first operation control in the user interface, and further determines a display position of the position mark point corresponding to the first operation progress bar in the position adjustment progress bar. Illustratively, when the distance between the center point of the first operation control and the border of the user interface is equal to half the length of the user interface, the position mark point of the first operation control is located at the center of the position adjustment progress bar.
[0052] In another possible embodiment, the position adjustment control includes a thumbnail of a user interface, and the thumbnail of the user interface displays a position mark point. In some embodiments, different operation controls correspond to thumbnails of different user interfaces, and the thumbnails of the different user interfaces display position mark points corresponding to the corresponding operation controls, or different operation controls correspond to thumbnails of the same user interface, and the thumbnails of the user interface display position mark points corresponding to the different operation controls. Taking the first operation control as an example, when the client displays the adjustment window, it obtains the display position of the first operation control in the user interface, and further determines the display position of the position mark point corresponding to the first operation progress bar in the thumbnail of the user interface. Here, the thumbnail of the user interface may be an image obtained by zooming the display content of the user interface in real time, or may be a zoom image of the user interface stored in advance.
[0053] In yet another possible embodiment, the position adjustment control includes position movement buttons corresponding to different directions. In some embodiments, different operation controls correspond to different position movement sliders. Taking the first operation control as an example, when the client displays the adjustment window, it obtains a position parameter of the first operation control in the user interface, and when the client adjusts the display position of the first operation control using the position movement button, the position parameter in the adjustment window changes according to the adjustment of the position of the first operation control. Here, the position parameter includes at least one of the following, but is not limited to: the coordinate of the first operation control in the user interface, the distance between the first operation control and the boundary line of the user interface, the distance between the first operation control and the center line of the user interface, etc., and the present embodiment is not limited thereto.
[0054] Taking the above position adjustment control as an example, where the position adjustment progress bar includes a position adjustment progress bar, and the position mark point is displayed on the position adjustment progress bar, in an exemplary embodiment, the above step 303 includes at least one of the following steps:
[0055] 1. In response to a movement operation on the position mark point, a position of the position mark point on the position adjustment progress bar is determined.
[0056] Optionally, in the present embodiment, the above operation on the position adjustment control is a movement operation on a position mark point, and after displaying the above adjustment window, if the client detects a movement operation on the position mark point, obtains the position of the position mark point in the position adjustment progress bar based on the movement operation.
[0057] In one possible embodiment, after detecting the above-mentioned moving operation, the client obtains the end position of the moving operation on the position adjustment progress bar, and determines the end position as the position of the position mark point on the position adjustment progress bar. Of course, in an exemplary embodiment, the client can also obtain the position of the user's finger on the adjustment progress bar in real time during the moving operation, and adjust and display the position of the position mark point in real time.
[0058] In another possible embodiment, after detecting the above-mentioned moving operation, the client obtains the moving distance of the moving operation in the position adjustment progress bar, uses the distance as the moving distance of the position mark point in the position adjustment progress bar, and further determines the position of the position mark point in the position adjustment progress bar. Of course, in an exemplary embodiment, the client can also determine the real-time moving distance of the position mark point according to the real-time moving distance of the moving position, and further adjust and display the position of the position mark point in real time.
[0059] 2. Determine a margin of the first operating control relative to a boundary of the user interface based on a position of the position mark point on the position adjustment progress bar.
[0060] In the present embodiment, after the client obtains the position of the position mark point on the position adjustment progress bar, the client determines the margin of the first operation control relative to the border of the user interface according to the position of the position mark point on the position adjustment progress bar, where the border can be all borders, such as the top border, the bottom border, the left border and the right border, or the border can be two borders perpendicular to each other, such as the top border and the left border, the top border and the right border, or the border can be the border closest to the first operation control, or the border can be related to the adjustment direction of the first operation control, and when the adjustment direction of the first operation control is the left-right adjustment and the distance between the first operation control and the right border is smaller than the distance between the first operation control and the left border, the border can be the right border.
[0061] In some embodiments, because the display size of the user interface displayed by different types of terminals is different, when the client determines the above margin, the client can first obtain the display size of the user interface, and then determine the ratio between the length of the right progress bar of the position mark point and the total length of the position adjustment progress bar using the position mark point as a division point, and determine the margin of the first operation control relative to the border of the user interface based on the ratio and the display size, in this case, the border can be the right border. Similarly, the client can determine the ratio between the length of the left progress bar of the position mark point and the total length of the position adjustment progress bar using the position mark point as a division point, and determine the margin of the first operation control relative to the border of the user interface based on the ratio and the display size, in this case, the border can be the left border.
[0062] In one possible embodiment, the length of the position adjustment progress bar corresponds to a target display length of the user interface. When determining the above margin, the client determines a margin of the first operation control relative to the boundary of the user interface based on the position of the position mark point on the position adjustment progress bar and the above target display length. Here, the above target display length may be the full display length of the user interface or a partial display length of the user interface, and the embodiment of the present application is not limited thereto.
[0063] In another possible embodiment, the correspondence between the length of the position adjustment progress bar and the display length of the user interface is stored in a pre-set list, and when determining the above margin, the client determines the correspondence between the length of the position adjustment progress bar and the display length of the user interface based on the pre-stored list, and further determines the margin of the first operation control relative to the border of the user interface based on the position of the position mark point on the position adjustment progress bar and the above display length.
[0064] 3. Adjust the display position of the first operation control so that the distance between the first operation control and the border of the user interface is equal to the margin.
[0065] In the present embodiment, after obtaining the above margin, the client adjusts the display of the first operation control based on the margin, so that the distance between the first operation control and the boundary of the user interface is equal to the margin.
[0066] Optionally, in the embodiment of the present application, the display position of the first operation control may be adjusted after the position mark point is moved, or the display position of the first operation control may be adjusted in real time when the position mark point is moved. In one possible embodiment, after the position mark point is moved, the client adjusts the display position of the first operation control based on the position of the position mark point on the position adjustment progress bar, and in another possible embodiment, when the position mark point is moved, the client obtains the position of the position mark point on the position adjustment progress bar in real time and adjusts the display position of the first operation control in real time, so that the user can grasp the position adjustment status of the first operation control in real time.
[0067] 5, the user interface 50 includes a state switching control 51, and the user switches the first operation control 52 from a fixed state to an adjustable state by clicking the state switching control 51. In this case, the user interface 50 displays an adjustment window 53, which includes a position adjustment progress bar 54 of the first operation control 52, which displays a position mark point 55 of the first operation control, and the user adjusts the display position of the first operation control 52 by performing a movement operation on the position mark point 55. After the position adjustment, the first operation control 52 maintains the adjustable state, and the user can control the virtual object 56 and activate a skill by clicking the first operation control 52.
[0068] In summary, in the technical solution according to the embodiment of the present application, the display position of the operation control is adjusted by using the position adjustment control in the display window; in a game, the position of the operation control is adjusted through the display window; in order to avoid erroneous touching of the trigger operation during the position adjustment, the position adjustment area is distinguished from the touch area of the operation control; further, the display position of the operation control is determined based on the position of the position mark point on the position adjustment progress bar, and the position mark point is associated with the display position of the operation control; compared with the abstract parameter adjustment, the user can more intuitively grasp the display position of the first operation space based on the position of the position adjustment point, which simplifies the user operation and improves the adjustment efficiency of the display position of the operation control.
[0069] Furthermore, a margin between the first operation control and the boundary of the user interface is determined based on the display size of the user interface and the ratio between the length of the right progress bar of the position mark point and the total length of the position adjustment progress bar; considering that the display screens of different hardware devices have different sizes and the user interfaces on different display screens have different display sizes, the display size margin improves the compatibility of the adjustment of the operation control on different hardware devices.
[0070] Another method for adjusting the display position of the first operation control will be described below.
[0071] In some embodiments, the client adjusts the display position of the first operation control according to the attribute information of the adjustment operation. Taking the above adjustment operation as an example that is a drag operation, in an exemplary embodiment, the above step 303 includes at least one of the following steps:
[0072] 1. In response to a drag operation on a first operation control, attribute information of the drag operation is obtained.
[0073] In the present embodiment, when the first operating control is in an adjustable state, the client obtains attribute information of a drag operation when detecting a drag operation on the first operating control, where the attribute information includes, but is not limited to, at least one of a drag distance, a drag speed, an end position of the drag operation, etc.
[0074] It should be noted that the drag operation on the first operation control is different from the trigger operation on the first operation control. Exemplarily, the trigger operation on the first operation control may be a click operation, or the trigger operation on the first operation control is a slide operation whose slide distance is smaller than a first numerical value, and the drag operation on the first operation control is a drag operation whose drag distance is larger than a second numerical value and the first numerical value is equal to or smaller than the second numerical value.
[0075] 2. Determine the movement parameters of the first operation control based on the attribute information.
[0076] In the present embodiment, after the client obtains the attribute information, the client determines a movement parameter of the first operation control based on the attribute information, where the movement parameter includes, but is not limited to, at least one of a movement direction, a movement distance, and a position to which the first operation control is moved, and the position to which the first operation control is moved is a display position of the first operation control after the position adjustment.
[0077] In one possible embodiment, the movement parameters include a movement direction and a movement distance of the first operation control, and the client determines the movement direction of the first operation control based on the drag direction in the attribute information, and determines the movement distance of the first operation control based on the drag distance in the attribute information.
[0078] In another possible embodiment, the movement parameters include a position to which the first operation control is moved, and the client determines the position to which the first operation control is moved based on an end position of the drag operation in the attribute information.
[0079] 3. Adjust the display position of the first operation control according to the movement parameters.
[0080] In this embodiment, after obtaining the movement parameter, the client adjusts the display position of the first operation control on the user interface according to the movement parameter.
[0081] In summary, in the technical solution according to the embodiment of the present application, the display position of the operating control can be adjusted through a drag operation on the operating control, the operation is simple, and there is no need to add new display content to the user interface, so that the simplicity of the user interface can be improved; and the moving distance and moving direction of the operating control are determined based on the drag distance and drag direction, or the display position of the operating control is determined based on the end position of the drag operation, so that the position adjustment of the operating control is intuitive and convenient, and the efficiency of the position adjustment of the operating control can be improved.
[0082] 6 shows a flowchart of a method for adjusting the position of an operation control according to another embodiment of the present application. The method can be applied to the terminal 10 in the application execution environment shown in FIG. 1, and the execution subject of each step may be a client of a target application installed and executed on the terminal 10. The method may include at least one of the following steps (601 to 606).
[0083] In step 601, in response to a start operation for a game play, a user interface for the game play is displayed.
[0084] In step 602, the operational control is switched from a fixed state to an adjustable state in response to a first state switching operation on the operational control.
[0085] The above step 601 and step 602 are the same as step 301 and step 302 in the embodiment of FIG. 3, and the specific details can be referred to the embodiment of FIG. 3, and will not be described repeatedly here.
[0086] In step 603, an adjustable area corresponding to a first operating control is obtained.
[0087] The adjustable area is a movable area of the first operational control, i.e., the first operational control can flexibly adjust its position within the adjustable area. In some embodiments, different operational controls correspond to different adjustable areas.
[0088] In one possible embodiment, the client determines the adjustable area based on the distance between the first operational control and the other operational control. In some embodiments, when the client obtains the adjustable area, the client obtains a display position of at least one operational control in the user interface, the at least one operational control including at least one other operational control and the first operational control, and the client determines the adjustable area corresponding to the first operational control based on the display position of the at least one operational control. Wherein, the distance between the edge line of the adjustable area and the other operational control closest to the edge line is greater than a threshold. In this case, the adjustable area of the first operational control does not cover the display position of the other operational control, that is, there is no overlapping area between the display positions of the operational controls, and the user interface is more streamlined.
[0089] In another possible embodiment, the client determines the adjustable area based on the trigger area of another operation control. In some embodiments, when obtaining the adjustable area, the client obtains the trigger area of each other operation control other than the first operation control in the user interface, and uses the area that does not overlap with the trigger area of each other operation control in the user interface as the adjustable area corresponding to the first operation control. It should be noted that different operation controls correspond to different trigger areas, and the trigger area is also called a response area. Of course, in an exemplary embodiment, the trigger area of the first operation control changes according to the display position of the first operation control, and therefore the adjustable area of the first operation control also changes according to the display position of the first operation control. In this case, since the adjustable area of the first operation control does not cover the trigger area of the other operation control, it is possible to reduce erroneous touch operations on the other operation controls when performing position adjustment on the first operation control.
[0090] In step 604, in the adjustable state, in response to an adjustment operation on the first operational control, it is determined based on the adjustable area whether the first operational control and the adjustment operation satisfy a position adjustment condition. If both the first operational control and the adjustment operation satisfy the position adjustment condition, step 605 is executed, and if the first operational control or the adjustment operation does not satisfy the position adjustment condition, step 606 is executed.
[0091] In this embodiment, when the first operating control is in an adjustable state, when the client detects an adjustment operation on the first operating control, the client determines whether the first operating control and the adjustment operation satisfy the position adjustment condition based on the above adjustable area.
[0092] In some embodiments, if the first operating control is not located on an edge line of the adjustable area, or if the first operating control is located on an edge line of the adjustable area and the position adjustment operation instructs the first operating control to move from the edge line of the adjustable area to inside the adjustable area, it is determined that the first operating control and the adjustment operation satisfy the position adjustment condition.
[0093] In some embodiments, when the above-mentioned first operating control is located on an edge line of the adjustable area and the position adjustment operation instructs the first operating control to move from the edge line of the adjustable area to outside the adjustable area, it is determined that the first operating control or the adjustment operation does not satisfy the position adjustment condition.
[0094] Regarding the manner of determining whether the first operational control is located on an edge line, in some embodiments, if an edge point of the first operational control is located on the edge line, it is determined that the first operational control is located on the edge line, or if a center point of the first operational control is located on the edge line, it is determined that the first operational control is located on the edge line.
[0095] In step 605, the operation of the display position of the first operation control is adjusted based on the adjustment operation.
[0096] In the embodiment of the present application, when the first operating control and the adjustment operation satisfy a position adjustment condition, in the adjustable state, the operation of the display position of the first operating control is adjusted in response to the adjustment operation.
[0097] In step 606, the presentation information is displayed.
[0098] In an embodiment of the present application, when the first operating control and the adjustment operation do not satisfy the position adjustment condition, in the adjustable state, displaying a presentation information in response to the adjustment operation, wherein the presentation information is used to present that the position adjustment for the first operating control has failed.
[0099] At step 607, in response to a second state switching operation on the first operational control, the first operational control is switched from the adjustable state to the fixed state.
[0100] In step 608, the position adjustment information is sent to the server.
[0101] In summary, the technical solution according to the embodiment of the present application limits the movement of the operating control within an adjustable area, avoids the problem that the trigger area of the operating control overlaps with the trigger area of another operating control after the operating control is moved, making the operating control unusable, and improves the effect of adjusting the position of the operating control.
[0102] Also, with reference to FIG. 7, a method of adjusting the first operation control in the present application will be described. In the client, the user adjusts the display position of the first operation control using the position adjustment progress bar, the client receives a movement operation on the position mark point on the position adjustment progress bar, and determines the position of the position mark point on the position adjustment progress bar based on the movement operation, and then obtains the display size of the user interface, and determines the margin of the first operation control with respect to the boundary line of the user interface based on the display size and the position of the position mark point on the position adjustment progress bar, and adjusts the display position of the first operation control based on the margin. Furthermore, after detecting a position adjustment completion operation (the above-mentioned second state switching operation) on the first operation control, the client transmits position adjustment information to the server. Here, the position adjustment information includes the current display position of the first operation control, and the server records the current display position of the first operation control based on the position adjustment information.
[0103] 8 shows a flowchart of a method for adjusting the position of an operation control according to yet another embodiment of the present application. The method can be applied to the terminal 10 in the application execution environment shown in FIG. 1, and the execution subject of each step may be a client of a target application installed and executed on the terminal 10. The method may include at least one of the following steps (801 to 806).
[0104] In step 801, in response to a start operation for a game play, a user interface for the game play is displayed.
[0105] In step 802, the operational control is switched from a fixed state to an adjustable state in response to a first state switching operation on the operational control.
[0106] The above step 801 and step 802 are the same as step 301 and step 302 in the embodiment of FIG. 3, and the specific details can be referred to the embodiment of FIG. 3, and will not be described repeatedly here.
[0107] In step 803, the display position of the second operation control in the user interface is adjusted based on the display position of the first operation control.
[0108] In an embodiment of the present application, after adjusting the display position of the first operation control, the client adjusts the display position of the second operation control in the user interface based on the display position of the first operation control, taking the adjusted display position of the first operation control as a reference.
[0109] In one possible embodiment, the above-mentioned second operation control and the above-mentioned first operation control belong to the same group of operation controls. In this case, the client adjusts the display position of the second operation control based on the display position of the first operation control and the relative position between the first operation control and the second operation control, so that the relative position between the adjusted first operation control and the second operation control is not changed.
[0110] In another possible embodiment, the second operational control and the first operational control belong to different groups of operational controls. In this case, the client adjusts the margin of the second operational control to the border of the user interface based on the margin of the first operational control to the border of the user interface. In some embodiments, if the border corresponding to the first operational control and the border corresponding to the second operational control are the same border, the sum of the margin of the first operational control to the border of the user interface and the margin of the second operational control to the border of the user interface is equal to the display length of the user interface. If the border corresponding to the first operational control and the border corresponding to the second operational control are parallel borders to each other, the margin of the first operational control to the border of the user interface is equal to the margin of the second operational control to the border of the user interface.
[0111] In some embodiments, the client groups the navigation controls based on their functionality and / or distribution area.
[0112] In one possible embodiment, the client groups the operation controls based on the functions of the operation controls. In some embodiments, after displaying the above user interface, the client obtains the function of each operation control, and divides operation controls having the same function into one group, for example, operation controls for activating skills belong to the same group of operation controls, operation controls for controlling posture switching belong to the same group of operation controls, and operation controls for controlling movement direction belong to the same group of operation controls.
[0113] In another possible embodiment, the client groups the operation controls based on the distribution area of the operation controls. In some embodiments, after displaying the above user interface, the client obtains the distribution of each operation control, and divides the operation controls distributed in the same area into one group. Illustratively, when determining whether the operation controls are in the same area, the client randomly selects one operation control, and determines other operation controls whose distance to the operation control is less than a threshold as operation controls that belong to the same group as the operation control, and then continues to randomly select operation controls from the ungrouped operation controls and perform the above steps until there are no ungrouped operation controls.
[0114] In yet another possible embodiment, the client groups the operation controls according to the functions and distribution areas of the operation controls. Illustratively, the client groups each operation once according to the distribution area of the operation controls, and then, according to the obtained group, subdivides the existing grouping according to the functions of the operation controls to obtain a final grouping result.
[0115] To sum up, in the technical solution according to the embodiment of the present application, when a position adjustment is performed on an operating control, the display position of the second operating control is also adaptively adjusted, thereby improving the adjustment efficiency of the operating control.
[0116] It should be noted that in this application, unless otherwise specified, the distance between the two may be calculated based on the positions of the center points of both, or may be calculated based on the positions of the edge points of both, and the embodiments of this application are not limited to this.
[0117] The following are examples of apparatuses of the present application that can be used to carry out the method embodiments of the present application. For details not disclosed in the apparatus embodiments of the present application, please refer to the method embodiments of the present application.
[0118] 9 shows a block diagram of an apparatus for adjusting the position of an operation control according to an embodiment of the present application. The apparatus has a function for implementing the above-mentioned method for adjusting the position of an operation control, and the function may be implemented by hardware or by executing corresponding software by hardware. The apparatus may be a terminal or may be disposed in a terminal. The apparatus 900 may include an interface display module 910, a state switching module 920, a position adjustment module 930 and an object control module 940.
[0119] The interface display module 910 is configured to display a user interface for a game game in response to a start operation for the game game, where at least one operation control is displayed on the user interface.
[0120] The state-switching module 920 is configured to switch the operational control from a fixed state to an adjustable state in response to a first state-switching operation on the operational control.
[0121] The position adjustment module 930 is configured to adjust a display position of a first operational control of the at least one operational control in the adjustable state in response to an adjustment operation on the first operational control.
[0122] The object control module 940 is configured to, in the adjustable state, in response to a trigger operation on the first operation control, control a virtual object in the game to perform an action corresponding to the first operation control.
[0123] In an exemplary embodiment, as shown in FIG. 10, the apparatus 900 further comprises a window display module 950 .
[0124] The window display module 950 is configured to display an adjustment window in response to the first state switching operation on the operation control, and a position adjustment control for adjusting the display position of the operation control is displayed in the adjustment window.
[0125] In an exemplary embodiment, the position adjustment module 930 is further configured to adjust a display position of the first manipulation control in response to a manipulation on the position adjustment control.
[0126] In an exemplary embodiment, the position adjustment control includes a position adjustment progress bar, where a position mark point is displayed on the position adjustment progress bar, and the position adjustment module 930 is further configured to determine a position of the position mark point on the position adjustment progress bar in response to a movement operation on the position mark point, determine a margin of the first operation control with respect to a boundary of the user interface based on the position of the position mark point on the position adjustment progress bar, and adjust the display position of the first operation control such that a distance between the first operation control and the boundary of the user interface is equal to the margin.
[0127] In an exemplary embodiment, the position adjustment module 930 is further configured to obtain a display size of the user interface, determine a ratio between a length of a right progress bar of the position mark point and a total length of the position adjustment progress bar with the position mark point as a division point, and determine a margin of the first operation control relative to a boundary of the user interface based on the ratio and the display size.
[0128] In an exemplary embodiment, the position adjustment module 930 is further configured to: in response to a drag operation on the first operation control, obtain attribute information of the drag operation, determine movement parameters of the first operation control based on the attribute information, the movement parameters including at least one of a movement direction, a movement distance, and a position to which the first operation control is moved, and adjust the display position of the first operation control based on the movement parameters.
[0129] In an exemplary embodiment, the position adjustment module 930 is configured to determine a movement direction of the first operating control based on a drag direction in the attribute information, determine a movement distance of the first operating control based on a drag distance in the attribute information, or determine a position to which the first operating control is moved based on an end position of the drag operation in the attribute information.
[0130] In an exemplary embodiment, as shown in FIG. 10, the device 900 further includes an area acquisition module 960 and an information display module 970 .
[0131] The area obtaining module 960 is configured to obtain an adjustable area corresponding to the first operating control.
[0132] The position adjustment module 930 is further configured to adjust the display position of the first operating control in the adjustable state in response to an adjustment operation on a first operating control of the at least one operating control when the first operating control is not located on an edge line of the adjustable area, or to adjust the display position of the first operating control in the adjustable state in response to an adjustment operation on a first operating control of the at least one operating control when the first operating control is located on an edge line of the adjustable area and the position adjustment operation instructs the first operating control to move from the edge line of the adjustable area to an inside of the adjustable area.
[0133] The information display module 970 is configured to display presentation information in response to an adjustment operation on a first operating control of the at least one operating control in the adjustable state when the first operating control is located on an edge line of the adjustable area and the position adjustment operation instructs the first operating control to move from the edge line of the adjustable area to outside the adjustable area, and the presentation information is used to indicate that the position adjustment on the first operating control has failed.
[0134] In an exemplary embodiment, the area acquisition module 960 is further configured to acquire a display position of the at least one operating control in the user interface, the at least one operating control including at least one other operating control and the first operating control, and determine an adjustable area corresponding to the first operating control based on the display position of the at least one operating control, where a distance between an edge line of the adjustable area and the other operating control closest to the edge line is greater than a threshold.
[0135] In an exemplary embodiment, the area acquisition module 960 is further configured to acquire trigger areas of other operational controls in the user interface other than the first operational control, and use an area in the user interface that does not overlap with the trigger areas of the other operational controls as an adjustable area corresponding to the first operational control.
[0136] In an exemplary embodiment, the position adjustment module 930 is further configured to adjust a display position of a second operational control in the user interface based on the display position of the first operational control.
[0137] In an exemplary embodiment, the position adjustment module 930 is further configured to adjust the display position of the second operating control based on the display position of the first operating control and the relative position between the first operating control and the second operating control when the second operating control and the first operating control belong to the same group of operating controls, or to adjust the margin of the second operating control with respect to a boundary of the user interface based on the margin of the first operating control with respect to a boundary of the user interface when the second operating control and the first operating control belong to different groups of operating controls.
[0138] In an exemplary embodiment, as shown in FIG. 10, the apparatus 900 further comprises an information transmitting module 980 .
[0139] The state-switching module 920 is further configured to switch the first operational control from the adjustable state to the fixed state in response to a second state-switching operation on the first operational control.
[0140] The information sending module 980 is configured to send position adjustment information to a server, where the position adjustment information is used to instruct the server to record a current display position of the first operating control.
[0141] To sum up, in the technical solution according to the embodiment of the present application, the first state switching operation switches the operation control from the fixed state to the adjustable state, and in the adjustable state, the display position of the operation control can be adjusted in response to the adjustment operation, and the virtual object can be controlled to perform a corresponding action in response to the trigger operation, that is, when the user adjusts the display position of the operation control, the operation control can respond to the user's trigger operation, so that the user can control the virtual object. In this way, after the user adjusts the display position of the operation control, the user can use the operation control in real time to determine whether the use feel of the operation control meets his / her needs; furthermore, during the use of the operation control, the operation control is still in the adjustable state, and if the user is not satisfied with the previous position adjustment result, the user can continue to adjust the display position of the operation control without re-opening the setting interface of the operation control, so as to improve the position adjustment efficiency of the operation control; furthermore, during the position adjustment process, the operation control can be used in real time to determine the operation feel of the operation control, so as to optimize the position adjustment effect of the operation control.
[0142] It should be noted that when the device according to the above embodiment realizes its functions, only the division of each of the above functional modules is taken as an example for description, but in actual application, the above functions can be assigned and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the above functions. Furthermore, the device according to the above embodiment belongs to the same concept as the method embodiment, and its specific realization process can be referred to the method embodiment, and will not be repeated here.
[0143] FIG. 11 shows a structural block diagram of a terminal 1100 according to an embodiment of the present application. The terminal 1100 may be an electronic device such as a mobile phone, a tablet computer, a game console, an e-book reader, a multimedia playback device, a wearable device, a PC, etc. The terminal is configured to implement the method for adjusting the position of an operation control according to the above embodiment. The terminal may be the terminal 10 in the game execution environment shown in FIG. 1. Specifically, the following is provided.
[0144] Generally, the terminal 1100 includes a processor 1101 and a memory 1102 .
[0145] The processor 1101 may include one or more processing cores (such as a 4-core processor and an 8-core processor). The processor 1101 may be implemented using at least one of the following hardware forms: a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 1101 may also include a main processor and a coprocessor, where the main processor is a processor used to process data in a wake-up state and is also called a central processing unit (CPU). The coprocessor is a low-power processor used to process data in a standby state. In some embodiments, the processor 1101 may be integrated with a graphics processing unit (abbreviated as GPU), where the GPU is used to render and draw content displayed on a display screen. In some embodiments, the processor 1101 may further include an artificial intelligence (AI) processor, where the AI processor is used to process computing operations related to machine learning.
[0146] The memory 1102 may include one or more computer readable storage media, which may be non-transitory. The memory 1102 may also comprise one or more of magnetic disk memories, high speed random access memories such as flash memories, and non-volatile memories. In some embodiments, the non-transitory computer readable storage media in the memory 1102 is used to store at least one instruction, at least one segment of a program, code set, or instruction set, which causes the one or more processors to execute the above-mentioned method for adjusting the position of a manipulation control.
[0147] In some embodiments, the terminal 1100 may further include a peripheral interface 1103 and at least one peripheral. The processor 1101, the memory 1102, and the peripheral interface 1103 may be connected to each other via a bus or signal lines. Each peripheral may be connected to the peripheral interface 1103 via a bus, signal lines, or a circuit board. Specifically, the peripherals include at least one of a radio frequency circuit 1104, a display screen 1105, a camera component 1106, an audio circuit 1107, and a power supply 1108.
[0148] As will be apparent to one skilled in the art, the structure shown in FIG. 11 is not intended to limit the terminal 1100, and the terminal 1100 may include more or fewer components than those shown in the figure, or some components may be combined, or a different component arrangement may be employed.
[0149] In an exemplary embodiment, a computer-readable storage medium is further provided, the computer-readable storage medium having stored thereon at least one instruction, at least one segment of a program, a code set or an instruction set, the at least one instruction, the at least one segment of a program, the code set or the instruction set causing a processor to perform the above-mentioned method for adjusting a position of an operational control.
[0150] In some embodiments, the computer-readable storage medium may include a read only memory (ROM), a random access memory (RAM), a solid state drive (SSD), or an optical disk, etc. Here, the random access memory may include a resistive random access memory (ReRAM) and a dynamic random access memory (DRAM).
[0151] An exemplary embodiment further provides a computer program product or computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium, such that a processor of a terminal reads and executes the computer instructions from the computer-readable storage medium to cause the terminal to perform the above-mentioned method for adjusting the position of an operating control.
Claims
1. A method for adjusting a position of an operating control, which is performed by a terminal, comprising the steps of: displaying a user interface for the game in response to a start operation for the game, the user interface displaying at least one operation control; switching the operational control from a fixed state to an adjustable state in response to a first state switching operation on the operational control; adjusting a display position of a first operational control in the adjustable state in response to an adjustment operation on a first operational control of the at least one operational control; in the adjustable state, in response to a trigger operation on the first operation control, controlling a virtual object in the game to execute an action corresponding to the first operation control; A method for adjusting the position of an operating control, including:
2. The method for adjusting the position of the operation control includes: The method further includes displaying an adjustment window in response to the first state switching operation on the operation control, the adjustment window displaying a position adjustment control for adjusting a display position of the operation control, The step of adjusting a display position of a first operational control in response to an adjustment operation on the first operational control of the at least one operational control includes: adjusting a display position of the first operation control in response to an operation on the position adjustment control. The method of adjusting a position of an operational control according to claim 1 , comprising:
3. the position adjustment control includes a position adjustment progress bar, the position adjustment progress bar displays position mark points; The step of adjusting the display position of the first operation control in response to an operation on the position adjustment control includes: determining a position of the position mark point on the position adjustment progress bar in response to a movement operation on the position mark point; determining a margin of the first operational control relative to a boundary of the user interface based on a position of the position mark point on the position adjustment progress bar; adjusting a display position of the first operation control so that a distance between the first operation control and a boundary of the user interface is equal to the margin; The method for adjusting a position of an operational control according to claim 2 , comprising:
4. determining a margin of the first operational control relative to a boundary of the user interface based on a position of the position mark point on the position adjustment progress bar, obtaining a display size of the user interface; determining a ratio between a length of the progress bar on the right side of the position mark point and a total length of the position adjustment progress bar, with the position mark point being a division point; determining a margin of the first operational control relative to a boundary of the user interface based on the ratio and the display size; The method for adjusting a position of an operational control according to claim 3, comprising:
5. The step of adjusting a display position of a first operational control in response to an adjustment operation on the first operational control of the at least one operational control includes: acquiring attribute information of a drag operation in response to the drag operation on the first operation control; determining movement parameters of the first operational control based on the attribute information, the movement parameters including at least one of a movement direction, a movement distance, and a position to which the first operational control is moved; adjusting a display position of the first operating control based on the movement parameter; The method of adjusting a position of an operational control according to claim 1 , comprising:
6. The step of determining a movement parameter of the first operation control based on the attribute information includes: determining a moving direction of the first operation control based on a drag direction in the attribute information; and determining a moving distance of the first operation control based on a drag distance in the attribute information; or determining a position to which the first operation control is moved based on an end point position of the drag operation in the attribute information; The method for adjusting the position of an operational control according to claim 5.
7. After switching the operating control from a fixed state to an adjustable state, the method for adjusting the position of the operating control includes: obtaining an adjustable area corresponding to the first operational control; performing a step of adjusting a display position of the first operational control in the adjustable state in response to an adjustment operation on a first operational control of the at least one operational control when the first operational control is not located on an edge line of the adjustable area, or performing a step of adjusting a display position of the first operational control in the adjustable state in response to an adjustment operation on the first operational control of the at least one operational control when the first operational control is located on an edge line of the adjustable area and a position adjustment operation instructs the first operational control to move from the edge line of the adjustable area to an inside of the adjustable area; displaying presentation information in response to an adjustment operation on a first operational control of the at least one operational control in the adjustable state when the first operational control is located on an edge line of the adjustable area and the position adjustment operation instructs the first operational control to move from the edge line of the adjustable area to an outside of the adjustable area, the presentation information being used to present that the position adjustment on the first operational control has failed; The method for adjusting a position of an operating control according to claim 1 , further comprising:
8. The step of obtaining an adjustable area corresponding to the first operating control includes: obtaining a display position of the at least one operational control in the user interface, the at least one operational control including at least one other operational control and the first operational control; determining an adjustable area corresponding to the first operational control based on a display position of the at least one operational control, wherein a distance between an edge line of the adjustable area and another operational control closest to the edge line is greater than a threshold; The method for adjusting a position of an operational control according to claim 7, comprising:
9. The step of obtaining an adjustable area corresponding to the first operating control includes: obtaining a trigger area of each operational control other than the first operational control in the user interface; using an area of the user interface that does not overlap with the trigger areas of the other operational controls as an adjustable area corresponding to the first operational control; The method for adjusting a position of an operational control according to claim 7, comprising:
10. After adjusting the display position of the first operation control, the method for adjusting the position of the operation control includes: adjusting a display position of a second operation control in the user interface based on a display position of the first operation control; The method for adjusting a position of an operating control according to claim 1 , further comprising:
11. The step of adjusting a display position of a second operation control in the user interface based on the display position of the first operation control includes: adjusting a display position of the second operational control based on a display position of the first operational control and a relative position between the first operational control and the second operational control when the second operational control and the first operational control belong to the same group of operational controls; or adjusting a margin of the second operational control relative to a boundary of the user interface based on a margin of the first operational control relative to a boundary of the user interface when the second operational control and the first operational control belong to different groups of operational controls; The method for adjusting a position of an operational control according to claim 10, comprising:
12. After adjusting the display position of the first operation control, the method for adjusting the position of the operation control includes: switching the first operational control from the adjustable state to the fixed state in response to a second state-switching operation on the first operational control; sending position adjustment information to a server, the position adjustment information being used to instruct the server to record a current display position of the first operational control; The method for adjusting a position of an operating control according to claim 1 , further comprising:
13. An operating control position adjustment device, comprising: an interface display module configured to display a user interface of the game game in response to a start operation for the game game, the user interface displaying at least one operation control; a state-switching module configured to switch the operational control from a fixed state to an adjustable state in response to a first state-switching operation on the operational control; a position adjustment module configured to adjust a display position of a first operational control of the at least one operational control in the adjustable state in response to an adjustment operation on the first operational control; an object control module configured to, in the adjustable state, in response to a trigger operation on the first operation control, control a virtual object in the game to execute an action corresponding to the first operation control; An operating control position adjustment device comprising:
14. A terminal comprising a processor and a memory, A terminal, wherein the memory stores at least one segment of a program, and the processor executes the method for adjusting the position of an operating control according to any one of claims 1 to 6 by loading and executing the at least one segment of the program.
15. A computer program product for causing a computer to execute the method for adjusting the position of an operating control according to any one of claims 1 to 6.
Citation Information
Patent Citations
Control position adjusting method and device in application program, equipment and storage medium
CN112083848A
Virtual object control method, apparatus and device, and computer readable storage medium
CN112416196A
Display control program, display controller, display control system, and display control method
JP2012169911A
Operation and control method and terminal based on touch screen
JP2018518997A
Program and information processing device
JP2021000487A
