CN115738294A - Interaction control method and device and electronic equipment - Google Patents

Interaction control method and device and electronic equipment Download PDF

Info

Publication number
CN115738294A
CN115738294A CN202211288321.7A CN202211288321A CN115738294A CN 115738294 A CN115738294 A CN 115738294A CN 202211288321 A CN202211288321 A CN 202211288321A CN 115738294 A CN115738294 A CN 115738294A
Authority
CN
China
Prior art keywords
sliding operation
sliding
attribute value
attribute
adjustment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211288321.7A
Other languages
Chinese (zh)
Inventor
麦冠强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202211288321.7A priority Critical patent/CN115738294A/en
Publication of CN115738294A publication Critical patent/CN115738294A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides an interactive control method, an interactive control device and electronic equipment, wherein a first sliding operation of a slider in a slider control towards a first dimension direction is responded, and an attribute value of a specified attribute is adjusted according to the first sliding operation and a first adjustment precision; responding to a second sliding operation of the slider towards a second dimension direction, and switching the adjustment precision of the attribute value of the specified attribute from the first adjustment precision to a second adjustment precision; and adjusting the attribute value of the specified attribute according to the third sliding operation and the second adjustment precision in response to a third sliding operation which is continuous with the second sliding operation and faces the first dimension direction. In the mode, the whole process of adjusting the attribute value is realized by sliding operation, and different operations are not needed for multiple times; meanwhile, the method keeps the consistency of the adjustment process of the attribute values before and after the precision adjustment, thereby reducing the operation complexity of the adjustment of the attribute values. In addition, the slider control provided by the invention can be applied to a full platform, and the fine adjustment and control of the attribute value are realized.

Description

