CN110825292A - Character information display method and device, storage medium and control terminal - Google Patents
Character information display method and device, storage medium and control terminal Download PDFInfo
- Publication number
- CN110825292A CN110825292A CN201911047713.2A CN201911047713A CN110825292A CN 110825292 A CN110825292 A CN 110825292A CN 201911047713 A CN201911047713 A CN 201911047713A CN 110825292 A CN110825292 A CN 110825292A
- Authority
- CN
- China
- Prior art keywords
- sub
- character
- characters
- information
- character 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The application relates to the field of application design, in particular to a character information display method, a device, a storage medium and a control terminal, wherein the method comprises the following steps: creating a character information display container; acquiring sub-characters contained in character information, and drawing corresponding sub-characters in the character information display container according to the characteristic information of each sub-character; receiving a change instruction of the sub-characters, and updating the characteristic information of each sub-character according to the change instruction; and acquiring a refreshing time interval, and refreshing corresponding sub-characters based on a preset sequence according to the refreshing time interval, wherein the refreshing of the corresponding sub-characters comprises drawing corresponding sub-characters in the character information display container according to the updated characteristic information of the sub-characters. The method and the device can smoothly display the character information and the change of the character information.
Description
Technical Field
The application relates to the field of application design, in particular to a character information display method, a device, a storage medium and a control terminal.
Background
With the development of the internet technology, controls are added on a page to display a certain numerical value and the change of the numerical value, and the existing scheme sets a single control for each number to control, and adjusts each control to a corresponding numerical value when the certain numerical value needs to be displayed, so that the scheme brings great trouble to the digit expansion of the numbers; meanwhile, when the numerical value changes, all the controls need to be controlled to change, namely animation needs to be set for each control, the change of the controls is large in terminal performance loss ratio and cannot meet the requirement of suddenly needing numerical values with large change degrees, and numerical information cannot be displayed smoothly and efficiently and the change of the numerical information cannot be displayed.
Disclosure of Invention
In order to overcome the technical problems, in particular to the problem that the prior art smoothly and efficiently displays character information and the change process thereof, the following technical scheme is particularly provided:
in a first aspect, the present application provides a method for displaying character information, including:
creating a character information display container;
acquiring sub-characters contained in character information, and drawing corresponding sub-characters in the character information display container according to the characteristic information of each sub-character;
receiving a change instruction of the sub-characters, and updating the characteristic information of each sub-character according to the change instruction;
and acquiring a refreshing time interval, and refreshing corresponding sub-characters based on a preset sequence according to the refreshing time interval, wherein the refreshing of the corresponding sub-characters comprises drawing corresponding sub-characters in the character information display container according to the updated characteristic information of the sub-characters.
Further, the obtaining the refresh time interval includes:
obtaining a refresh frame rate of a system screen, determining a refresh time interval according to the refresh frame rate, and configuring a timer as the refresh time interval;
refreshing the corresponding sub-characters based on a preset sequence according to the refreshing time interval comprises the following steps:
and when the timing moment of the timer is reached, refreshing the corresponding sub-characters based on a preset sequence.
Further, after the drawing the corresponding sub-character in the character information display container according to the updated feature information of the sub-character, the method further includes:
if all the sub-characters are completely drawn in the character information display container, stopping the timer and waiting for the next change instruction;
after receiving a next change instruction, continuing to receive the change instruction of the sub-characters, and updating the feature information of each sub-character according to the change instruction; and acquiring a refreshing time interval, and refreshing corresponding sub-characters based on a preset sequence according to the refreshing time interval, wherein the refreshing of the corresponding sub-characters comprises drawing corresponding sub-characters in the character information display container according to the updated characteristic information of the sub-characters.
Further, the feature information of the sub-character comprises coordinate information of the sub-character; the drawing of the corresponding sub-characters in the character information display container according to the characteristic information of each sub-character comprises the following steps:
determining the position of each sub-character in the character information display container according to the coordinate information of each sub-character;
and drawing corresponding sub-characters at the corresponding positions of the character information display container.
Further, the drawing a corresponding sub-character in the character information display container according to the updated feature information of the sub-character includes:
acquiring the middle characteristic information of the sub-characters from the characteristic information of the sub-characters before updating to the characteristic information of the sub-characters after updating;
and drawing corresponding sub-characters in the character information display container according to the intermediate characteristic information of the sub-characters in sequence until the corresponding sub-characters are drawn in the character information display container according to the updated characteristic information of the sub-characters.
Further, after receiving the change instruction of the sub-character and updating the feature information of each sub-character according to the change instruction, the method further includes:
determining the change degree of the character information according to the change instruction;
and matching the special effect information changed by the character information according to the change degree, and synchronously outputting the special effect information in the process of refreshing the corresponding sub-characters.
Further, before the matching the special effect information of the character change according to the change degree, the method further includes:
detecting system hardware information, and determining first special effect information according to the system opinion information;
the special effect information which is changed according to the change degree matching character information comprises the following steps:
and matching the special effect information changed by the character information according to the change degree and the first special effect information.
In a second aspect, the present application provides a character information display apparatus, including:
a container creation module: the character information display container is used for creating a character information display container;
a first rendering module: the character information display device is used for acquiring sub characters contained in character information and drawing corresponding sub characters in the character information display container according to the characteristic information of each sub character;
a characteristic information module: the character updating device is used for receiving a change instruction of the sub-characters and updating the characteristic information of each sub-character according to the change instruction;
a second rendering module: and the method is used for obtaining a refreshing time interval, and refreshing corresponding sub-characters according to the refreshing time interval based on a preset sequence, wherein the refreshing of the corresponding sub-characters comprises drawing corresponding sub-characters in the character information display container according to the updated characteristic information of the sub-characters.
In a third aspect, the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the above character information displaying method.
In a fourth aspect, the present application also provides a control terminal comprising one or more processors, a memory, one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform the above character information presentation method.
Compared with the prior art, the application has the following beneficial effects:
the application provides a method for integrally displaying character information and a change process of the character information on the basis of a character information display container, which comprises the steps of obtaining sub-characters contained in the character information, drawing corresponding sub-characters in the character information display container according to the characteristic information of each sub-character, drawing current character information in the character information display container, enabling the character information to change along with actual operation, when receiving a change instruction of the sub-characters, updating the characteristic information of each sub-character according to the change instruction, after determining the characteristic information of each updated sub-character, enabling the sub-characters to be refreshed, enabling one sub-character to be refreshed, then after a refresh time interval, enabling another sub-character to be refreshed on the basis of a preset sequence, and drawing corresponding sub-characters in the character information display container according to the updated characteristic information of the sub-characters, therefore, updated character information is drawn, a plurality of character information display containers do not need to be configured for a plurality of characters, performance loss of the terminal is reduced, updating efficiency of the character information is improved, and the character information and changes of the character information are displayed smoothly.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic flow chart diagram illustrating an embodiment of a character information displaying method according to the present application;
FIG. 2 is a schematic diagram of an embodiment of refreshing corresponding sub-characters based on a predetermined sequence according to the present application;
FIG. 3 is a schematic diagram of an embodiment of the present application with the variation of character information from 1236 to 1239;
FIG. 4 is a schematic view of an exemplary embodiment of a character information presentation apparatus of the present application;
fig. 5 is a schematic structural diagram of an embodiment of a control terminal according to the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, or operations, but do not preclude the presence or addition of one or more other features, integers, steps, operations, or groups thereof.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The embodiment of the application provides a character information display method, as shown in fig. 1, the method includes the following steps:
s10: and creating a character information display container.
The embodiment is applied to an application program, and a character information display container is created on a display interface of the application program, where the character information display container is used for displaying character information drawn on the character information display container.
S20: and acquiring sub-characters contained in the character information, and drawing corresponding sub-characters in the character information display container according to the characteristic information of each sub-character.
In this embodiment, after the sub-characters included in the character information are acquired, feature information of each sub-character is acquired at the same time, the feature information of each sub-character defines a display style of each sub-character, and then the corresponding sub-character is drawn in the character information display container according to the feature information of each sub-character, so that current character information is drawn in the character information display container.
S30: and receiving a change instruction of the sub-characters, and updating the characteristic information of each sub-character according to the change instruction.
After the current character information is drawn, the character information changes with actual operation, at this time, if a change instruction of the character information is received, a change instruction of each sub-character is triggered, then characteristic information of each sub-character is updated according to the change instruction, in one embodiment, the character information is digital character information, the number of the digital coins received by the anchor is counted in a live broadcast room through the digital character information, the digital character information is displayed in a character information display container on a page of the live broadcast room, step S20 is drawn, that is, the number of the digital coins received by the current anchor is displayed in the character information display container, for example, the number of the digital coins received by the current anchor is 12836, the current character information is 12836, the sub-characters include 1, 2, 8, 3, 2, 3, And 6, if the anchor receives the number of the given digital coins again, triggering a change instruction of the character information, namely triggering a change instruction of each character information, and updating the characteristic information of each sub-character according to the change instruction, wherein for example, if the anchor receives the given digital coins 286 again, the updated character information is 13122, and the sub-characters comprise 1, 3, 1, 2 and 2.
S40: and acquiring a refreshing time interval, and refreshing corresponding sub-characters based on a preset sequence according to the refreshing time interval, wherein the refreshing of the corresponding sub-characters comprises drawing corresponding sub-characters in the character information display container according to the updated characteristic information of the sub-characters.
In this embodiment, after the updated feature information of each sub-character is determined, the refresh time interval is acquired, the refresh interval is the interval during which each sub-character initiates an update, when a sub-character initiates a refresh, then, after the refresh time interval, another sub-character is refreshed, and the character strings included in the character information have corresponding arrangement sequences, in this embodiment, the corresponding sub-characters are refreshed based on a preset sequence according to the refresh time interval, in one embodiment, the refreshing of the sub-characters is started from right to left according to the refreshing time interval, the corresponding sub-characters are updated, and the step of refreshing the corresponding sub-character specifically comprises the step of drawing the corresponding sub-character in the character information display container according to the updated characteristic information of the sub-character, so as to draw the updated character information.
The embodiment provides a method for integrally displaying character information and a change process of the character information on the basis of a character information display container, which comprises the steps of obtaining sub-characters contained in the character information, drawing corresponding sub-characters in the character information display container according to characteristic information of each sub-character, drawing current character information in the character information display container, enabling the character information to change along with actual operation, when a change instruction of the sub-characters is received, updating the characteristic information of each sub-character according to the change instruction, after the characteristic information of each updated sub-character is determined, enabling the sub-characters to be refreshed, when one sub-character is refreshed, then after a refresh time interval, enabling another sub-character to be refreshed on the basis of a preset sequence, drawing corresponding sub-characters in the character information display container according to the updated characteristic information of the sub-characters, therefore, updated character information is drawn, a plurality of character information display containers do not need to be configured for a plurality of characters, performance loss of the terminal is reduced, updating efficiency of the character information is improved, and the character information and changes of the character information are displayed smoothly.
In an embodiment of the application, the obtaining the refresh time interval includes:
obtaining a refresh frame rate of a system screen, determining a refresh time interval according to the refresh frame rate, and configuring a timer as the refresh time interval;
refreshing the corresponding sub-characters based on a preset sequence according to the refreshing time interval comprises the following steps:
and when the timing moment of the timer is reached, refreshing the corresponding sub-characters based on a preset sequence.
In this embodiment, in the process of refreshing each sub-character in character information, a refresh time interval of each sub-character information needs to be set, and in this embodiment, each sub-character is refreshed by setting a timing task, specifically, a refresh frame rate of a system screen is obtained, the refresh time interval of the system screen is determined according to the refresh frame rate, then the timer is configured as the refresh time interval, when a refresh operation needs to be performed on the sub-character, when a timing time of the timer is reached, the corresponding sub-character is refreshed based on a preset sequence, when a sub-character starts to be refreshed, the timer is started, when a next timing time of the timer is reached, the next sub-character is started to be refreshed, and the corresponding sub-character is refreshed based on the preset sequence. In an embodiment, if the refresh frame rate of the system screen is 60fps, that is, the frequency of refreshing the screen in 1s is 60 times, and the refresh interval of each time is 0.1s, in this embodiment, the refresh time interval is determined to be 0.1s according to the refresh frame rate, that is, the timer is 0.1 s. In another embodiment, if the refresh frame rate of the system screen is 120fps, determining that the refresh time interval is 0.05 s; and if the refresh frame rate of the system screen is 30fps, determining that the refresh time interval is 0.2 s. The drawing of the character information container is kept consistent with the refreshing frequency of the screen, the continuous and smooth refreshing of the sub-characters is ensured, the drawing of the character information container is ensured to be smoother, the utilization of resources is improved, and furthermore, the timer is added into the event cycle of the system in the embodiment, and the condition that the UI performance is influenced by the timer is avoided. As shown in fig. 2, the corresponding sub-characters are refreshed based on the preset sequence, the refreshing of the sub-character 6 is firstly started, the refreshing of the sub-character 5 is started at the next timing, and the refreshing of the sub-character 4 is started, so that a visually continuous animation is visually generated, wherein the refreshing of the sub-character 6 is started first, and then 5, 4, 3, 2, and 1 are started.
In an embodiment of the present application, after the drawing, by the character information display container, the corresponding sub-character according to the updated feature information of the sub-character, the method further includes:
if all the sub-characters are completely drawn in the character information display container, stopping the timer and waiting for the next change instruction;
after receiving a next change instruction, continuing to receive the change instruction of the sub-characters, and updating the feature information of each sub-character according to the change instruction; and acquiring a refreshing time interval, and refreshing corresponding sub-characters based on a preset sequence according to the refreshing time interval, wherein the refreshing of the corresponding sub-characters comprises drawing corresponding sub-characters in the character information display container according to the updated characteristic information of the sub-characters.
In this embodiment, after the corresponding sub-character is drawn in the character information presentation container according to the updated feature information of the sub-character, if all the sub-characters are completely drawn in the character information presentation container, the updated character information can be displayed in the character information display container, at this time, the current timer is stopped, then waiting for the next change instruction, when receiving the next change instruction, continuing to execute the change instruction of receiving the sub-character, updating the characteristic information of each sub-character according to the change instruction, restarting a timer, acquiring a refresh time interval, and refreshing the corresponding sub-characters based on a preset sequence according to the refreshing time interval, wherein the refreshing of the corresponding sub-characters is to draw the corresponding sub-characters in the character information display container according to the updated characteristic information of the sub-characters, so that the updated character information is drawn. The timer is stopped after each refreshing, so that the situation that the timer works continuously to influence the operation of other functions is avoided, and the utilization rate of system resources is improved.
In an embodiment of the present application, the feature information of the sub-character includes coordinate information of the sub-character; the drawing of the corresponding sub-characters in the character information display container according to the characteristic information of each sub-character comprises the following steps:
determining the position of each sub-character in the character information display container according to the coordinate information of each sub-character;
and drawing corresponding sub-characters at the corresponding positions of the character information display container.
In this embodiment, the feature information of the sub-character includes coordinate information of the sub-character, that is, coordinates of each sub-character in the character information display container, a position of each sub-character in the character information display container may be determined according to the coordinate information of each sub-character, and then the corresponding sub-character is drawn at a position corresponding to the character information display container according to the feature information of each sub-character. In a different stage, the position of the sub-characters in the character information display container is deviated, and in one embodiment, if the number of the sub-characters is less than the preset number, the sub-characters are arranged and displayed in the character information display container from the middle of the character information display container; and if the number of the sub-characters exceeds the preset number, the sub-characters are arranged and displayed in the character information display container from the right end of the character information display container. The embodiment determines the position of the sub-character in the character information display container through the coordinate information of the sub-character, so that the corresponding sub-character is drawn at the position corresponding to the character information display container, the number of the sub-characters can be conveniently expanded, the drawing process is still the same, the character information of the sub-characters with different numbers can be smoothly drawn, the application universality is improved, and the character information display efficiency is improved.
In an embodiment of the present application, the drawing, in the character information display container, a corresponding sub character according to the updated feature information of the sub character includes:
acquiring the middle characteristic information of the sub-characters from the characteristic information of the sub-characters before updating to the characteristic information of the sub-characters after updating;
and drawing corresponding sub-characters in the character information display container according to the intermediate characteristic information of the sub-characters in sequence until the corresponding sub-characters are drawn in the character information display container according to the updated characteristic information of the sub-characters.
In this embodiment, when the corresponding sub-character is drawn in the character information display container according to the updated feature information of the sub-character, the intermediate feature information from the feature information of the sub-character before the update to the sub-character of the feature information of the updated sub-character is obtained, and then the corresponding sub-character is drawn in the character information display container according to the intermediate feature information of the sub-character in sequence until the corresponding sub-character is drawn in the character information display container according to the updated feature information of the sub-character. In this embodiment, a sub-character before being updated is defined as a current character, an updated sub-character is defined as a target character, and a certain intermediate character exists between the current character and the target character, and when a corresponding sub-character is drawn in the character information display container according to the feature information of the updated sub-character, the corresponding sub-character is drawn in the character information display container sequentially according to the intermediate feature information of the sub-character instead of being directly converted into the target character from the current character, until the corresponding sub-character is drawn in the character information display container according to the feature information of the updated sub-character, that is, the current character is sequentially converted into the intermediate character until the corresponding sub-character is converted into the target character. The intermediate characters are drawn to the target characters in sequence, so that smooth change from the current character to the target character is realized, and the fluency of character information change in the character information display container is improved. As shown in fig. 3, the schematic diagram of the change of the character information from 1236 to 1239 includes intermediate characters 7 and 8 in the process of the current character change from 6 to the target character 9, and the updated character information is drawn by sequentially drawing the character information 1237, 1238, and 1239 in the process of the change of the character information from 1236 to 1239.
In an embodiment of the present application, after receiving the change instruction of the sub-character and updating the feature information of each sub-character according to the change instruction, the method further includes:
determining the change degree of the character information according to the change instruction;
and matching the special effect information changed by the character information according to the change degree, and synchronously outputting the special effect information in the process of refreshing the corresponding sub-characters.
In this embodiment, after receiving the change instruction of the sub-character, and updating the feature information of each sub-character according to the change instruction, a process of changing the sub-character from the current feature information to the target feature information according to the change instruction may be performed, and then the degree of change of the character information may be determined, for example, the character information is changed from 10000 to 19999, and the degree of change of the character information is determined to be large, for example, the character information is changed from 10000 to 10100; and then matching the special effect information changed by the character information according to the change degree, and synchronously outputting the special effect information in the process of refreshing the corresponding sub-characters, wherein in one embodiment, the special effect information is sound special effect information, when the change degree of the character information is large, the matched sound special effect information is sound special effect information A, then in the process of refreshing the sub-characters, namely the process of refreshing the character information, synchronously outputting the sound special effect information A, for example, when the character information is changed from 10000 to 19999, the matched sound special effect information is sound special effect information in which the gold coins are dropped in large quantities, and then refreshing the character information from 10000 to 19999, synchronously outputting the sound special effect information in which the gold coins are dropped in large quantities, thereby improving the visual degree of the change of the character information and improving the attention degree of a user on the change of the character information.
In an embodiment of the present application, before matching special effect information of character change according to the degree of change, the method further includes:
detecting system hardware information, and determining first special effect information according to the system opinion information;
the special effect information which is changed according to the change degree matching character information comprises the following steps:
and matching the special effect information changed by the character information according to the change degree and the first special effect information.
In the present embodiment, on the basis of the above-described embodiment, when matching appropriate special effect information for character information change, considering that the configuration of the hardware of different terminal systems is different, the special effect information of the terminal with lower hardware configuration should not be too complex, and the consumption of system resources increased by the complex special effect information is avoided, in this embodiment, before matching the special effect information of the character change according to the change degree, detecting system hardware information, determining first special effect information according to the system opinion information, then matching concise special effect information for a terminal with lower hardware configuration according to the change degree and the special effect information changed by matching the character information with the first special effect information, matching complex and gorgeous special effect information for the terminal with lower hardware configuration, therefore, the resource utilization rate of different configuration terminals is improved, and the fluency of displaying the character information change and the fluency of displaying the special effect information of the low-configuration terminals are improved.
As shown in fig. 4, in another embodiment, the present application provides a character information presentation apparatus, including:
the container creation module 10: the character information display container is used for creating a character information display container;
the first rendering module 20: the character information display device is used for acquiring sub characters contained in character information and drawing corresponding sub characters in the character information display container according to the characteristic information of each sub character;
the feature information module 30: the character updating device is used for receiving a change instruction of the sub-characters and updating the characteristic information of each sub-character according to the change instruction;
the second rendering module 40: and the method is used for obtaining a refreshing time interval, and refreshing corresponding sub-characters according to the refreshing time interval based on a preset sequence, wherein the refreshing of the corresponding sub-characters comprises drawing corresponding sub-characters in the character information display container according to the updated characteristic information of the sub-characters.
In an embodiment of the present application, the second rendering module 40 further performs:
obtaining a refresh frame rate of a system screen, determining a refresh time interval according to the refresh frame rate, and configuring a timer as the refresh time interval;
and when the timing moment of the timer is reached, refreshing the corresponding sub-characters based on a preset sequence.
In an embodiment of the present application, the second rendering module 40 further performs:
if all the sub-characters are completely drawn in the character information display container, stopping the timer and waiting for the next change instruction; when the feature information module 30 receives a next change instruction, the change instruction of the sub-character is received, and the feature information of each sub-character is updated according to the change instruction; the second drawing module 40 obtains a refresh time interval, and refreshes corresponding sub-characters based on a preset sequence according to the refresh time interval, where refreshing the corresponding sub-characters includes drawing corresponding sub-characters in the character information display container according to the updated feature information of the sub-characters.
In an embodiment of the present application, the feature information of the sub-character includes coordinate information of the sub-character; the first rendering module 20 further performs:
determining the position of each sub-character in the character information display container according to the coordinate information of each sub-character;
and drawing corresponding sub-characters at the corresponding positions of the character information display container.
In an embodiment of the present application, the second rendering module 40 further performs:
acquiring the middle characteristic information of the sub-characters from the characteristic information of the sub-characters before updating to the characteristic information of the sub-characters after updating;
and drawing corresponding sub-characters in the character information display container according to the intermediate characteristic information of the sub-characters in sequence until the corresponding sub-characters are drawn in the character information display container according to the updated characteristic information of the sub-characters.
In an embodiment of the present application, the apparatus further comprises means for performing:
a special effect module: the change degree of the character information is determined according to the change instruction; and matching the special effect information changed by the character information according to the change degree, and synchronously outputting the special effect information in the process of refreshing the corresponding sub-characters.
In an embodiment of the present application, the special effects module further performs:
detecting system hardware information, and determining first special effect information according to the system opinion information;
and matching the special effect information changed by the character information according to the change degree and the first special effect information.
In another embodiment, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the character information presentation method according to the above embodiments. The computer-readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random access memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., a computer, a cellular phone), and may be a read-only memory, a magnetic or optical disk, or the like.
The computer-readable storage medium provided by the embodiment of the application can realize the creation of a character information display container; acquiring sub-characters contained in character information, and drawing corresponding sub-characters in the character information display container according to the characteristic information of each sub-character; receiving a change instruction of the sub-characters, and updating the characteristic information of each sub-character according to the change instruction; and acquiring a refreshing time interval, and refreshing corresponding sub-characters based on a preset sequence according to the refreshing time interval, wherein the refreshing of the corresponding sub-characters comprises drawing corresponding sub-characters in the character information display container according to the updated characteristic information of the sub-characters. By providing a method for integrally displaying character information and a change process of the character information on the basis of a character information display container, the method comprises the steps of obtaining sub-characters contained in the character information, drawing corresponding sub-characters in the character information display container according to the characteristic information of each sub-character, drawing current character information in the character information display container, enabling the character information to change along with actual operation, when a change instruction of the sub-characters is received, updating the characteristic information of each sub-character according to the change instruction, after the characteristic information of each updated sub-character is determined, enabling refreshing of the sub-characters, when one sub-character is enabled to be refreshed, then after a refreshing time interval, enabling refreshing of another sub-character on the basis of a preset sequence, drawing corresponding sub-characters in the character information display container according to the updated characteristic information of the sub-characters, therefore, updated character information is drawn, a plurality of character information display containers do not need to be configured for a plurality of characters, performance loss of the terminal is reduced, updating efficiency of the character information is improved, and the character information and changes of the character information are displayed smoothly.
The computer-readable storage medium provided in the embodiment of the present application can implement the embodiment of the character information display method, and for specific function implementation, reference is made to the description in the embodiment of the method, which is not repeated herein.
In addition, in another embodiment, the present application further provides a control terminal, as shown in fig. 5, the control terminal includes a processor 503, a memory 505, an input unit 507, a display unit 509, and other devices. Those skilled in the art will appreciate that the structural devices illustrated in fig. 5 do not constitute a limitation of all control terminals and may include more or fewer components than those illustrated, or some components in combination. The memory 505 may be used to store the computer program 501 and the functional modules, and the processor 503 executes the computer program 501 stored in the memory 505, thereby executing various functional applications of the device and data processing. The memory 505 may be an internal memory or an external memory, or include both internal and external memories. The memory may comprise read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory.
The input unit 507 is used for receiving signal input and receiving user input, and the input unit 507 may include a touch panel and other input devices, where the touch panel may collect touch operations of a user on or near the touch panel and drive a corresponding connection device according to a preset program. The display unit 509 may be used to display information input by a user or information provided to the user and various menus of the computer device. The display unit 509 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 503 is a control center of the computer device, connects various parts of the entire computer using various interfaces and lines, and performs various functions and processes data by operating or executing software programs and/or modules stored in the memory 503 and calling data stored in the memory.
In one embodiment, the control terminal includes one or more processors 503, one or more memories 505, and one or more computer programs 501, wherein the one or more computer programs 501 are stored in the memory 505 and configured to be executed by the one or more processors 503, and the one or more computer programs 501 are configured to perform the character information presentation method described in the above embodiment. The one or more processors 503 shown in fig. 5 are capable of executing, implementing the functions of the container creation module 10, the first rendering module 20, the feature information module 30, and the second rendering module 40 shown in fig. 4.
The control terminal provided by the embodiment of the application can realize the creation of a character information display container; acquiring sub-characters contained in character information, and drawing corresponding sub-characters in the character information display container according to the characteristic information of each sub-character; receiving a change instruction of the sub-characters, and updating the characteristic information of each sub-character according to the change instruction; and acquiring a refreshing time interval, and refreshing corresponding sub-characters based on a preset sequence according to the refreshing time interval, wherein the refreshing of the corresponding sub-characters comprises drawing corresponding sub-characters in the character information display container according to the updated characteristic information of the sub-characters. By providing a method for integrally displaying character information and a change process of the character information on the basis of a character information display container, the method comprises the steps of obtaining sub-characters contained in the character information, drawing corresponding sub-characters in the character information display container according to the characteristic information of each sub-character, drawing current character information in the character information display container, enabling the character information to change along with actual operation, when a change instruction of the sub-characters is received, updating the characteristic information of each sub-character according to the change instruction, after the characteristic information of each updated sub-character is determined, enabling refreshing of the sub-characters, when one sub-character is enabled to be refreshed, then after a refreshing time interval, enabling refreshing of another sub-character on the basis of a preset sequence, drawing corresponding sub-characters in the character information display container according to the updated characteristic information of the sub-characters, therefore, updated character information is drawn, a plurality of character information display containers do not need to be configured for a plurality of characters, performance loss of the terminal is reduced, updating efficiency of the character information is improved, and the character information and changes of the character information are displayed smoothly.
The control terminal provided in the embodiment of the present application can implement the embodiment of the character information display method provided above, and for specific function implementation, reference is made to the description in the embodiment of the method, which is not described herein again.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.
Claims (10)
1. A character information display method is characterized by comprising the following steps:
creating a character information display container;
acquiring sub-characters contained in character information, and drawing corresponding sub-characters in the character information display container according to the characteristic information of each sub-character;
receiving a change instruction of the sub-characters, and updating the characteristic information of each sub-character according to the change instruction;
and acquiring a refreshing time interval, and refreshing corresponding sub-characters based on a preset sequence according to the refreshing time interval, wherein the refreshing of the corresponding sub-characters comprises drawing corresponding sub-characters in the character information display container according to the updated characteristic information of the sub-characters.
2. The method of claim 1, wherein obtaining the refresh time interval comprises:
obtaining a refresh frame rate of a system screen, determining a refresh time interval according to the refresh frame rate, and configuring a timer as the refresh time interval;
refreshing the corresponding sub-characters based on a preset sequence according to the refreshing time interval comprises the following steps:
and when the timing moment of the timer is reached, refreshing the corresponding sub-characters based on a preset sequence.
3. The method according to claim 2, wherein after the drawing of the corresponding sub-character by the character information presentation container according to the updated feature information of the sub-character, further comprises:
if all the sub-characters are completely drawn in the character information display container, stopping the timer and waiting for the next change instruction;
after receiving a next change instruction, continuing to receive the change instruction of the sub-characters, and updating the feature information of each sub-character according to the change instruction; and acquiring a refreshing time interval, and refreshing corresponding sub-characters based on a preset sequence according to the refreshing time interval, wherein the refreshing of the corresponding sub-characters comprises drawing corresponding sub-characters in the character information display container according to the updated characteristic information of the sub-characters.
4. The method according to claim 1, wherein the feature information of the sub-character includes coordinate information of the sub-character; the drawing of the corresponding sub-characters in the character information display container according to the characteristic information of each sub-character comprises the following steps:
determining the position of each sub-character in the character information display container according to the coordinate information of each sub-character;
and drawing corresponding sub-characters at the corresponding positions of the character information display container.
5. The method according to claim 1, wherein the drawing the corresponding sub-character in the character information presentation container according to the updated feature information of the sub-character comprises:
acquiring the middle characteristic information of the sub-characters from the characteristic information of the sub-characters before updating to the characteristic information of the sub-characters after updating;
and drawing corresponding sub-characters in the character information display container according to the intermediate characteristic information of the sub-characters in sequence until the corresponding sub-characters are drawn in the character information display container according to the updated characteristic information of the sub-characters.
6. The method according to claim 1, wherein after receiving the change instruction of the sub-character and updating the feature information of each sub-character according to the change instruction, the method further comprises:
determining the change degree of the character information according to the change instruction;
and matching the special effect information changed by the character information according to the change degree, and synchronously outputting the special effect information in the process of refreshing the corresponding sub-characters.
7. The method according to claim 6, wherein before the matching of the special effect information of the character change according to the degree of change, further comprising:
detecting system hardware information, and determining first special effect information according to the system opinion information;
the special effect information which is changed according to the change degree matching character information comprises the following steps:
and matching the special effect information changed by the character information according to the change degree and the first special effect information.
8. A character information presentation apparatus, comprising:
a container creation module: the character information display container is used for creating a character information display container;
a first rendering module: the character information display device is used for acquiring sub characters contained in character information and drawing corresponding sub characters in the character information display container according to the characteristic information of each sub character;
a characteristic information module: the character updating device is used for receiving a change instruction of the sub-characters and updating the characteristic information of each sub-character according to the change instruction;
a second rendering module: and the method is used for obtaining a refreshing time interval, and refreshing corresponding sub-characters according to the refreshing time interval based on a preset sequence, wherein the refreshing of the corresponding sub-characters comprises drawing corresponding sub-characters in the character information display container according to the updated characteristic information of the sub-characters.
9. A computer-readable storage medium, characterized in that a computer program is stored thereon, which when executed by a processor implements the character information presentation method of any one of claims 1 to 7.
10. A terminal device, comprising:
one or more processors;
a memory;
one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, the one or more computer programs configured to perform the character information presentation method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911047713.2A CN110825292B (en) | 2019-10-30 | 2019-10-30 | Character information display method and device, storage medium and control terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911047713.2A CN110825292B (en) | 2019-10-30 | 2019-10-30 | Character information display method and device, storage medium and control terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110825292A true CN110825292A (en) | 2020-02-21 |
CN110825292B CN110825292B (en) | 2023-09-26 |
Family
ID=69551607
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911047713.2A Active CN110825292B (en) | 2019-10-30 | 2019-10-30 | Character information display method and device, storage medium and control terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110825292B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100070914A1 (en) * | 2008-09-18 | 2010-03-18 | International Business Machines Corporation | Expandable area for host table data display in a mobile device |
CN102375404A (en) * | 2010-08-27 | 2012-03-14 | 鸿富锦精密工业(深圳)有限公司 | Multi-timezone time display system and method |
CN105095157A (en) * | 2014-04-18 | 2015-11-25 | 腾讯科技(深圳)有限公司 | Method and device for displaying character string |
CN106066798A (en) * | 2016-06-06 | 2016-11-02 | 深圳铂睿智恒科技有限公司 | A kind of time control and its implementation |
CN106648623A (en) * | 2016-11-24 | 2017-05-10 | 武汉斗鱼网络科技有限公司 | Method and device of displaying characters in Android |
US20180203827A1 (en) * | 2017-01-16 | 2018-07-19 | International Business Machines Corporation | Lightweight tracking of substituted characters in text fields |
CN108683956A (en) * | 2018-06-19 | 2018-10-19 | 广州虎牙信息科技有限公司 | Direct broadcasting room barrage special efficacy configuration method, device and storage medium, server |
-
2019
- 2019-10-30 CN CN201911047713.2A patent/CN110825292B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100070914A1 (en) * | 2008-09-18 | 2010-03-18 | International Business Machines Corporation | Expandable area for host table data display in a mobile device |
CN102375404A (en) * | 2010-08-27 | 2012-03-14 | 鸿富锦精密工业(深圳)有限公司 | Multi-timezone time display system and method |
CN105095157A (en) * | 2014-04-18 | 2015-11-25 | 腾讯科技(深圳)有限公司 | Method and device for displaying character string |
CN106066798A (en) * | 2016-06-06 | 2016-11-02 | 深圳铂睿智恒科技有限公司 | A kind of time control and its implementation |
CN106648623A (en) * | 2016-11-24 | 2017-05-10 | 武汉斗鱼网络科技有限公司 | Method and device of displaying characters in Android |
US20180203827A1 (en) * | 2017-01-16 | 2018-07-19 | International Business Machines Corporation | Lightweight tracking of substituted characters in text fields |
CN108683956A (en) * | 2018-06-19 | 2018-10-19 | 广州虎牙信息科技有限公司 | Direct broadcasting room barrage special efficacy configuration method, device and storage medium, server |
Also Published As
Publication number | Publication date |
---|---|
CN110825292B (en) | 2023-09-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113225427B (en) | Image display method and terminal equipment | |
CN105630465B (en) | Display screen parameter setting method applied to terminal and terminal | |
CN103309575B (en) | The method of display icon and terminal | |
RU2011117170A (en) | SYSTEM AND METHOD FOR RESIZING A WINDOW | |
CN105740010B (en) | A kind of starting-up method and terminal device | |
CN106445500B (en) | Method, system and terminal equipment for providing user interface | |
US20120052912A1 (en) | Method for calling phone number and mobile phone using the same | |
US11461116B2 (en) | Graphical user interface redrawing method. Terminal device and computer readable storage medium | |
CN102750072B (en) | Display method for accelerating updating picture | |
US10768947B2 (en) | Method for interface refresh synchronization,terminal device, and non-transitory computer-readable storage medium | |
CN106484348B (en) | Animation drawing method and system based on synchronous signals | |
CN113051493A (en) | Application program display method and device, storage medium and terminal | |
CN113703627A (en) | Display method, display device, electronic equipment and readable storage medium | |
CN113835577A (en) | Display method, display device, electronic equipment and storage medium | |
CN106940722B (en) | Picture display method and device | |
CN104090755A (en) | Vertical scrolling display method for long application names in Android Launcher interface | |
CN113591002B (en) | Data processing method, data processing device, electronic device, and storage medium | |
CN106155676B (en) | Access control method and device for application program and terminal | |
US20200280657A1 (en) | Image display method, image display device, smart tv and readable storage medium | |
CN109062525A (en) | Data processing method, device and the computer equipment of splice displaying system | |
CN110825292A (en) | Character information display method and device, storage medium and control terminal | |
CN109819329B (en) | Window display method and smart television | |
CN108401455B (en) | Multi-system control method, control device and mobile terminal | |
CN115129444A (en) | Application program display method and device and computer readable storage medium | |
CN110389692A (en) | A kind of display methods of status bar, device 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 | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20200221 Assignee: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd. Assignor: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd. Contract record no.: X2021440000031 Denomination of invention: Character information display method, device, storage medium and control terminal License type: Common License Record date: 20210125 |
|
EE01 | Entry into force of recordation of patent licensing contract | ||
GR01 | Patent grant | ||
GR01 | Patent grant |