CN-121971859-A - Parameter adjustment method, device, electronic equipment, storage medium and program product
Abstract
The invention relates to the technical field of computers, and discloses a parameter adjusting method, a device, an electronic device, a storage medium and a program product, wherein each sub-value range is corresponding to a preset parameter value by determining the sub-value range in the value range of a target parameter, when the current parameter value of the target parameter enters the sub-value range, the current parameter value can be directly adjusted to the corresponding preset parameter value, so that a user can quickly position the current parameter value of the target parameter when adjusting the current parameter value of the target parameter, the time consumed in parameter selection or adjustment is reduced, and the user experience is improved. Meanwhile, when the fine adjustment of the parameters is needed, the current parameter value required by the user can be more accurately positioned by changing the change rate of the target parameters, the parameter value can be finely adjusted, the problem that the fine adjustment is needed when the required value is positioned in the related technology is solved, and the experience of the user during the parameter adjustment is improved.
Inventors
- ZHONG CHUTING
Assignees
- 广州博冠信息科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251229
Claims (14)
- 1. A method of parameter adjustment, the method comprising: Displaying a parameter adjustment control for adjusting a target parameter on a graphical user interface, wherein the target parameter is provided with at least one sub-value range divided from the value range of the target parameter; Responding to a first parameter adjustment operation triggered by the parameter adjustment control, and adjusting the current parameter value of the target parameter; setting the current parameter value as a preset parameter value corresponding to the sub-value range under the condition that the current parameter value of the target parameter enters the sub-value range; And under the condition that the current parameter value of the target parameter is in the sub-value range, responding to a second parameter adjustment operation triggered according to the parameter adjustment control, and nonlinear adjusting the current parameter value at a dynamic change rate, wherein the dynamic change rate is positively correlated with a difference value between the current parameter value and the preset parameter value and is not greater than the change rate under the first parameter adjustment operation.
- 2. The method of claim 1, wherein the parameter adjustment control comprises a slider; said non-linearly adjusting said current parameter value at a dynamic rate of change comprises: Determining a change value of the current parameter value according to a change value of a sliding distance corresponding to the second parameter adjustment operation and a difference value between the current parameter value and the preset parameter value under the condition that the second parameter adjustment operation is a sliding operation for the sliding block; And updating the current parameter value according to the change value of the current parameter value.
- 3. The method of claim 1, wherein the parameter adjustment control comprises a slider; the first parameter adjustment operation and the second parameter adjustment operation are both sliding operations for the slider, and the second parameter adjustment operation is a sliding operation in a case where a current parameter value of the target parameter enters the sub-value range.
- 4. The method of claim 1, wherein the parameter adjustment control comprises a slider, and the first parameter adjustment operation is a sliding operation for the slider; The responding to the first parameter adjustment operation triggered by the parameter adjustment control adjusts the current parameter value of the target parameter, and the responding comprises the following steps: responding to a first parameter adjustment operation triggered according to the parameter adjustment control, and determining a change value of the current parameter value according to a preset proportion according to a change value of a sliding distance corresponding to the first parameter adjustment operation under the condition that the current parameter value of the target parameter is not located in the sub-value range; And updating the current parameter value according to the change value of the current parameter value.
- 5. The method of claim 1, wherein the parameter adjustment control comprises a slider and a sled corresponding to the slider, the method further comprising: responding to clicking operation of a sliding rail corresponding to the sliding block, adjusting the sliding block to the position corresponding to the clicking operation under the condition that the current parameter value corresponding to the position of the clicking operation is not in any sub-value range, and adjusting the current parameter value according to the position of the sliding block; And under the condition that the current parameter value corresponding to the clicking position is in the sub-value range, adjusting the current parameter value to a preset parameter value corresponding to the sub-value range, and adjusting the sliding block to a position corresponding to the preset parameter value in the sliding rail.
- 6. The method according to claim 1, wherein the method further comprises: Determining the preset parameter value according to at least one of a maximum parameter value, a historical parameter value or a set parameter value corresponding to the target parameter; and determining a sub-value range containing the preset parameter value according to the preset parameter value.
- 7. The method of claim 6, wherein determining a sub-range of values including the preset parameter value from the preset parameter value comprises: Determining the upper value limit and the lower value limit of a sub-value range corresponding to the preset parameter value according to the preset offset value and the preset parameter value; And determining the sub-value range containing the preset parameter value according to the upper value limit and the lower value limit of the sub-value range.
- 8. The method of claim 1, wherein the parameter adjustment control comprises at least two buttons, the buttons being used to adjust a current parameter value; said non-linearly adjusting said current parameter value at a dynamic rate of change comprises: determining a change value of the current parameter value according to the long time corresponding to the second parameter adjustment operation and the difference value between the current parameter value and the preset parameter value under the condition that the second parameter adjustment operation is the long-press operation of the button; And updating the current parameter value according to the change value of the current parameter value.
- 9. The method of claim 1, wherein the parameter adjustment control comprises at least two buttons, the buttons being used to adjust a current parameter value, the method further comprising: The first parameter adjustment operation and the second parameter adjustment operation are long-press operations for the buttons, and the second parameter adjustment operation is a long-press operation in a case that a current parameter value of the target parameter enters the sub-value range.
- 10. The method of claim 1, wherein the parameter adjustment control comprises at least two buttons, wherein the buttons are used to adjust a current parameter value, and wherein the first parameter adjustment operation is a long press operation for the buttons; The responding to the first parameter adjustment operation triggered by the parameter adjustment control adjusts the current parameter value of the target parameter, and the responding comprises the following steps: Responding to a first parameter adjustment operation triggered according to the parameter adjustment control, and determining a change value of the current parameter value according to a preset proportion according to a long time corresponding to the first parameter adjustment operation under the condition that the current parameter value of the target parameter is not located in the sub-value range; And updating the current parameter value according to the change value of the current parameter value.
- 11. A parameter adjustment device, the device comprising: the control display module is used for displaying a parameter adjustment control for adjusting a target parameter on the graphical user interface, wherein the target parameter is provided with at least one sub-value range divided from the value range of the target parameter; the response module is used for responding to a first parameter adjustment operation triggered by the parameter adjustment control and adjusting the current parameter value of the target parameter; the rapid adjustment module is used for setting the current parameter value as a preset parameter value corresponding to the sub-value range under the condition that the current parameter value of the target parameter enters the sub-value range; And the accurate adjustment module is used for responding to a second parameter adjustment operation triggered according to the parameter adjustment control when the current parameter value of the target parameter is in the sub-value range, and adjusting the current parameter value in a nonlinear manner at a dynamic change rate, wherein the dynamic change rate is positively correlated with a difference value between the current parameter value and the preset parameter value and is not greater than the change rate under the first parameter adjustment operation.
- 12. An electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the parameter adjustment method of any of claims 1 to 10.
- 13. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon computer instructions for causing a computer to execute the parameter adjustment method according to any one of claims 1 to 10.
- 14. A computer program product comprising computer instructions for causing a computer to perform the parameter adjustment method of any one of claims 1 to 10.
Description
Parameter adjustment method, device, electronic equipment, storage medium and program product Technical Field The present invention relates to the field of computer technologies, and in particular, to a parameter adjustment method, a parameter adjustment device, an electronic device, a storage medium, and a program product. Background Under the game scene, parameters such as the control quantity of the sliding blocks are a common means, and the corresponding quantity can be quickly selected by dragging the sliding blocks to the corresponding positions by fingers. It is common practice in the related art to provide a linear parameter control, i.e., a movement distance of a slider has a linear relationship with a distance of a finger sliding on a screen. However, the related art cannot support smaller values corresponding to larger finger movement distances, i.e., cannot perform fine control, and when a user needs to drag the slider to a position corresponding to a desired value, the slider may need to be adjusted back and forth, which is very troublesome. In addition, the parameter control controls provided in the related art cannot quickly locate certain values, such as values commonly used by users, and the users cannot quickly locate the values in the process of selecting the values, which is time-consuming and labor-consuming. Disclosure of Invention The invention provides a parameter adjustment method, a device, electronic equipment, a storage medium and a program product, which are used for solving the problems that fine control cannot be achieved and quick positioning cannot be performed in the parameter adjustment process. In a first aspect, the present invention provides a parameter adjustment method, including: And displaying a parameter adjustment control for adjusting the target parameter on the graphical user interface. The target parameter is provided with at least one sub-value range divided from the value range of the target parameter. And adjusting the current parameter value of the target parameter in response to a first parameter adjustment operation triggered according to the parameter adjustment control. And setting the current parameter value as a preset parameter value corresponding to the sub-value range under the condition that the current parameter value of the target parameter enters the sub-value range. The preset parameter value is a parameter value within the sub-value range. And under the condition that the current parameter value of the target parameter is in the sub-value range, responding to a second parameter adjustment operation triggered according to the parameter adjustment control, and nonlinear adjusting the current parameter value at a dynamic change rate, wherein the dynamic change rate is positively related to a difference value between the current parameter value and a preset parameter value and is not greater than the change rate under the first parameter adjustment operation. According to the parameter adjustment method provided by the embodiment, the sub-value ranges are divided in the value ranges of the target parameters, each sub-value range corresponds to one preset parameter value, when the current parameter value of the target parameters enters the sub-value ranges due to adjustment, the current parameter value can be directly adjusted to the corresponding preset parameter value, a user can quickly position the target parameters when adjusting the parameter values of the target parameters, the time consumed in parameter selection or adjustment is reduced, and the adjustment efficiency and user experience are improved. Meanwhile, when the fine adjustment of the parameters is needed, the parameter values can be more accurately positioned to the required parameter values by changing the change rate of the target parameters and adjusting the parameter values in a nonlinear manner, so that the fine adjustment of the parameter values is realized, the problem that the repeated adjustment is needed when the required values are positioned in the related technology is solved, and the smoothness of user operation is improved. In some alternative embodiments, the parameter adjustment control comprises a slider. Nonlinear adjustment of current parameter values at a dynamic rate of change, comprising: and under the condition that the second parameter adjustment operation is a sliding operation aiming at the sliding block, determining the change value of the current parameter value according to the change value of the sliding distance corresponding to the second parameter adjustment operation and the difference value between the current parameter value and the preset parameter value. And updating the current parameter value according to the change value of the current parameter value. In some alternative embodiments, the parameter adjustment control comprises a slider. The method further comprises the steps of: The first parameter adjustment operation and the second para