CN105194875B - A kind of map display methods and its device, mobile client, computer client - Google Patents

A kind of map display methods and its device, mobile client, computer client Download PDF

Info

Publication number
CN105194875B
CN105194875B CN201510691289.0A CN201510691289A CN105194875B CN 105194875 B CN105194875 B CN 105194875B CN 201510691289 A CN201510691289 A CN 201510691289A CN 105194875 B CN105194875 B CN 105194875B
Authority
CN
China
Prior art keywords
display
screen
button
place button
place
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.)
Active
Application number
CN201510691289.0A
Other languages
Chinese (zh)
Other versions
CN105194875A (en
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 CN201510691289.0A priority Critical patent/CN105194875B/en
Publication of CN105194875A publication Critical patent/CN105194875A/en
Application granted granted Critical
Publication of CN105194875B publication Critical patent/CN105194875B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Instructional Devices (AREA)

Abstract

The present invention relates to a kind of map display methods, including step S11: the dragging signal in response to being directed to map obtains map amount of movement;S12: in the display of every frame map, the place button of the non-display area in the map other than the range of current screen display region is searched;S13: the place button of the non-display area is shown on on-screen display (osd) area.Compared with the existing technology, the present invention can allow player just to view the place button of entire map on the on-screen display (osd) area of limited intelligent terminal, improve the game experiencing of player.Meanwhile the present invention also provides a kind of map display device, mobile client and computer clients.

Description

A kind of map display methods and its device, mobile client, computer client
Technical field
The invention belongs to intelligent terminal game design fields, more particularly, to the place button on a kind of display map Method and device.
Background technique
As the hardware configuration of intelligent terminal constantly updates development, the game on intelligent terminal also enters fast development In the stage, intelligent terminal game becomes the main force of game industry scale growth, and occupies stable share in game income.Intelligence Energy terminal game generally all has map, and on the one hand map shows the distribution in each place in gaming world, another Aspect provides for player and goes to the function to corresponding place by clicking place button.
Since the display screen of intelligent terminal, especially mobile intelligent terminal is generally all smaller, and with game design The abundant and complexity of content, map place is more and more, and map art designing is more and more exquisite, and map area is also got over Come it is bigger, when the area of map be greater than intelligent mobile terminal display screen when, player needs to select on map If place button not in the indication range of display screen, just must find place button by dragging map.Therefore, When player is unfamiliar with map, place button to be selected must be just found by constantly dragging map, Place button can not be accurately found, the experience sense of game is affected.
Summary of the invention
It is an object of the invention to overcome shortcoming and deficiency in the prior art, one kind is provided in current screen display region Show the map display methods of non-display area place button.
The present invention is achieved by the following technical solutions:
A kind of map display methods, comprising steps of
S11: the dragging signal in response to being directed to map obtains map amount of movement;
S12: it in the display of every frame map, searches in the map other than the range of current screen display region The place button of non-display area;
S13: the place button of the non-display area is shown on on-screen display (osd) area;
According to the map coordinate system and screen coordinate system and map coordinate system and screen coordinate pre-established The incidence relation of system, in step s 12, by step S121 by the center of the place button in map coordinate system Coordinate is mapped to screen coordinate system, obtains its coordinate value relative to screen coordinate system, to search the ground of the non-display area Point button.
Compared with the existing technology, map display methods of the invention shows the place button of non-display area in intelligence On the screen of energy terminal, allow player that can intuitively choose the place button of non-display area, without constantly dragging trip Map of playing finds place button to be reached, increases game experiencing sense.
It further, as an improvement of the present invention, in step s 12, further comprise step S122: will be in the button of place The boundary parameter that the heart is located at the coordinate value and display screen of screen coordinate system compares, and judges whether various regions point button is not showing Region, and obtain azimuth information of the place button of non-display area relative to on-screen display (osd) area.
Further, the improvement as the first scheme of the invention further includes in step s 12 step S123: saving and obtains Non- display area place button information.
Further, the improvement as the first scheme of the invention, the place button information includes place button center point The volume of coordinate value in map coordinate system of coordinate value, place button center point in screen coordinate system, place button Number information, place button are relative to any one in the azimuth information of on-screen display (osd) area.
Further, the improvement as the first scheme of the invention, in step s 13, by the place button of non-display area It is shown on the edge in correspondence orientation of on-screen display (osd) area by it relative to the orientation of on-screen display (osd) area.
Further, the improvement as the first scheme of the invention, in step s 13, by the place button of non-display area It is shown on on-screen display (osd) area in an orderly manner according to its coordinate value relative to the non-azimuth direction of on-screen display (osd) area.
Further, the improvement as the first scheme of the invention, includes: step S131 in step S13: invocation step S122 The place button of the non-display area of middle acquisition is saved relative to the azimuth information or invocation step S123 of on-screen display (osd) area Azimuth information of the place button of non-display area relative to on-screen display (osd) area;Then screen will be shown in non-display area Show that the place button of region different direction is grouped according to orientation, the place button in every group of orientation is aobvious relative to screen according to it Show that the coordinate value on the non-azimuth direction in region is ranked up;And step S132: will according to the ranking results that step S131 is obtained Place button is shown on the edge in correspondence orientation of on-screen display (osd) area.
Improvement through the above technical solution realizes and shows the place button of non-display area relative to screen according to it Show that the orientation in region is shown in screen and corresponds on the edge in orientation, more convenient player searches and clicks.
Further, the improvement as second scheme of the present invention, in step s 13, the ground of the non-display area are pressed Button is related to its position on former map in the display position at on-screen display (osd) area edge.
Further, the improvement as second scheme of the present invention, place button on map is from screen display area During domain to non-display area movement, place button is shown to for the first time from the position on the map of on-screen display (osd) area When the corresponding marginal position of on-screen display (osd) area, place button be located at the edge of on-screen display (osd) area display position and its in original Position on map is identical relative to the coordinate value on the non-azimuth direction of on-screen display (osd) area at it.
Further, the improvement as second scheme of the present invention further includes in step s 12 step S123: creation storage Sequence, the place button of the non-display area is orderly relative to the coordinate value of the azimuth direction of on-screen display (osd) area according to it Ground is saved into storage sequence.
Further, the improvement as second scheme of the present invention, display area non-for on-screen display (osd) area the right and left Place button, with its X axis coordinate absolute value from big to small sequence arrangement, be saved in the storage sequence;And/or for The place button of the non-display area in both sides above and below on-screen display (osd) area is arranged with the sequence of its Y axis coordinate absolute value from big to small, It is saved in the storage sequence.
Further, the improvement as second scheme of the present invention, by the place button of non-display area according to its relative to The coordinate value of the non-azimuth direction of on-screen display (osd) area is shown on on-screen display (osd) area in an orderly manner.
Further, the improvement as second scheme of the present invention, in step s 13, including step S131: creation display sequence Column traverse the place button of non-display area in the storage sequence, are added in display sequence one by one;Wherein, one is added when every When a place button, saved after resequencing to place button all in display sequence.
Further, the improvement as second scheme of the present invention resequences to the place button in display sequence Rule are as follows: base area point button ascending is ranked up relative to the coordinate value of the non-azimuth direction of on-screen display (osd) area.
Further, the improvement as second scheme of the present invention, in step S131, one new place button of every addition To display sequence and rearrangement, enter step S132: the place button that judgement is newly added whether with other in display sequence The overlapping of place button;If overlapping, the non-azimuth direction of place button in display sequence relative to on-screen display (osd) area is adjusted Coordinate value, to adjust display position of the place button on screen edge.
Further, the improvement as second scheme of the present invention, if the place button being newly added in display sequence with Other place buttons being present in display sequence overlap before when, further adjust other place buttons relative to screen The coordinate value of the non-azimuth direction of curtain display area, the coordinate value to guarantee the place button being currently newly added are constant;Other ground The coordinate value of the non-azimuth direction relative to on-screen display (osd) area of point button updates after being adjusted to be saved into display sequence, with The change of the display position of the place button being adjusted is shown on the screen.
Further, the improvement as second scheme of the present invention, the ground adjacent with the place button being currently newly added are pressed After change has occurred in the position in X-axis or Y-axis in button, when Chong Die with place button adjacent thereto again, then continue adjustment with Its position of adjacent place button in X-axis or Y-axis, makes place button adjacent thereto do the movement on corresponding direction, with This continues, until the fully point button in display sequence is not overlapped in X-axis or Y-axis;After adjustment, adjustment is saved The newest coordinate value of place button in display sequence afterwards.
Further, the improvement as second scheme of the present invention has judged whole places in display sequence in step S132 After button is not overlapped in X-axis or Y-axis, S133 is entered step: having judged whether the place button of all non-display areas all Ranked completion is simultaneously added in display sequence;If it is not, then return step S131 adds new place button to showing sequence Column.
Further, the improvement as second scheme of the present invention, if judging the place button of all non-display areas all Ranked completion and after being recorded in display sequence, enters step S134: judge in the display sequence it is all it is sorted not Whether the place button of display area exceeds screen border;If so, carrying out boundary adjustment.
Further, the improvement as second scheme of the present invention further includes step S135: the ground in display sequence is pressed Button is shown in on-screen display (osd) area in order and corresponds on the edge in orientation.
Further, the improvement as second scheme of the present invention in display sequence is pressed first in step S135 After the coordinate value of the azimuth direction of button is adjusted as the coordinate value at corresponding on-screen display (osd) area edge, after update The coordinate parameters of display sequence show.
Place button on map has been done step-by-step from on-screen display (osd) area in improvement through the above technical solution During non-display area transition, place button is switched to screen from the position on the map of on-screen display (osd) area and shows When showing the corresponding marginal position in region, place button be located at the edge of on-screen display (osd) area position and its on former map Be closely located to or unanimously, to achieve the effect that a smooth connection, player is facilitated to search and enhancing visual experience.
In addition, the present invention also provides map display devices corresponding with map display methods.It is mainly It is realized by the following technical programs:
A kind of map display device, including the mobile processing module of map, place button searching module and display module. Wherein, the mobile processing module of the map, when map is dragged, obtains trip for judging whether map is dragged Play map amount of movement, and amount of movement information is dealt into place button searching module;The place button searching module is used for every When frame map is shown, the place of the non-display area in the map other than the range of current screen display region is searched Button, and display module is sent by the information of these place buttons;The display module is looked into for receiving the place button The place button information for the non-display area for looking for module to send, the place button of the non-display area is shown and is being shielded On curtain display area.
Compared with the existing technology, map display device of the invention shows the place button of non-display area in intelligence On the screen of energy terminal, allow player that can intuitively choose the place button of non-display area, without constantly dragging trip Map of playing finds place button to be reached, increases game experiencing sense.
As a further improvement of the present invention, the place button searching module includes coordinate transform subblock, for connecing The map amount of movement that the mobile processing module of map is sent is received, according to the map coordinate system and screen coordinate pre-established The incidence relation of system and map coordinate system and screen coordinate system, by the center of the place button in map coordinate Coordinate in system is mapped to screen coordinate system, obtains its coordinate value relative to screen coordinate system, to search the non-viewing area The place button in domain.
Further, as an improvement of the present invention, the place button searching module further comprises place button judgement Module compares for the center of place button to be located to the boundary parameter of coordinate value and display screen of screen coordinate system, sentences Whether disconnected various regions point button obtains the place button of non-display area side relative to on-screen display (osd) area in non-display area Position information.
Further, the improvement as the first scheme of the invention, the place button searching module further comprise storage Submodule, the place button information of the non-display area for saving the acquisition of place button judging submodule.
Further, the improvement as the first scheme of the invention, the place button information includes place button center point The volume of coordinate value in map coordinate system of coordinate value, place button center point in screen coordinate system, place button Number information, place button are relative to any one in the azimuth information of on-screen display (osd) area.
Further, the improvement as the first scheme of the invention, the display module are further used for non-display area Place button press it and be shown in on-screen display (osd) area relative to the orientation of on-screen display (osd) area and correspond on the edge in orientation.
Further, the improvement as the first scheme of the invention, the display module are further used for non-display area Place button screen display area is shown according to its coordinate value relative to the non-azimuth direction of on-screen display (osd) area in an orderly manner On domain.
Further, the improvement as the first scheme of the invention, the display module includes orientation grouping module and sequence Display module, the orientation grouping module are used to call the ground of non-display area from place button searching module or storage submodule Azimuth information of the point button relative to on-screen display (osd) area, will correspond to on-screen display (osd) area different direction in non-display area Place button is grouped according to orientation, and the place button in every group of orientation is according to its non-orientation side relative to on-screen display (osd) area Upward coordinate value is ranked up;The sequencing display module is used for place button according to the ranking results of the orientation grouping module It is shown on the edge in correspondence orientation of screen.
Improvement through the above technical solution realizes and shows the place button of non-display area relative to screen according to it Show that the orientation in region is shown in screen and corresponds on the edge in orientation, more convenient player searches and clicks.
Further, the improvement as second scheme of the present invention, the display module is by the place of the non-display area Button is related to its position on former map in the display position at on-screen display (osd) area edge.
Further, the improvement as second scheme of the present invention, place button on map is from screen display area During domain to non-display area, place button is shown to screen from the position on the map of on-screen display (osd) area for the first time When the corresponding marginal position in display area, place button be located at the edge of on-screen display (osd) area display position and its in former game Coordinate value of the position on non-azimuth direction on map is identical.
Further, the improvement as second scheme of the present invention, the place button searching module further comprise storage Submodule, for creating storage sequence, and the place button for the non-display area that the place button judging submodule is transmitted It is saved in an orderly manner relative to the coordinate value of the azimuth direction of on-screen display (osd) area into storage sequence according to it.
Further, the improvement as second scheme of the present invention, display area non-for on-screen display (osd) area the right and left Place button, it is described storage submodule be further used for by its with X axis coordinate absolute value from big to small sequence arrangement, save To the storage sequence;The place button of display area non-for both sides above and below on-screen display (osd) area, the storage submodule into One step is used to arrange it with the sequence of Y axis coordinate absolute value from big to small, is saved in the storage sequence.
Further, the improvement as second scheme of the present invention, the display module are further used for non-display area Place button screen display area is shown according to its coordinate value relative to the non-azimuth direction of on-screen display (osd) area in an orderly manner On domain.
Further, the improvement as second scheme of the present invention, the display module include place button sorting sub-module, The storage sequence sent for receiving the storage submodule, and display sequence is created, it traverses and is not shown in the storage sequence Show the place button in region, is added in display sequence one by one;Wherein, when every addition one place button, the place button Sorting sub-module is further used for saving after resequencing to place button all in display sequence.
Further, the improvement as second scheme of the present invention, the place button sorting sub-module are used for display sequence The rule that place button in column is resequenced are as follows: non-azimuth direction of the base area point button relative to on-screen display (osd) area Coordinate value ascending be ranked up.
Further, the improvement as second scheme of the present invention, the display module further include overlapping judgement and adjustment Module, for display sequence and resequencing in the place button sorting sub-module one new place button of every addition Afterwards, whether the place button that judgement is newly added is Chong Die with other place buttons in display sequence;If overlapping, overlapping judgement and tune The coordinate value of non-azimuth direction of the place button relative to on-screen display (osd) area in whole submodule adjustment display sequence, to adjust ground Display position of the point button on screen edge.
Further, the improvement as second scheme of the present invention, the overlapping judgement and adjusting submodule are further used for: If when other place buttons that the place button that judgement is newly added in display sequence is present in display sequence with before are sent out When raw overlapping, the coordinate value of the non-azimuth direction relative to on-screen display (osd) area of other place buttons is further adjusted, to protect The coordinate value for the place button that card is currently newly added is constant;The non-orientation side relative to on-screen display (osd) area of other place buttons To coordinate value be adjusted after update save into display sequence, to show the display of the place button being adjusted on the screen The change of position.
Further, the improvement as second scheme of the present invention, the overlapping judgement and adjusting submodule are further used for: After change has occurred in position of the judgement place button adjacent with the place button being currently newly added in X-axis or Y-axis, again When Chong Die with place button adjacent thereto, continue to adjust the position of place button adjacent thereto in X-axis or Y-axis, make with Its adjacent place button does the movement on corresponding direction, is continued with this, until the fully point button in display sequence It is not overlapped in X-axis or Y-axis;After adjustment, which saves the newest coordinate value of place button adjusted.
Further, the improvement as second scheme of the present invention, the display module further include that sequence is completed to judge submodule Block, for fully putting button in having judged display sequence in X-axis or Y-axis not in overlapping judgement and adjusting submodule After overlapping, judge whether that the place button of all non-display areas all has been added in display sequence and completes to sort;If It is no, then new place button is added to display sequence by place button sorting sub-module.
Further, the improvement as second scheme of the present invention, the display module further include boundary judgement and adjustment Module, if judging that the place button of all non-display areas has all been completed to sort for completing judging submodule in the sequence And after being recorded in display sequence, judge the place button of all sorted non-display areas in the display sequence beyond screen Curtain boundary, if so, carrying out boundary adjustment.
Further, the improvement as second scheme of the present invention, the display module further include sequence display sub-module, are used It is shown on the edge that on-screen display (osd) area corresponds to orientation in order in by the place button in display sequence.
Further, the improvement as second scheme of the present invention, the sequence display sub-module are further used for: right first After the coordinate value of the azimuth direction of place button is adjusted as the coordinate value of corresponding screen edge in display sequence, then press It is shown according to the coordinate parameters of updated display sequence.
Place button on map has been done step-by-step from on-screen display (osd) area in improvement through the above technical solution During non-display area transition, place button is switched to screen from the position on the map of on-screen display (osd) area and shows When showing the corresponding marginal position in region, place button be located at the edge of on-screen display (osd) area position and its on former map Be closely located to or unanimously, to achieve the effect that a smooth connection, player is facilitated to search and enhancing visual experience.
In addition, the present invention also provides mobile client corresponding with the map display device and computer clients.
In order to the clearer understanding present invention, a specific embodiment of the invention is illustrated below with reference to Detailed description of the invention.
Detailed description of the invention
Fig. 1 is the schematic diagram that intelligent terminal shows map.
Fig. 2 is the method and step flow chart of the map display methods of the embodiment of the present invention 1.
Fig. 3 is the non-viewing area of the embodiment of the present invention 1 searched in map other than the range of current screen display region The method and step flow chart of the place button in domain.
Fig. 4 is the original state schematic diagram that intelligent terminal shows screen and map in 1 example of the embodiment of the present invention.
Fig. 5 is that intelligent terminal shows that the first variable condition of screen and map is illustrated in 1 example of the embodiment of the present invention Figure.
Fig. 6 is that intelligent terminal shows that the second variable condition of screen and map is illustrated in 1 example of the embodiment of the present invention Figure.
Fig. 7 is that intelligent terminal shows that the completion ordered state of screen and map is illustrated in 1 example of the embodiment of the present invention Figure.
Fig. 8 is the structure connection figure of the map display device of the embodiment of the present invention 1.
Fig. 9 is the method and step flow chart of the map display methods of the embodiment of the present invention 2.
Figure 10 is the non-viewing area of the embodiment of the present invention 2 searched in map other than the range of current screen display region The method and step flow chart of the place button in domain.
Figure 11 be the embodiment of the present invention 2 the place button by non-display area according to display on intelligent terminal screen Method and step flow chart.
Figure 12 is the original state schematic diagram that intelligent terminal shows screen and map in 2 example of embodiment.
Figure 13 is the first variable condition schematic diagram that intelligent terminal shows screen and map in 2 example of embodiment.
Figure 14 is the second variable condition schematic diagram that intelligent terminal shows screen and map in 2 example of embodiment.
Figure 15 is the third variable condition schematic diagram that intelligent terminal shows screen and map in 2 example of embodiment.
Figure 16 is the 4th variable condition schematic diagram that intelligent terminal shows screen and map in 2 example of embodiment.
Figure 17 is the 5th variable condition schematic diagram that intelligent terminal shows screen and map in 2 example of embodiment.
Figure 18 is the 6th variable condition schematic diagram that intelligent terminal shows screen and map in 2 example of embodiment.
Figure 19 is the completion ordered state schematic diagram that intelligent terminal shows screen and map in 2 example of embodiment.
Figure 20 is the structure connection figure of the map display device of the embodiment of the present invention 2.
Figure 21 is the structure connection figure of the display module of the embodiment of the present invention 2.
Specific embodiment
Referring to Fig. 1, it shows the schematic diagram of map for intelligent terminal.The area of map is greater than intelligent terminal The display area of screen, intermediate region are on-screen display (osd) area, and surrounding shadow region is last display area, and user is whole by intelligence The screen at end can only see and select the place button of intermediate screen display area, can not see the place of the non-display area of surrounding Button.
In order to solve the problems, such as that this display is not complete, first have to realize that the place button of the non-display area of map is same When be shown on intelligent terminal screen, with facilitate player search click.In the realization of method, due to need to map with The displaced posi of screen map judged, therefore, it is necessary first to pre-establish map coordinate system and intelligence respectively The screen coordinate system of terminal and the incidence relation of map coordinate system and screen coordinate system.
Specifically, using the intelligent terminal screen lower left corner as coordinate origin, screen coordinate system U is established;With map lower-left Angle is coordinate origin, establishes map coordinate system V;Using intelligent terminal screen coordinate system as reference coordinate, map is defined Coordinate system V is transformed to T to screen coordinate system U's, since map is a kind of translation variation relative to the dragging of screen, T is a translation transformation, i.e. U=V+T.Map loads for the first time in game running, and T has an initial value T0, to determine The game map area that intelligent terminal screen is shown when loading for the first time.In addition, the place button on map is one optional Region, it is L or the width of rectangle place button is L, the application that generally circular in cross section perhaps rectangle, which circularly puts the diameter of button, For circularly putting button, with the centre coordinate V (x of these place buttonsv, yv) indicate these place buttons in map Coordinate position in coordinate system, with the centre coordinate U (x of these place buttonsu, yu) indicate these place buttons in screen coordinate Coordinate position in system.
The analysis framework of the incidence relation of map coordinate system and screen coordinate system based on above-mentioned foundation, the present invention are logical The method of specific embodiment below is crossed to realize.
Embodiment 1
Referring to Fig. 2, it is the method and step flow chart of map display methods of the invention.Based on above-mentioned game The foundation of the screen coordinate system and its incidence relation of figure coordinate system and intelligent terminal, map display methods of the invention are specific The following steps are included:
S11: the dragging signal in response to being directed to map obtains the amount of movement of map.
When map is dragged, map is translated relative to intelligent terminal screen, i.e., map coordinate system V is arrived The transformation T of screen coordinate system U is translation transformation, and T is map amount of movement.Assuming that T1It is movement of the map in X-axis Amount, T when map is moved to the left1For negative quantity, T when moving right1For positive quantity;T2It is amount of movement of the map in Y-axis, trip T when play map moves down2For negative quantity, T when moving up2For positive quantity.
S12: it in the display of every frame map, searches in the map other than the range of current screen display region The place button of non-display area.
When map is dragged, come by comparing the coordinate of place button and the coordinate at on-screen display (osd) area edge true Fixed not shown place button.Specifically, please refer to Fig. 3, to search current screen display region model in map The realization flow chart of steps of the place button of non-display area other than enclosing, according to the map coordinate system and screen pre-established The incidence relation of curtain coordinate system and map coordinate system and screen coordinate system, specifically includes the following steps:
S121: coordinate of the center of place button in map coordinate system is mapped to screen coordinate system, obtains it Coordinate value relative to screen coordinate system.
Coordinate of the center of place button in map coordinate system is V (xv, yv), when map is trailing It waits, since the transformation T of map coordinate system V to screen coordinate system U is translation transformation, the centre coordinate of place button is also passed through Transformation T is crossed, the value U (x of screen coordinate system U is converted intou, yu), wherein xu=xv+T1, yu=yv+T2, T here1It is map In the amount of movement of X-axis, T when map is moved to the left1For negative quantity, T when moving right1For positive quantity;T2It is map in Y-axis Amount of movement, T when map moves down2For negative quantity, T when moving up2For positive quantity.
S122: judge various regions point button whether in the map not showing other than the range of current screen display region Show region.
Specific method are as follows: by obtaining the screen resolution parameter of intelligent terminal, the center of place button is located at screen Whether the coordinate value of curtain coordinate system and the boundary parameter of display screen compare, to judge a place button in non-display area. For example, obtaining the long h and width w of display screen, x is judgeduWhether less than 0, indicate that the place button is in screen and shows less than 0 The non-display area in the left side in region, judges xuWhether it is greater than h, then indicates that the place button is in on-screen display (osd) area greater than h The non-display area in right side;Similarly, judge yuWhether less than 0, indicate that the place button is under on-screen display (osd) area less than 0 The non-display area in side, judges yuWhether it is greater than w, then indicates that the place button is in the top of on-screen display (osd) area and does not show greater than w Show region.Therefore, in this step, azimuth information of the various regions point button relative to on-screen display (osd) area can be also obtained simultaneously.
S123: the place button information of the non-display area of acquisition is saved.
In the present embodiment, the place button information of the non-display area of acquisition is saved, including button center point in place exists X, y-axis coordinate value in screen coordinate system.Furthermore it is also possible to save coordinate value of the place button in map coordinate system or The information such as the number of place button.And it also can be reserved for azimuth information of the place button relative to on-screen display (osd) area.
S13: the place button of non-display area is shown on mobile intelligent terminal screen.
Specifically, it by the place button of the non-display area found step S12, is shown on the edge of screen.
Further, corresponding place is searched in order to facilitate player, what can be judged according to step S122 is located at screen display area Domain orientation as a result, the place button in non-display area on the left of setting screen is shown in the left side edge of screen, screen is right Place button in the non-display area on side is shown in the right side edge of screen, and the ground in non-display area above screen is pressed Button is shown in the top edge of screen, and the place button in the following non-display area of screen is shown in the following edge of screen.
For specific display mode, including step S131: the place of the non-display area obtained in invocation step S122 Place button phase of the button relative to the non-display area saved in the azimuth information or invocation step S123 of on-screen display (osd) area For the azimuth information of on-screen display (osd) area;Then the place button of different direction in non-display area is divided according to orientation The place button of group, every group of orientation is ranked up according to the coordinate value on its non-azimuth direction relative to on-screen display (osd) area; And step S132: place button is shown on the edge in the correspondence orientation of screen according to the ranking results of step S131.Such as Positioned at the place button of screen or so side edge, the y-axis coordinate value for pressing place button is descending, arranges, is located at from top to bottom The place button at following edge on screen, the x-axis coordinate value for pressing place button is ascending, arranges from left to right.
In addition, to the left side and top or left side that are located at on-screen display (osd) area simultaneously and following or right side and top or The direction that a certain direction is priority ordering can be set in the place button on right side and following non-display area, such as with a left side Right both sides are privileged direction, the place button of the non-display area of the right and left are first discharged to screen or so side edge, then will be upper The place button of the non-display area of lower two sides is discharged to screen side edge up and down.In addition, can also be according to the place of non-display area Display number of the button on screen edge adjusts the left upper right corner, and the place button of the non-display area of left and right inferior horn is on screen side The display of edge.Specific steps are as follows: first then detection will not shown positioned at the quantity of the button at four edges of screen before display Show that the place key in region is arranged on the side of current location button negligible amounts.To improve the visual experience of player.Example It, will if the place button of screen left side edge is more such as being located at the non-display area on the left of screen with top simultaneously Edge on the screen is arranged in the place button of the non-display area in the upper left corner.
The operating process and concrete application of the map display methods of the present embodiment 1 are described below:
By taking the place button of the non-display area on the left of the map that intelligent terminal screen is shown as an example, referring to Fig. 4, It shows the original state schematic diagram of screen and map for intelligent terminal.Left area is the non-viewing area on map , there are the first place button 11, the second place button 12 and third place button 13 in domain above, and right area is the screen of intelligent terminal Curtain display area, shows the 4th place button 14 thereon.Judge whether screen moves according to step S11, if moved, obtains Obtain amount of movement.The first place button 11 is found by step S12, the second place button 12 and third place button 13 are located at screen The non-display area in curtain left side.Finally by step S13 by the first place button 11 of non-display area, the second place button 12 Be shown on the on-screen display (osd) area of intelligent terminal with third place button 13, on-screen display (osd) area left side edge according to The descending arrangement display of the y-axis coordinate of one place button 11, the second place button 12 and third place button 13, such as Fig. 5 institute Show.
If map continues dragging of turning left, the 4th place button 14 can also enter non-display area, as shown in Figure 6. First place button 11, the second place button 12 are found by step S12, third place button 13 and the 4th place button 14 exist Non- display area, by step S13, in screen left side edge according to the first place button 11, the second place button 12, third place The descending arrangement display of the y-axis coordinate of button 13 and the 4th place button 14, as shown in Figure 7.
Based on above-mentioned map display methods, the present invention also provides a kind of map display devices.It please refers to Fig. 8, map display device of the invention include the mobile processing module 11 of map, place button searching module 12 and display mould Block 13.Wherein, it is mobile to obtain map for receiving the trailing signal of map for the mobile processing module 11 of the map Amount, and amount of movement information is dealt into place button searching module 12.The place button searching module 12 is in every frame game When figure is shown, search the place button of the non-display area in map other than the range of current screen display region, and by this The information of a little places button is sent to display module 13.The display module 13 is sent for receiving place button searching module 12 Non- display area place button information, by these places, button is shown on on-screen display (osd) area.
Further, which includes coordinate transform subblock 121, place button judging submodule 122 and storage submodule 123.Wherein, which is used to receive what the mobile processing module 11 of map was sent Map amount of movement, according to the map coordinate system and screen coordinate system and map coordinate system and screen pre-established The incidence relation of curtain coordinate system, centre coordinate of the place button in map coordinate system is mapped in screen coordinate system simultaneously It is sent to place button judging submodule 122;Whether the place button judging submodule 122 is for judging various regions point button in institute State the non-display area in map other than the range of current screen display region, and by the place button information of non-display area It is sent to storage submodule 123;The storage submodule 123 is used to save the information of the place button of non-display area.
Specifically, the coordinate transform subblock 121 is further used for: by the centre coordinate V of place button0(xv, yv) pass through T is converted, the coordinate value U of screen coordinate system U is converted into0(xu, yu), wherein xu=xv+T1, yu=yv+T2, T here1It is game For figure in the amount of movement of X-axis, map is moved to the left T1For negative quantity, move right, T1For positive quantity;T2It is map in Y-axis Amount of movement, map move down T2It for negative quantity, moves up, T2For positive quantity.
The place button judging submodule 122 is further used for: the screen resolution parameter by obtaining intelligent terminal obtains To the long h and width w of screen, x is judgeduWhether less than 0, indicate that the place button is in the left side of on-screen display (osd) area less than 0 Non- display area, judges xuWhether it is greater than h, then indicates that the place button is in the right of on-screen display (osd) area and does not show greater than h Region;Similarly, judge yuWhether less than 0, indicate that the place button is in the following non-viewing area of on-screen display (osd) area less than 0 Domain judges yuWhether it is greater than w, then indicates that the place button is in the non-display area in top of on-screen display (osd) area greater than w.Cause This, which can also further obtain side of the various regions point button relative to on-screen display (osd) area simultaneously Position information.
The storage submodule 123 is further used for receiving the non-display area that place button judging submodule 122 is sent Place button information, X, Y axis coordinate value including place button center point in screen coordinate system.Furthermore it is also possible to for protecting Deposit the information such as the number of coordinate value or place button of the place button in map coordinate system.And, it may also be used for it saves Azimuth information of the place button relative to on-screen display (osd) area.
Further, in order to realize position that the place button of non-display area is shown on the screen of intelligent terminal and the ground Point button is consistent relative to the orientation of on-screen display (osd) area, which further includes that orientation grouping module 131 and sequence are aobvious Show module 132.
The orientation grouping module 131 is used to from place button judging submodule 122 or storage submodule 123 read not showing Show azimuth information of the place button in region relative to on-screen display (osd) area, by the place button of different direction in non-display area It is grouped according to orientation, the place button in every group of orientation is ranked up according to coordinate value.
The sequencing display module 132 is for reading the ranking results of orientation grouping module 131 and by place button according to row Sequence is as the result is shown on the edge in the correspondence orientation of screen.The place button in non-display area on the left of setting screen is shown in The left side edge of screen, the place button in non-display area on the right of screen are shown in the right edge of screen, above screen Non- display area in place button be shown in the top edge of screen, the place button in the following non-display area of screen It is shown in the following edge of screen.
Compared with the existing technology, the map display methods and device of the present embodiment, the ground of non-display area is pressed Button is shown on the screen of intelligent terminal, allows player that can intuitively choose the place button of non-display area, without Constantly dragging map finds place button to be reached, increases game experiencing sense.It further, will also non-display area Place button screen be shown in relative to the orientation of on-screen display (osd) area according to it correspond on the edge in orientation, more convenient object for appreciation Family searches and clicks.
Embodiment 2
For the technical solution of embodiment 1, in map when intelligent terminal on-screen display (osd) area is mobile, map On place button during from on-screen display (osd) area to non-display area transition, can have a hopping sense, i.e. place button Switching on the screen is to jump to another position from a position.
In order to allow map when intelligent terminal on-screen display (osd) area is mobile, place button on map is from screen During display area to non-display area transition, place button switches from the position on the map of on-screen display (osd) area When marginal position corresponding to on-screen display (osd) area, place button be located at the edge of on-screen display (osd) area position and its original swim It is closely located to or unanimously on play map, to achieve the effect that a smooth connection, player is facilitated to search and enhancing visual experience, The present embodiment 2 further increases the sequence to the being modified property of place button in non-display area on the basis of implementing 1 And the method for display, show Shi Yuqi in original game map screen so that place button switches on screen edge from map The position correlation of curtain display area is corresponding or consistent.
Specifically, referring to Fig. 9, its for the present embodiment 2 map display methods method and step flow chart, including Following steps:
S21: the dragging signal in response to being directed to map obtains the amount of movement of map.
S22: it in the display of every frame map, searches in the map other than the range of current screen display region The place button of non-display area.
Specifically, it is not shown by comparing the coordinate of map button and the coordinate at on-screen display (osd) area edge to determine Place button.Please refer to Figure 10, in the map to search intelligent terminal current screen display region range with The realization flow chart of steps of the place button of outer non-display area, specifically includes the following steps:
S221: centre coordinate of the place button in map coordinate system is mapped to screen coordinate system, obtains its phase For the coordinate value of screen coordinate system.
Coordinate of the place button in map coordinate system is V0(xv, yv), when map is trailing, by It is translation transformation in the transformation T of map coordinate system V to screen coordinate system U, the centre coordinate of place button is also passed through into change T is changed, the coordinate value U of screen coordinate system U is converted into0(xu, yu), wherein xu=xv+T1, yu=yv+T2, T here1It is map In the amount of movement of X-axis, map is moved to the left T1For negative quantity, move right, T1For positive quantity;,T2It is map in Y-axis Amount of movement, map move down T2It for negative quantity, moves up, T2For positive quantity.
Hereinafter, the coordinate value transformation of place button refers to the transformation of the coordinate value based on screen coordinate system.
S222: judge various regions point button whether in the map not showing other than the range of current screen display region Show region.
By obtaining the screen resolution parameter of mobile intelligent terminal, the long h and width w of screen are obtained.Judge xuIt is whether small In 0, indicate that the place button is in the non-display area in left side of on-screen display (osd) area if less than 0;Judge xvWhether h is greater than, Then indicate that the place button is in the non-display area in the right of on-screen display (osd) area if more than h;Similarly, judge yuWhether less than 0, Indicate that the place button is in the following non-display area of on-screen display (osd) area if less than 0;Judge yuWhether w is greater than, if greatly Then indicate that the place button is in the non-display area in top of on-screen display (osd) area in w.It therefore, in this step, can also be simultaneously Obtain azimuth information of the various regions point button relative to on-screen display (osd) area.
S223: creation storage sequence, by the place button of non-display area according to its side relative to on-screen display (osd) area The coordinate value in position direction is saved in an orderly manner into storage sequence.
Specifically, the storage sequence in 4 orientation for indicating left and right, upper and lower is established, it is each according to what is obtained in step S222 Azimuth information of the place button relative to on-screen display (osd) area, by the place button of respectively non-display area be respectively stored in it is left and right, In upper and lower four storages sequence.Further, each orientation storage sequence in non-display area place button according to its The coordinate value of the azimuth direction relative to on-screen display (osd) area in screen coordinate system sequentially saves.
Here, each place button is as in data element storage to a storage sequence, each data element includes X, two coordinate value data item of Y-axis indicate the display position of the place button on screen coordinate system.
In each storage sequence, the tactic rule of place button are as follows: (1) for on-screen display (osd) area or so The non-display area in both sides, with the sequence arrangement of X axis coordinate absolute value from big to small;This is sequentially map in trailing mistake Cheng Zhong, the more early the right and left edge for appearing in display screen of the place button of the bigger non-display area of X axis coordinate absolute value. That is, for display area non-on the left of screen, the X axis coordinate value according to place button in screen coordinate system ascending is aligned to a left side Sequence is stored, for display area non-on the right of screen, is worth descending arrangement according to the X axis coordinate of place button screen coordinate system To right storage sequence.(2) display area non-for both sides above and below on-screen display (osd) area, from big to small with Y axis coordinate absolute value Sequence arranges;This is sequentially map during trailing, the place of the bigger non-display area of Y axis coordinate absolute value The more early both sides edge up and down for appearing in display screen of button.That is, for screen non-display area below, according to place button screen The Y axis coordinate value of curtain coordinate system is ascending to be aligned to lower storage sequence, and display area non-for screen top is pressed according to ground The Y axis coordinate value of button screen coordinate system is descending to be aligned to storage sequence.
By taking the place button of the non-display area on the left of the map that intelligent terminal screen is shown as an example, according to these ground The X axis coordinate of the screen coordinate system of point button is worth ascending sequence, is saved in left storage sequence array A, for j-th Point button, the value of X-axis are less than the value of+1 place button of jth, i.e. A [j] .x≤A [j+1] .x.
S23: by the place button of the non-display area according to its non-azimuth direction relative to on-screen display (osd) area Coordinate value is shown on on-screen display (osd) area in an orderly manner.
In this step, make the place button on map from on-screen display (osd) area to the process of non-display area transition In, place button is switched to the corresponding marginal position of on-screen display (osd) area from the position on the map of on-screen display (osd) area When, place button is located at the position at the edge of on-screen display (osd) area and its position on former map links up smoothly.
Please refer to Figure 11, to be shown the place button of non-display area in an orderly manner according to its coordinate value in intelligence The method and step flow chart in map range that terminal screen is shown, specifically includes the following steps:
S231: creation display sequence, the ground for traversing non-display area in the storage sequence established in step S223 are pressed Button is added in display sequence one by one;When every addition one place button, place button all in display sequence is carried out again It is saved after sequence.Step S232 is gone to later, and the coordinate value for putting button over the ground carries out overlapping judgement and adjustment.
Specifically, the display sequence of foundation includes the display in 4 orientation corresponding with the storage sequence in 4 orientation respectively Sequence.The rule resequenced to the place button in display sequence are as follows: base area point button is relative to screen display area The coordinate value of the non-azimuth direction in domain is ascending to be ranked up.
For display area non-on the left of screen, the ground for the non-display area in left storage sequence that traversal step S223 is established Point button, this it is left storage sequence in non-display area place button be according to screen coordinate system X axis coordinate value by It is small to be arranged to big sequence.To the place button of the non-display area in the left storage sequence, left display sequence is added one by one;Often When one place button is added, the ascending ordering rule of the coordinate value of all base area point button Y-axis, in left display sequence All place buttons are resequenced.Often plus one place button, the place button in display sequence is arranged again After sequence, step S232 is branched to, carries out the overlapping judgement and adjustment of putting button display position over the ground.
Similarly, for display area non-on the right of screen, non-display area in the right storage sequence that traversal step S223 is established Place button, place button of non-display area in the right storage sequence has been according to screen coordinate system X axis coordinate value It is ordered from large to small.To the place button of the non-display area in the right storage sequence, right display sequence is added one by one; When every addition one place button, the ascending ordering rule of the coordinate value of all base area point button Y-axis, to right display sequence In all place button resequence.The coordinate value of the place button of the new addition is constant, often plus one place button After being resequenced, step S232 is branched to, carries out the overlapping judgement and adjustment of putting button display position over the ground.
The place of non-display area in the lower storage sequence established for screen non-display area below, traversal step S223 Button, this it is lower storage sequence in non-display area place button be according to screen coordinate system Y axis coordinate value by it is small to Big sequence arrangement.To the place button of the non-display area in the lower storage sequence, lower display sequence is added one by one;Every addition When one place button, the ascending ordering rule of the coordinate value of all base area point button X-axis owns in lower display sequence Place button resequence.The coordinate value of the place button of the new addition is constant, and often plus one place button carries out weight After new sort, step S232 is branched to, carries out the overlapping judgement and adjustment of putting button display position over the ground.
Similarly, display area non-for screen top, traversal step S223 establish upper storage sequence in non-display area Place button, the place button of non-display area stored in sequence on this has been according to screen coordinate system Y axis coordinate value It is ordered from large to small.Place button to the non-display area stored in sequence on this, is added upper display sequence one by one; When every addition one place button, the ascending ordering rule of the coordinate value of all base area point button X-axis, to upper display sequence In all place button resequence.The coordinate value of the place button of the new addition is constant, often plus one place button After being resequenced, step S232 is branched to, carries out the overlapping judgement and adjustment of putting button display position over the ground.
Here, need to illustrate, the coordinate value of place button is stored in sequence array, and place button is base It is shown on the screen in its coordinate value attribute.Therefore, display sequence contains the coordinate parameters of place button, determines The display position of place button on the screen.
In the specific implementation, the place button of the non-display area on the left of the map shown with intelligent terminal screen is Example, establishes a left display sequence array B, and the place button in left storage sequence array A is sequentially added to left display one by one Sequence array B, since the button array A of place one place button A [1], that is, from screen coordinate system X axis coordinate value The smallest place button is begun stepping through.It is added one by one in array B A [2], A [3] ... A [i] (the non-a total of i in display area Place button), every addition one place button A [n] (1 < n < i), all in accordance with place button A [2] existing in array B, A [3] ... the size of Y axis coordinate value A [j] .y of the screen coordinate system of A [n] determines these place buttons in mobile intelligent terminal The position for the map left border that screen is shown is worth ascending sequence by Y axis coordinate.Such as place button array Place button A [j] in A, j-1 button of front have pressed that Y axis coordinate value is ascending to be arranged, and are stored in display array At this moment A [j] .y is inserted into B data by B, so that place button A [2] in display array B, A [3] ... A [j] still press Y-axis The ascending arrangement of coordinate value.
S232: whether the place button that judgement is newly added is Chong Die with other place buttons in display sequence;If there is place The case where button is overlapped, then adjust coordinate of the place button relative to the non-azimuth direction of on-screen display (osd) area in display sequence Value, to adjust position of the place button on screen edge.
Above-mentioned place button overlapping, refers to two place buttons relative in the non-azimuth direction of on-screen display (osd) area At this moment centre distance of the difference of heart coordinate value less than two places point button when tangent is the weight that image occurs in the display of screen It is folded.Due to each place button, there is certain click on area, the application is by taking border circular areas as an example, and the half of each place button Diameter is L.Display area non-for screen the right and left, if coordinate difference of the central point of two place buttons in Y-axis is big In being equal to 2L, then two place buttons are not overlapped, and if it is less than 2L, then two place buttons overlap;For on screen The lower non-display area in both sides, if coordinate difference of the central point of two place buttons in X-axis is more than or equal to 2L, two ground Point button is not overlapped, and if it is less than 2L, then two place buttons overlap.
If the case where being overlapped without appearance position, enters step S233.
In the present embodiment, if the place button being newly added in display sequence is present in display sequence with before When other place buttons overlap, then the seat of the non-azimuth direction relative to on-screen display (osd) area of other place buttons is adjusted Scale value, the coordinate value to guarantee the place button being currently newly added are constant.Other place buttons relative to on-screen display (osd) area Non- azimuth direction coordinate value be adjusted after update and save into display sequence, so that this is adjusted in the display of screen The display position of place button changes.Specific method of adjustment are as follows:
Display area non-for screen the right and left remains unchanged the coordinate for the place button being currently newly added, if The place button of the place button being currently newly added top adjacent thereto overlaps, and adjusts the place of top adjacent thereto Coordinate value of the button in Y-axis increases the Y axis coordinate value of the screen coordinate system of the place button of top, to be moved up; If currently the place button that is newly added following place button adjacent thereto overlaps, adjust adjacent thereto following Coordinate value of the place button in Y-axis reduces the Y axis coordinate value of the screen coordinate system of following place button, thus by it It moves down;To the overlapping of the place button on the current place button being newly added of elimination both sides up and down adjacent thereto.Due to work as Position of the adjacent upper following place button of the preceding place button being newly added in Y-axis is changed, it is possible to can be with them Adjacent place button overlapping continues to adjust position of the place button adjacent with them in Y-axis if overlapping, allow with Their adjacent place buttons are moved up or are moved down, and are continued with this, until the fully point button in display sequence is in Y-axis It is not overlapped, after adjustment, saves the newest coordinate value of the place button in display sequence adjusted.
Display area non-for both sides above and below screen remains unchanged the coordinate for the place button being currently newly added, if The place button on the place button being currently newly added the right adjacent thereto overlaps, and adjusts the place on the right adjacent thereto Coordinate value of the button in X-axis increases the X axis coordinate value of the screen coordinate system of the place button on the right, to be moved to right; If the place button in the place button being currently newly added left side adjacent thereto overlaps, left side adjacent thereto is adjusted Coordinate value of the place button in X-axis reduces the X axis coordinate value of the screen coordinate system of the place button in left side, thus by it It moves to left;To the overlapping of the place button of the current place button being newly added of elimination the right and left adjacent thereto.Due to work as Position of the adjacent left and right side place button of the preceding place button being newly added in X-axis is changed, it is possible to can be with them Adjacent place button overlapping continues to adjust position of the place button adjacent with them in X-axis, transference if overlapping Their adjacent place buttons are moved to left or are moved to right, and are continued with this, until the fully point button in display sequence is in X-axis It is not overlapped, after adjustment, saves the newest coordinate value of the place button in display sequence adjusted.
By taking the place button of the non-display area on the left of the map that intelligent terminal screen is shown as an example, it is assumed that A [j] exists Corresponding points in B are t, i.e. A [j]=B [t], keep B [t] motionless, the following ground of the place button for being newly joined is pressed Button, traversal B [t-1] to B [1] carry out position adjustment, it is assumed that have traversed B [j], 0<j<if t B [j] .y>B [j+1] .y-L, table Show that top place button is overlapped in Y-axis, B [j] .y is adjusted to B [j+1] .y-L.
B [i] is arrived for place button traversal B [t+1] of the top for the place button being newly joined, it is assumed that traverse as B [j], t+1 < j < i indicate that top place button is overlapped in Y-axis, B [j] .y are adjusted to B [j if B [j] .y < B [j+1] .y+L +1].y+L。
After the coordinate value of the display sequence of point button overlapping is adjusted over the ground, S233 is entered step.
S233: judge whether place button all ranked completions of all non-display areas and be added to display sequence In;If not, continuing back at S231;If so, thening follow the steps S234.
S234: it if the place button of all sorted non-display areas exceeds screen border in display sequence, carries out Boundary adjustment.
Judge the place button of all sorted non-display areas in display sequence relative to on-screen display (osd) area Whether the coordinate value of the screen coordinate system of non-azimuth direction exceeds the coordinate value on display area boundary, if it is being adjusted again.
Specifically, for the non-display area of screen the right and left, if the screen of the place button in its display sequence Coordinate system Y axis coordinate value then increases the screen coordinate system Y axis coordinate value of all place buttons, all place buttons less than 0 simultaneously Toward a distance is moved up, so that place button bottom is without departing from screen lower boundary;If the top in display sequence The screen coordinate system Y axis coordinate value of place button is greater than screen width w, then reduces the screen coordinate system of all place buttons simultaneously Y axis coordinate value, all place buttons are toward a distance is moved down, so that the place button of the top is without departing from screen coboundary.It is right The non-display area on both sides above and below screen, if the screen coordinate system X axis coordinate value of the place button in display sequence is less than 0, then increase the screen coordinate system X axis coordinate value of all place buttons simultaneously, all place buttons are past to move to right a distance, so that The place button of the leftmost side is without departing from screen lower boundary;If the screen coordinate system of the place button of the rightmost in display sequence X axis coordinate value is greater than screen length h, then reduces the screen coordinate system X axis coordinate value of all place buttons simultaneously, press allly Button is toward a distance is moved to left, so that the place button of rightmost is without departing from screen right margin.
S235: the place button in display sequence is shown on the edge that on-screen display (osd) area corresponds to orientation in order.
Since the position that place button is shown on the screen is corresponding with its coordinate value in display sequence, in step S232 It is the coordinate value to the non-azimuth direction relative to on-screen display (osd) area of place button in display sequence or in step S234 Modification.Due to needing that the place button of non-display area is shown to pair at it relative to on-screen display (osd) area in display Answer the screen edge in orientation, therefore, need first in display sequence the azimuth direction of place button coordinate value adjustment as with After the coordinate value of its corresponding screen edge, shown according still further to the coordinate parameters of updated display sequence.
Specifically, place button is the round button that radius is L, need to be aobvious by a left side for the non-display area on the left of screen Show that the place button in sequence is shown in the left side of screen, therefore the X axis coordinate value of the screen coordinate system of the place button is set It is set to L;For the non-display area on the right of screen, the place button in right display sequence need to be shown on the right of screen, because The X axis coordinate value of the screen coordinate system of the place button is set as screen length (h-L) by this;The non-viewing area following for screen Domain need to show the place button in lower display sequence in the following of screen, therefore need to be by the screen coordinate system of the place button Y axis coordinate value be set as L;For the non-display area of screen top, the place button in upper display sequence need to be shown The top of screen sets screen width (w-L) for the Y axis coordinate value of the place button.
The process and concrete application of the map display methods of the present embodiment 2 are further detailed and are retouched below It states:
By taking the place button of the non-display area on the left of the map that intelligent terminal screen is shown as an example, figure is please referred to 12, show that the original state of screen and map, left area are the non-display area on map for intelligent terminal, There are the first place button 11, the second place button 12 and third place button 13 above, right area is intelligent terminal display screen The on-screen display (osd) area of curtain, there is the 4th place button 14.Judge whether screen moves according to step S21, if moved, obtains Amount of movement finds the first place button 11 by step S22, and the second place button 12 and third place button 13 are located at a screen left side The non-display area of side, and sorted according to the X axis coordinate value of these three place buttons is ascending, sequence are as follows: third Place button 13, the first place button 11 and the second place button 12.Next, traversing the ground of non-display area by step S231 Point button, the corresponding coordinate value of base area point button are sorted one by one, and display sequence is added, minimum by X axis coordinate value first Third place button 13 start, after sequence as shown in figure 13, step S232 judgement do not occur place button overlapping, do not have to adjustment Position, step S233 judgement are not added display sequence there are also place button, return to step S231, then the first place button 11 Display sequence is added, after sequence as shown in figure 14, the overlapping of place button does not occur in step S232 judgement, does not have to adjustment position, step Display sequence is not added there are also place button in rapid S233 judgement, returns to step S231, then the second place button 12 is added aobvious Show sequence, after sequence as shown in figure 15;There is the overlapping of place button in step S232 judgement, as shown in figure 16, keeps newest and adds The the second place button 12 entered is motionless, and the first place button 11 moves upward away from out the second place button 12, third place button 13 It is moved downwardly away out the second place button 12, step S233 judges that the place button of all non-display areas all joined display sequence Column, next, step S234 judges the place button coordinate in all display sequences without departing from screen border, final step S235 is shielding the first place button 11 of display area non-in display sequence, the second place button 12 and third place button 13 Curtain edge is shown in order.
If map continues dragging of turning left, as shown in figure 17, the 4th place button 14 can also enter non-display area, Using above-mentioned method and step, as shown in figure 18, the 4th place button 14 is inserted into the first place button 11 and the second ground is pressed It between button 12, as shown in figure 19, then keeps the 4th place button 14 motionless, moves up the first place button 11, move down the second place Button 12 and third place button 13 complete sequence, are finally shown to screen left side edge.
Relative to embodiment 1, the display of the map display methods of the present embodiment 2 to the place button of non-display area Position has carried out further adjustment, realizes the place button on map from on-screen display (osd) area to non-display area During transition, it is corresponding that place button from the position on the map of on-screen display (osd) area is switched to on-screen display (osd) area When marginal position, place button be located at the edge of on-screen display (osd) area position and its on former map be closely located to or Unanimously, to achieve the effect that a smooth connection, the game experiencing sense of player is further increased.
2 map display methods based on the above embodiment, the present invention also provides a kind of map display devices. Figure 20 is please referred to, which includes the mobile processing module 21 of map, and place button is searched Module 22 and display module 23.Wherein, the mobile processing module 21 of the map is for judging whether map is dragged, obtains Map amount of movement is taken, if map is mobile, amount of movement information is dealt into place button searching module 22;It presses on the ground Button searching module 22 is used to search in map other than the range of current screen display region in the display of every frame map The place button of non-display area, and display module 23 is sent by the information of these place buttons;The display module 23 is used for The place button information for receiving the non-display area that place button searching module 22 is sent, by these place buttons according to center The X of point, Y axis coordinate value are ranked up, and are shown on on-screen display (osd) area.
Specifically, the place button searching module 22 includes coordinate transform subblock 221, place button judging submodule 222 and storage submodule 223.Wherein, which sends for receiving the mobile processing module 21 of map The map amount of movement come, according to the map coordinate system and screen coordinate system and map coordinate system pre-established With the incidence relation of screen coordinate system, centre coordinate of the place button in map coordinate system is mapped to screen coordinate system In and be sent to place button judging submodule 222;Whether the place button judging submodule 222 is for judging various regions point button Non- display area in the map other than the range of current screen display region, and by the place button of non-display area Information is sent to storage submodule 223;The storage submodule 223 is for receiving what place button judging submodule 222 was sent The place button information of non-display area, and saved in an orderly manner according to the size of the centre coordinate value of these place buttons.
Specifically, the coordinate transform subblock 221 is further used for the centre coordinate (x of place buttonu, yu) by becoming T is changed, the value of screen coordinate system U, x are converted intou=xv+T1, yu=yv+T2, T here1It is amount of movement of the map in X-axis, trip Play map is moved to the left T1For negative quantity, move right, T1For positive quantity;T2Amount of movement of the map in Y-axis, map to Lower mobile T2It for negative quantity, moves up, T2For positive quantity.
The place button judging submodule 222 is further used for the screen resolution ginseng by obtaining mobile intelligent terminal Number, obtains the long h and width w of screen, judges xuWhether less than 0, indicate that the place button is in on-screen display (osd) area less than 0 The non-display area in left side, judges xuWhether it is greater than h, then indicates that the place button is in the right of on-screen display (osd) area not greater than h Display area;Similarly, judge yuWhether less than 0, indicate that the place button is in not showing below for on-screen display (osd) area less than 0 Show region, judges yuWhether it is greater than w, then indicates that the place button is in the non-display area in top of on-screen display (osd) area greater than w.
The storage submodule 223 receives place button judging submodule 222 and sends not for creating storage sequence The place button information of display area, X, Y axis coordinate value and various regions point button including place button center point are relative to screen The coordinate value of the azimuth information of display area, base area point button is saved in an orderly manner in a storage sequence.
Specifically, which is further used for establishing the storage sequence in 4 orientation for indicating left and right, upper and lower Column, azimuth information of the various regions point button that base area point button judging submodule 222 transmits relative to on-screen display (osd) area, will be each The place button of non-display area is respectively stored in left and right, upper and lower four storages sequence.Further, each orientation stores The place button of non-display area in sequence is according to its orientation side relative to on-screen display (osd) area in screen coordinate system To coordinate value sequentially save.
In each storage sequence, the tactic rule of place button are as follows: (1) for on-screen display (osd) area or so The non-display area in both sides, with the sequence arrangement of X axis coordinate absolute value from big to small;This is sequentially map in trailing mistake Cheng Zhong, the more early the right and left edge for appearing in display screen of the place button of the bigger non-display area of X axis coordinate absolute value. That is, for display area non-on the left of on-screen display (osd) area, it is ascending in the X axis coordinate value of screen coordinate system according to place button It is aligned to left storage sequence, for display area non-on the right of on-screen display (osd) area, is sat according to the X-axis of place button screen coordinate system Scale value is descending to be aligned to right storage sequence.(2) display area non-for both sides above and below on-screen display (osd) area, with Y axis coordinate The sequence arrangement of absolute value from big to small;This is sequentially map during trailing, and Y axis coordinate absolute value is bigger The more early both sides edge up and down for appearing in on-screen display (osd) area of the place button of non-display area.That is, for on-screen display (osd) area Following non-display area, is aligned to lower storage sequence according to the Y axis coordinate value of place button screen coordinate system is ascending, for The non-display area in on-screen display (osd) area top is aligned to according to the Y axis coordinate value of place button screen coordinate system is descending Store sequence.
By taking the place button of the non-display area on the left of the map that intelligent terminal screen is shown as an example, according to these ground The X axis coordinate of the screen coordinate system of point button is worth ascending sequence, is saved in left storage sequence array A, for j-th Point button, the value of X-axis are less than the value of+1 place button of jth, i.e. A [j] .x≤A [j+1] .x.
Figure 21 is please referred to, display module 23 includes place button sorting sub-module 231, overlapping judgement and adjusting submodule 232, judging submodule 233, boundary judgement and adjusting submodule 234 and sequence display sub-module 235 are completed in sequence.
Wherein, which is used to receive depositing for the four direction that storage submodule 223 is sent Sequence is stored up, creates display sequence comprising the display sequence in 4 orientation corresponding with the storage sequence in 4 orientation respectively;Its The display in corresponding orientation is added in place button in the storage sequence in each orientation by the storage sequence for traversing each orientation one by one Sequence;Every addition one place button, just resequences to the place button in display sequence.Its rule are as follows: base area Point button ascending is ranked up relative to the coordinate value of the non-azimuth direction of on-screen display (osd) area.
After one new place button of every addition is resequenced to display sequence, the overlapping judgement and adjusting submodule 232 for carrying out overlapping judgement and adjustment to the point button in display sequence.The overlapping judgement and adjusting submodule are specifically used It is whether Chong Die with other place buttons in display sequence in the place button that judgement is newly added;If overlapping, overlapping judgement and tune The coordinate value of non-azimuth direction of the place button relative to on-screen display (osd) area in whole submodule adjustment display sequence, to adjust ground Display position of the point button on screen edge.
The sequence completes judging submodule 233 and is used to judge display sequence in overlapping judgement and adjusting submodule 232 It is fully put in column after button is not overlapped in X-axis or Y-axis, then judges whether the place button of all non-display areas all It is added in display sequence and completes to sort;If it is not, then adding new place button by place button sorting sub-module 231 To display sequence.
Boundary judgement and adjusting submodule 234 are used to complete the ground that module 233 judges all non-display areas in sequence Point button has all been completed after sorting and being recorded in display sequence, judges all in the display sequence sorted do not show The place button in region exceeds screen border;If exceeding screen border, boundary adjustment is carried out.
The sequence display sub-module 235 is for showing the place button in display sequence in order in on-screen display (osd) area On the edge in corresponding orientation.
Specifically, for display area non-on the left of screen, which is further used for: traversal The place button of the non-display area in the left storage sequence that submodule 223 is sent is stored, not showing in the left storage sequence The place button for showing region has been to be worth ascending sequence arrangement according to the X axis coordinate of screen coordinate system.To the left storage The place button of non-display area in sequence, is added left display sequence one by one;When every addition one place button, all base areas The ascending ordering rule of the coordinate value of point button Y-axis, resequences to place button all in left display sequence.
Similarly, for display area non-on the right of screen, which is further used for: traversal storage The place button of non-display area in the right storage sequence that submodule 223 is sent is deposited, the non-viewing area in the right storage sequence The place button in domain is ordered from large to small according to screen coordinate system X axis coordinate value.To in the right storage sequence Non- display area place button, right display sequence is added one by one;When every addition one place button, all base area point buttons The ascending ordering rule of the coordinate value of Y-axis resequences to place button all in right display sequence.
For screen, non-display area, the place button sorting sub-module 231 are further used for below: traversal storage submodule The place button of non-display area in the lower storage sequence that block 223 is sent, the lower ground for storing the non-display area in sequence Point button has been to be worth ascending sequence arrangement according to screen coordinate system Y axis coordinate.To not showing in the lower storage sequence Show the place button in region, lower display sequence is added one by one;When every addition one place button, all base area point button X-axis The ascending ordering rule of coordinate value resequences to place button all in lower display sequence.
Similarly, display area non-for screen top, the place button sorting sub-module 231 are further used for: traversal storage The place button for depositing non-display area in the upper storage sequence that submodule 223 is sent stores the non-viewing area in sequence on this The place button in domain is ordered from large to small according to screen coordinate system Y axis coordinate value.It is stored in sequence on this Non- display area place button, upper display sequence is added one by one;When every addition one place button, all base area point buttons The ascending ordering rule of the coordinate value of X-axis resequences to place button all in upper display sequence.
In the specific implementation, the place button of the non-display area on the left of the map shown with intelligent terminal screen is Example, establishes a left display sequence array B, and the place button in left storage sequence array A is sequentially added to left display one by one Sequence array B, since the button array A of place one place button A [1], that is, from screen coordinate system X axis coordinate value The smallest place button is begun stepping through.It is added one by one in array B A [2], A [3] ... A [i] (the non-a total of i in display area Place button), every addition one place button A [n] (1 < n < i), all in accordance with place button A [2] existing in array B, A [3] ... the size of Y axis coordinate value A [j] .y of the screen coordinate system of A [n] determines these place buttons in intelligent terminal screen The ascending sequence of Y-axis is pressed in the position of the map left side edge of display.Such as the ground in the button array A of place Point button A [j], j-1 button of front has pressed ascending arrange of Y-axis and has been stored to display array B, at this moment by A [j] .y is inserted into B data, so that place button A [2] in display array B, A [3] ... A [j] still press the ascending row of Y-axis Column.
The overlapping judgement and adjusting submodule 232 are used to carry out weight in one new place button to display sequence of every addition After new sort, overlapping judgement and adjustment are carried out to the point button in display sequence.In the present embodiment, overlapping judgement and adjustment Module 232 be specifically used for judge respectively four orientation display sequence whether scene button overlapping.Above-mentioned place button Overlapping, refer to two place buttons relative to the centre coordinate value of the non-azimuth direction of on-screen display (osd) area difference less than two places At this moment centre distance when button is tangent is the overlapping that image occurs in the display of screen.Due to each place button, have Certain click on area, for the application by taking border circular areas as an example, the radius of each place button is L.Not for screen the right and left Display area, if difference of the central point of two place buttons in Y-axis is more than or equal to 2L, two place buttons are not weighed Folded, if it is less than 2L, then two place buttons overlap;Display area non-for both sides above and below screen, if two places Difference of the central point of button in X-axis is more than or equal to 2L, then two place buttons are not overlapped, if it is less than 2L, then two Place button overlaps.
Button overlapping adjustment module 232 in place is further used for: when the place button that judge to be newly added in display sequence and Other place buttons being present in display sequence overlap before when, then the aobvious relative to screen of other place buttons is adjusted Show the coordinate value of the non-azimuth direction in region, the coordinate value to guarantee the place button being currently newly added is constant.Other press The coordinate value of the non-azimuth direction relative to on-screen display (osd) area of button updates after being adjusted to be saved into display sequence, thus The display position of the place button being adjusted changes in the display of screen.Specific method of adjustment are as follows:
Display area non-for screen the right and left remains unchanged the coordinate for the place button being currently newly added, if The place button of the place button being currently newly added top adjacent thereto overlaps, and adjusts the place of top adjacent thereto Coordinate value of the button in Y-axis increases the Y axis coordinate value of the screen coordinate system of the place button of top, to be moved up; If currently the place button that is newly added following place button adjacent thereto overlaps, adjust adjacent thereto following Coordinate value of the place button in Y-axis reduces the Y axis coordinate value of the screen coordinate system of following place button, thus by it It moves down;To the overlapping of the place button on the current place button being newly added of elimination both sides up and down adjacent thereto.Due to work as Position of the adjacent upper following place button of the preceding place button being newly added in Y-axis is changed, it is possible to can be with them Adjacent place button overlapping continues to adjust position of the place button adjacent with them in Y-axis if overlapping, allow with Their adjacent place buttons are moved up or are moved down, and are continued with this, until the fully point button in display sequence is in Y-axis It is not overlapped.The newest coordinate value of place button adjusted is saved after adjustment, in display sequence.
Display area non-for both sides above and below screen remains unchanged the coordinate for the place button being currently newly added, if The place button on the place button being currently newly added the right adjacent thereto overlaps, and adjusts the place on the right adjacent thereto Coordinate value of the button in X-axis increases the X axis coordinate value of the screen coordinate system of the place button on the right, to be moved to right; If the place button in the place button being currently newly added left side adjacent thereto overlaps, left side adjacent thereto is adjusted Coordinate value of the place button in X-axis reduces the X axis coordinate value of the screen coordinate system of the place button in left side, thus by it It moves to left;To the overlapping of the place button of the current place button being newly added of elimination the right and left adjacent thereto.Due to work as Position of the adjacent left and right side place button of the preceding place button being newly added in X-axis is changed, it is possible to can be with them Adjacent place button overlapping continues to adjust position of the place button adjacent with them in X-axis, transference if overlapping Their adjacent place buttons are moved to left or are moved to right, and are continued with this, until the fully point button in display sequence is in X-axis It is not overlapped.The newest coordinate value of place button adjusted is saved after adjustment, in display sequence.
By taking the place button of the non-display area on the left of the map that intelligent terminal screen is shown as an example, it is assumed that A [j] exists Corresponding points in B are t, i.e. A [j]=B [t], keep B [t] motionless, the following ground of the place button for being newly joined is pressed Button, traversal B [t-1] to B [1] carry out position adjustment, it is assumed that have traversed B [j], 0<j<if t B [j] .y>B [j+1] .y-L, table Show that top place button is overlapped in Y-axis, B [j] .y is adjusted to B [j+1] .y-L.
B [i] is arrived for place button traversal B [t+1] of the top for the place button being newly joined, it is assumed that traverse as B [j], t+1 < j < i indicate that top place button is overlapped in Y-axis, B [j] .y are adjusted to B [j if B [j] .y < B [j+1] .y+L +1].y+L。
The sequence is completed judging submodule 233 and is used for: judging display in overlapping judgement and adjusting submodule 232 It is fully put in sequence after button is not overlapped in X-axis or Y-axis, then judges whether the place button of all non-display areas all It is added in display sequence and completes to sort.The sequence is completed judging submodule 233 and is further used for according to comparing display sequence The quantity of place button, judges the institute that whether joined corresponding orientation in the display sequence in column and corresponding storage sequence There is the place button of non-display area.
Boundary judgement and adjusting submodule 234 are used for: being completed judging submodule 233 in sequence and judged all non-viewing areas The place button in domain all has been added in display sequence and after completing sequence, judges all in display sequence sorted do not show Show whether the place button in region exceeds screen relative to the coordinate value of the screen coordinate system of the non-azimuth direction of on-screen display (osd) area The coordinate value on curtain display area boundary, is if it is adjusted.
Specifically, boundary judgement and adjusting submodule 234 are further used for: for the non-viewing area of screen the right and left Domain then increases all places when judging the screen coordinate system Y axis coordinate value of the place button in display sequence less than 0 simultaneously The screen coordinate system Y axis coordinate value of button, all place buttons are toward a distance is moved up, so that place button bottom does not surpass Screen lower boundary out;When the screen coordinate system Y axis coordinate value for the place button for judging the top in display sequence is greater than screen When width w, then reduce the screen coordinate system Y axis coordinate values of all place buttons simultaneously, all place buttons toward move down one section away from From so that the place button of the top is without departing from screen coboundary.For the non-display area on both sides above and below screen, when judgement is aobvious When showing the screen coordinate system X axis coordinate value of the place button in sequence less than 0, then the screen for increasing all place buttons simultaneously is sat Mark system X axis coordinate value, all place buttons are toward a distance is moved to right, so that the place button of the leftmost side is following without departing from screen Boundary;When the screen coordinate system X axis coordinate value for the place button for judging the rightmost in display sequence is greater than screen length h, then The screen coordinate system X axis coordinate value of all place buttons is reduced simultaneously, and all place buttons are toward a distance is moved to left, so that most right The place button on side is without departing from screen right margin.
The sequence display sub-module 235 is used in boundary judgement and adjusting submodule 234 to all in display sequence After place button is adjusted, the place button in display sequence is shown to the on-screen display (osd) area pair in intelligent terminal in order It answers on the edge in orientation.
Since the position that place button is shown on the screen is corresponding with its coordinate value in display sequence, overlapping judgement And adjusting submodule 232 or boundary judgement and adjusting submodule 234, be for in display sequence place button relative to The modification of the coordinate value of the non-azimuth direction of on-screen display (osd) area.Due to needing the ground by non-display area to press in display Button is shown in its screen edge relative to the correspondence orientation of on-screen display (osd) area, and therefore, sequence display sub-module 235 is further For: it needs to adjust as corresponding screen edge the coordinate value of the azimuth direction of place button in display sequence first After coordinate value, shown according still further to the coordinate parameters of updated display sequence.
Specifically, place button is the round button that radius is L, need to be aobvious by a left side for the non-display area on the left of screen Show that the place button in sequence is shown in the left side of screen, therefore by the screen coordinate system of the place button in left display sequence X axis coordinate value is set as L;For the non-display area on the right of screen, the place button in right display sequence need to be shown and shielded The right of curtain, therefore the X axis coordinate value of the screen coordinate system of the place button in right display sequence is set as screen length (h- L);Place button in lower display sequence need to be shown in the following of screen, therefore needed by the non-display area following for screen L is set by the Y axis coordinate value of the screen coordinate system of the place button in lower display sequence;For the non-viewing area of screen top Domain need to show the place button in upper display sequence in the top of screen, i.e., by the Y-axis of the place button in upper display sequence Coordinate value is set as screen width (w-L).
Compared with the existing technology, when the present invention solves the on-screen display (osd) area that map is greater than intelligent terminal, not side Just the problem of searching the place button on map, by searching for the place button of display area non-in map, by it It is shown on screen edge, and devises according to the usage experience of player the sort method of the place button of non-display area, it can To allow player just to view the place button of entire map, and place button on limited mobile intelligent terminal screen Position with its position on former map be it is relevant, the game experiencing of player is improved into a bit.Further, at this In embodiment 2, the sequence and display to the being modified property of place button in non-display area are further increased, trip is realized The place button during from on-screen display (osd) area to non-display area transition played on map, place button is from screen display area When position on the map in domain is switched to on-screen display (osd) area corresponding marginal position, place button is located at screen display area The position at the edge in domain and its be closely located to or unanimously on former map, to achieve the effect that a smooth connection, side Just player searches and enhances visual experience.
Map display methods of the invention and device can be used as client application in all intelligent terminals, Including mobile intelligent terminal or computer terminal.Therefore, the present invention also provides a kind of mobile clients and computer client.It has The technical solution of body is consistent with the technological means in the embodiment of this case, and details are not described herein.
The invention is not limited to above embodiment, if not departing from the present invention to various changes or deformation of the invention Spirit and scope, if these changes and deformation belong within the scope of claim and equivalent technologies of the invention, then this hair It is bright to be also intended to encompass these changes and deformation.

Claims (50)

1. a kind of map display methods, it is characterised in that: including step
S11: the dragging signal in response to being directed to map obtains the amount of movement of map;
S12: in the display of every frame map, not showing other than the range of current screen display region in the map is searched Show the place button in region;
S13: the place button of the non-display area is shown on on-screen display (osd) area;
According to the map coordinate system and screen coordinate system and map coordinate system and screen coordinate system pre-established Incidence relation passes through step S121 in step s 12: by seat of the center of the place button in map coordinate system Mark is mapped to screen coordinate system, obtains its coordinate value relative to screen coordinate system, to search the place of the non-display area Button.
2. map display methods according to claim 1, it is characterised in that: further comprise step in step s 12 Rapid S122: the boundary parameter that the center of place button is located at the coordinate value and display screen of screen coordinate system is compared, is judged Various regions point button obtains side of the place button of non-display area relative to on-screen display (osd) area whether in non-display area Position information.
3. map display methods according to claim 2, it is characterised in that: further include step in step s 12 S123: the place button information of the non-display area of acquisition is saved.
4. map display methods according to claim 3, it is characterised in that: the place button information includes place Coordinate value of coordinate value, place button center point of the button center point in screen coordinate system in map coordinate system, The point number information of button, place button are relative to any one in the azimuth information of on-screen display (osd) area.
5. according to map display methods described in claim any one in claim 2-4, it is characterised in that: in step In S13, the place button of non-display area is pressed it and is shown relative to the orientation of on-screen display (osd) area in on-screen display (osd) area On the edge in corresponding orientation.
6. map display methods according to claim 5, it is characterised in that: in step s 13, will non-display area Place button screen display area is shown according to its coordinate value relative to the non-azimuth direction of on-screen display (osd) area in an orderly manner On domain.
7. map display methods according to claim 6, it is characterised in that: the step S13 includes:
Step S131: orientation of the place button of the non-display area obtained in invocation step S122 relative to on-screen display (osd) area Azimuth information of the place button for the non-display area that information or invocation step S123 are saved relative to on-screen display (osd) area;So The place button in non-display area for on-screen display (osd) area different direction is grouped according to orientation afterwards, every group of orientation Place button is ranked up according to the coordinate value on its non-azimuth direction relative to on-screen display (osd) area;And
Step S132: place button is shown in the correspondence orientation of on-screen display (osd) area according to the ranking results that step S131 is obtained Edge on.
8. map display methods according to claim 2, it is characterised in that: in step s 13, the non-viewing area The place button in domain is related to its position on former map in the display position at on-screen display (osd) area edge.
9. map display methods according to claim 8, it is characterised in that: place button on map from On-screen display (osd) area to non-display area it is mobile during, place button is from the position on the map of on-screen display (osd) area When being shown to the corresponding marginal position of on-screen display (osd) area for the first time, place button is located at the display position at the edge of on-screen display (osd) area It sets identical relative to the coordinate value on the non-azimuth direction of on-screen display (osd) area at it in the position on former map as it.
10. map display methods according to claim 9, it is characterised in that: further include step in step s 12 S123: creation storage sequence, by the place button of the non-display area according to its orientation side relative to on-screen display (osd) area To coordinate value save in an orderly manner to storage sequence in.
11. map display methods according to claim 10, it is characterised in that: for on-screen display (osd) area or so two The place button of the non-display area in side is saved in the storage sequence with the sequence arrangement of its X axis coordinate absolute value from big to small Column;And/or the place button of display area non-for two sides above and below on-screen display (osd) area, with its Y axis coordinate absolute value from greatly to Small sequence arrangement, is saved in the storage sequence.
12. map display methods according to claim 11, it is characterised in that: by the place button of non-display area It is shown on on-screen display (osd) area in an orderly manner according to its coordinate value relative to the non-azimuth direction of on-screen display (osd) area.
13. map display methods according to claim 12, it is characterised in that: in step s 13, including step S131: creation display sequence traverses the place button of non-display area in the storage sequence, is added in display sequence one by one; Wherein, it when every addition one place button, is saved after resequencing to place button all in display sequence.
14. map display methods according to claim 13, it is characterised in that: to the place button in display sequence The rule resequenced are as follows: base area point button relative to the non-azimuth direction of on-screen display (osd) area coordinate value by it is small to It is ranked up greatly.
15. map display methods according to claim 14, it is characterised in that: every to be added one in step S131 After a new place button to display sequence and rearrangement, enter step S132: the place button that judgement is newly added whether with Other place buttons are overlapped in display sequence;If overlapping, place button is adjusted in display sequence relative to on-screen display (osd) area Non- azimuth direction coordinate value, to adjust display position of the place button on screen edge.
16. map display methods according to claim 15, it is characterised in that: if be newly added in display sequence Place button when overlapping with other place buttons for being present in display sequence before, press with further adjusting other The coordinate value of the non-azimuth direction relative to on-screen display (osd) area of button, to guarantee the coordinate value for the place button being currently newly added It is constant;The coordinate value of the non-azimuth direction relative to on-screen display (osd) area of other place buttons updates after being adjusted to be saved to aobvious Show in sequence, to show the change of the display position of the place button being adjusted on the screen.
17. map display methods according to claim 16, it is characterised in that: for not shown at left and right sides of screen Region remains unchanged the coordinate for the place button being currently newly added, if the place button being currently newly added is adjacent thereto The place button of upside overlaps, then coordinate value of the place button of upside adjacent thereto in Y-axis is adjusted, by upside The Y axis coordinate value of the screen coordinate system of place button increases, to be moved up;If currently the place button that is newly added and its The place button of adjacent downside overlaps, then adjusts coordinate value of the place button of downside adjacent thereto in Y-axis, will The Y axis coordinate value of the screen coordinate system of the place button of downside reduces, to be moved down;To eliminate the ground being currently newly added The overlapping of the place button of point button two sides up and down adjacent thereto.
18. map display methods according to claim 16, it is characterised in that: two sides above and below screen are not shown Region remains unchanged the coordinate for the place button being currently newly added, if the place button being currently newly added is adjacent thereto The place button on right side overlaps, then coordinate value of the place button on right side adjacent thereto in X-axis is adjusted, by right side The X axis coordinate value of the screen coordinate system of place button increases, to be moved to right;If currently the place button that is newly added and its The place button in adjacent left side overlaps, then adjusts coordinate value of the place button in left side adjacent thereto in X-axis, will The X axis coordinate value of the screen coordinate system of the place button in left side reduces, to be moved to left;To eliminate the ground being currently newly added The overlapping of the place button of the point button left and right sides adjacent thereto.
19. map display methods described in 7 or 18 according to claim 1, it is characterised in that: with the place being currently newly added It is Chong Die with place button adjacent thereto again after change has occurred in the position in X-axis or Y-axis in the adjacent place button of button When, then continue to adjust the position of place button adjacent thereto in X-axis or Y-axis, place button adjacent thereto is made to do correspondence Movement on direction, is continued with this, until the fully point button in display sequence is not overlapped in X-axis or Y-axis;It adjusts After whole, the newest coordinate value of the place button in display sequence adjusted is saved.
20. map display methods according to claim 19, it is characterised in that: judged display sequence in step S132 It is fully put in column after button is not overlapped in X-axis or Y-axis, enters step S133: judging whether all non-display areas Button all ranked completions in place are simultaneously added in display sequence;If it is not, then return step S131 adds new place Button is to display sequence.
21. map display methods according to claim 20, it is characterised in that: in step S133, if judging institute After there are place button all ranked completions of non-display area and being recorded in display sequence, enters step S134: judging institute Whether the place button for stating all sorted non-display areas in display sequence exceeds screen border;If so, carrying out boundary Adjustment.
22. map display methods according to claim 21, it is characterised in that: for not showing at left and right sides of screen Show region, if the screen coordinate system Y axis coordinate value of the place button in its display sequence less than 0, increases allly simultaneously The screen coordinate system Y axis coordinate value of point button, all place buttons are toward a distance is moved up, so that the place button of lower side is not Beyond screen lower boundary;If the screen coordinate system Y axis coordinate value of the place button of the top side in display sequence is greater than screen Width then reduces the screen coordinate system Y axis coordinate value of all place buttons simultaneously, and all place buttons are past to move down a distance, So that the place button of top side is without departing from screen coboundary;Alternatively, for the non-display area of two sides above and below screen, if aobvious Show that the screen coordinate system X axis coordinate value of the place button in sequence less than 0, then increases the screen coordinate of all place buttons simultaneously It is X axis coordinate value, all place buttons are toward a distance is moved to right, so that the place button of the leftmost side is without departing from screen lower boundary; If the screen coordinate system X axis coordinate value of the place button of the rightmost side in display sequence is greater than screen length, reduce simultaneously The screen coordinate system X axis coordinate value of all place buttons, all place buttons are toward a distance is moved to left, so that the place of the rightmost side Button is without departing from screen right side boundary.
23. map display methods according to claim 22, it is characterised in that: further include step S135: will show Place button in sequence is shown in on-screen display (osd) area in order and corresponds on the edge in orientation.
24. map display methods according to claim 23, it is characterised in that: in step S135, first to aobvious Show that the coordinate value of the azimuth direction of place button in sequence is adjusted to the coordinate value at corresponding on-screen display (osd) area edge, It is shown according still further to the coordinate parameters of updated display sequence.
25. a kind of map display device, it is characterised in that: including map mobile processing module, place button searching module And display module, wherein
The mobile processing module of the map, when map is dragged, obtains trip for judging whether map is dragged Play map amount of movement, and amount of movement information is dealt into place button searching module;
The place button searching module is used to that it is aobvious to search current screen in the map in the display of every frame map Show the place button of the non-display area other than regional scope, and sends display module for the information of these place buttons;
The display module is used to receive the place button for the non-display area that the place button searching module is sent Information shows the place button of the non-display area on on-screen display (osd) area;
The place button searching module includes coordinate transform subblock, the game sent for receiving the mobile processing module of map Map amount of movement is sat according to the map coordinate system and screen coordinate system and map coordinate system and screen pre-established The incidence relation for marking system, is mapped to screen coordinate system for coordinate of the center of the place button in map coordinate system, Its coordinate value relative to screen coordinate system is obtained, to search the place button of the non-display area.
26. map display device according to claim 25, it is characterised in that: the place button searching module into One step includes place button judging submodule, for the center of place button to be located to the coordinate value and display screen of screen coordinate system The boundary parameter of curtain compares, and judges that various regions point button whether in non-display area, and obtains the place button of non-display area Azimuth information relative to on-screen display (osd) area.
27. map display device according to claim 26, it is characterised in that: the place button searching module into One step includes storage submodule, the place button information of the non-display area for saving the acquisition of place button judging submodule.
28. map display device according to claim 27, it is characterised in that: the place button information includes ground Coordinate value of coordinate value, place button center point of the point button central point in screen coordinate system in map coordinate system, The number information of place button, place button are relative to any one in the azimuth information of on-screen display (osd) area.
29. according to map display device described in claim any one in claim 26-28, it is characterised in that: institute It states display module and is further used for the place button of non-display area pressing it and shown relative to the orientation of on-screen display (osd) area On-screen display (osd) area corresponds on the edge in orientation.
30. map display device according to claim 29, it is characterised in that: the display module is further used for The place button of non-display area is shown in an orderly manner according to its coordinate value relative to the non-azimuth direction of on-screen display (osd) area On on-screen display (osd) area.
31. map display device according to claim 30, it is characterised in that: the display module includes orientation point Group module and sequencing display module, the orientation grouping module are used to from place button searching module or storage submodule call not Azimuth information of the place button of display area relative to on-screen display (osd) area will correspond to screen display area in non-display area The place button of domain different direction is grouped according to orientation, and the place button in every group of orientation is according to it relative to screen display area Coordinate value on the non-azimuth direction in domain is ranked up;The sequencing display module is used for the sequence knot according to the orientation grouping module Fruit shows place button on the edge in the correspondence orientation of screen.
32. map display device according to claim 26, it is characterised in that: the display module is not shown described Show that the place button in region is related to its position on former map in the display position at on-screen display (osd) area edge.
33. map display device according to claim 32, it is characterised in that: the place button on map During from on-screen display (osd) area to non-display area, place button is first from the position on the map of on-screen display (osd) area Secondary when being shown to the corresponding marginal position of on-screen display (osd) area, place button is located at the display position at the edge of on-screen display (osd) area It is identical in coordinate value of the position on former map on non-azimuth direction as it.
34. map display device according to claim 33, it is characterised in that: the place button searching module into One step includes storage submodule, for creating storage sequence, and the non-viewing area that the place button judging submodule is transmitted The place button in domain is saved in an orderly manner relative to the coordinate value of the azimuth direction of on-screen display (osd) area into storage sequence according to it.
35. map display device according to claim 34, it is characterised in that: for on-screen display (osd) area or so two The place button of the non-display area in side, the storage submodule are further used for it with X axis coordinate absolute value from big to small Sequence arranges, and is saved in the storage sequence;The place button of display area non-for two sides above and below on-screen display (osd) area, it is described Storage submodule is further used for its sequence arrangement with Y axis coordinate absolute value from big to small being saved in the storage sequence.
36. map display device according to claim 35, it is characterised in that: the display module is further used for The place button of non-display area is shown in an orderly manner according to its coordinate value relative to the non-azimuth direction of on-screen display (osd) area On on-screen display (osd) area.
37. map display device according to claim 36, it is characterised in that: the display module include press Button sorting sub-module, the storage sequence sent for receiving the storage submodule, and display sequence is created, it is deposited described in traversal The place button of non-display area in sequence is stored up, is added in display sequence one by one;Wherein, when every addition one place button, The place button sorting sub-module is further used for saving after resequencing to place button all in display sequence.
38. the map display device according to claim 37, it is characterised in that: the place button sorting sub-module Rule for resequencing to the place button in display sequence are as follows: base area point button is relative to on-screen display (osd) area The coordinate value of non-azimuth direction ascending be ranked up.
39. the map display device according to claim 38, it is characterised in that: the display module further includes overlapping Judgement and adjusting submodule, in the place button sorting sub-module one new place button of every addition to display sequence And after resequencing, judge whether the place button being newly added is Chong Die with other place buttons in display sequence;If overlapping, this is heavy Coordinate of the place button relative to the non-azimuth direction of on-screen display (osd) area in folded judgement and adjusting submodule adjustment display sequence Value, to adjust display position of the place button on screen edge.
40. map display device according to claim 39, it is characterised in that: the overlapping judgement and adjustment submodule Block is further used for: if when the place button that judgement is newly added in display sequence is present in its in display sequence with before When his place button overlaps, the non-azimuth direction relative to on-screen display (osd) area of other place buttons is further adjusted Coordinate value, the coordinate value to guarantee the place button being currently newly added are constant;Other place buttons relative to screen display area The coordinate value of the non-azimuth direction in domain updates after being adjusted to be saved into display sequence, to show the ground being adjusted on the screen The change of the display position of point button.
41. map display device according to claim 40, it is characterised in that: for not shown at left and right sides of screen Region, the overlapping judgement and adjusting submodule are further used for: the coordinate for the place button being currently newly added is remained unchanged, If the place button of the place button being currently newly added upside adjacent thereto overlaps, upside adjacent thereto is adjusted Coordinate value of the place button in Y-axis, the Y axis coordinate value of the screen coordinate system of the place button of upside is increased, thus will It is moved up;If the place button of the place button being currently newly added downside adjacent thereto overlaps, adjustment and its phase Coordinate value of the place button of adjacent downside in Y-axis, the Y axis coordinate value of the screen coordinate system of the place button of downside is subtracted It is small, to be moved down;To the weight of the place button of the current place button being newly added of elimination two sides up and down adjacent thereto It is folded.
42. map display device according to claim 40, it is characterised in that: two sides above and below screen are not shown Region, the overlapping judgement and adjusting submodule are further used for: the coordinate for the place button being currently newly added is remained unchanged, If the place button on the place button being currently newly added right side adjacent thereto overlaps, right side adjacent thereto is adjusted Coordinate value of the place button in X-axis, the X axis coordinate value of the screen coordinate system of the place button on right side is increased, thus will It is moved to right;If the place button in the place button being currently newly added left side adjacent thereto overlaps, adjustment and its phase Coordinate value of the place button in adjacent left side in X-axis, the X axis coordinate value of the screen coordinate system of the place button in left side is subtracted It is small, to be moved to left;To the weight of the place button of the current place button being newly added of the elimination left and right sides adjacent thereto It is folded.
43. the map display device according to claim 41 or 42, it is characterised in that: the overlapping judgement and adjustment Submodule is further used for: when position of the judgement place button adjacent with the place button being currently newly added in X-axis or Y-axis After change has occurred, when Chong Die with place button adjacent thereto again, continue to adjust place button adjacent thereto in X-axis or Position in Y-axis is made place button adjacent thereto do the movement on corresponding direction, is continued with this, until display sequence In fully point button be not overlapped in X-axis or Y-axis;After adjustment, which saves presses adjustedly The newest coordinate value of button.
44. map display device according to claim 43, it is characterised in that: the display module further includes sequence Judging submodule is completed, for fully putting button in having judged display sequence in overlapping judgement and adjusting submodule and existing After not being overlapped in X-axis or Y-axis, it is in display sequence and complete to judge whether that the place button of all non-display areas all has been added to At sequence;If it is not, then adding new place button to display sequence by place button sorting sub-module.
45. map display device according to claim 44, it is characterised in that: the display module further includes boundary Judgement and adjusting submodule, if judging the place button of all non-display areas all for completing judging submodule in the sequence It has completed after sorting and being recorded in display sequence, has judged the ground of all sorted non-display areas in the display sequence Point button exceeds screen border, if so, carrying out boundary adjustment.
46. map display device according to claim 45, it is characterised in that: the boundary judgement and adjustment submodule Block is further used for: for the non-display area at left and right sides of screen, if the screen of the place button in its display sequence is sat Mark system Y axis coordinate value then increases the screen coordinate system Y axis coordinate value of all place buttons less than 0 simultaneously, and all place buttons are past A distance is moved up, so that the place button of lower side is without departing from screen lower boundary;If the ground of the top side in display sequence The screen coordinate system Y axis coordinate value of point button is greater than screen width, then reduces the screen coordinate system Y-axis of all place buttons simultaneously Coordinate value, all place buttons are toward a distance is moved down, so that the place button of top side is without departing from screen coboundary;Alternatively, For the non-display area of two sides above and below screen, if the screen coordinate system X axis coordinate value of the place button in display sequence is small In 0, then increase the screen coordinate system X axis coordinate value of all place buttons simultaneously, all place buttons make toward a distance is moved to right The place button of the leftmost side is obtained without departing from screen lower boundary;If the screen coordinate of the place button of the rightmost side in display sequence It is that X axis coordinate value is greater than screen length, then reduces the screen coordinate system X axis coordinate value of all place buttons, all places simultaneously Button is toward a distance is moved to left, so that the place button of the rightmost side is without departing from screen right side boundary.
47. map display device according to claim 46, it is characterised in that: the display module further includes sequence Display sub-module corresponds to the edge in orientation in on-screen display (osd) area for showing the place button in display sequence in order On.
48. map display device according to claim 46, it is characterised in that: the sequence display sub-module is into one Step is used for: first adjusting the coordinate value of the azimuth direction of place button in display sequence as corresponding screen edge After coordinate value, shown according still further to the coordinate parameters of updated display sequence.
49. a kind of mobile client, it is characterised in that: shown including map described in claim 25-48 any one Device.
50. a kind of computer client, it is characterised in that: shown including map described in claim 25-48 any one Device.
CN201510691289.0A 2015-10-22 2015-10-22 A kind of map display methods and its device, mobile client, computer client Active CN105194875B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510691289.0A CN105194875B (en) 2015-10-22 2015-10-22 A kind of map display methods and its device, mobile client, computer client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510691289.0A CN105194875B (en) 2015-10-22 2015-10-22 A kind of map display methods and its device, mobile client, computer client

Publications (2)

Publication Number Publication Date
CN105194875A CN105194875A (en) 2015-12-30
CN105194875B true CN105194875B (en) 2019-03-19

Family

ID=54943036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510691289.0A Active CN105194875B (en) 2015-10-22 2015-10-22 A kind of map display methods and its device, mobile client, computer client

Country Status (1)

Country Link
CN (1) CN105194875B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329793B (en) * 2017-07-06 2020-09-11 苏州蜗牛数字科技股份有限公司 Method for mapping physical keys of game terminal based on remote characteristic position parameters
CN107744659A (en) * 2017-10-10 2018-03-02 杭州电魂网络科技股份有限公司 Character location display methods and device
CN107899235B (en) 2017-10-13 2019-05-17 网易(杭州)网络有限公司 Information processing method and device, storage medium, electronic equipment
US20200311194A1 (en) * 2019-03-27 2020-10-01 Hexagon Technology Center Gmbh Structured data jump mechanism
CN112156457B (en) * 2020-09-23 2021-08-24 完美世界(北京)软件科技发展有限公司 Game copy display method and device
CN113694527A (en) * 2021-05-24 2021-11-26 网易(杭州)网络有限公司 Game positioning method and device and mobile terminal
CN113769402A (en) * 2021-09-16 2021-12-10 厦门极致互动网络技术股份有限公司 Method for updating visible region of geodetic map in frames

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728058A (en) * 2004-07-29 2006-02-01 大宇资讯股份有限公司 Gamecontrol system, method and storage media in use for portable device
CN102027464A (en) * 2008-05-12 2011-04-20 微软公司 Virtual desktop view scrolling
CN102646152A (en) * 2011-02-22 2012-08-22 腾讯科技(深圳)有限公司 Game map switching method and system
CN102735246A (en) * 2012-07-13 2012-10-17 深圳市浩科电子有限公司 Multi-map navigation system and navigation method of multi-map navigation system
CN103543912A (en) * 2013-10-22 2014-01-29 北京奇虎科技有限公司 Triangular arrangement display method and device for icons
KR101394969B1 (en) * 2012-02-07 2014-05-15 (주)네오위즈게임즈 Method and apparatus for providing landmarkin online game

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005006988A (en) * 2003-06-19 2005-01-13 Aruze Corp Game program, game device and recording medium recording the game program
CN1924873A (en) * 2006-09-19 2007-03-07 北京金山数字娱乐科技有限公司 Game map storage method and device, display method and system
JP5157329B2 (en) * 2007-08-31 2013-03-06 株式会社セガ Game device
CN101596362B (en) * 2009-06-17 2012-12-05 深圳市新飞扬数码技术有限公司 Method and device for displaying game pictures and game system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728058A (en) * 2004-07-29 2006-02-01 大宇资讯股份有限公司 Gamecontrol system, method and storage media in use for portable device
CN102027464A (en) * 2008-05-12 2011-04-20 微软公司 Virtual desktop view scrolling
CN102646152A (en) * 2011-02-22 2012-08-22 腾讯科技(深圳)有限公司 Game map switching method and system
KR101394969B1 (en) * 2012-02-07 2014-05-15 (주)네오위즈게임즈 Method and apparatus for providing landmarkin online game
CN102735246A (en) * 2012-07-13 2012-10-17 深圳市浩科电子有限公司 Multi-map navigation system and navigation method of multi-map navigation system
CN103543912A (en) * 2013-10-22 2014-01-29 北京奇虎科技有限公司 Triangular arrangement display method and device for icons

Also Published As

Publication number Publication date
CN105194875A (en) 2015-12-30

Similar Documents

Publication Publication Date Title
CN105194875B (en) A kind of map display methods and its device, mobile client, computer client
US20120293437A1 (en) Method and device for adjusting layout of control buttons
CN110503725A (en) Method, apparatus, electronic equipment and the computer readable storage medium of image procossing
CN102609521B (en) The changing method of a kind of webpage focus element and receiving terminal for digital television
CN110517319A (en) A kind of method and relevant apparatus that camera posture information is determining
US20040261103A1 (en) Image display method and program
CN106155454A (en) A kind of interface display method, device and electronic equipment
CN104281385A (en) Regulating method of input-method keyboard and input-method device
CN103703437A (en) Application for viewing images
CN104516880A (en) Block-based graphics layout
CN109669759A (en) Rubbish recovering method, device, equipment and the storage medium of Java Virtual Machine
CN103366387A (en) Selecting between clustering techniques for displaying images
CN105320481A (en) Data display method and device and mobile terminal
CN104869469A (en) Method and apparatus for displaying program contents
CN109992266A (en) A kind for the treatment of method and apparatus of interface element
CN110008953A (en) Potential target Area generation method based on the fusion of convolutional neural networks multilayer feature
CN109391833A (en) A kind of sound control method and smart television of smart television
CN110399822A (en) Action identification method of raising one&#39;s hand, device and storage medium based on deep learning
US20230096934A1 (en) Integrated circuit post-layout simulation method and device, electronic device and storage medium
CN107832359B (en) Picture retrieval method and system
CN109782983A (en) The view layout method of adjustment and device of Application Program Interface
CN108460032A (en) A kind of generation method and device of video frequency abstract
WO2022033306A1 (en) Target tracking method and apparatus
CN103914466B (en) A kind of method and system of label button management
CN102547466B (en) Interactive method and system of intelligent television

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant