CN110215696A - Label display methods, device, electronic equipment and the storage medium of game - Google Patents
Label display methods, device, electronic equipment and the storage medium of game Download PDFInfo
- Publication number
- CN110215696A CN110215696A CN201910669011.1A CN201910669011A CN110215696A CN 110215696 A CN110215696 A CN 110215696A CN 201910669011 A CN201910669011 A CN 201910669011A CN 110215696 A CN110215696 A CN 110215696A
- Authority
- CN
- China
- Prior art keywords
- red dot
- data
- new data
- component
- identification information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 230000004044 response Effects 0.000 claims abstract description 12
- 230000006870 function Effects 0.000 claims description 73
- 238000004590 computer program Methods 0.000 claims description 16
- 230000009471 action Effects 0.000 claims description 14
- 230000008569 process Effects 0.000 abstract description 10
- 230000000875 corresponding effect Effects 0.000 description 213
- 238000010586 diagram Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 2
- 230000001276 controlling effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000006854 communication Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/20—Input arrangements for video game devices
- A63F13/23—Input arrangements for video game devices for interfacing with the game device, e.g. specific interfaces between game controller and console
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/52—Controlling the output signals based on the game progress involving aspects of the displayed game scene
Abstract
The embodiment of the invention provides label display methods, device, electronic equipment and the storage medium of a kind of game, the method is applied to game client;Game client includes red dot manager, at least one red dot component and UI component, and red dot component and UI component decouple;The described method includes: the red dot data that the server-side that response receives is sent, generate red dot more new data corresponding with red dot data by red dot manager, wherein red dot updated data package includes identification information;Determine target red dot component corresponding with identification information in an at least red dot component;The operational order for opening user interface corresponding with identification information is responded, UI component is controlled according to interface data and carries out display user interface, according to label corresponding to red dot more new data displaying target red dot component.The embodiment of the present invention, which can be avoided, shows label using redundant component, simplifies the process that display is marked between server-side and client.
Description
Technical field
The present invention relates to video game technology fields, label display methods, a kind of game more particularly to a kind of game
Label display device, electronic equipment and storage medium.
Background technique
With the continuous development of terminal technology, the type for the games installed in terminal device is more and more.It is big at present
Partial game has different function systems, has multiple subsystems again under each function system.It can be operated when some subsystem has
Content when, show red dot on the functionality controls of main interface, user reminded to have new operation content.When user opens subsystem
When, red dot is equally shown on the label of subsystem, to guide user to carry out corresponding operation.
But the scheme of the prior art is first to notify main system, then pass through when service terminals system has operable content
Main system notice client has new content, and then client is according to the new content on the functionality controls that main interface corresponds to main system
Mark red dot.When user open system when, client according to the data of request calculate corresponding position red dot quantity simultaneously
Red dot on label.After user's operation is complete, judge that no new content operates by client, and the red dot on interface is disposed,
Then it is disposed by server-side main system notice client without new content, and by the red dot on main interface control.The program is not only
Process is cumbersome, and the component needed is also more, be easy to cause repetition, and shows UI (the User Interface, Yong Hujie of red dot
Face) file couples with other UI files, is not in contact between each red dot, it is difficult to manage.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind
A kind of label display methods of the game to solve the above problems and a kind of corresponding label display device of game, electronic equipment and
Storage medium.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of label display methods of game, are applied to game
Client;The game client includes red dot manager, at least one red dot component and UI component, the red dot component and institute
State the decoupling of UI component;The described method includes:
The red dot data that the server-side received is sent are responded, are generated and the red dot data by the red dot manager
Corresponding red dot more new data, wherein the red dot updated data package includes identification information;
Determine target red dot component corresponding with the identification information in an at least red dot component;
Response controls institute for opening the operational order of user interface corresponding with the identification information, according to interface data
UI component is stated to carry out showing the user interface, the target red dot component is shown according to the red dot more new data corresponding to
Label.
Preferably, the red dot manager is cached with history more new data;It is described by the red dot manager generate with
The step of red dot data corresponding red dot more new data, comprising:
Calculating difference between the history more new data and the red dot data is red dot data variation amount;
Red dot corresponding with the identification information is generated according to the history more new data and the red dot data variation amount
More new data.
Preferably, the server-side is provided with main system, subsystem and functional module;The identification information and target function
Energy module is corresponding;It is described corresponding with the identification information according to the history more new data and red dot data variation amount generation
Red dot more new data the step of, comprising:
Determine that the red dot data are function red dot more new data corresponding with the objective function module;
When there is target sub system corresponding with the objective function module, using the function red dot more new data and
The history more new data generates subsystem red dot more new data;
When there is target host system corresponding with the target sub system, using the subsystem red dot more new data and
The history more new data generates main system red dot more new data.
Preferably, the response is for opening the operational order of user interface corresponding with the identification information, according to boundary
Face data controls the UI component and carries out showing the user interface, shows the target red dot according to the red dot more new data
The step of label corresponding to component, comprising:
Receive server-side is sent and interface data;
It controls the UI component and shows user interface corresponding with the interface data;The user interface include with it is described
The corresponding control of identification information;
Flag attribute corresponding with the identification information is determined according to the red dot more new data;
Through the target red dot component at the corresponding position of the control, shown according to the flag attribute corresponding
Label.
Preferably, described the step of flag attribute corresponding with the identification information is determined according to the red dot more new data
Include:
It is determined at the corresponding configuration information of the identification information;The configuration information includes that red dot pattern, red dot quantity are aobvious
Show rule;
Red dot quantity is determined using the red dot more new data;
Using the configuration information and the red dot quantity, the flag attribute is generated.
Preferably, the control includes objective function control, target sub system control and target corresponding with identification information
Main system control;The flag attribute includes the first flag attribute corresponding with objective function control and target sub system control
Corresponding second flag attribute, and third flag attribute corresponding with target host system control;It is described to belong to according to the label
The step of property shows corresponding label, comprising:
When the user interface includes the objective function control, shown according to first flag attribute red with function
The corresponding label of point more new data;
Alternatively, being shown when the user interface includes the target sub system control according to second flag attribute
Label corresponding with subsystem red dot more new data;
Alternatively, being shown when the user interface includes the target host system control according to the third flag attribute
Label corresponding with main system red dot more new data.
Preferably, after generation red dot more new data corresponding with the red dot data, the method also includes:
Red dot update event notice is sent by the red dot manager;The red dot component monitors the red dot and updates thing
Part notice, obtains and notifies corresponding red dot more new data with the red dot update event.
Preferably, the red dot update event notice includes: functional module corresponding with the function red dot more new data
It is update notification event, subsystem update notification event corresponding with the subsystem red dot more new data, red with the main system
One of corresponding main system update notification event of point more new data is a variety of.
Preferably, the method also includes:
Response acts on the user's operation of the user interface, determines action event corresponding with the user's operation;
Determine target identification information corresponding with the action event;
Generate local red dot data corresponding with the target identification information;
Local update data corresponding with the local red dot data are generated by the red dot manager;
The label of control corresponding with the target identification information is updated according to the local update data.
The embodiment of the invention also discloses a kind of label display devices of game, are applied to game client;The game
Client includes red dot manager, at least one red dot component and UI component, and the red dot component and the UI component decouple;Institute
Stating device includes:
Data generation module, the red dot data sent for responding the server-side received, passes through the red dot manager
Generate red dot more new data corresponding with the red dot data, wherein the red dot updated data package includes identification information;
Target determination module, for determining, target corresponding with the identification information is red in an at least red dot component
Point component;
Display module is marked, for responding the operational order for being used for opening user interface corresponding with the identification information,
The UI component is controlled according to interface data to carry out showing the user interface, and the mesh is shown according to the red dot more new data
Mark label corresponding to red dot component.
Preferably, the red dot manager is cached with history more new data;The data generation module includes:
Calculation amount submodule is red dot data for calculating difference between the history more new data and the red dot data
Variable quantity;
More new data submodule, for according to the history more new data and the red dot data variation amount generate with it is described
The corresponding red dot of identification information more new data.
Preferably, the server-side is provided with main system, subsystem and functional module;The identification information and target function
Energy module is corresponding;The more new data submodule includes:
Function red dot more new data element, for determining that the red dot data are function corresponding with the objective function module
It can red dot more new data;
Subsystem red dot more new data element is adopted when there is target sub system corresponding with the objective function module
With the function red dot more new data and the history more new data, subsystem red dot more new data is generated;
Main system red dot more new data element is used when there is target host system corresponding with the target sub system
The subsystem red dot more new data and the history more new data generate main system red dot more new data.
Preferably, the label display module includes:
Interface data submodule, for receiving server-side is sent and interface data;
User interface submodule shows user interface corresponding with the interface data for controlling the UI component;Institute
Stating user interface includes control corresponding with the identification information;
Attribute submodule, for determining flag attribute corresponding with the identification information according to the red dot more new data;
Submodule is marked, is used for through the target red dot component at the corresponding position of the control, according to the mark
Remember the corresponding label of attribute display.
Preferably, the attribute submodule includes:
Configuration information unit, for being determined at the corresponding configuration information of the identification information;The configuration information includes red
Point pattern, red dot quantity display rule;
Red dot processing units, for determining red dot quantity using the red dot more new data;
Attribute generation unit generates the flag attribute for using the configuration information and the red dot quantity.
Preferably, the control includes objective function control, target sub system control and target corresponding with identification information
Main system control;The flag attribute includes the first flag attribute corresponding with objective function control and target sub system control
Corresponding second flag attribute, and third flag attribute corresponding with target host system control;The label submodule includes:
Functionality controls unit, for being marked according to described first when the user interface includes the objective function control
Remember attribute display label corresponding with function red dot more new data;
Subsystem controls unit, for when the user interface includes the target sub system control, according to described the
Two flag attributes show label corresponding with subsystem red dot more new data;
Main system control element, for when the user interface includes the target host system control, according to described the
Three flag attributes show label corresponding with main system red dot more new data.
Preferably, described device further include:
Event notification module, for sending red dot update event notice by the red dot manager;The red dot component
The red dot update event notice is monitored, obtains and notifies corresponding red dot more new data with the red dot update event.
Preferably, the red dot update event notice includes: functional module corresponding with the function red dot more new data
It is update notification event, subsystem update notification event corresponding with the subsystem red dot more new data, red with the main system
One of corresponding main system update notification event of point more new data is a variety of.
Preferably, described device further include:
Respond module is operated, for responding the user's operation for acting on the user interface, the determining and user's operation
Corresponding action event;
Target identification module, for determining target identification information corresponding with the action event;
Local red dot data module, for generating local red dot data corresponding with the target identification information;
Local update data module, for being generated and local corresponding of the red dot data by the red dot manager
Ground more new data;
Local update mark module, it is corresponding with the target identification information for being updated according to the local update data
The label of control.
The embodiment of the invention also discloses electronic equipment, including processor, memory and it is stored on the memory simultaneously
The computer program that can be run on the processor, the computer program realize institute as above when being executed by the processor
The step of label display methods for the game stated.
The embodiment of the invention also discloses computer readable storage medium, meter is stored on the computer readable storage medium
The step of calculation machine program, the computer program realizes the label display methods of game as described above when being executed by processor.
The embodiment of the present invention includes following advantages:
The present invention is generated and the red dot after the red dot data for receiving server-side transmission by the red dot manager
The corresponding red dot of data more new data;The red dot updated data package includes identification information, and determines an at least red dot component
In target red dot component corresponding with the identification information;Response is for opening user interface corresponding with the identification information
Operational order, the UI component is controlled according to interface data and carries out showing the user interface, number is updated according to the red dot
According to label corresponding to the display target red dot component.Due to red dot component in game client of the invention and UI component solution
Coupling, and by red dot manager generate red dot more new data after, display label is carried out by corresponding red dot component, so that this hair
The label display methods of bright offer, which can be avoided, shows red dot using redundant component, simplifies and marks between server-side and client
The process of display, while again connecting each label, facilitate management, configuration flexibly, has stronger scalability.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of the label display methods embodiment of game of the invention;
Fig. 2 is a kind of structural block diagram of the label display device embodiment of game of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
One of the core concepts of the embodiments of the present invention is, provides a kind of label display methods, is applied to game client
In, which includes red dot manager, at least one red dot component and UI component, the red dot component and the UI group
Part decoupling, is receiving game end, receives the red dot data that server-side is sent by red dot manager, generates and red dot data pair
The red dot answered more new data, the red dot updated data package include identification information.It is then based on red dot more new data, passes through red dot component
Generate label corresponding with identification information.When showing user interface corresponding with identification information, is shown and marked by red dot component
Note.So as to avoid simplifying the process of the label display between server-side and client using redundant component display red dot,
Each label is connected again simultaneously, facilitates management, configuration flexibly, has stronger scalability.
Referring to Fig.1, a kind of step flow chart of the label display methods embodiment of game of the invention, this method are shown
It can be applied to game client;The game client includes red dot manager, at least one red dot component and UI component, institute
It states red dot component and the UI component decouples;The embodiment of the present invention can specifically include following steps:
In running game client, exhibitions is shown with user interface.When server-side have new game events (such as: activity,
Task, article, technical ability etc.) when needing to notify user, label can be shown in the user interface, to highlight position locating for the label
Setting corresponding function has update.
Step 101, the red dot data that the server-side that receives is sent are responded, by the red dot manager generate with it is described
The corresponding red dot of red dot data more new data, wherein the red dot updated data package includes identification information;
When server-side needs to issue new game events, red dot data can be sent to game client.Game client
Middle creation has red dot manager, and after the red dot data that game client receives server-side transmission, red dot manager is by setting
The designated port set can receive the red dot data of server-side transmission.Red dot data may include identification information, pass through red dot pipe
It manages device to carry out in the red dot more new data of relevant treatment and generation, similarly includes identification information.
Server-side may include multiple functional modules (such as: module of registering, daily task module), server-side and game visitor
In the end of family, multiple identification informations are preset with, identification information is uniquely corresponding to one of functional module, so that game client can
To determine the corresponding functional module of red dot data according to identification information, it can need to prompt user's according to identification information determination
Functional module.Red dot data can further include red dot quantity, i.e., the quantity for the new game events for currently needing to issue.Such as:
There are 3 new branch line tasks, then game events are branch line task, the quantity of branch line task is three, then corresponding red dot data
Including the corresponding quantity of branch line task.
In one preferred embodiment of the invention, the red dot manager is cached with history more new data;Step 101 can
To include:
Sub-step S11, calculating difference between the history more new data and the red dot data is red dot data variation amount;
Red dot data variation amount is the red dot quantity in red dot data, with the red dot number in a newest history more new data
The difference of amount.When red dot quantity in hot point data is greater than the red dot quantity in a newest history more new data, red dot number
It is positive value according to variable quantity;When red dot quantity in hot point data is less than the red dot quantity in a newest history more new data,
Red dot data variation amount is negative value.
Sub-step S12 is generated and the identification information according to the history more new data and the red dot data variation amount
Corresponding red dot more new data.
On the basis of history more new data, according to the history more new data and the red dot data variation amount generate with
The corresponding red dot more new data of the identification information.Red dot more new data is current time new game events quantity.
In one preferred embodiment of the invention, the server is provided with main system, subsystem and objective function
Module;The identification information is corresponding with objective function module;The sub-step S12 may include:
Game client may include multiple main systems, such as: role selecting system, region of war system etc..Main system can be with
Including multiple subsystems, such as: it include task subsystem, technical ability subsystem etc. in the system of region of war.It may include more in subsystem
A functional module, for example, may include task receiving module, task awards faction module etc. in task subsystem.Principal series
System with it includes subsystem be provided with first order set membership, and subsystem is the child node in first order set membership;Son
System and it includes functional module be provided with second level set membership, and functional module is the son section in the set membership of the second level
Point;The first order set membership and second level set membership are stored using tree data structure.
Sub-step S121 determines that the red dot data are that function red dot corresponding with the objective function module updates number
According to;
Red dot more new data may include and the corresponding function red dot more new data of functional module, son corresponding with subsystem
One of system red dot more new data, main system red dot more new data corresponding with main system are a variety of.Function red dot updates
Data are the new game events quantity of the corresponding function module, and subsystem red dot more new data is the new game of corresponding subsystem
Event number, main system red dot more new data are the new game events quantity of corresponding main system.
Using the red dot data received, the new game events quantity at functional module corresponding current time is determined, i.e.,
Function red dot more new data.
Sub-step S122 is red using the function when there is target sub system corresponding with the objective function module
Point more new data and the history more new data generate subsystem red dot more new data;
Judge whether there is the second level corresponding with objective function module set membership, and if it exists, then determining and target function
The corresponding target sub system of energy module, and generate corresponding subsystem red dot more new data.Wherein, different functional module
Different subsystems is respectively corresponded, same subsystem can correspond to different function module, i.e. subsystem can be from different functions
Module is respectively provided with different set memberships, is referred to as second level set membership.
Such as: target sub system is task system, and objective function module is task awards faction module.It is gone through at newest one
The red dot quantity of task system is 5 in history more new data, and red dot data variation amount corresponding with task awards faction module is 2,
Then the red dot quantity in subsystem red dot more new data is 7.
Sub-step S123 is red using the subsystem when there is target host system corresponding with the target sub system
Point more new data and the history more new data generate main system red dot more new data.
Judge whether there is first order set membership corresponding with target sub system, and if it exists, then determining and target subsystem
It unites corresponding target host system, and generates corresponding main system red dot more new data.Wherein, different subsystems is right respectively
Different main systems is answered, same main system can correspond to different sub-systems, i.e. main system can have respectively from different main systems
There is different set memberships, is referred to as first order set membership.
By multistage set membership, thus realize when receiving only the corresponding red dot data of functional module, it can be under
And Shangdi generate relative to subsystem red dot more new data and main system red dot more new data.
In the concrete realization, identification information can be the character string for having limit, functional module, subsystem and main system
Also it is named with the character string of identical digit, then it can be corresponding with the identification information by the determination of the specific bit in character string
Subsystem and main system.Such as: identification information can be 7 character strings (1001001), and first and second in character string
Position is for determining main system, then the corresponding main system of the identification information is named as " 10000000 ", third and fourth in character string
Position is for determining subsystem, then the corresponding subsystem of the identification information is named as " 1001000 ", the five to seven in character string
Position is for determining functional module, then the corresponding functional module of expression information is named as " 1001001 ".
In one preferred embodiment of the invention, after step 102, the method can be with further include: by described
Red dot manager sends red dot update event notice;The red dot component monitors the red dot update event notice, acquisition and institute
It states red dot update event and notifies corresponding red dot more new data.
Red dot component is articulated in functional module, when showing the corresponding control of functional module in user interface, in real time
It creates corresponding red dot component and registers the event for monitoring a update red dot data in red dot component.
After generating red dot more new data, a corresponding red dot update event notice can be generated.When red dot manager
When sending red dot update event corresponding with red dot more new data notice, red dot component can obtain corresponding red dot and update number
According to.
In one preferred embodiment of the invention, red dot update event notice include: with the function red dot more
The corresponding functional module update notification event of new data, subsystem update notification corresponding with the subsystem red dot more new data
One of event, main system update notification event corresponding with the main system red dot more new data are a variety of.
In the specific implementation, red dot component is not when receiving red dot update event notice, Neng Goucong when creating red dot component
The red dot data at corresponding current time are obtained in red dot manager.
Step 102, target red dot component corresponding with the identification information in an at least red dot component is determined;
Red dot component respectively corresponds different functional modules, and game client can be according in the red dot data received
Identification information determines that the corresponding red dot component of red dot data is target red dot component.
Step 103, response is for opening the operational order of user interface corresponding with the identification information, according to interface number
It carries out showing the user interface according to the UI component is controlled, the target red dot component is shown according to the red dot more new data
Corresponding label.
When user can carry out user's operation (such as: clicking control, input information etc.), game visitor in game client
Family end can respond user's operation.When game client is in response to the operation of unlatching user interface corresponding with the identification information
Instruction (such as: click the control for opening user interface corresponding with the identification information) when, game client can receive
The interface data sent to server-side.Game client controls UI component according to interface data and carries out showing the user interface, and
According to red dot more new data, in the user interface at position corresponding with identification information, it is corresponding to control the target red dot component
Label (such as: red dot, symbol etc.).
By independent red dot component in control corresponding position display label, with remind user control relative to principal series
System or subsystem or functional module have new game events.
In a kind of example, new game events are the (examples generated before opening user interface corresponding with identification information
There are new game events to generate if: user is before opening game client), at this point, game client first carries out step
102, then execute step 103.
In another example, new game events are generated after opening user interface corresponding with identification information
(such as: user just has new game events to generate after opening user interface corresponding with identification information), at this point, game client
End first carries out step 103, then executes step 102, then executes in step 103 and " show institute according to the red dot more new data
State label corresponding to target red dot component ".
In one preferred embodiment of the invention, step 103 may include:
Sub-step S31 receives server-side is sent and interface data;
Game client can send interface to server-side and request after detecting the operational order of user.Server-side is rung
It answers the interface to request, and returns to interface data corresponding with interface request to game client.
As an example, interface request can be the functional module for having selected some to need to switch user interface in user
Or after subsystem, to the request of server-side transmission.Such as: request current task system interface.
Sub-step S32 controls the UI component and shows user interface corresponding with the interface data;The user interface
Including control corresponding with the identification information;
User interface is carried out by UI component to show, is provided in interface corresponding with main system, subsystem, functional module
Control.Control can be shown in the user interface in the form of icon.
Sub-step S33 determines flag attribute corresponding with the identification information according to the red dot more new data;
According to the red dot quantity and preset configuration information corresponding with identification information in red dot more new data, generate not
Same flag attribute.
In one preferred embodiment of the invention, sub-step S33 may include:
Sub-step S331 is determined at the corresponding configuration information of the identification information;The configuration information include red dot pattern,
Red dot quantity display rule;
In game client, it can be previously provided with configuration information, the red dot of label can be determined by configuration information
Pattern (such as: shape, color of label etc.) and red dot quantity display rule (such as: whether show the red dot in red dot data
Quantity).In the concrete realization, a configuration information can correspond to one or more identification information.I.e. different functional modules
Different configuration informations may be corresponded to, to provide different labels for different functional modules.
Sub-step S332 determines red dot quantity using the red dot more new data;
Determine that the new game events quantity in red dot more new data is red dot quantity.
Sub-step S333 generates label corresponding with identification information using the configuration information and the red dot quantity.
According to the relationship of configuration information and red dot quantity, flag attribute corresponding with identification information is generated.
Such as: when hot quantity is 0, the flag attribute of generation is not show label;It is raw when red dot quantity is 1~99
At flag attribute be display label and display red dot quantity;When hot quantity is greater than 99, the flag attribute of generation is display
It marks but does not show red dot quantity.
Sub-step S34, through the target red dot component at the corresponding position of the control, according to the flag attribute
Show corresponding label.
It is shown in the user interface at control corresponding with identification information according to flag attribute by target red dot component
Corresponding label.Such as: the label is shown in the upper right corner of the corresponding control of functional module.
In embodiments of the present invention, it is shown and is marked by independent red dot component, avoided and needed in the prior art in UI
Increase the UI element for generating label in (User Interface, user interface) layout, so that the management of label is very multiple
It is miscellaneous.
In one preferred embodiment of the invention, the control include objective function control corresponding with identification information,
Target sub system control and target host system control;The flag attribute includes that the first label corresponding with objective function control belongs to
Property, the second flag attribute corresponding with target sub system control, and third flag attribute corresponding with target host system control;
Described the step of showing corresponding label according to the flag attribute, may include:
Sub-step S341, when the user interface includes the objective function control, according to first flag attribute
Show label corresponding with function red dot more new data;
After systematic function red dot more new data, when open user interface includes objective function control, then according to
Display is marked at the corresponding position of objective function control in first flag attribute.
Sub-step S342, alternatively, when the user interface includes the target sub system control, according to second mark
Remember attribute display label corresponding with subsystem red dot more new data;
After generating subsystem red dot more new data, when open user interface includes target sub system, then according to
Display is marked at the corresponding position of target sub system control in second flag attribute.
Sub-step S343, alternatively, when the user interface includes the target host system control, according to the third mark
Remember attribute display label corresponding with main system red dot more new data.
After generating main system red dot more new data, when open user interface includes target host system, then according to
Display is marked at the corresponding position of target host system control in third flag attribute.
By updating subsystem corresponding with functional module bottom-uply after obtaining red dot data corresponding with functional module
The subsystem red dot more new data of system, and the main system red dot more new data of main system corresponding with functional module, so that
It, can be in corresponding subsystem without obtaining corresponding red dot data again through server-side when opening corresponding user interface
Display is marked in control or main system control, further simplifies when user interface shows and marks, server-side and visitor
Communication process between the end of family.
In an embodiment of the present invention, the method can further include following steps: response acts on the user
The user's operation at interface determines action event corresponding with the user's operation;Determine target corresponding with the action event
Identification information;Generate local red dot data corresponding with the target identification information;Pass through red dot manager generation and institute
State the corresponding local update data of local red dot data;It is updated and the target identification information pair according to the local update data
The label for the control answered.
When game client is run on terminal (such as: personal computer, intelligent mobile terminal), user's operation can be with
Refer to the operation that user is executed by input equipment (such as: touch screen, mouse, keyboard, handwriting pad etc.).Action event can be
Refer to the event that user's operation corresponds in game client, such as: the corresponding virtual objects of selection control, control virtual role are held
Some capable movement, control virtual role complete some task dispatching.By action event, the associated function of user's operation can be determined
The functional module and the corresponding identification information of the functional module of module, i.e. user's operation triggering are target identification information.Client
End can determine target identification information corresponding with the action event, and generate local corresponding with the target identification information
Red dot data.Such as: action event is to complete two tasks, then target identification information is the corresponding mesh of task awards faction module
Identification information is marked, and local red dot data include the target identification information and its corresponding red dot quantity.Red dot manager according to
Multistage set membership and local red dot data, generate local update data bottom-uply.It is shown by red dot component corresponding
New label, to realize when user carries out user's operation, client itself can update corresponding label, without passing through
Server-side sends red dot data corresponding user's operation, further simplifies game client display label and update mark
Process.
In embodiments of the present invention, game client is after the red dot data for receiving server-side transmission, by described red
Point manager generates red dot more new data corresponding with the red dot data;The red dot updated data package includes identification information, and
Determine target red dot component corresponding with the identification information in an at least red dot component;Response for open with it is described
The operational order of the corresponding user interface of identification information controls the UI component according to interface data and carries out showing user circle
Face, according to the red dot more new data show the target red dot component corresponding to label.Due to game client of the invention
Red dot component and UI component decouple in end, and after generating red dot more new data by red dot manager, by corresponding red dot group
Part carries out display label, so that label display methods provided by the invention, which can be avoided, shows red dot using redundant component, simplifies
The process of display is marked between server-side and client, while again connecting each label, facilitates management, configuration is flexible,
With stronger scalability.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
Referring to Fig. 2, a kind of structural block diagram of label display device embodiment of the invention is shown, described device can answer
For game client;The game client includes red dot manager, at least one red dot component and UI component, the red dot
Component and the UI component decouple;Described device includes:
Data generation module 201, the red dot data sent for responding the server-side received, is managed by the red dot
Device generates red dot more new data corresponding with the red dot data, wherein the red dot updated data package includes identification information;
Target determination module 202, for determining mesh corresponding with the identification information in an at least red dot component
Mark red dot component;
Display module 203 is marked, is referred to for responding the operation for being used to open user interface corresponding with the identification information
It enables, the UI component is controlled according to interface data and carries out showing the user interface, institute is shown according to the red dot more new data
State label corresponding to target red dot component.
In an embodiment of the present invention, the red dot manager is cached with history more new data;The data generate
Module 201 includes:
Calculation amount submodule is red dot data for calculating difference between the history more new data and the red dot data
Variable quantity;
More new data submodule, for according to the history more new data and the red dot data variation amount generate with it is described
The corresponding red dot of identification information more new data.
In an embodiment of the present invention, the server-side is provided with main system, subsystem and functional module;It is described
Identification information is corresponding with objective function module;The more new data submodule includes:
Function red dot more new data element, for determining that the red dot data are function corresponding with the objective function module
It can red dot more new data;
Subsystem red dot more new data element is adopted when there is target sub system corresponding with the objective function module
With the function red dot more new data and the history more new data, subsystem red dot more new data is generated;
Main system red dot more new data element is used when there is target host system corresponding with the target sub system
The subsystem red dot more new data and the history more new data generate main system red dot more new data.
In an embodiment of the present invention, the label display module 203 includes:
Interface data submodule, for receiving server-side is sent and interface data;
User interface submodule shows user interface corresponding with the interface data for controlling the UI component;Institute
Stating user interface includes control corresponding with the identification information;
Attribute submodule, for determining flag attribute corresponding with the identification information according to the red dot more new data;
Submodule is marked, is used for through the target red dot component at the corresponding position of the control, according to the mark
Remember the corresponding label of attribute display.
In an embodiment of the present invention, the attribute submodule includes:
Configuration information unit, for being determined at the corresponding configuration information of the identification information;The configuration information includes red
Point pattern, red dot quantity display rule;
Red dot processing units, for determining red dot quantity using the red dot more new data;
Attribute generation unit generates the flag attribute for using the configuration information and the red dot quantity.
In an embodiment of the present invention, the control includes objective function control corresponding with identification information, target
Subsystem controls and target host system control;The flag attribute include the first flag attribute corresponding with objective function control,
The second flag attribute corresponding with target sub system control, and third flag attribute corresponding with target host system control;Institute
Stating label submodule includes:
Functionality controls unit, for being marked according to described first when the user interface includes the objective function control
Remember attribute display label corresponding with function red dot more new data;
Subsystem controls unit, for when the user interface includes the target sub system control, according to described the
Two flag attributes show label corresponding with subsystem red dot more new data;
Main system control element, for when the user interface includes the target host system control, according to described the
Three flag attributes show label corresponding with main system red dot more new data.
In an embodiment of the present invention, described device further include:
Event notification module, for sending red dot update event notice by the red dot manager;The red dot component
The red dot update event notice is monitored, obtains and notifies corresponding red dot more new data with the red dot update event.
In an embodiment of the present invention, the red dot update event notice includes: to update number with the function red dot
According to corresponding functional module update notification event, subsystem update notification thing corresponding with the subsystem red dot more new data
One of part, main system update notification event corresponding with the main system red dot more new data are a variety of.
In an embodiment of the present invention, described device further include:
Respond module is operated, for responding the user's operation for acting on the user interface, the determining and user's operation
Corresponding action event;
Target identification module, for determining target identification information corresponding with the action event;
Local red dot data module, for generating local red dot data corresponding with the target identification information;
Local update data module, for being generated and local corresponding of the red dot data by the red dot manager
Ground more new data;
Local update mark module, it is corresponding with the target identification information for being updated according to the local update data
The label of control.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
The embodiment of the invention also discloses electronic equipment, including processor, memory and it is stored on the memory simultaneously
The computer program that can be run on the processor, the computer program realize institute as above when being executed by the processor
The step of label display methods for the game stated.
The embodiment of the invention also discloses computer readable storage medium, meter is stored on the computer readable storage medium
The step of calculation machine program, the computer program realizes the label display methods of game as described above when being executed by processor.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of label display methods of game provided by the present invention, a kind of label display device of game, electricity
Sub- equipment and storage medium, are described in detail, and specific case used herein is to the principle of the present invention and embodiment
It is expounded, the above description of the embodiment is only used to help understand the method for the present invention and its core ideas;Meanwhile for
Those of ordinary skill in the art have change according to the thought of the present invention in specific embodiments and applications
Place, in conclusion the contents of this specification are not to be construed as limiting the invention.
Claims (12)
1. a kind of label display methods of game, which is characterized in that be applied to game client;The game client includes red
Point manager, at least one red dot component and UI component, the red dot component and the UI component decouple;The described method includes:
The red dot data that the server-side received is sent are responded, are generated by the red dot manager corresponding with the red dot data
Red dot more new data, wherein the red dot updated data package includes identification information;
Determine target red dot component corresponding with the identification information in an at least red dot component;
Response controls the UI for opening the operational order of user interface corresponding with the identification information, according to interface data
Component carries out showing the user interface, according to the red dot more new data show the target red dot component corresponding to mark
Note.
2. the method according to claim 1, wherein the red dot manager is cached with history more new data;Institute
State the step of red dot more new data corresponding with the red dot data is generated by the red dot manager, comprising:
Calculating difference between the history more new data and the red dot data is red dot data variation amount;
Red dot corresponding with the identification information is generated according to the history more new data and the red dot data variation amount to update
Data.
3. according to the method described in claim 2, it is characterized in that, the server-side is provided with main system, subsystem and function
It can module;The identification information is corresponding with objective function module;It is described according to the history more new data and the red dot data
Variable quantity generates the step of red dot more new data corresponding with the identification information, comprising:
Determine that the red dot data are function red dot more new data corresponding with the objective function module;
When there is target sub system corresponding with the objective function module, using the function red dot more new data and described
History more new data generates subsystem red dot more new data;
When there is target host system corresponding with the target sub system, using the subsystem red dot more new data and described
History more new data generates main system red dot more new data.
4. according to the method described in claim 3, it is characterized in that, the response is corresponding with the identification information for opening
The operational order of user interface controls the UI component according to interface data and carries out showing the user interface, according to described red
The step of point more new data shows label corresponding to the target red dot component, comprising:
Receive server-side is sent and interface data;
It controls the UI component and shows user interface corresponding with the interface data;The user interface includes and the mark
The corresponding control of information;
Flag attribute corresponding with the identification information is determined according to the red dot more new data;
Through the target red dot component at the corresponding position of the control, corresponding mark is shown according to the flag attribute
Note.
5. according to the method described in claim 4, it is characterized in that, described according to the determination of the red dot more new data and the mark
The step of knowing information corresponding flag attribute include:
It is determined at the corresponding configuration information of the identification information;The configuration information includes red dot pattern, red dot quantity display rule
Then;
Red dot quantity is determined using the red dot more new data;
Using the configuration information and the red dot quantity, the flag attribute is generated.
6. according to the method described in claim 5, it is characterized in that, the control includes objective function corresponding with identification information
Control, target sub system control and target host system control;The flag attribute includes corresponding with objective function control first
Flag attribute, the second flag attribute corresponding with target sub system control, and third mark corresponding with target host system control
Remember attribute;Described the step of showing corresponding label according to the flag attribute, comprising:
When the user interface includes the objective function control, shown with function red dot more according to first flag attribute
The corresponding label of new data;
Alternatively, being shown and son when the user interface includes the target sub system control according to second flag attribute
The corresponding label of system red dot more new data;
Alternatively, being shown and master when the user interface includes the target host system control according to the third flag attribute
The corresponding label of system red dot more new data.
7. according to the method described in claim 6, it is characterized in that, generating red dot corresponding with the red dot data more described
After new data, the method also includes:
Red dot update event notice is sent by the red dot manager;It is logical that the red dot component monitors the red dot update event
Know, obtains and notify corresponding red dot more new data with the red dot update event.
8. the method according to the description of claim 7 is characterized in that red dot update event notice includes: and the function
The corresponding functional module update notification event of red dot more new data, subsystem corresponding with the subsystem red dot more new data are more
One of new notification event, main system update notification event corresponding with the main system red dot more new data are a variety of.
9. the method according to claim 1, wherein the method also includes:
Response acts on the user's operation of the user interface, determines action event corresponding with the user's operation;
Determine target identification information corresponding with the action event;
Generate local red dot data corresponding with the target identification information;
Local update data corresponding with the local red dot data are generated by the red dot manager;
The label of control corresponding with the target identification information is updated according to the local update data.
10. a kind of label display device of game, which is characterized in that be applied to game client;The game client includes
Red dot manager, at least one red dot component and UI component, the red dot component and the UI component decouple;Described device packet
It includes:
Data generation module, the red dot data sent for responding the server-side received, is generated by the red dot manager
Red dot more new data corresponding with the red dot data, wherein the red dot updated data package includes identification information;
Target determination module, for determining target red dot group corresponding with the identification information in an at least red dot component
Part;
Display module is marked, for responding the operational order for being used for opening user interface corresponding with the identification information, according to
Interface data controls the UI component and carries out showing the user interface, shows that the target is red according to the red dot more new data
Label corresponding to point component.
11. electronic equipment, which is characterized in that including processor, memory and be stored on the memory and can be described
The computer program run on processor is realized when the computer program is executed by the processor as in claim 1 to 9
The step of label display methods of described in any item game.
12. computer readable storage medium, which is characterized in that computer program is stored on the computer readable storage medium,
The computer program realizes the label display side of game as claimed in any one of claims 1-9 wherein when being executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910669011.1A CN110215696A (en) | 2019-07-23 | 2019-07-23 | Label display methods, device, electronic equipment and the storage medium of game |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910669011.1A CN110215696A (en) | 2019-07-23 | 2019-07-23 | Label display methods, device, electronic equipment and the storage medium of game |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110215696A true CN110215696A (en) | 2019-09-10 |
Family
ID=67813812
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910669011.1A Pending CN110215696A (en) | 2019-07-23 | 2019-07-23 | Label display methods, device, electronic equipment and the storage medium of game |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110215696A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110928710A (en) * | 2019-11-21 | 2020-03-27 | 网易(杭州)网络有限公司 | Information prompting method and device, electronic equipment and storage medium |
CN111555962A (en) * | 2020-04-30 | 2020-08-18 | 中国平安财产保险股份有限公司 | Red dot message prompting method, device, equipment and storage medium |
CN112190942A (en) * | 2020-10-23 | 2021-01-08 | 网易(杭州)网络有限公司 | Red dot system and data processing method based on red dot system |
CN112891949A (en) * | 2021-04-07 | 2021-06-04 | 网易(杭州)网络有限公司 | Method and device for realizing label interface |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103310004A (en) * | 2013-06-28 | 2013-09-18 | 北京小米科技有限责任公司 | Method, device and equipment for displaying number of unread messages |
CN106817492A (en) * | 2017-01-23 | 2017-06-09 | 北京小米移动软件有限公司 | The method and apparatus that red packet activity is reminded |
CN107132963A (en) * | 2017-05-08 | 2017-09-05 | 深圳乐信软件技术有限公司 | Red message display method, elimination method and related device |
CN108459895A (en) * | 2018-03-02 | 2018-08-28 | 深圳前海桔子信息技术有限公司 | Identity configuration method, device, equipment and storage medium are not read |
CN109446450A (en) * | 2018-10-30 | 2019-03-08 | 五八有限公司 | List browse method, apparatus, terminal and storage medium based on red dot tracking |
-
2019
- 2019-07-23 CN CN201910669011.1A patent/CN110215696A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103310004A (en) * | 2013-06-28 | 2013-09-18 | 北京小米科技有限责任公司 | Method, device and equipment for displaying number of unread messages |
CN106817492A (en) * | 2017-01-23 | 2017-06-09 | 北京小米移动软件有限公司 | The method and apparatus that red packet activity is reminded |
CN107132963A (en) * | 2017-05-08 | 2017-09-05 | 深圳乐信软件技术有限公司 | Red message display method, elimination method and related device |
CN108459895A (en) * | 2018-03-02 | 2018-08-28 | 深圳前海桔子信息技术有限公司 | Identity configuration method, device, equipment and storage medium are not read |
CN109446450A (en) * | 2018-10-30 | 2019-03-08 | 五八有限公司 | List browse method, apparatus, terminal and storage medium based on red dot tracking |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110928710A (en) * | 2019-11-21 | 2020-03-27 | 网易(杭州)网络有限公司 | Information prompting method and device, electronic equipment and storage medium |
CN110928710B (en) * | 2019-11-21 | 2022-05-31 | 网易(杭州)网络有限公司 | Information prompting method and device, electronic equipment and storage medium |
CN111555962A (en) * | 2020-04-30 | 2020-08-18 | 中国平安财产保险股份有限公司 | Red dot message prompting method, device, equipment and storage medium |
CN112190942A (en) * | 2020-10-23 | 2021-01-08 | 网易(杭州)网络有限公司 | Red dot system and data processing method based on red dot system |
CN112891949A (en) * | 2021-04-07 | 2021-06-04 | 网易(杭州)网络有限公司 | Method and device for realizing label interface |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110215696A (en) | Label display methods, device, electronic equipment and the storage medium of game | |
US11163851B2 (en) | Method, apparatus, computer device and storage medium of page displaying | |
CN105429780B (en) | A method of virtualization network service business automatically generates and dynamic monitors | |
CN105518648B (en) | Via node-relational model resource is provided to client | |
CN107196788A (en) | A kind of processing method for burying point data, device, server and client | |
CN109995805A (en) | A kind of management method of intelligent robot, terminal device and medium | |
CN106982283A (en) | Contact person's packet processing method, device and mobile terminal | |
CN101888320A (en) | Enhanced network adapter framework | |
CN102130804A (en) | Hierarchical service management | |
CN109656599A (en) | The method and system updated for client release | |
CN109885457A (en) | Indicate lamp control method, electronic equipment and computer readable storage medium | |
CN110221899A (en) | A kind of adjusting method of user interface, apparatus and system | |
CN110233742A (en) | A kind of group's method for building up, system, terminal and server | |
CN112860343B (en) | Configuration changing method, system, device, electronic equipment and storage medium | |
CN110310198A (en) | Management method, device, equipment and the readable storage medium storing program for executing of enterprise's amount information | |
CN105404530B (en) | It is a kind of to realize easy deployment and the system and method using private clound | |
CN108509599A (en) | A kind of creation method and device of data model | |
CN112486491A (en) | Page generation method and device, computer equipment and storage medium | |
CN110928710B (en) | Information prompting method and device, electronic equipment and storage medium | |
CN107153495A (en) | A kind of method and apparatus for setting up service link between network element | |
CN109726038A (en) | Method and apparatus for managing virtual machine | |
CN106354507A (en) | Enterprise-level application management system and method for operating same | |
Lomov et al. | Subscription operation in Smart-M3 | |
CN111698326A (en) | Method and apparatus for determining cost attribution of cloud service resources | |
CN115543423A (en) | Method, device and equipment for generating benchmarks and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190910 |
|
RJ01 | Rejection of invention patent application after publication |