CN106940612A - The layout method and device of button control, storage medium and processor - Google Patents
The layout method and device of button control, storage medium and processor Download PDFInfo
- Publication number
- CN106940612A CN106940612A CN201710166408.XA CN201710166408A CN106940612A CN 106940612 A CN106940612 A CN 106940612A CN 201710166408 A CN201710166408 A CN 201710166408A CN 106940612 A CN106940612 A CN 106940612A
- Authority
- CN
- China
- Prior art keywords
- button control
- interval
- operation interface
- game operation
- association
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention discloses a kind of layout method of button control and device, storage medium and processor.Wherein, this method includes:The displaying ratio at game operation interface is adjusted according to terminal currently used display resolution;The stop object associated with button control to be put is obtained in game operation interface after the adjustment;The button control put is treated according to the interval between button control to be put and the stop object associated to be laid out.The present invention solve in correlation technique play operation interface on virtual controlling button set-up mode can not meet user personalized customization demand technical problem.
Description
Technical field
The present invention relates to computer realm, layout method and device, storage in particular to a kind of button control are situated between
Matter and processor.
Background technology
At present, in hand trip market, the virtual controlling button on game operation interface is typically by development of games group personnel
The fixed solution of completion is pre-designed, is also only capable of selecting from a variety of predefined schemes for being pre-designed completion even if can adjust
One of which is realized.In which case it is difficult to operating habit and the personal like that game player's weight mouth hardly possible is adjusted are met,
And increase further types of predefined scheme and be also only capable of moderately alleviating this puzzlement, but predefined scheme institute can not be solved at all
The limitation brought.In addition, meeting game player's progress game operation as far as possible by further types of predefined scheme is increased
This solution of demand also there is following defect:
(1) game making or game maintenance cost increase;
(2) since it is desired that comprising more interface resources, increasing so easily causing game installation kit space-consuming.
It is available for the game player can be to virtual controlling in game operation interface therefore, additionally providing one kind in correlation technique
The scheme that button is custom-configured.When entering setting interface, game player can actuating button control, progress position pendulum
Put.The custom of control is used according to game player itself, the size to button control zooms in and out adjustment.
However, although this solution is easily achieved, but the systematicness of operation is relatively low, and easily causing game player makes
The inconvenience used, and also lack the auxiliary optimization of limiting case.For example:When game operation interface adjusts the position of button control
When, if technical ability release button control exceeds the scope at game operation interface, it is possible that technical ability release button control is aobvious
Show incomplete situation;In addition, for two adjacent button controls, if one of button control is being played
During operation, pull it is oversized, then be likely to block another button control, thus cause originally by game player from
The setting operation of definition, causes game player's operating difficulties, so as to influence Consumer's Experience on the contrary.Moreover, when two adjacent
Button control between hypotelorism when, it is also possible to occur button click maloperation.
For it is above-mentioned the problem of, effective solution is not yet proposed at present.
The content of the invention
The embodiments of the invention provide a kind of layout method of button control and device, storage medium and processor, so that
Less solve correlation technique in game operation interface on virtual controlling button set-up mode can not meet user personalization determine
The technical problem of demand processed.
One side according to embodiments of the present invention there is provided a kind of layout method of button control, including:
The displaying ratio at game operation interface is adjusted according to terminal currently used display resolution;After the adjustment
Game operation interface in obtain the stop object that is associated with button control to be put;According to button control to be put and pass
Treat the button control put and be laid out in interval between the stop object of connection.
Alternatively, according to display resolution displaying ratio is adjusted including:Obtain display resolution is used first
Height and the first width;Obtain the second height and the second width that game operation interface is used;It is high using the first height and second
Spend computed altitude zoom ratio and utilize the first width and the second width calculation width zoom ratio;According to height zoom ratio and width
Zoom ratio is adjusted to displaying ratio.
Alternatively, the stop object of association is obtained in game operation interface after the adjustment to be included:With it is to be put by
With the presence or absence of the button control set put in preset range centered on button control;If it is, by the button put
Control set is defined as the stop object of association;If it is not, then the border at game operation interface to be defined as to the stop pair of association
As.
Alternatively, the button control put is treated according to the interval between button control to be put and the stop object associated
Part be laid out including:When association stop object be game operation interface border when, obtain button control to be put with
The horizontal interval of the border at game operation interface in the horizontal direction and perpendicular separation in vertical direction;According between level
It is laid out every treating the button control put with perpendicular separation.
Alternatively, the button control put is treated according to the interval between button control to be put and the stop object associated
Part be laid out including:When the stop object of association is the button control set put, button control to be put is obtained
With the button control put that is located in the button control set put on first direction in a first direction first between
Every and button control to be put and the button control set put in be located at the button control put in second direction
The second interval of part in a second direction, wherein, first direction and second direction inequality;According to the first interval and the second interval pair
Button control to be put is laid out.
Another aspect according to embodiments of the present invention, additionally provides a kind of placement device of button control, including:
Adjusting module, for being carried out according to the currently used display resolution of terminal to the displaying ratio at game operation interface
Adjustment;Acquisition module, for obtaining the stop pair associated with button control to be put in game operation interface after the adjustment
As;Processing module, for treating the button put with the interval between the stop object associated according to button control to be put
Control is laid out.
Alternatively, adjusting module includes:First acquisition unit, the first height and for obtaining display resolution use
One width;Second acquisition unit, the second height and the second width for obtaining the use of game operation interface;Computing unit, is used
Scaled in using the first height and the second high computational height zoom ratio and using the first width and the second width calculation width
Rate;Adjustment unit, for being adjusted according to height zoom ratio and width zoom ratio to displaying ratio.
Alternatively, acquisition module includes:Judging unit, in the preset range centered on button control to be put
It is interior with the presence or absence of the button control set put;First determining unit, for when judging unit is output as being, will put
Button control set be defined as association stop object;Second determining unit, for when judging unit is output as no, will swim
The border of play operation interface is defined as the stop object of association.
Alternatively, processing module includes:3rd acquiring unit, is game operation interface for the object of stopping when association
During border, obtain the border at button control to be put and game operation interface horizontal interval in the horizontal direction and hanging down
The upward perpendicular separation of Nogata;First processing units, for treating the button control put according to horizontal interval and perpendicular separation
It is laid out.
Alternatively, processing module includes:4th acquiring unit, the button control for the stop object when association to have put
During part set, obtain and be located at having put on first direction in button control to be put and the button control set put
Button control the first interval in a first direction and button control to be put and the button control set middle position put
In the second interval of the button control put in second direction in a second direction, wherein, first direction and second direction
Inequality;Second processing unit, is laid out for treating the button control put with the second interval according to the first interval.
Another aspect according to embodiments of the present invention, additionally provides a kind of storage medium, and storage medium includes the journey of storage
Sequence, wherein, equipment performs the layout method of above-mentioned button control where controlling storage medium when program is run.
Another further aspect according to embodiments of the present invention, additionally provides a kind of processor, and processor is used for operation program, its
In, program performs the layout method of above-mentioned button control when running.
In embodiments of the present invention, using the display according to the currently used display resolution of terminal to game operation interface
The mode that ratio is adjusted, by being obtained and stopping that button control to be put is associated in game operation interface after the adjustment
By object, enter to treat the button control put according to the interval between button control to be put and the stop object associated
Row layout, has reached for the game operation interface using different resolution, stops mechanism to realize by button control
Automatic adjusument, so that button control is laid out according to the interval between button control to be put and the stop object associated
Purpose, it is achieved thereby that on the premise of game operation environments are not influenceed, improve operating efficiency, lifting game substitutes into experience,
Optimize the technique effect of game operation flow, and then solve the virtual controlling button played in correlation technique in operation interface
Set-up mode can not meet the technical problem of the personalized customization demand of user.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this hair
Bright schematic description and description is used to explain the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the layout method of button control according to embodiments of the present invention;
Fig. 2 is the signal according to the preferred embodiment of the invention being laid out in game operation interface to button control
Figure;
Fig. 3 is the structured flowchart of the placement device of button control according to embodiments of the present invention.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model that the present invention is protected
Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so using
Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or
Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
Lid is non-exclusive to be included, for example, the process, method, system, product or the equipment that contain series of steps or unit are not necessarily limited to
Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product
Or the intrinsic other steps of equipment or unit.
According to embodiments of the present invention there is provided a kind of embodiment of the layout method of button control, it is necessary to explanation,
The step of flow of accompanying drawing is illustrated can perform in the computer system of such as one group computer executable instructions, also,
, in some cases, can be shown to be performed different from order herein although showing logical order in flow charts
The step of going out or describe.
Fig. 1 is the flow chart of the layout method of button control according to embodiments of the present invention, as shown in figure 1, this method bag
Include following steps:
Step S12, is adjusted according to the currently used display resolution of terminal to the displaying ratio at game operation interface;
The stop object associated with button control to be put is obtained in step S14, game operation interface after the adjustment;
Step S16, the button put is treated according to the interval between button control to be put and the stop object associated
Control is laid out.
, can be using the display according to the currently used display resolution of terminal to game operation interface by above-mentioned steps
The mode that ratio is adjusted, by being obtained and stopping that button control to be put is associated in game operation interface after the adjustment
By object, enter to treat the button control put according to the interval between button control to be put and the stop object associated
Row layout, has reached for the game operation interface using different resolution, stops mechanism to realize by button control
Automatic adjusument, so that button control is laid out according to the interval between button control to be put and the stop object associated
Purpose, it is achieved thereby that on the premise of game operation environments are not influenceed, improve operating efficiency, lifting game substitutes into experience,
Optimize the technique effect of game operation flow, and then solve the virtual controlling button played in correlation technique in operation interface
Set-up mode can not meet the technical problem of the personalized customization demand of user.
Alternatively, in step s 12, step performed below can be included by displaying ratio being adjusted according to display resolution
Suddenly:
Step S121, obtains the first height and the first width that display resolution is used;
Step S122, obtains the second height and the second width that game operation interface is used;
Step S123, it is wide with the second high computational height zoom ratio and using the first width and second using the first height
Degree calculates width zoom ratio;
Step S124, is adjusted according to height zoom ratio and width zoom ratio to displaying ratio.
Assuming that the initial resolution at game background interface is:Width (W) * height (H), and the currently employed resolution ratio of terminal
For:Wd*Hd, then need to zoom in and out operation to the width (W) and high (H) at game background interface, make it currently employed with terminal
Resolution ratio (Wd*Hd) be consistent, and then obtain zoom ratio and be respectively:Sw and Sh.Then, the zoom ratio obtained using calculating
Sw and Sh is adjusted to the width (W) and high (H) at game background interface.
Alternatively, in step S14, the stop object of association is obtained in game operation interface after the adjustment to be included
Step performed below:
Step S141, with the presence or absence of the button control put in the preset range centered on button control to be put
Part set;
Step S142, if it is, the button control set put to be defined as to the stop object of association;
Step S143, if it is not, then the border at game operation interface to be defined as to the stop object of association.
For the game operation interface using different resolution, stop mechanism to realize self adaptation by button control
Regulation, so that button control can be accommodated to other button controls on the edge at game operation interface or game operation interface automatically
The edge of part (the button control set put).Other button controls herein refer to assume on the right side at game operation interface
There are four button controls in lower section, one of button control is adjusted if desired, then its excess-three button control then belongs to
Other button controls.
Alternatively, in step s 16, treated according to the interval between button control to be put and the stop object associated
The button control put, which is laid out, can include step performed below:
Step S161, when association is when stopping the border that object is game operation interface, obtains button control to be put
With the horizontal interval of border in the horizontal direction at game operation interface and perpendicular separation in vertical direction;
Step S162, the button control put is treated according to horizontal interval and perpendicular separation and is laid out.
If there is no any button control put in the preset range on button control periphery to be put, then
The border on the length direction nearest apart from the button control to be put and the border on width can be found.Then, then
Determine to treat using the horizontal interval of default setting and perpendicular separation or the customized horizontal interval of game player and perpendicular separation
The putting position and size for the button control put.
Alternatively, in step s 16, treated according to the interval between button control to be put and the stop object associated
The button control put, which is laid out, can include step performed below:
Step S163, when the stop object of association is the button control set put, obtains button control to be put
It is located at first of the button control put on first direction in a first direction in part and the button control set put
Be spaced and button control to be put and the button control set put in be located at the button put in second direction
The second interval of control in a second direction, wherein, first direction and second direction inequality;
Step S164, treats the button control put with the second interval according to the first interval and is laid out.
If there are multiple button controls put in the preset range on button control periphery to be put, then can
To find the both direction nearest apart from the button control to be put (for example:Having put on horizontally and vertically)
Button control.Then, recycle between the first interval of default setting and the second interval or game player customized first
Every the putting position and size that button control to be put is determined with the second interval.
The above-mentioned process that is preferable to carry out is described in further detail below in conjunction with the preferred embodiment shown in Fig. 2.
For the operation button control on game background interface, in order to reach that self adaptation is arranged, this hair
Bright preferred embodiment provides following arrangement model:
(1) absolute coordinate pattern:Relative to the absolute coordinate X and Y of game background interface (hereinafter referred to as parent window), holding
After the zoom operations of row interface, the coordinate after adjustment is calculated by zoom ratio Sw and Sh respectively:
X '=X*Sw, Y '=y*Sh.
(2) landing pattern:Rest against another window or button control, referring herein to stop can enter one again
Step is divided into two following situations:
Situation one, rest against parent window (Parent Window);
Situation two, rest against fraternal window (Sibl ing Window).
Both stop situation can include in the horizontal direction:Three kinds of left, center, right stop type, in vertical direction
It can include:Three kinds of upper, middle and lower stop type, and when being stopped at the edge at game operation interface, it is allowed to interval is set
(Margin)。
It should be noted that in said circumstances two, a button control can not in the horizontal direction and the vertical direction all
Fraternal window is rested against, a button control otherwise can be caused to be covered on another button control, therefore, does not allow to adopt
With such stop mode.Any one viewing area can turn into window in game operation interface, for example:Game background circle
The corresponding viewing area in face, the corresponding viewing area of button control.If there is window B and window C on window P, such as:Window
P represents game background interface, and window B and window C represent to be located at the button control on game background interface, then window P is then
For window B and window C parent window;Conversely, window B and window C are then window P subwindow;And between window B and window C
Then fraternal window each other.
Fig. 2 is the signal according to the preferred embodiment of the invention being laid out in game operation interface to button control
Figure.As shown in Fig. 2 in the preferred embodiment, first, into interface is set, game player can pin and drag and wait to put
Button control, carry out the self-defined of button control position to be put and put and by zoom operations or widen operation and adjust
The size of whole button control to be put;Secondly, it is accustomed to according to the personal use of game player, adjusts button control to be put
After the size of part and/or position, adjacent button control or the button control of close game operation interface edge can be adaptive
It should adjust to suitable size and location;Then, determined if game player clicks on, self-defined setting operating process is completed.
Assuming that window P (parent window) represents game background interface, there are four button controls on game background interface
Part (subwindow), it is respectively:Button control 1, button control 2, button control 3 and button control 4.Window P can be according to end
The currently used resolution ratio in end zooms in and out operation, to ensure to be consistent with the resolution ratio that terminal is currently used.
Button control 1 is located at the lower left at game operation interface.The button control 1 institute in the horizontal direction and the vertical direction
The landing pattern of use is " resting against parent window ", that is, rests against window P;Wherein, stop type in the horizontal direction is
Keep left and stop at intervals of MarginH, stop type in vertical direction is on the lower and stopped at intervals of MarginV.
Button control 2 is located at the lower right at game operation interface.The button control 2 institute in the horizontal direction and the vertical direction
The landing pattern of use is " resting against parent window ", that is, rests against window P;Wherein, stop type in the horizontal direction is
Keep right and stop at intervals of MarginH, stop type in vertical direction is placed in the middle.
Button control 3 is located at the lower right at game operation interface.The stop that the button control 3 is used in the horizontal direction
Pattern is " resting against parent window ", that is, rests against window P, wherein, stop type in the horizontal direction is to keep right and stop
At intervals of MarginH.The landing pattern that the button control 3 is used in vertical direction for " resting against fraternal window ", wherein,
Stop type in vertical direction is top and stop at intervals of MarginV.
Button control 4 is located at the lower right at game operation interface.The stop that the button control 4 is used in the horizontal direction
Pattern is " resting against fraternal window ", that is, rests against button control 3, wherein, stop type in the horizontal direction is to keep right simultaneously
And stop at intervals of MarginH;The landing pattern that the button control 4 is used in vertical direction is " rests against fraternal window
Mouthful ", that is, button control 2 is rested against, wherein, stop type in vertical direction is top and stopped at intervals of MarginV.
Above-mentioned technical proposal can realize the Automatic adjusument of button in game operation interface, as long as and by game operation
The setting of button control on interface is opened to game player, and game player just can be allowed to pass through the chi of free settings button control
Very little and position, you can meet the individual demand of different game players, so that on the premise of game environment is not influenceed, greatly
The operability of game, reduction exploitation and maintenance cost are improved, and improves Consumer's Experience.
According to embodiments of the present invention, a kind of embodiment of the layout method of button control is additionally provided, Fig. 3 is according to this hair
The structured flowchart of the placement device of the button control of bright embodiment, as shown in figure 3, the device can include:Adjusting module 10, is used
The displaying ratio at game operation interface is adjusted according to terminal currently used display resolution;Acquisition module 20, is used
In obtaining the stop object that is associated with button control to be put in game operation interface after the adjustment;Processing module 30, is used
It is laid out in treating the button control put according to the interval between button control to be put and the stop object associated.
Alternatively, adjusting module 10 can include:First acquisition unit (not shown), for obtaining display resolution
The first height and the first width used;Second acquisition unit (not shown), for obtaining the use of game operation interface
Second height and the second width;Computing unit (not shown), for highly being contracted using the first height and the second high computational
Put rate and utilize the first width and the second width calculation width zoom ratio;Adjustment unit (not shown), for according to height
Degree zoom ratio and width zoom ratio are adjusted to displaying ratio.
Alternatively, acquisition module 20 can include:Judging unit (not shown), for button control to be put
With the presence or absence of the button control set put in preset range centered on part;First determining unit (not shown), is used
In when judging unit is output as being, the button control set put is defined as to the stop object of association;Second determines list
First (not shown), for when judging unit is output as no, the border at game operation interface to be defined as to the stop of association
Object.
Alternatively, processing module 30 can include:3rd acquiring unit (not shown), for when the stop pair of association
During as border for game operation interface, the border at button control to be put and game operation interface is obtained in the horizontal direction
Horizontal interval and perpendicular separation in vertical direction;First processing units (not shown), for according between level
It is laid out every treating the button control put with perpendicular separation.
Alternatively, processing module 30 can include:4th acquiring unit (not shown), for when the stop pair of association
As for put button control set when, obtain and be located in button control to be put and the button control set put the
The button control put on one direction the first interval in a first direction and button control to be put are with having put
Button control set in be located at second direction on the button control put in a second direction second interval, wherein,
First direction and second direction inequality;Second processing unit (not shown), for according to the first interval and the second interval pair
Button control to be put is laid out.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment
The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, others can be passed through
Mode is realized.Wherein, device embodiment described above is only schematical, such as division of described unit, Ke Yiwei
A kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of unit or module by some interfaces
Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On unit.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially
The part contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer
Equipment (can for personal computer, server or network equipment etc.) perform each embodiment methods described of the invention whole or
Part steps.And foregoing storage medium includes:USB flash disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with store program codes
Medium.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (12)
1. a kind of layout method of button control, it is characterised in that including:
The displaying ratio at game operation interface is adjusted according to terminal currently used display resolution;
The stop object associated with button control to be put is obtained in game operation interface after the adjustment;
According to the interval stopped between object of the button control to be put and the association to the button to be put
Control is laid out.
2. according to the method described in claim 1, it is characterised in that the displaying ratio is carried out according to the display resolution
Adjustment includes:
Obtain the first height and the first width that the display resolution is used;
Obtain the second height and the second width that the game operation interface is used;
Using first height and the second high computational height zoom ratio and utilize first width and described the
Two width calculation width zoom ratio;
The displaying ratio is adjusted according to the height zoom ratio and the width zoom ratio.
3. according to the method described in claim 1, it is characterised in that obtained in the game operation interface after the adjustment described
The stop object of association includes:
With the presence or absence of the button control set put in the preset range centered on the button control to be put;
If it is, the button control set put to be defined as to the stop object of the association;
If it is not, then the border at the game operation interface to be defined as to the stop object of the association.
4. method according to claim 3, it is characterised in that according to the button control to be put and the association
Stop object between interval the button control to be put is laid out including:
When the association is when stopping the border that object is the game operation interface, obtain the button control to be put with
The horizontal interval of border in the horizontal direction at the game operation interface and perpendicular separation in vertical direction;
The button control to be put is laid out with the perpendicular separation according to the horizontal interval.
5. method according to claim 3, it is characterised in that according to the button control to be put and the association
Stop object between interval the button control to be put is laid out including:
When the button control set that the stop object of the association has been put for described in, the button control to be put is obtained
With the button control put in the button control set put on first direction in said first direction
The first interval and the button control to be put and the button control set put in be located in second direction
The button control put the second interval in this second direction, wherein, the first direction and the second direction
Inequality;
The button control to be put is laid out with the described second interval according to the described first interval.
6. a kind of placement device of button control, it is characterised in that including:
Adjusting module, for being adjusted according to the currently used display resolution of terminal to the displaying ratio at game operation interface
It is whole;
Acquisition module, for obtaining the stop pair associated with button control to be put in game operation interface after the adjustment
As;
Processing module, the interval stopped between object for button control to be put according to and the association is to described
Button control to be put is laid out.
7. device according to claim 6, it is characterised in that the adjusting module includes:
First acquisition unit, for obtaining the first height and the first width that the display resolution is used;
Second acquisition unit, for obtaining the second height and the second width that the game operation interface is used;
Computing unit, for utilization first height and the second high computational height zoom ratio and utilization described first
Width and the second width calculation width zoom ratio;
Adjustment unit, for being adjusted according to the height zoom ratio and the width zoom ratio to the displaying ratio.
8. device according to claim 6, it is characterised in that the acquisition module includes:
Judging unit, in the preset range centered on the button control to be put with the presence or absence of put by
Button control set;
First determining unit, for when the judging unit is output as being, the button control set put to be determined
For the stop object of the association;
Second determining unit, for when the judging unit is output as no, the border at the game operation interface to be defined as
The stop object of the association.
9. device according to claim 8, it is characterised in that the processing module includes:
3rd acquiring unit, for when the association is when stopping the border that object is the game operation interface, obtaining described
The border at button control to be put and game operation interface horizontal interval in the horizontal direction and in vertical direction
On perpendicular separation;
First processing units, for being carried out according to the horizontal interval and the perpendicular separation to the button control to be put
Layout.
10. device according to claim 8, it is characterised in that the processing module includes:
4th acquiring unit, for when the button control set that the stop object of the association has been put for described in, obtaining institute
State button control to be put and the button control put being located in the button control set put on first direction
Part the first interval in said first direction and the button control to be put and the button control collection put
It is located at the second interval of the button control put in this second direction in second direction in conjunction, wherein, described first
Direction and the second direction inequality;
Second processing unit, for being carried out according to the described first interval with the described second interval to the button control to be put
Layout.
11. a kind of storage medium, it is characterised in that the storage medium includes the program of storage, wherein, in described program operation
When control the storage medium where button control in equipment perform claim requirement 1 to 5 described in any one layout method.
12. a kind of processor, it is characterised in that the processor is used for operation program, wherein, right of execution when described program is run
Profit requires the layout method of the button control described in any one in 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710166408.XA CN106940612A (en) | 2017-03-20 | 2017-03-20 | The layout method and device of button control, storage medium and processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710166408.XA CN106940612A (en) | 2017-03-20 | 2017-03-20 | The layout method and device of button control, storage medium and processor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106940612A true CN106940612A (en) | 2017-07-11 |
Family
ID=59464419
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710166408.XA Pending CN106940612A (en) | 2017-03-20 | 2017-03-20 | The layout method and device of button control, storage medium and processor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106940612A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108304136A (en) * | 2018-02-26 | 2018-07-20 | 网易(杭州)网络有限公司 | The display control method and device of control |
CN108932050A (en) * | 2018-06-14 | 2018-12-04 | 珠海金山网络游戏科技有限公司 | A method of reducing mobile terminal calorific value when hand trip operation |
CN109829963A (en) * | 2019-02-02 | 2019-05-31 | 珠海金山网络游戏科技有限公司 | A kind of image drawing method and device calculate equipment and storage medium |
CN112363654A (en) * | 2020-11-27 | 2021-02-12 | 歌尔科技有限公司 | Display control method of wearable device, wearable device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102947780A (en) * | 2010-06-15 | 2013-02-27 | 日产自动车株式会社 | Information display device and method for moving operation of onscreen button |
CN103885755A (en) * | 2012-12-19 | 2014-06-25 | 腾讯科技(深圳)有限公司 | Method and device for implementing screen matching of owner-draw controls |
CN104699376A (en) * | 2015-04-03 | 2015-06-10 | 上海航天测控通信研究所 | Automatic control layout method |
CN105335445A (en) * | 2014-08-13 | 2016-02-17 | 北大方正集团有限公司 | Layout display method and device |
CN105867795A (en) * | 2015-11-18 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Display method and device of virtual keyboard, and electronic equipment |
-
2017
- 2017-03-20 CN CN201710166408.XA patent/CN106940612A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102947780A (en) * | 2010-06-15 | 2013-02-27 | 日产自动车株式会社 | Information display device and method for moving operation of onscreen button |
CN103885755A (en) * | 2012-12-19 | 2014-06-25 | 腾讯科技(深圳)有限公司 | Method and device for implementing screen matching of owner-draw controls |
CN105335445A (en) * | 2014-08-13 | 2016-02-17 | 北大方正集团有限公司 | Layout display method and device |
CN104699376A (en) * | 2015-04-03 | 2015-06-10 | 上海航天测控通信研究所 | Automatic control layout method |
CN105867795A (en) * | 2015-11-18 | 2016-08-17 | 乐视致新电子科技(天津)有限公司 | Display method and device of virtual keyboard, and electronic equipment |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108304136A (en) * | 2018-02-26 | 2018-07-20 | 网易(杭州)网络有限公司 | The display control method and device of control |
CN108932050A (en) * | 2018-06-14 | 2018-12-04 | 珠海金山网络游戏科技有限公司 | A method of reducing mobile terminal calorific value when hand trip operation |
CN108932050B (en) * | 2018-06-14 | 2021-03-30 | 珠海金山网络游戏科技有限公司 | Method for reducing heat productivity of mobile terminal during hand trip operation |
CN109829963A (en) * | 2019-02-02 | 2019-05-31 | 珠海金山网络游戏科技有限公司 | A kind of image drawing method and device calculate equipment and storage medium |
CN109829963B (en) * | 2019-02-02 | 2023-12-26 | 珠海金山数字网络科技有限公司 | Image drawing method and device, computing equipment and storage medium |
CN112363654A (en) * | 2020-11-27 | 2021-02-12 | 歌尔科技有限公司 | Display control method of wearable device, wearable device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106940612A (en) | The layout method and device of button control, storage medium and processor | |
US20200298123A1 (en) | Item display method and apparatus in virtual scene, and storage medium | |
CN102375678B (en) | Device and method for gesture control | |
CN108050674A (en) | Control method and device, the terminal of air-conditioning equipment | |
CN105378653B (en) | Application widget is intelligently inserted into managed display segments | |
Geritz et al. | Evolutionary dynamics of seed size and seedling competitive ability | |
CN107754309A (en) | Information processing method, device, electronic equipment and storage medium | |
CN107678291A (en) | The control method and device of indoor environment | |
WO2009146296A1 (en) | Color correcting method and apparatus | |
CN108537193A (en) | Ethnic attribute recognition approach and mobile terminal in a kind of face character | |
CN105830005A (en) | Control device, control method, and computer program | |
US10198838B2 (en) | Geometric work scheduling with dynamic and probabilistic work trimming | |
CN103140876A (en) | Information processing device, information processing method, program for information processing device, and recording medium | |
CN106448652A (en) | Control method and device for air-conditioner | |
WO2007074844A1 (en) | Detecting method and detecting system for positions of face parts | |
CN107168672A (en) | Display methods and device | |
CN106422295A (en) | Chess-playing difficulty grade processing method and device and robot | |
CN106660209A (en) | Intelligent robot control system, method and intelligent robot | |
CN109568951A (en) | Special display effect method of adjustment and device | |
CN108063978A (en) | A kind of TV performance parameter adaptive method, TV and storage medium | |
CN105630595B (en) | A kind of information processing method and electronic equipment | |
CN108266862A (en) | Air conditioning control method and device, storage medium and processor | |
CN106740559A (en) | Passenger's situation determines method and device | |
CN106485329A (en) | The processing method and processing device of man-machine chess | |
CN109992188A (en) | The implementation method and device of a kind of mobile terminal iOS text scrolling display |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170711 |