Interaction control method and device and electronic equipment
Technical Field
The present invention relates to the field of game interaction technologies, and in particular, to a method and an apparatus for interactive control, and an electronic device.
Background
In the game, the slider control usually gives a player a selection range from 0 to 100%, and the player can control the slide bar in the slider control to slide left and right in the transverse bar, so as to perform linear adjustment to meet the customized requirements of different players.
In the related art, in a game at a computer end or a host end, a slider control usually only comprises a slider and a transverse bar, and the slider is controlled to slide on the transverse bar through a mouse or a rocker so as to adjust attribute parameters; in the hand trip, a slider control is usually operated by fingers, and the fingers are thick and cannot be accurately adjusted like a mouse or a rocker, so that an 'add-subtract key' needs to be added on the slider control, and accurate operation is provided for finger interaction. However, as the game develops toward the full platform, the control design needs to be adapted to the mobile terminal, the computer terminal and the host terminal at the same time, and because the computer terminal and the host terminal do not have touch screens, it is difficult to operate the "add-subtract keys", so that the mobile terminal must discard the "add-subtract keys" that are accurately operated in order to adapt to the full platform, and the mobile terminal cannot finely adjust parameters.
Disclosure of Invention
The invention aims to provide an interactive control method, an interactive control device and electronic equipment so as to provide a slider control suitable for a full platform and fully utilize effective screen space.
In a first aspect, the present invention provides an interactive control method, in which a terminal device provides a graphical user interface, a slider control is displayed in the graphical user interface, the slider control includes a slider and a guide rail, and the slider control is configured to adjust an attribute value of a specified attribute; the method comprises the following steps: responding to a first sliding operation of the sliding block towards the first dimension direction, controlling the sliding block to move on the guide rail, and adjusting the attribute value of the specified attribute according to the first sliding operation and a preset first adjusting precision; responding to a second sliding operation of the slider towards a second dimension direction, and switching the adjustment precision of the attribute value of the specified attribute from the first adjustment precision to a preset second adjustment precision; and controlling the slider to move on the guide rail in response to a third sliding operation which is continuous with the second sliding operation and faces the first dimensional direction, and adjusting the attribute value of the specified attribute according to the third sliding operation and the second adjustment precision.
In a second aspect, the present invention provides an interactive control apparatus, which provides a graphical user interface through a terminal device, where a slider control is displayed in the graphical user interface, the slider control includes a slider and a guide rail, and the slider control is used to adjust an attribute value of a specified attribute; the device includes: the first adjusting module is used for responding to a first sliding operation of the sliding block towards the first dimension direction, controlling the sliding block to move on the guide rail and adjusting the attribute value of the specified attribute according to the first sliding operation and a preset first adjusting precision; the precision switching module is used for responding to second sliding operation of the sliding block towards the second dimension direction and switching the adjustment precision of the attribute value of the specified attribute from the first adjustment precision to a preset second adjustment precision; and the second adjusting module is used for responding to a third sliding operation which is continuous with the second sliding operation and faces the first dimension direction, controlling the sliding block to move on the guide rail, and adjusting the attribute value of the specified attribute according to the third sliding operation and the second adjusting precision.
In a third aspect, the present invention provides an electronic device comprising a processor and a memory, the memory storing machine executable instructions capable of being executed by the processor, the processor executing the machine executable instructions to implement the method of interaction control described above.
In a fourth aspect, the invention provides a computer-readable storage medium having stored thereon computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement the method of interaction control described above.
The embodiment of the invention brings the following beneficial effects:
the invention provides an interactive control method, an interactive control device and electronic equipment.A first sliding operation for a sliding block in a sliding bar control towards a first dimension direction is responded, the sliding block is controlled to move on a guide rail of the sliding bar control, and an attribute value of a specified attribute is adjusted according to the first sliding operation and a preset first adjustment precision; further responding to a second sliding operation aiming at the sliding block towards the second dimension direction, and switching the adjustment precision of the attribute value of the specified attribute from the first adjustment precision to a preset second adjustment precision; and then, in response to a third sliding operation which is continuous with the second sliding operation and faces the first dimensional direction, the sliding block is controlled to move on the guide rail, and the attribute value of the specified attribute is adjusted according to the third sliding operation and the second adjustment precision. In the mode, the whole process of adjusting the attribute values is realized through sliding operation, different repeated operations are not needed, and the whole operation process is coherent; meanwhile, the method keeps the same attribute value adjustment process after precision adjustment as the attribute value adjustment before precision adjustment, and realizes the attribute value adjustment through the sliding operation in the first dimension direction, thereby reducing the operation complexity of the attribute value adjustment. In addition, the method can realize fine adjustment of the slider control on the attribute value under the condition that the addition and subtraction control is not added, and ensures that the slider control is applicable to the whole platform.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention as set forth above.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of an interactive control method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for interactive control according to an embodiment of the present invention;
FIG. 3 is a flow chart of another method for interactive control according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a display of a first prompt message according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a second sliding operation according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating another second sliding operation according to the embodiment of the present invention;
fig. 7 is a schematic structural diagram of an interactive control method according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In a game, the slider control may give the player some stepless options in the control setting interface (the stepless options refer to smoothly variable, linearly adjustable options), such as volume, operation sensitivity, and the like. The options of the slider control usually give the player a selection range from 0 to 100%, and the player can control the sliding rod in the slider control to slide left and right in the transverse bar, so as to perform linear adjustment to meet the self-defining requirements of different players.
In the related art, in a computer-end or host-end game, the slider control usually only includes a slider bar and a horizontal bar. The sliding rod can be controlled to slide on the transverse strip by dragging the mouse transversely or using a mouse roller on the computer end so as to adjust the adjustable attribute parameters of the sliding strip control piece; at the host end, a joystick or directional key is typically used to control the sliding of the slider bar on the cross bar.
In the hand game, usually, game interaction is performed through fingers, that is, the attribute values of the attribute parameters can be adjusted by controlling the slider control through the fingers, but since the fingers are thick and cannot be accurately adjusted like a mouse or a rocker, an addition-subtraction key needs to be added to the slider control, so that accurate operation is provided for finger interaction. In general, the slider in the slider control in the hand-free end is used for quickly adjusting large data, and the "add-drop key" is used for accurately adjusting data. But as the game progresses towards a full platform, the design may encounter bottlenecks.
Because the computer end and the host end are not provided with touch screens, and the 'plus-minus keys' are difficult to operate, in order to enable the slider control to be simultaneously suitable for the hand game end, the computer end and the host end, the 'plus-minus keys' which are accurately operated must be abandoned at the hand game end, so that the parameters of the hand game end cannot be finely adjusted, and the game experience of players is influenced.
Based on the above problems, embodiments of the present invention provide an interactive control method and apparatus, and an electronic device, where the technology may be applied to a scene of adjusting attribute parameters at a mobile phone end, especially a scene of adjusting attribute parameters by using a slider control.
The method for interactive control in one embodiment of the present disclosure may be executed in a local terminal device or a server. When the method for interaction control is operated on the server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an optional embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud games. Taking a cloud game as an example, a cloud game refers to a game mode based on cloud computing. In the cloud game operation mode, the game program operation main body and the game picture presentation main body are separated, the storage and operation of the interactive control method are completed on the cloud game server, and the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the cloud game server which performs information processing is a cloud. When a game is played, a player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, data such as game pictures and the like are encoded and compressed, the data are returned to the client device through a network, and finally the data are decoded through the client device and the game pictures are output.
In an optional implementation manner, taking a game as an example, the local terminal device stores a game program and is used for presenting a game screen. The local terminal device is used for interacting with the player through a graphical user interface, namely, a game program is downloaded and installed and operated through the electronic device conventionally. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal or provided to the player through holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including a game screen and a processor for running the game, generating the graphical user interface, and controlling display of the graphical user interface on the display screen.
In a possible implementation manner, an embodiment of the present invention provides an interactive control method, where a terminal device provides a graphical user interface, where a slider control is displayed in the graphical user interface, the slider control includes a slider and a guide rail, and the slider control is used to adjust an attribute value of a specified attribute; as shown in fig. 1, the method comprises the following specific steps:
and S102, responding to a first sliding operation of the sliding block towards the first dimension direction, controlling the sliding block to move on the guide rail, and adjusting the attribute value of the specified attribute according to the first sliding operation and a preset first adjusting precision.
In a specific implementation, the specified attribute may refer to some parameter in the game, and the parameter may be volume, operation sensitivity, video definition, or the like; the designated attribute may also be the makeup, hair style, or dressing of the virtual character in the game, which is not specifically limited herein and may be set according to the research and development requirements or the game rules.
In a specific implementation, if the guide rail of the slider control is horizontally disposed in the graphical user interface, the first dimension direction may be a left direction starting from the slider or a right direction starting from the slider; typically, moving the slider to the left will decrease the attribute value of the specified attribute, and moving the slider to the right will increase the attribute value of the specified attribute. If the rail of the slider control is vertically positioned in the graphical user interface, the first dimension direction may be a direction starting from the slider and facing upwards, or a direction starting from the slider and facing downwards; typically, moving the slider up decreases the attribute value of the specified attribute, and moving the slider down increases the attribute value of the specified attribute.
In practical applications, the attribute value variation of the attribute value of the specified attribute may be determined according to the first adjustment accuracy, the sliding distance and the sliding direction of the first sliding operation. In general, the first adjustment precision is used to indicate the magnitude of the attribute value variation corresponding to the unit sliding distance; generally, the longer the sliding distance, the larger the attribute value change amount of the attribute value of the specified attribute; the attribute value change amount is a negative value if the sliding direction of the first sliding operation is opposite to the increasing direction of the attribute value of the specified attribute, and is a positive value if the sliding direction of the first sliding operation is the same as the increasing direction of the attribute value of the specified attribute.
And step S104, responding to a second sliding operation of the sliding block towards the second dimension direction, and switching the adjustment precision of the attribute value of the specified attribute from the first adjustment precision to a preset second adjustment precision.
The first adjustment precision and the second adjustment precision are different adjustment precisions, and in the embodiment of the invention, the second adjustment precision is greater than the first adjustment precision, that is, the adjustment fineness of the second adjustment precision is higher, and the adjustment fineness of the first adjustment precision is lower. For example, the second adjustment accuracy is such that the amount of change in the attribute value per adjustment is changed by only a unit value or by a small number of values, and the like, and the second adjustment accuracy is such that the amount of change in the attribute value per adjustment is changed by a large number of values.
The second dimension direction is different from the first dimension direction, and usually the first dimension direction is in the same direction as the placing direction of the guide rail, and the second dimension direction is perpendicular to the placing direction of the guide rail. For example, the rail of the slider control is horizontally positioned in the graphical user interface, then the first dimension direction is a direction starting from the slider and facing left, or a direction starting from the slider and facing right; the second dimension direction is a direction which takes the slide block as a starting point and faces upwards, or a direction which takes the slide block as a starting point and faces downwards. In specific implementation, when the user controls the slider to slide towards the second dimension direction, the adjustment precision of the attribute value of the specified attribute is switched from the first adjustment precision to the second adjustment precision, that is, the mode of finely adjusting the attribute value is entered.
And step S106, responding to a third sliding operation which is continuous with the second sliding operation and faces to the first dimension direction, controlling the sliding block to move on the guide rail, and adjusting the attribute value of the designated attribute according to the third sliding operation and the second adjusting precision.
The third sliding operation in the first dimension direction, which is continuous with the second sliding operation, corresponds to an operation of continuing the sliding of the slider in the first dimension direction without the finger leaving the screen after the second sliding operation is stopped on the screen. At this time, the attribute value of the specified attribute may be adjusted with the second adjustment accuracy, and specifically, the attribute value variation of the specified attribute may be determined according to the second adjustment accuracy, the sliding direction of the third sliding operation, and the sliding distance, and then the current attribute value of the specified attribute may be added to the attribute value variation to obtain the final attribute value of the specified attribute. In general, the longer the sliding distance, the greater the attribute value change amount of the attribute value of the specified attribute; if the sliding direction of the third sliding operation is opposite to the increasing direction of the attribute value of the specified attribute, the attribute value variation is a negative value, and if the sliding direction of the third sliding operation is the same as the increasing direction of the attribute value of the specified attribute, the attribute value variation is a positive value.
The interactive control method provided by the embodiment of the invention comprises the steps of firstly responding to a first sliding operation of a sliding block in a sliding bar control towards a first dimension direction, controlling the sliding block to move on a guide rail of the sliding bar control, and adjusting an attribute value of a specified attribute according to the first sliding operation and a preset first adjustment precision; further responding to a second sliding operation aiming at the sliding block towards the second dimension direction, and switching the adjustment precision of the attribute value of the specified attribute from the first adjustment precision to a preset second adjustment precision; and then, in response to a third sliding operation which is continuous with the second sliding operation and faces the first dimension direction, the sliding block is controlled to move on the guide rail, and the attribute value of the specified attribute is adjusted according to the third sliding operation and the second adjustment precision. In the mode, the whole process of adjusting the attribute values is realized through sliding operation, different operations are not needed for multiple times, and the whole operation process is coherent; meanwhile, the method keeps the same attribute value adjustment process after precision adjustment as the attribute value adjustment before precision adjustment, and realizes the attribute value adjustment through the sliding operation in the first dimension direction, thereby reducing the operation complexity of the attribute value adjustment. In addition, the method can realize fine adjustment of the slider control on the attribute value without adding an add-subtract control, and ensures that the slider control is applicable to the whole platform.
Another interactive control method is provided in the embodiments of the present invention, which is implemented on the basis of the above embodiments, and the method mainly describes a specific process (implemented by steps S202 to S204 described below) of controlling the slider to move on the guide rail in response to a first sliding operation of the slider in the first dimension direction, and adjusting the attribute value of the specified attribute according to the first sliding operation and a preset first adjustment precision, and a specific process (implemented by steps S208 to S210 described below) of controlling the slider to move on the guide rail in response to a third sliding operation which is continuous with the second sliding operation and is in the first dimension direction, and adjusting the attribute value of the specified attribute according to the third sliding operation and the second adjustment precision; as shown in fig. 2, the method comprises the following specific steps:
and S202, responding to a first sliding operation of the sliding block towards the first dimension direction, controlling the sliding block to move on the guide rail, and determining a first attribute value variation of the specified attribute according to the first sliding operation and the first adjusting precision.
In specific implementation, the first adjustment precision is used for indicating the ratio of the unit distance of the sliding to the variation of the attribute value of the specified attribute; the specific value corresponding to the ratio can be set according to research and development requirements. For example, if the ratio of the unit distance slid to the amount of change in the attribute value of the specified attribute is 5, then when the rail is horizontally positioned on the graphical user interface, the slider would slide the unit distance to the left, which would decrease the attribute value of the specified attribute by 5, and the slider would slide the unit distance to the right, which would increase the attribute value of the specified attribute by 5. Specifically, the step S202 can be implemented by the following steps 10 to 11:
a first distance between a start position and an end position of the first sliding operation is determined, step 10.
In a specific implementation, it is necessary to calculate the start-stop position and the end position of the first sliding operation, and determine the distance between the start-stop position and the end position as the first distance.
And 11, determining the first attribute value variation of the specified attribute based on the first distance and the first adjustment precision.
The first distance may generally be multiplied by the ratio of the first indication of adjustment accuracy to obtain a multiplication result; and then determining whether the attribute value variation is a positive value or a negative value according to the sliding direction of the first sliding operation. If the sliding direction of the first sliding operation is the same as the increasing direction of the attribute value of the specified attribute, determining the multiplication result as the attribute value variation of the specified attribute; the direction of the sliding of the first sliding operation is opposite to the direction of increase of the attribute value of the specified attribute, and the negative value of the multiplication result is determined as the attribute value variation amount of the specified attribute.
It should be noted that: at least one slider control is usually displayed in the graphical user interface, the adjusted attributes of each slider control are different, and a player can perform touch operation on any one slider control according to the own requirements.
In step S204, the current attribute value of the specified attribute is adjusted based on the first attribute value change amount.
During specific implementation, the first attribute value variation is added to the current attribute value of the designated attribute, so that the current attribute value of the adjusted designated attribute can be obtained.
In step S206, the adjustment accuracy of the attribute value of the specified attribute is switched from the first adjustment accuracy to the second adjustment accuracy in response to the second slide operation for the slider in the second dimension direction.
In specific implementation, in response to a second sliding operation of the slider towards a second dimension direction, the display mode of the slider is controlled to change according to a first preset rule, and/or the display mode of the guide rail is controlled to change according to a second preset rule. The method can prompt a player that the adjustment precision of the current slider control changes through the change of the display mode of the slider control, and the player enters a fine adjustment mode.
Specifically, the first preset rule and the second preset rule may be set according to research and development requirements, for example, the first preset rule includes: enlarging the size of the slider, and/or changing the color of the slider into a first color; the second preset rule comprises: the width of the guide rail is increased; and/or changing the display color of the rail to a second color. The first color and the second color may be the same or different, and the first color and the second color may be any color different from the color displayed before.
And S208, responding to a third sliding operation which is continuous with the second sliding operation and is in the first dimension direction, controlling the sliding block to move on the guide rail, and determining a second attribute value variation of the specified attribute according to the third sliding operation and the second adjustment precision.
When the specific implementation is realized, the second adjustment precision is used for indicating the ratio of the unit distance of the sliding to the attribute value variation of the specified attribute; the specific value corresponding to the ratio can be set according to research and development requirements. For example, if the ratio of the unit distance of sliding to the variation of the attribute value of the specified attribute is 1, then when the rail is horizontally placed on the graphical user interface, the slider slides the unit distance to the left, which may decrease the attribute value of the specified attribute by 1, and slides the unit distance to the right, which may increase the attribute value of the specified attribute by 1. Specifically, the step S208 can be implemented by the following steps 20 to 21:
a second distance between the start position and the end position of the third sliding operation is determined, step 20.
In a specific implementation, it is necessary to calculate the start-stop position and the end position of the third sliding operation, and determine the distance between the start-stop position and the end position as the second distance.
And step 21, determining a second attribute value variation of the specified attribute based on the second distance and the second adjustment precision.
The second distance may generally be multiplied by the ratio of the second indication of adjustment accuracy to obtain a multiplication result; and then determining whether the attribute value variation is a positive value or a negative value according to the sliding direction of the third sliding operation. If the sliding direction of the third sliding operation is the same as the increasing direction of the attribute value of the specified attribute, determining the multiplication result as the attribute value variation of the specified attribute; the third sliding operation has a sliding direction opposite to the increasing direction of the attribute value of the specified attribute, and determines the negative value of the multiplication result as the attribute value variation amount of the specified attribute.
In an alternative embodiment, the second adjustment accuracy may be further used to indicate: and the change amount of the attribute value corresponding to each pause of the third sliding operation in the operation process is a unit value, wherein the third sliding operation pauses at least once in the operation process. The unit value here means 1 or-1, and the positive or negative of the unit value is related to the sliding direction of the third sliding operation, and in general, the sliding direction of the third sliding operation is the same as the increasing direction of the attribute value of the specified attribute, and then the unit value is a positive value. Specifically, the greater the number of pauses experienced during the swipe from the third swipe operation, the greater the amount of change in the attribute value of the specified attribute, and the same number of pauses as the number of unit values included in the amount of change in the attribute value. Based on this, the above step S208 can also be realized by the following steps 30 to 31:
and step 30, determining the number of times of pause of the third sliding operation in the operation process.
In a specific implementation, if there is no pause in the process from the beginning to the end of the third sliding operation, and only pause at the end of the third sliding operation, the third sliding operation is considered to include one pause, that is, no matter how far the sliding distance of the third sliding operation is, the third sliding operation is one sliding. Specifically, when the third sliding operation pauses in the graphical user interface, the player's finger does not leave the screen at all times.
And step 31, determining a second attribute value variation of the specified attribute according to the pause times and the second adjustment precision value.
In a specific implementation, the product of the number of pauses and the unit value corresponding to the second adjustment precision may be determined as the second attribute value variation of the specified attribute.
In step S210, the current attribute value of the specified attribute is adjusted based on the second attribute value change amount.
And during specific implementation, adding the second attribute value variable quantity to the current attribute value of the specified attribute to obtain the current attribute value after the specified attribute is adjusted.
Compared with the traditional 'add-subtract key', the method has the advantages that because the finger is always in the middle of sliding, the player can freely switch between the first adjustment precision and the second adjustment precision up and down, and the current sliding operation is not required to be abandoned and the finger is lifted to click the 'add-subtract key' when the precise sliding is carried out like the past. Meanwhile, the 'add-subtract key' is abandoned, and the 'add-subtract key' can be cut off under the adaptation of the whole platform, so that the uniformity of the interface is ensured.
The embodiment of the invention also provides another interactive control method, which is realized on the basis of the embodiment; as shown in fig. 3, the method comprises the following specific steps:
step S302, responding to a first sliding operation aiming at the sliding block towards a first dimension direction, controlling the sliding block to move on the guide rail, and displaying first prompt information through a graphical user interface; the first prompt message is used for prompting sliding towards the second dimension direction to carry out switching of the adjustment precision.
In a specific implementation, the display position of the first prompt message in the graphical user interface may be set according to research and development requirements, for example, the left side or the right side of the contact position of the first sliding operation may be set, and the display position may also be set at a fixed position in the graphical user interface (e.g., the uppermost portion of the graphical user interface).
In practical applications, the specific process of step S302 may further include: and responding to a first sliding operation of the slider towards the first dimension direction, determining a position coordinate corresponding to an operation position of the first sliding operation in the graphical user interface, and displaying first prompt information at a specified position except the position coordinate. By the method, the display position of the first prompt message can be kept away from the touch position of the fingers of the player, so that the fingers are prevented from shielding the first prompt message.
Fig. 4 is a schematic diagram illustrating display of first prompt information according to an embodiment of the present invention, where fig. 4 includes 6 slider controls, a circle in each slider control may be represented as a slider, and a strip below the slider is a guide rail. The guide rail in fig. 4 is horizontally disposed in the gui, and the first dimension direction is a left or right direction with the slider as a starting point; the second dimension direction is an upward or downward direction with the slider as a starting point. When a player slides towards the first dimension direction aiming at the sliding block of the first sliding bar control, first prompt information is displayed on the left side of the finger position of the player, upward and downward arrows in fig. 4 are the first prompt information, and the first prompt information is used for prompting that the sliding can be switched to the adjustment precision when the sliding bar slides downwards or slides downwards.
And step S304, adjusting the attribute value of the specified attribute according to the first sliding operation and the first adjustment precision.
The specific implementation manner of step S304 can refer to the above embodiments, which are not described herein.
Step S306, responding to a second sliding operation aiming at the slide block towards the second dimension direction, switching the adjustment precision of the attribute value of the specified attribute from the first adjustment precision to the second adjustment precision, and displaying second prompt information through a graphical user interface; the second prompt message is used for prompting sliding towards the reverse direction of the second sliding operation to recover the first adjustment precision.
The display position of the second prompt message in the graphical user interface may be set according to research and development requirements, for example, the second prompt message is displayed above or below the graphical user interface, or the second prompt message is displayed above or below the slider control, and the like. In a specific implementation, the second dimension direction includes a direction that starts from the slider and faces upward, or a direction that starts from the slider and faces downward. Then the above step S306 can be implemented by the following two ways:
in a first mode, in response to a second sliding operation which takes the sliding block as a starting point and is in a downward direction, the adjustment precision of the attribute value of the specified attribute is switched from the first adjustment precision to the second adjustment precision, and second prompt information is displayed in a graphical user interface; the second prompt message is used for indicating that: slide up to restore the default adjustment accuracy. The default degree of adjustment may be a first degree of adjustment.
Fig. 5 is a schematic diagram of a second sliding operation according to an embodiment of the present invention, in which when a finger of a player slides in a downward direction with a slider as a starting point, a fine adjustment mode is triggered, that is, the adjustment precision of the attribute value of the specified attribute is switched from the first adjustment precision to the second adjustment precision, so as to help the player perform a small number of precise sliding operations when sliding left and right. In fig. 5, a second prompt message of "± 1 left-right slide, upward slide to restore default" is also displayed above the first slider control, where the default is the first adjustment precision.
In a second mode, in response to a second sliding operation which takes the sliding block as a starting point and is in an upward direction, the adjustment precision of the attribute value of the specified attribute is switched from the first adjustment precision to a second adjustment precision, and second prompt information is displayed in the graphical user interface; the second prompt message is used for indicating that: slide down to restore the default adjustment accuracy.
Fig. 6 is a schematic diagram of another second sliding operation provided by the embodiment of the invention, when the finger of the player slides in an upward direction with the slider as a starting point, a fine adjustment mode is triggered, that is, the adjustment precision of the attribute value of the specified attribute is switched from the first adjustment precision to the second adjustment precision, so as to help the player perform a small number of precise sliding operations when sliding left and right. In fig. 6, a second prompt message of "± 1 left-right sliding, and a default of sliding back down" is also displayed below the slider control, where the default is the above-mentioned first adjustment precision. In fig. 6, the slider of the slider control is difficult to slide downward when the slider control triggered by the player is relatively downward, so that the adjustment precision of the specified attribute can be changed by sliding upward, and the player can operate the apparatus conveniently.
And step S308, responding to a third sliding operation which is continuous with the second sliding operation and faces to the first dimension direction, controlling the sliding block to move on the guide rail, and adjusting the attribute value of the specified attribute according to the third sliding operation and the second adjusting precision.
In step S310, in response to a fourth sliding operation for the slider in the opposite direction to the second sliding operation, the adjustment accuracy of the attribute value of the specified attribute is switched from the second adjustment accuracy to the first adjustment accuracy.
According to the interactive control method, after the sliding block slides towards the designated direction, the adjustment precision of the attribute value of the designated attribute can be switched from the lower first adjustment precision to the higher second adjustment precision, so that the fine adjustment of the attribute value by the slider control is realized under the condition that the addition and subtraction control is not added, and the applicability of the slider control in a full platform is ensured. In addition, the mode not only enables the slider control to be adaptive to the full platform, but also can realize the accurate adjustment of the specified attribute by the hand-trip end on the premise of removing the 'plus-minus key', and can fully utilize the effective screen space.
Corresponding to the above method embodiment, an embodiment of the present invention further provides an interactive control apparatus, where a graphical user interface is provided through a terminal device, where a slider control is displayed in the graphical user interface, the slider control includes a slider and a guide rail, and the slider control is used to adjust an attribute value of an assigned attribute; as shown in fig. 7, the apparatus includes:
and the first adjusting module 70 is used for responding to a first sliding operation of the slide block towards the first dimension direction, controlling the slide block to move on the guide rail, and adjusting the attribute value of the specified attribute according to the first sliding operation and a preset first adjusting precision.
And the precision switching module 71 is configured to switch the adjustment precision of the attribute value of the specified attribute from the first adjustment precision to a preset second adjustment precision in response to a second sliding operation for the slider in the second dimension direction.
And a second adjusting module 72, configured to control the slider to move on the guide rail in response to a third sliding operation that is continuous with the second sliding operation and is directed toward the first dimension direction, and adjust the attribute value of the specified attribute according to the third sliding operation and the second adjusting accuracy.
The interactive control device firstly responds to a first sliding operation of a sliding block in a sliding bar control towards a first dimension direction, controls the sliding block to move on a guide rail of the sliding bar control, and adjusts the attribute value of the specified attribute according to the first sliding operation and a preset first adjusting precision; further responding to a second sliding operation aiming at the sliding block towards the second dimension direction, and switching the adjustment precision of the attribute value of the specified attribute from the first adjustment precision to a preset second adjustment precision; and then, in response to a third sliding operation which is continuous with the second sliding operation and faces the first dimensional direction, the sliding block is controlled to move on the guide rail, and the attribute value of the specified attribute is adjusted according to the third sliding operation and the second adjustment precision. In the mode, the whole process of adjusting the attribute values is realized through sliding operation, different repeated operations are not needed, and the whole operation process is coherent; meanwhile, the method keeps the same attribute value adjustment process after precision adjustment as the attribute value adjustment before precision adjustment, and realizes the attribute value adjustment through the sliding operation in the first dimension direction, thereby reducing the operation complexity of the attribute value adjustment. In addition, the method can realize fine adjustment of the slider control on the attribute value under the condition that the addition and subtraction control is not added, and ensures that the slider control is applicable to the whole platform.
Specifically, the device further includes a first prompt display module, configured to: responding to a first sliding operation of the sliding block towards the first dimension direction, and displaying first prompt information through a graphical user interface; the first prompt message is used for prompting the sliding towards the second dimension direction to carry out the switching of the adjustment precision.
Further, the first prompt display module is configured to: and responding to a first sliding operation of the sliding block towards the first dimension direction, determining a position coordinate corresponding to an operation position of the first sliding operation in the graphical user interface, and displaying first prompt information at a specified position except the position coordinate.
In a specific implementation, the device further includes a second prompt display module, configured to: responding to a second sliding operation aiming at the slider towards a second dimension direction, and displaying second prompt information through the graphical user interface; the second prompting message is used for prompting sliding towards the reverse direction of the second sliding operation to restore the default adjustment precision.
In practical applications, the default adjustment precision includes a first adjustment precision; the device further comprises a precision adjusting module used for: after the second prompt information is displayed through the graphical user interface in response to the second sliding operation of the slider in the second dimension direction, the adjustment accuracy of the attribute value of the specified attribute is switched from the second adjustment accuracy to the first adjustment accuracy in response to a fourth sliding operation of the slider in the opposite direction of the second sliding operation.
In a specific implementation, the second dimension direction includes: the direction is upward with the slide block as a starting point, or downward with the slide block as a starting point.
Further, the first adjusting module 70 is configured to: responding to a first sliding operation of the sliding block towards the first dimension direction, controlling the sliding block to move on the guide rail, and determining a first attribute value variation of the specified attribute according to the first sliding operation and the first adjustment precision; the current attribute value of the specified attribute is adjusted based on the first attribute value variation.
Specifically, the first adjustment precision is used to indicate a ratio between a unit distance of the sliding and an attribute value variation of the specified attribute; the first adjusting module 70 is further configured to: determining a first distance between a start position and an end position of the first sliding operation; based on the first distance and the first adjustment precision, a first attribute value variation of the specified attribute is determined.
Further, the second adjusting module 72 is configured to: in response to a third sliding operation which is continuous with the second sliding operation and faces the first dimension direction, controlling the sliding block to move on the guide rail, and determining a second attribute value variation of the specified attribute according to the third sliding operation and the second adjustment precision; and adjusting the current attribute value of the specified attribute based on the second attribute value change amount.
In a specific implementation, the second adjustment precision is used to indicate a ratio between a unit distance of the sliding and an attribute value variation of the specified attribute; wherein the second adjustment precision is greater than the second adjustment precision; the second adjusting module 72 is further configured to: determining a second distance between the start position and the end position of the third sliding operation; and determining a second attribute value variation of the specified attribute based on the second distance and the second adjustment precision.
In an alternative embodiment, the second adjustment accuracy is further used to indicate: the variable quantity of the attribute value corresponding to each pause of the third sliding operation in the operation process is a unit value; wherein the third sliding operation is stopped at least once during the operation; the second adjusting module 72 is further configured to: determining the pause times of the third sliding operation in the operation process; and determining the variable quantity of the second attribute value of the designated attribute according to the pause times and the second adjustment precision value.
Further, the apparatus further comprises a display adjustment module, configured to: and responding to a second sliding operation aiming at the slide block towards the second dimension direction, and controlling the display mode of the slide block to change according to a first preset rule and/or the display mode of the guide rail to change according to a second preset rule.
In a specific implementation, the first preset rule includes: enlarging the size of the slider, and/or changing the color of the slider to a first color; the second preset rule includes: the width of the guide rail is increased; and/or changing the display color of the rail to a second color.
The implementation principle and the generated technical effect of the interactive control device provided by the embodiment of the present invention are the same as those of the foregoing method embodiment, and for the sake of brief description, no mention is made in the embodiment of the device, and reference may be made to the corresponding contents in the foregoing method embodiment.
An embodiment of the present invention further provides an electronic device, as shown in fig. 8, where the electronic device includes a processor and a memory, where the memory stores machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the method for controlling interaction.
Specifically, a graphical user interface is provided through a terminal device, a slider control is displayed in the graphical user interface and comprises a slider and a guide rail, and the slider control is used for adjusting attribute values of specified attributes; the method comprises the following steps: responding to a first sliding operation of the sliding block towards a first dimension direction, controlling the sliding block to move on the guide rail, and adjusting the attribute value of the specified attribute according to the first sliding operation and a preset first adjustment precision; responding to a second sliding operation of the slider towards a second dimension direction, and switching the adjustment precision of the attribute value of the specified attribute from the first adjustment precision to a preset second adjustment precision; and controlling the slider to move on the guide rail in response to a third sliding operation which is continuous with the second sliding operation and faces the first dimensional direction, and adjusting the attribute value of the specified attribute according to the third sliding operation and the second adjustment precision.
In the interactive control method, the whole process of adjusting the attribute value is realized by sliding operation, different repeated operations are not needed, and the whole operation process is coherent; meanwhile, the method keeps the same attribute value adjustment process after precision adjustment as the attribute value adjustment before precision adjustment, and realizes the attribute value adjustment through the sliding operation in the first dimension direction, thereby reducing the operation complexity of the attribute value adjustment. In addition, the method can realize fine adjustment of the slider control on the attribute value under the condition that the addition and subtraction control is not added, and ensures that the slider control is applicable to the whole platform.
In an optional embodiment, the method further comprises: responding to a first sliding operation of the sliding block towards the first dimension direction, and displaying first prompt information through a graphical user interface; the first prompt message is used for prompting sliding towards the second dimension direction to carry out switching of the adjustment precision.
In an optional embodiment, the step of displaying, through the graphical user interface, the first prompt information in response to the first sliding operation of the slider in the first dimension direction includes: and responding to a first sliding operation of the sliding block towards the first dimension direction, determining a position coordinate corresponding to an operation position of the first sliding operation in the graphical user interface, and displaying first prompt information at a specified position except the position coordinate.
In an optional embodiment, the method further comprises: responding to a second sliding operation aiming at the slider towards a second dimension direction, and displaying second prompt information through the graphical user interface; the second prompting message is used for prompting sliding towards the reverse direction of the second sliding operation to restore the default adjustment precision.
In an alternative embodiment, the default adjustment accuracy includes the first adjustment accuracy; after the step of displaying the second prompt message through the graphical user interface in response to the second sliding operation of the slider in the second dimension direction, the method further includes: in response to a fourth sliding operation for the slider in a direction opposite to the second sliding operation, the adjustment accuracy of the attribute value of the specified attribute is switched from the second adjustment accuracy to the first adjustment accuracy.
In an alternative embodiment, the second dimension direction includes: the direction is upward with the slide block as a starting point, or downward with the slide block as a starting point.
In an optional embodiment, the step of controlling the slider to move on the guide rail in response to the first sliding operation of the slider in the first dimension direction, and adjusting the attribute value of the specified attribute according to the first sliding operation and a preset first adjustment precision includes: responding to a first sliding operation of the sliding block towards the first dimension direction, controlling the sliding block to move on the guide rail, and determining a first attribute value variation of the specified attribute according to the first sliding operation and the first adjustment precision; the current attribute value of the specified attribute is adjusted based on the first attribute value variation.
In an alternative embodiment, the first adjustment accuracy is used to indicate a ratio between a unit distance of the sliding and a variation of the attribute value of the specified attribute; the step of determining the variation of the first attribute value of the specified attribute based on the first sliding operation and the first adjustment accuracy includes: determining a first distance between a start position and an end position of the first sliding operation; based on the first distance and the first adjustment precision, a first attribute value variation of the specified attribute is determined.
In an alternative embodiment, the step of controlling the slider to move on the guide rail in response to a third sliding operation which is continuous with the second sliding operation and is directed to the first dimension direction, and adjusting the attribute value of the specified attribute according to the third sliding operation and the second adjustment accuracy includes: responding to a third sliding operation which is continuous with the second sliding operation and faces the first dimensional direction, controlling the sliding block to move on the guide rail, and determining a second attribute value variation of the designated attribute according to the third sliding operation and the second adjustment precision; and adjusting the current attribute value of the specified attribute based on the second attribute value change amount.
In an alternative embodiment, the second adjustment accuracy is used to indicate a ratio between a unit distance of the sliding and a variation of the attribute value of the specified attribute; wherein the second adjustment precision is greater than the second adjustment precision; the step of determining the variation of the second attribute value of the specified attribute according to the third sliding operation and the second adjustment accuracy includes: determining a second distance between the start position and the end position of the third sliding operation; and determining a second attribute value variation of the specified attribute based on the second distance and the second adjustment precision.
In an alternative embodiment, the second adjustment accuracy is used to indicate: the variable quantity of the attribute value corresponding to each pause of the third sliding operation in the operation process is a unit value; wherein the third sliding operation is stopped at least once during the operation; the step of determining the variation of the second attribute value of the specified attribute according to the third sliding operation and the second adjustment accuracy includes: determining the pause times of the third sliding operation in the operation process; and determining the variable quantity of the second attribute value of the designated attribute according to the pause times and the second adjustment precision value.
In an optional embodiment, the method further comprises: and responding to a second sliding operation aiming at the slide block towards the second dimension direction, and controlling the display mode of the slide block to change according to a first preset rule and/or the display mode of the guide rail to change according to a second preset rule.
In an optional embodiment, the first preset rule includes: enlarging the size of the slider, and/or changing the color of the slider to a first color; the second preset rule includes: the width of the guide rail is increased; and/or changing the display color of the rail to a second color.
Further, the electronic device shown in fig. 8 further includes a bus 102 and a communication interface 103, and the processor 101, the communication interface 103, and the memory 100 are connected through the bus 102.
The memory 100 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like may be used. The bus 102 may be an ISA bus, a PCI bus, an EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 8, but that does not indicate only one bus or one type of bus.
The processor 101 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 101. The processor 101 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in ram, flash, rom, prom, or eprom, registers, etc. as is well known in the art. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100, and completes the steps of the method of the foregoing embodiment in combination with the hardware thereof.
The embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the above-mentioned method for controlling interaction.
Specifically, a graphical user interface is provided through a terminal device, a slider control is displayed in the graphical user interface and comprises a slider and a guide rail, and the slider control is used for adjusting attribute values of specified attributes; the method comprises the following steps: responding to a first sliding operation of the sliding block towards the first dimension direction, controlling the sliding block to move on the guide rail, and adjusting the attribute value of the specified attribute according to the first sliding operation and a preset first adjusting precision; responding to a second sliding operation aiming at the sliding block towards the second dimension direction, and switching the adjustment precision of the attribute value of the specified attribute from the first adjustment precision to a preset second adjustment precision; and controlling the slider to move on the guide rail in response to a third sliding operation which is continuous with the second sliding operation and faces the first dimensional direction, and adjusting the attribute value of the specified attribute according to the third sliding operation and the second adjustment precision.
In the interactive control method, the whole process of adjusting the attribute value is realized by sliding operation, different repeated operations are not needed, and the whole operation process is coherent; meanwhile, the method keeps the same attribute value adjustment process after precision adjustment as the attribute value adjustment before precision adjustment, and realizes the attribute value adjustment through the sliding operation in the first dimension direction, thereby reducing the operation complexity of the attribute value adjustment. In addition, the method can realize fine adjustment of the slider control on the attribute value under the condition that the addition and subtraction control is not added, and ensures that the slider control is applicable to the whole platform.
In an alternative embodiment, the method further comprises: responding to a first sliding operation of the sliding block towards the first dimension direction, and displaying first prompt information through a graphical user interface; the first prompt message is used for prompting the sliding towards the second dimension direction to carry out the switching of the adjustment precision.
In an optional embodiment, the step of displaying, through the graphical user interface, the first prompt information in response to the first sliding operation of the slider in the first dimension direction includes: and responding to a first sliding operation of the slider towards the first dimension direction, determining a position coordinate corresponding to an operation position of the first sliding operation in the graphical user interface, and displaying first prompt information at a specified position except the position coordinate.
In an optional embodiment, the method further comprises: responding to a second sliding operation of the sliding block towards a second dimension direction, and displaying second prompt information through the graphical user interface; the second prompting message is used for prompting sliding towards the reverse direction of the second sliding operation to restore the default adjustment precision.
In an alternative embodiment, the default adjustment accuracy includes the first adjustment accuracy; after the step of displaying the second prompt information through the graphical user interface in response to the second sliding operation of the slider in the second dimension direction, the method further includes: in response to a fourth sliding operation for the slider in a direction opposite to the second sliding operation, the adjustment accuracy of the attribute value of the specified attribute is switched from the second adjustment accuracy to the first adjustment accuracy.
In an alternative embodiment, the second dimension direction includes: the direction is upward with the slide block as a starting point, or downward with the slide block as a starting point.
In an optional embodiment, the step of controlling the slider to move on the guide rail in response to the first sliding operation of the slider in the first dimension direction, and adjusting the attribute value of the specified attribute according to the first sliding operation and a preset first adjustment accuracy includes: responding to a first sliding operation of the sliding block towards the first dimension direction, controlling the sliding block to move on the guide rail, and determining a first attribute value variation of the specified attribute according to the first sliding operation and the first adjustment precision; the current attribute value of the specified attribute is adjusted based on the first attribute value variation.
In an alternative embodiment, the first adjustment accuracy is used to indicate a ratio between a unit distance of the sliding and a variation of the attribute value of the specified attribute; the step of determining the variation of the first attribute value of the specified attribute according to the first sliding operation and the first adjustment accuracy includes: determining a first distance between a start position and an end position of the first sliding operation; based on the first distance and the first adjustment precision, a first attribute value variation of the specified attribute is determined.
In an alternative embodiment, the step of controlling the slider to move on the guide rail in response to a third sliding operation which is continuous with the second sliding operation and is directed to the first dimension direction, and adjusting the attribute value of the specified attribute according to the third sliding operation and the second adjustment accuracy includes: responding to a third sliding operation which is continuous with the second sliding operation and faces the first dimensional direction, controlling the sliding block to move on the guide rail, and determining a second attribute value variation of the designated attribute according to the third sliding operation and the second adjustment precision; and adjusting the current attribute value of the specified attribute based on the second attribute value change amount.
In an alternative embodiment, the second adjustment accuracy is used to indicate a ratio between a unit distance of the sliding and a variation of the attribute value of the specified attribute; wherein the second adjustment precision is greater than the second adjustment precision; the step of determining the variation of the second attribute value of the specified attribute according to the third sliding operation and the second adjustment accuracy includes: determining a second distance between the start position and the end position of the third sliding operation; and determining a second attribute value variation of the specified attribute based on the second distance and the second adjustment precision.
In an alternative embodiment, the second adjustment accuracy is used to indicate: the variable quantity of the attribute value corresponding to each pause of the third sliding operation in the operation process is a unit value; wherein the third sliding operation is halted at least once during the operation; the step of determining the variation of the second attribute value of the specified attribute according to the third sliding operation and the second adjustment accuracy includes: determining the number of times of pause of the third sliding operation in the operation process; and determining the variable quantity of the second attribute value of the designated attribute according to the pause times and the second adjustment precision value.
In an optional embodiment, the method further comprises: and responding to a second sliding operation aiming at the slide block towards the second dimension direction, and controlling the display mode of the slide block to change according to a first preset rule and/or the display mode of the guide rail to change according to a second preset rule.
In an optional embodiment, the first preset rule includes: enlarging the size of the slider, and/or changing the color of the slider to a first color; the second preset rule includes: the width of the guide rail is increased; and/or changing the display color of the rail to a second color.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal device, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (16)

1. The interactive control method is characterized in that a graphical user interface is provided through terminal equipment, a sliding bar control is displayed in the graphical user interface and comprises a sliding block and a guide rail, and the sliding bar control is used for adjusting the attribute value of a specified attribute; the method comprises the following steps:
responding to a first sliding operation of the sliding block towards a first dimension direction, controlling the sliding block to move on the guide rail, and adjusting the attribute value of the specified attribute according to the first sliding operation and a preset first adjustment precision;
responding to a second sliding operation of the sliding block towards a second dimension direction, and switching the adjustment precision of the attribute value of the specified attribute from the first adjustment precision to a preset second adjustment precision;
and responding to a third sliding operation which is continuous with the second sliding operation and faces the first dimensional direction, controlling the sliding block to move on the guide rail, and adjusting the attribute value of the specified attribute according to the third sliding operation and the second adjustment precision.
2. The method of claim 1, further comprising:
responding to a first sliding operation of the sliding block towards a first dimension direction, and displaying first prompt information through the graphical user interface; the first prompt information is used for prompting sliding towards the second dimension direction so as to switch the adjustment precision.
3. The method of claim 2, wherein the step of displaying a first prompt message through the graphical user interface in response to the first sliding operation of the slider in the first dimension direction comprises:
responding to a first sliding operation of the slider towards a first dimension direction, determining a position coordinate corresponding to an operation position of the first sliding operation in the graphical user interface, and displaying the first prompt information at a specified position except the position coordinate.
4. The method of claim 1, further comprising:
responding to a second sliding operation aiming at the slider towards a second dimension direction, and displaying second prompt information through the graphical user interface; the second prompt message is used for prompting sliding in the direction opposite to the second sliding operation to recover the default adjustment precision.
5. The method of claim 4, wherein the default adjustment accuracy comprises the first adjustment accuracy;
after the step of displaying a second prompt message through the graphical user interface in response to a second sliding operation of the slider in a second dimension direction, the method further includes:
switching the adjustment accuracy of the attribute value of the specified attribute from the second adjustment accuracy to the first adjustment accuracy in response to a fourth sliding operation for the slider in a direction opposite to the second sliding operation.
6. The method of any of claims 1-5, wherein the second dimension direction comprises: the direction taking the sliding block as a starting point and facing upwards or the direction taking the sliding block as a starting point and facing downwards.
7. The method according to claim 1, wherein the step of controlling the slider to move on the guide rail in response to a first sliding operation of the slider in a first dimension direction, and adjusting the property value of the specified property according to the first sliding operation and a preset first adjustment precision comprises:
responding to a first sliding operation of the sliding block towards a first dimension direction, controlling the sliding block to move on the guide rail, and determining a first attribute value variation of the specified attribute according to the first sliding operation and the first adjusting precision;
and adjusting the current attribute value of the specified attribute based on the first attribute value change amount.
8. The method according to claim 7, wherein the first adjustment precision is used to indicate a ratio between a unit distance of sliding and an attribute value variation of the specified attribute;
the step of determining the variation of the first attribute value of the specified attribute according to the first sliding operation and the first adjustment precision includes:
determining a first distance between a starting position and an ending position of the first sliding operation;
determining a first attribute value variation of the specified attribute based on the first distance and the first adjustment precision.
9. The method according to claim 1, wherein the step of controlling the slider to move on the guide rail in response to a third sliding operation, which is continuous with the second sliding operation and is directed in the first dimension direction, and adjusting the property value of the specified property according to the third sliding operation and the second adjustment accuracy comprises:
in response to a third sliding operation which is continuous with the second sliding operation and faces the first dimension direction, controlling the sliding block to move on the guide rail, and determining a second attribute value change amount of the specified attribute according to the third sliding operation and the second adjustment precision;
and adjusting the current attribute value of the specified attribute based on the second attribute value change amount.
10. The method according to claim 9, wherein the second adjustment precision is used to indicate a ratio between a unit distance of sliding and an attribute value variation of the specified attribute; wherein the second adjustment precision is greater than the second adjustment precision;
the step of determining the variation of the second attribute value of the specified attribute according to the third sliding operation and the second adjustment precision includes:
determining a second distance between a start position and an end position of the third sliding operation;
determining a second attribute value variation of the specified attribute based on the second distance and the second adjustment precision.
11. The method of claim 9, wherein the second adjustment accuracy is used to indicate that: the variable quantity of the attribute value corresponding to each pause of the third sliding operation in the operation process is a unit value; wherein the third sliding operation is halted at least once during operation;
the step of determining the variation of the second attribute value of the specified attribute according to the third sliding operation and the second adjustment accuracy includes:
determining the number of times of pause of the third sliding operation in the operation process;
and determining the variable quantity of the second attribute value of the specified attribute according to the pause times and the second adjustment precision value.
12. The method of claim 1, further comprising:
and responding to a second sliding operation aiming at the slide block towards a second dimension direction, and controlling the display mode of the slide block to change according to a first preset rule and/or the display mode of the guide rail to change according to a second preset rule.
13. The method according to claim 12, wherein the first preset rule comprises: enlarging the size of the slider and/or changing the color of the slider into a first color;
the second preset rule comprises: making the width of the guide rail higher; and/or changing the display color of the rail to a second color.
14. An interactive control device is characterized in that a graphical user interface is provided through a terminal device, a slider control is displayed in the graphical user interface and comprises a slider and a guide rail, and the slider control is used for adjusting an attribute value of a specified attribute; the device comprises:
the first adjusting module is used for responding to a first sliding operation of the sliding block towards a first dimension direction, controlling the sliding block to move on the guide rail, and adjusting the attribute value of the specified attribute according to the first sliding operation and a preset first adjusting precision;
the precision switching module is used for responding to a second sliding operation of the sliding block towards a second dimension direction and switching the adjustment precision of the attribute value of the specified attribute from the first adjustment precision to a preset second adjustment precision;
and the second adjusting module is used for responding to a third sliding operation which is continuous with the second sliding operation and faces the first dimension direction, controlling the sliding block to move on the guide rail, and adjusting the attribute value of the specified attribute according to the third sliding operation and the second adjusting precision.
15. An electronic device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor, the processor executing the machine executable instructions to implement the method of interaction control of any of claims 1 to 13.
16. A computer-readable storage medium having stored thereon computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement the method of interaction control of any of claims 1 to 13.
CN202211288321.7A 2022-10-20 2022-10-20 Interaction control method and device and electronic equipment Pending CN115738294A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211288321.7A CN115738294A (en) 2022-10-20 2022-10-20 Interaction control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211288321.7A CN115738294A (en) 2022-10-20 2022-10-20 Interaction control method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN115738294A true CN115738294A (en) 2023-03-07

Family

ID=85352358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211288321.7A Pending CN115738294A (en) 2022-10-20 2022-10-20 Interaction control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN115738294A (en)

Similar Documents

Publication Publication Date Title
CN109550247B (en) Method and device for adjusting virtual scene in game, electronic equipment and storage medium
CN109718538B (en) Method and device for frame selection of virtual object in game, electronic equipment and storage medium
CN109621418B (en) Method and device for adjusting and making expression of virtual character in game
JP2018068781A (en) Video game processing apparatus and video game processing program
WO2014174897A1 (en) Computer user interface device, and parameter control method and program thereof
JP5260708B2 (en) Information processing apparatus, information processing apparatus control method, and program
CN111803941A (en) In-game display control method and device and electronic equipment
CN111766989B (en) Interface switching method and device
WO2024074039A1 (en) Game operation control method and apparatus, and electronic device
CN115738294A (en) Interaction control method and device and electronic equipment
CN106126057B (en) Screen capture method and device and terminal equipment
CN112486377A (en) Text editing method and device and electronic equipment
CN115920395A (en) Interactive control method and device in game and electronic equipment
CN115671735A (en) Object selection method and device in game and electronic equipment
CN113849082B (en) Touch processing method and device, storage medium and mobile terminal
CN105487801B (en) Progress bar adjusting method and mobile terminal
CN115328371B (en) Object adjustment method and device and electronic equipment
CN114995930A (en) Control display control method and device and electronic equipment
CN113680048A (en) Method and device for adjusting rocker control in game
CN113332712B (en) Game scene picture moving method and device and electronic equipment
CN111701242A (en) Path fitting method and device in game scene
CN110597432A (en) Interface control method and device, computer readable medium and electronic equipment
CN116077927A (en) Skill switching method and device in game and electronic equipment
CN115957503A (en) Interactive control method and device for object movement and electronic equipment
CN116886971A (en) Bullet screen display method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination