CN105320532B - Method, device and terminal for displaying interactive interface - Google Patents
Method, device and terminal for displaying interactive interface Download PDFInfo
- Publication number
- CN105320532B CN105320532B CN201410373452.4A CN201410373452A CN105320532B CN 105320532 B CN105320532 B CN 105320532B CN 201410373452 A CN201410373452 A CN 201410373452A CN 105320532 B CN105320532 B CN 105320532B
- Authority
- CN
- China
- Prior art keywords
- file
- avatar
- virtual image
- interactive
- local
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method, a device and a terminal for displaying an interactive interface. The method comprises the following steps: logging in an instant messaging application, and acquiring a preset local interaction interface display file, wherein the file at least comprises a first interaction background file and a first avatar file of a user or a friend; and combining and displaying the combined first virtual image, and displaying the first virtual image on the first interactive background. The method and the device display the first avatar on the first interactive background according to the first avatar file and the first interactive background file by acquiring the first interactive background file and the first avatar file of the user or the friend corresponding to the local terminal. The first avatar file and the first interactive background file can be set randomly when the files are set in advance, so that the displayed interactive background can be matched with the avatar, and the displayed interactive interface is more attractive. Because the file comprises an avatar file, the displayed interactive interface comprising an avatar is simple and tidy.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method, a device and a terminal for displaying an interactive interface.
Background
With the rapid development of computer technology, more and more instant messaging applications appear, and different users can realize communication and interaction by logging in the same instant messaging application. Generally, when a user performs communication interaction through an instant messaging application, an interaction interface is usually beautified, so that the interest of interaction is improved, and the interaction process is more entertaining. When beautifying the interactive interface, users often set a certain virtual image to represent themselves and set the interactive background displayed by the interactive interface. Therefore, when interaction is realized, the interactive interface displayed by the terminal often comprises both the virtual image and the interactive background. In order to make the interactive interface displayed by the terminal more beautiful, it is necessary to provide a method for displaying the interactive interface.
When the related technology displays an interactive interface, the adopted method is as follows: acquiring a preset virtual image file, and displaying a virtual image according to the virtual image file; and acquiring a preset interactive background file, and displaying an interactive background according to the interactive background file to obtain an interactive interface which comprises the virtual image and the interactive background. The virtual images displayed on the interactive interface simultaneously comprise the virtual images of the user and the virtual images of the friends interacting with the user. In addition, in order to make the displayed avatar more beautiful, the related art generally displays the avatar on an avatar background configured therefor independently of the interactive background.
In the process of implementing the invention, the inventor finds that the related art has at least the following problems:
when the related technology displays the interactive interface, the preset avatar file and the preset interactive background file need to be respectively acquired, and the avatar and the interactive background are respectively displayed and the avatar is displayed on the configured avatar background independent of the interactive background. That is, the avatar file and the interactive background file in the related art are independently set. In this case, the avatar background of the avatar displayed according to the independently set avatar file and the independently set interactive background file may not be matched with the interactive background, so that the displayed interactive interface is not beautiful. In addition, the displayed interactive interface simultaneously comprises the own virtual image of the user and the virtual images of the friends for interaction, so that the displayed interactive interface comprises more elements, and the displayed interactive interface is relatively cluttered.
Disclosure of Invention
In order to solve the problems of the related art, embodiments of the present invention provide a method, an apparatus, and a terminal for displaying an interactive interface. The technical scheme is as follows:
in a first aspect, a method for displaying an interactive interface is provided, the method comprising:
logging in an instant messaging application, and acquiring a preset local interaction interface display file of the instant messaging application, wherein the local interaction interface display file at least comprises a first interaction background file and a first avatar file, and the first avatar file is an avatar file of a user corresponding to a local terminal or an avatar file of a friend interacting with the local terminal;
displaying a first avatar in a picture form according to the first avatar file;
according to the first virtual image file, obtaining elements included by the first virtual image, and combining the elements included by the first virtual image to obtain the first virtual image;
hiding the first virtual image in the form of the picture, and displaying the first virtual image obtained by combination in the form of animation;
and displaying a first interactive background according to the first interactive background file, and displaying the first virtual image obtained by combination on the first interactive background.
In a second aspect, an apparatus for displaying an interactive interface is provided, the apparatus comprising:
the login module is used for logging in the instant messaging application;
the first obtaining module is used for obtaining a preset local interaction interface display file of the instant messaging application, wherein the local interaction interface display file at least comprises a first interaction background file and a first avatar file, and the first avatar file is an avatar file of a user corresponding to a local terminal or an avatar file of a friend interacting with the local terminal;
the first display module is used for displaying a first avatar in a picture form according to the first avatar file;
the first combination module is used for obtaining elements included by the first virtual image according to the first virtual image file, and combining the elements included by the first virtual image to obtain the first virtual image;
the first display module is also used for hiding the first virtual image in the picture form and displaying the first virtual image obtained by combination in an animation form;
and the second display module is used for displaying a first interactive background according to the first interactive background file and displaying the first virtual image obtained by combination on the first interactive background.
In a third aspect, a terminal is provided that includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:
logging in an instant messaging application, and acquiring a preset local interaction interface display file of the instant messaging application, wherein the local interaction interface display file at least comprises a first interaction background file and a first avatar file, and the first avatar file is an avatar file of a user corresponding to a local terminal or an avatar file of a friend interacting with the local terminal;
displaying a first avatar in a picture form according to the first avatar file;
according to the first virtual image file, obtaining elements included by the first virtual image, and combining the elements included by the first virtual image to obtain the first virtual image;
hiding the first virtual image in the form of the picture, and displaying the first virtual image obtained by combination in the form of animation;
and displaying a first interactive background according to the first interactive background file, and displaying the first virtual image obtained by combination on the first interactive background.
In a fourth aspect, a computer-readable storage medium is provided, in which a computer program is stored, the computer program being for implementing the method for displaying an interactive interface according to the first aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the method comprises the steps of obtaining a local interaction interface display file of a first avatar file comprising a first interaction background file and a user corresponding to a local terminal or a friend interacting with the user corresponding to the local terminal, combining and displaying a first avatar according to the first avatar file, displaying a first interaction background according to the first interaction background file, and displaying the first avatar on the first interaction background. The first avatar file and the first interaction background file can be set arbitrarily when the local interaction interface display file is set in advance, so that the first interaction background displayed according to the set first avatar file and the first interaction interface file can be matched with the first avatar, and the displayed interaction interface is more attractive. In addition, the local interactive interface display file only comprises one avatar file of the user corresponding to the local terminal or one of the friends interacting with the user corresponding to the local terminal, so that the displayed interactive interface only displays one avatar, and the displayed interactive interface is simpler and tidier.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a method for displaying an interactive interface according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for displaying an interactive interface according to another embodiment of the present invention;
FIG. 3 is a schematic terminal interface diagram of a displayed interactive interface according to another embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an apparatus for displaying an interactive interface according to another embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an apparatus for displaying an interactive interface according to another embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a determining module according to another embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a first module according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of a first display module according to another embodiment of the present invention;
FIG. 9 is a schematic structural diagram of an apparatus for displaying an interactive interface according to another embodiment of the present invention;
FIG. 10 is a schematic structural diagram of an apparatus for displaying an interactive interface according to another embodiment of the present invention;
fig. 11 is a schematic structural diagram of a terminal according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of the present invention provides a method for displaying an interactive interface, where the method provided by the embodiment of the present invention includes:
101: logging in the instant messaging application, and acquiring a preset local interaction interface display file of the instant messaging application, wherein the local interaction interface display file at least comprises a first interaction background file and a first avatar file, and the first avatar file is an avatar file of a user corresponding to the local terminal or an avatar file of a friend interacting with the local terminal.
Optionally, the interactive interface is a chat window interface;
the method for acquiring the preset local interactive interface display file of the instant messaging application comprises the following steps:
and acquiring a preset local chat window interface display file of the instant messaging application.
102: and combining the first virtual image according to the first virtual image file, and displaying the combined first virtual image.
Optionally, displaying the combined first avatar, comprising:
acquiring the identifier of the first virtual image obtained by combination;
the first virtual image obtained by combination is displayed in a picture form, after all elements included by the first virtual image are loaded, the first virtual image displayed in the picture form is hidden, and the first virtual image obtained by combination is displayed in an animation form.
103: and displaying the first interactive background according to the first interactive background file, and displaying the first virtual image obtained by combination on the first interactive background.
Optionally, after obtaining the preset local interactive interface display file of the instant messaging application, the method further includes:
determining whether the local interactive interface display file is consistent with the interactive interface display file on the server side;
if the local interactive interface display file is not consistent with the interactive interface display file on the server side, updating the local interactive interface display file;
combining a first avatar according to a first avatar file, comprising:
combining a first avatar according to a first avatar file included in the updated local interaction interface display file;
displaying a first interaction background according to the first interaction background file, wherein the method comprises the following steps:
and displaying the first interaction background according to the first interaction background file included in the updated local interaction interface display file.
Optionally, determining whether the local interactive interface display file is consistent with the server-side interactive interface display file includes:
acquiring a first timestamp and a first hash value of a display file of a local interactive interface;
pulling a second timestamp and a second hash value of the interactive interface display file corresponding to the local interactive interface display file from the server;
and determining whether the local interactive interface display file is consistent with the interactive interface display file on the server side or not according to the first time stamp, the first hash value, the second time stamp and the second hash value.
Optionally, combining the first avatar according to the first avatar file includes:
acquiring identifiers of all elements included in the first virtual image according to the first virtual image file, and determining a Uniform Resource Locator (URL) of each element according to the identifier of each element;
pulling the element corresponding to the URL of each element from the server to obtain all elements included in the first virtual image;
and loading all elements included by the first virtual image, and combining all elements included by the first virtual image to obtain the first virtual image.
Optionally, after the first avatar obtained by combination is displayed on the first interactive background, the method further includes:
acquiring an interactive interface switching instruction;
the method comprises the steps of acquiring a local interactive interface display file again according to an interactive interface switching instruction, wherein the local interactive interface display file acquired again comprises a second interactive background file and a second avatar file, and the second avatar file corresponds to the first avatar file;
combining the second virtual images according to the second virtual image files, and displaying the combined second virtual images;
and displaying a second interactive background according to the second interactive background file, and displaying a second virtual image obtained by combination on the second interactive background.
Optionally, after the second avatar obtained by combination is displayed on the second interactive background, the method further includes:
acquiring a virtual image switching instruction;
switching between a second interactive interface including a second avatar and a first interactive interface including a first avatar according to the avatar switching instruction.
The method provided by the embodiment of the invention comprises the steps of obtaining a local interaction interface display file of a first avatar file comprising a first interaction background file and a user corresponding to a local terminal or a friend interacting with the user corresponding to the local terminal, combining and displaying a first avatar according to the first avatar file, displaying a first interaction background according to the first interaction background file, and displaying the first avatar on the first interaction background. The first avatar file and the first interaction background file can be set arbitrarily when the local interaction interface display file is set in advance, so that the first interaction background displayed according to the set first avatar file and the first interaction interface file can be matched with the first avatar, and the displayed interaction interface is more attractive. In addition, the local interactive interface display file only comprises one avatar file of the user corresponding to the local terminal or one of the friends interacting with the user corresponding to the local terminal, so that the displayed interactive interface only displays one avatar, and the displayed interactive interface is simpler and tidier.
Referring to fig. 2, an embodiment of the present invention provides a method for displaying an interactive interface, where the method provided by the embodiment of the present invention includes:
201: logging in the instant messaging application, and acquiring a preset local interaction interface display file of the instant messaging application, wherein the local interaction interface display file at least comprises a first interaction background file and a first avatar file, and the first avatar file is an avatar file of a user corresponding to the local terminal or an avatar file of a friend interacting with the local terminal.
The embodiment of the present invention does not limit the specific type of the instant messaging application, and in the specific implementation, the type of the instant messaging application includes, but is not limited to, a social application. Regarding the specific form of the interactive interface, including but not limited to a chat window interface.
When users interact through the instant messaging application, the interaction can be realized only after entering the instant messaging application, so the users need to log in the instant messaging application. The embodiment of the present invention is not limited in particular to the manner of logging in the instant messaging application. In specific implementation, the method includes, but is not limited to, obtaining an account and a password of the instant messaging application, and logging in the instant messaging application according to the account and the password.
Since the interaction between users is usually implemented in a certain interactive interface, the interactive interface needs to be displayed when the interaction is performed. The display of the interactive interface is usually supported by a certain interactive interface display file, and the form and the position of the displayed interactive interface are usually controlled by a preset interactive interface display file. Therefore, a preset local interactive interface display file of the instant messaging application needs to be acquired. The local interactive interface display file is a preset interactive interface display file currently stored in a local terminal corresponding to a user logging in the instant messaging application. The method for acquiring the preset local interactive interface display file of the instant messaging application is related to the specific form of the interactive interface. For example, if the interactive interface is a chat window interface, when a preset local interactive interface display file of the instant messaging application is acquired, the local chat window interface display file of the instant messaging application is acquired.
In addition, since the content displayed by the interactive interface usually includes an interactive background and an avatar, the acquired local interactive interface display file should include at least a first interactive background file and a first avatar file. The first interactive background file controls the display of an interactive background, and the first avatar file controls the display of an avatar. However, in order to ensure that the interactive interface can be normally displayed, the acquired local interactive interface display file should also include a global configuration file for controlling the normal display of the interactive interface, and the like.
The embodiment of the invention does not limit the mode of presetting the local interactive interface display file, and in specific implementation, the interactive background and the virtual image can be simultaneously set in order to match the displayed interactive background with the virtual image.
Further, in order to overcome the defect that the displayed interactive interface is disordered due to the fact that the displayed interactive interface simultaneously comprises the avatar of the user corresponding to the local terminal and the avatar of the friend interacting with the user corresponding to the local terminal, in the embodiment of the invention, only one of the avatar of the user corresponding to the local terminal or the avatar of the friend interacting with the user corresponding to the local terminal is displayed on the interactive interface, so that the first avatar file is the avatar file of the user corresponding to the local terminal or the avatar file of the friend interacting with the local terminal.
Optionally, since there may be a situation that the avatar file of the friend interacting with the user corresponding to the local terminal is updated or the interactive interface display file is automatically updated by the system, after the preset local interactive interface display file of the instant messaging application is obtained, the method may further include: determining whether the local interactive interface display file is consistent with the interactive interface display file on the server side; and if the local interactive interface display file is not consistent with the interactive interface display file on the server side, updating the local interactive interface display file.
There are many ways to determine whether the local interactive interface display file is consistent with the server-side interactive interface display file. For example, the method may be implemented by continuously acquiring the interactive interface display file on the server side and comparing the interactive interface display file on the server side with the local interactive interface display file. However, when determining whether the local interactive interface display file is consistent with the server-side interactive interface display file in this way, the local terminal needs to store the local interactive interface display file and the server-side interactive interface display file acquired from the server at the same time, which may increase the load of the local terminal. Therefore, in order to reduce the load of the local terminal, when determining whether the local interactive interface display file is consistent with the server-side interactive interface display file, the method includes, but is not limited to, the following steps:
the method comprises the following steps: and acquiring a first timestamp and a first hash value of a display file of the local interactive interface.
The server side can be used for receiving the hash value of the local interactive interface display file, and the hash value can be used for determining whether the local interactive interface display file at the server side is updated or not.
The embodiment of the present invention is not particularly limited with respect to a manner of obtaining the first timestamp and the first hash value of the local interactive interface display file. In specific implementation, when the preset local interactive display file is updated each time, the mapping relation between the identifier and the timestamp of the updated local interactive interface display file and the hash value can be recorded at the same time. Therefore, the identifier of the local interactive interface display file can be obtained first, and the first timestamp and the first hash value of the local interactive interface display file can be obtained from the mapping relation formed by the identifier, the timestamp and the hash value of the local interactive interface display file. Because the memory occupied by the first timestamp and the first hash value is small, the load of the local terminal can be reduced, and the system resource is saved.
Step two: and pulling the second timestamp and the second hash value of the interactive interface display file corresponding to the local interactive interface display file from the server.
The embodiment of the present invention also does not specifically limit the manner of pulling the second timestamp and the second hash value of the interactive interface display file corresponding to the local interactive interface display file from the server. In specific implementation, the server may also pre-store the mapping relationship between the identifier of the interactive interface display file and the timestamp and the hash value. Therefore, when the second timestamp and the second hash value of the interactive interface display file corresponding to the local interactive interface display file are pulled from the server, the steps include, but are not limited to: the local terminal sends the identification of the local interactive interface display file to the server; the server receives an identifier of a local interactive interface display file sent by the local terminal, and returns a second timestamp and a second hash value of the interactive interface display file corresponding to the local interactive interface display file to the local terminal after inquiring a second timestamp and a second hash value of the interactive interface display file corresponding to the local interactive interface display file according to the identifier of the local interactive interface display file; and the terminal pulls the second timestamp and the second hash value of the interactive interface display file corresponding to the local interactive interface display file from the server by receiving the second timestamp and the second hash value of the interactive interface display file corresponding to the local interactive interface display file returned by the server.
Step three: and determining whether the local interactive interface display file is consistent with the interactive interface display file on the server side or not according to the first time stamp, the first hash value, the second time stamp and the second hash value.
When determining whether the local interactive interface display file is consistent with the interactive interface display file on the server side according to the first timestamp, the first hash value, the second timestamp and the second hash value, the method includes, but is not limited to: and comparing the first time stamp, the first hash value, the second time stamp and the second hash value one by one.
It should be noted that, if the local interaction interface display file needs to be updated, updating the local interaction interface display file may be performed immediately after logging in the instant messaging application, may also be performed at a preset time interval after logging in the instant messaging application, and may also be performed after logging in the instant messaging application and updating the local interaction interface display file according to a user's need, which is not specifically limited in this embodiment.
202: and combining the first virtual image according to the first virtual image file, and displaying the combined first virtual image.
Wherein the first avatar is combined according to the first avatar file, including but not limited to:
the method comprises the following steps: and acquiring the identifications of all elements included in the first avatar according to the first avatar file, and determining the URL of each element according to the identification of each element.
Since the avatar is actually composed of a plurality of different elements, such as eyes, nose, eyebrows, etc., each being an element of the avatar. In order to reduce the load of the local terminal, the first avatar file in the obtained local interactive interface display files may only include the identifiers of all elements included in the first avatar, and the file corresponding to each specific element is still on the server side. Wherein, in order to facilitate pulling each element from the server, the identifier of each element corresponds to a URL. Therefore, it is necessary to acquire the identifications of all the elements included in the first avatar from the first avatar file and determine the URL of each element from the identification of each element.
Wherein each element, the identifier of each element and the URL corresponding to the identifier of each element included in the first avatar include, but are not limited to, being stored in a manner as table one:
watch 1
After storing each element included in the first avatar, the identifier of each element, and the URL corresponding to the identifier of each element as shown in table one above, the manner of obtaining the identifiers of all elements included in the first avatar according to the first avatar file, and the manner of determining the URL of each element according to the identifier of each element include, but are not limited to, implementation according to the corresponding relationship in table one.
Step two: and pulling the element corresponding to the URL of each element from the server to obtain all the elements included in the first virtual image.
When an element corresponding to the URL of each element is pulled from the server, since the URL of each element is included in the first avatar file and generally the URL is HTTP (HyperText Transfer Protocol), the element corresponding to each URL may be acquired by transmitting an HTTP request to the server.
Step three: and loading all elements included by the first virtual image, and combining all elements included by the first virtual image to obtain the first virtual image.
The embodiment of the present invention is not particularly limited with respect to a manner of loading all elements included in the first avatar and a manner of combining all elements included in the first avatar. Wherein, when all elements included in the first avatar are combined to obtain the first avatar, including but not limited to combining the first avatar in the form of a picture or combining the first avatar in the form of an animation according to all elements included in the first avatar.
The embodiment of the present invention does not limit the specific format of the picture format or the animation format. In specific implementation, the picture Format includes but is not limited to a PNG (Portable Network Graphic Format) picture Format, and the animation Format includes but is not limited to a FLASH (standard for interactive vector graphics and Web animation) Format.
Alternatively, after all elements included in the first avatar are loaded, all elements included in the first avatar may be stored. As for the format for storing all the elements included in the first avatar, there are many formats, for example, XML (eXtensible Markup Language) format.
After storing all elements included in the first avatar, it may also be determined in real time whether all elements included in the first avatar are updated, since there may be a case where a user updates one or more elements included in the first avatar in real time while performing a communication interaction.
With respect to the manner in which it is determined in real time whether all elements included in the first avatar are updated, including but not limited to: whether the time stamp and the hash value of each element included in the first avatar are identical to the time stamp and the hash value of each element included in the first avatar of the server side is determined. Determining that all elements included in the first avatar are not updated if the time stamp and the hash value of each element included in the first avatar at the server side are identical to the time stamp and the hash value of each element included in the first avatar at the server side; if the time stamp and hash value of the element or elements included in the first avatar do not coincide with the time stamp and hash value of the element or elements included in the first avatar at the server side, it is determined that the element or elements included in the first avatar are updated. At this time, the updated elements may be pulled from the server and the first avatar may be reassembled with the updated elements.
In addition, in the embodiment of the invention, the first avatar file is one of an avatar of a user corresponding to the local terminal or an avatar of a friend interacting with the user corresponding to the local terminal. In order to enable the local terminal to determine whether the avatar of the user corresponding to the local terminal is currently displayed or the avatar of a friend interacting with the user corresponding to the local terminal, after the first avatar is obtained by combination, the identifier of the avatar can be obtained at the same time. The embodiment of the present invention does not limit the specific content of the identifier of the avatar, and in the specific implementation, the identifier of the avatar may include, but is not limited to, an instant messaging application account of a user corresponding to the local terminal or an instant messaging application account of a friend interacting with the user corresponding to the local terminal.
In summary, after the first avatar is obtained by combination, the identifier of the avatar is obtained at the same time, so when the first avatar obtained by combination is displayed, the method includes but is not limited to: firstly, the identification of the first virtual image obtained by combination is obtained, and the first virtual image corresponding to the identification of the first virtual image is displayed.
In addition, when the combined first avatar is displayed, the combined first avatar may be displayed in a picture form or in an animation form. However, since it takes a certain time to load all the elements included in the first avatar, in order to ensure that the displayed interactive interface does not include the avatar, the combined first avatar may be displayed in a picture form first, and after all the elements included in the first avatar are loaded, the first avatar displayed in the picture form is hidden, and the combined first avatar is displayed in an animation form.
With respect to hiding the first avatar displayed in the form of a picture, ways to animate the combined first avatar include, but are not limited to: the first avatar displayed in animated form overlays the first avatar displayed in pictorial form, and so on.
It should be noted that, if the local interaction interface display file is updated after the local interaction interface display file is acquired, when the first avatar is combined according to the first avatar file, the first avatar is combined according to the first avatar file included in the updated local interaction interface display file. The specific implementation principle of combining the first avatar according to the first avatar file included in the updated local interactive interface display file is consistent with the principle of combining the first avatar according to the first avatar file, and specific reference may be made to the content of combining the first avatar according to the first avatar file, which is not repeated herein.
203: and displaying the first interactive background according to the first interactive background file, and displaying the first virtual image obtained by combination on the first interactive background.
The embodiment of the present invention is not particularly limited with respect to the manner of displaying the first interaction background according to the first interaction background file. The specific implementation can be determined by combining the specific format of the first interaction background file. For example, if the first interactive background file is in a picture format, displaying the first interactive background in a picture display; and if the first interactive background file is in an animation format, displaying the first interactive background in an animation form.
Further, in the embodiment of the present invention, the preset first interactive background file and the first virtual file are simultaneously included in the local interactive interface display file, so that when the displayed first interactive background and the first interactive virtual image are set, the first interactive background can be directly used as the background of the first virtual image, so that the first interactive background is collocated with the first virtual image. Therefore, when the interactive interface is specifically displayed, the first avatar is directly displayed on the first interactive background.
It should be noted that, if the local interaction interface display file is updated after the local interaction interface display file is acquired, when the first interaction background is displayed according to the first interaction background file, the first interaction background is displayed according to the first interaction background file included in the updated local interaction interface display file. The specific implementation principle of displaying the first interaction background according to the first interaction background file included in the updated local interaction interface display file is consistent with the principle of displaying the first interaction background according to the first interaction background file, which may be specifically referred to the content of displaying the first interaction background according to the first interaction background file, and is not described here again.
Fig. 3 is a schematic terminal interface diagram of an interactive interface displayed by the method provided by the embodiment of the invention. The underlining in fig. 3 indicates the interactive background and the caricature character indicates the avatar. As can be seen from fig. 3, only one avatar is displayed in the interactive interface, and the avatar is displayed on the interactive background, and the background of the avatar is the interactive background.
Displaying the first avatar on the first interactive background to make the first interactive background and the first avatar file displayed as a whole, wherein when the interactive background is changed, the avatar can also be changed; when switching is performed between the avatar of the user corresponding to the local terminal and the avatar of the friend who interacts with the user corresponding to the local terminal, the interaction background corresponding to each avatar is also switched.
Optionally, in order to facilitate the user corresponding to the local terminal to view the interactive interface and the avatar of the user, when the interactive interface is displayed, the interactive interface including the avatar of the user corresponding to the local terminal may be displayed first after the user corresponding to the local terminal logs in the instant messaging application.
204: and acquiring an interactive interface switching instruction, and re-acquiring a local interactive interface display file according to the interactive interface switching instruction, wherein the re-acquired local interactive interface display file comprises a second interactive background file and a second avatar file, and the second avatar file corresponds to the first avatar file.
In the embodiment of the present invention, the first avatar file included in the local interaction interface display file acquired in step 201 is one of an avatar file of a user corresponding to the local terminal or an avatar file of a friend interacting with the user corresponding to the local terminal, so that the displayed interaction interface only includes one of an avatar of the user corresponding to the local terminal or an avatar of a friend interacting with the user corresponding to the local terminal. In order to realize the switching between the avatar of the user corresponding to the local terminal and the avatar of the friend interacting with the user corresponding to the local terminal during interaction, an interactive interface switching instruction can be obtained, and the local interactive interface display file is obtained again according to the interactive interface switching instruction. And the newly acquired local interaction interface display file comprises a second interaction background file and a second avatar file, and the second avatar file corresponds to the first avatar file.
For example, if the first avatar file is an avatar file of a user corresponding to the local terminal, the second avatar file is an avatar file of a friend interacting with the user corresponding to the local terminal.
Regarding the manner of reacquiring the local interactive interface display file according to the interactive interface switching instruction, the principle is consistent with the principle of the specific implementation method of acquiring the preset local interactive interface display file of the instant messaging application in step 201, and specific reference may be made to the content of the preset local interactive interface display file of the instant messaging application acquired in step 201, which is not described herein again.
205: and combining the second avatar according to the second avatar file, and displaying the combined second avatar.
The principle of this step is the same as that of step 202, and specific reference may be made to the specific content of step 202, which is not described herein again.
206: and displaying a second interactive background according to the second interactive background file, and displaying a second virtual image obtained by combination on the second interactive background.
The principle of this step is the same as that of step 203, and specific reference may be made to the specific content of step 203, which is not described herein again.
207: and acquiring an avatar switching instruction, and switching between a second interactive interface comprising a second avatar and a first interactive interface comprising a first avatar according to the avatar switching instruction.
When the step 201 to the step 203 and the step 204 to the step 206 are passed, an interactive interface including the first avatar and an interactive interface displaying the second avatar may be displayed, respectively. Therefore, in the subsequent interaction process, the flexible switching can be carried out between the interaction interface comprising the first virtual image and the interaction interface comprising the second virtual image.
When flexibly switching between the interactive interface comprising the first virtual image and the interactive interface comprising the second virtual image, the method comprises the following steps: and acquiring an avatar switching instruction, and switching between a second interactive interface comprising a second avatar and a first interactive interface comprising a first avatar according to the avatar switching instruction.
As to the manner of acquiring the avatar switching instruction, there are included, but not limited to: and providing a switching button in the interactive interface, and determining whether the virtual image switching instruction is acquired by detecting whether the switching button is selected. If it is detected that the switching button is selected, switching from the interactive interface switched to the second avatar or from the interactive interface including the second avatar to the interactive interface including the first avatar.
Optionally, when the interactive background is displayed, in order to avoid the problem that the displayed avatar is monotonous due to the fact that the avatar is displayed on the solid background when the user uses the solid background as the interactive background, the background of the default avatar may be set before the interactive interface is displayed. Therefore, when the interactive background is displayed, whether the interactive background which is controlled and displayed by the interactive background file is a pure-color interactive background can be detected. If it is detected that the interactive background displayed by the interactive background file control is a solid-color interactive background, the background of the default avatar may be configured for the avatar such that the avatar is displayed on the background of the default avatar.
The method provided by the embodiment of the invention comprises the steps of obtaining a local interaction interface display file of a first avatar file comprising a first interaction background file and a user corresponding to a local terminal or a friend interacting with the user corresponding to the local terminal, combining and displaying a first avatar according to the first avatar file, displaying a first interaction background according to the first interaction background file, and displaying the first avatar on the first interaction background. The first avatar file and the first interaction background file can be set arbitrarily when the local interaction interface display file is set in advance, so that the first interaction background displayed according to the set first avatar file and the first interaction interface file can be matched with the first avatar, and the displayed interaction interface is more attractive. In addition, the local interactive interface display file only comprises one avatar file of the user corresponding to the local terminal or one of the friends interacting with the user corresponding to the local terminal, so that the displayed interactive interface only displays one avatar, and the displayed interactive interface is simpler and tidier.
Referring to fig. 4, an embodiment of the present invention provides an apparatus for displaying an interactive interface, which is used to perform the method for displaying an interactive interface provided in the embodiment shown in fig. 1 or fig. 2. The device includes:
a login module 401, configured to log in an instant messaging application;
a first obtaining module 402, configured to obtain a preset local interaction interface display file of the instant messaging application, where the local interaction interface display file at least includes a first interaction background file and a first avatar file, and the first avatar file is an avatar file of a user corresponding to a local terminal or an avatar file of a friend interacting with the local terminal;
a first combining module 403 for combining the first avatar according to the first avatar file;
a first display module 404, configured to display the combined first avatar;
the second display module 405 is configured to display the first interactive background according to the first interactive background file, and display the combined first avatar on the first interactive background.
Optionally, the interactive interface is a chat window interface;
a first obtaining module 402, configured to obtain a preset local chat window interface display file of the instant messaging application.
Optionally, referring to fig. 5, the apparatus further comprises:
a determining module 406, configured to determine whether the local interactive interface display file is consistent with the server-side interactive interface display file;
an updating module 407, configured to update the local interactive interface display file when the local interactive interface display file is inconsistent with the server-side interactive interface display file;
a first combining module 403, configured to combine the first avatar according to the first avatar file included in the updated local interactive interface display file;
the second display module 405 is configured to display the first interaction background according to the first interaction background file included in the updated local interaction interface display file.
Optionally, referring to fig. 6, the determining module 406 includes:
a first obtaining unit 4061, configured to obtain a first timestamp and a first hash value of a local interactive interface display file;
the first pulling unit 4062 is configured to pull, from the server, a second timestamp and a second hash value of the interactive interface display file corresponding to the local interactive interface display file;
the first determining unit 4063 is configured to determine whether the local interactive interface display file is consistent with the server-side interactive interface display file according to the first timestamp, the first hash value, the second timestamp, and the second hash value.
Alternatively, referring to fig. 7, the first assembling module 403 includes:
a second obtaining unit 4031, configured to obtain identifiers of all elements included in the first avatar according to the first avatar file;
a second determining unit 4032, configured to determine a URL of each element according to the identifier of each element;
a second pulling unit 4033, configured to pull, from the server, an element corresponding to the URL of each element, to obtain all elements included in the first avatar;
a loading unit 4034 for loading all elements included in the first avatar;
a combining unit 4035, configured to combine all elements included in the first avatar to obtain the first avatar.
Alternatively, referring to fig. 8, the first display module 404 includes:
a third obtaining unit 4041, configured to obtain an identifier of the combined first avatar;
a first display unit 4042, configured to display the combined first avatar in a picture form;
a second display unit 4043, configured to hide the first avatar displayed in the form of a picture after all elements included in the first avatar are loaded, and display the combined first avatar in the form of an animation.
Optionally, referring to fig. 9, the apparatus further comprises:
a second obtaining module 408, configured to obtain an interactive interface switching instruction;
a third obtaining module 409, configured to obtain a local interaction interface display file again according to the interaction interface switching instruction, where the local interaction interface display file obtained again includes a second interaction background file and a second avatar file, and the second avatar file corresponds to the first avatar file;
a second combining module 410 for combining the second avatar according to the second avatar file;
a third display module 411, configured to display the combined second avatar;
and a fourth display module 412, configured to display the second interactive background according to the second interactive background file, and display the combined second avatar on the second interactive background.
Optionally, referring to fig. 10, the apparatus further comprises:
a third obtaining module 413, configured to obtain an avatar switching instruction;
and the switching module 414 is used for switching between the second interactive interface comprising the second avatar and the first interactive interface comprising the first avatar according to the avatar switching instruction.
The device provided by the embodiment of the invention acquires the local interaction interface display file of the first avatar file comprising the first interaction background file and the user corresponding to the local terminal or the friend interacting with the user corresponding to the local terminal, combines and displays the first avatar according to the first avatar file, displays the first interaction background according to the first interaction background file, and displays the first avatar on the first interaction background. The first avatar file and the first interaction background file can be set arbitrarily when the local interaction interface display file is set in advance, so that the first interaction background displayed according to the set first avatar file and the first interaction interface file can be matched with the first avatar, and the displayed interaction interface is more attractive. In addition, the local interactive interface display file only comprises one avatar file of the user corresponding to the local terminal or one of the friends interacting with the user corresponding to the local terminal, so that the displayed interactive interface only displays one avatar, and the displayed interactive interface is simpler and tidier.
Referring to fig. 11, a schematic structural diagram of a terminal according to an embodiment of the present invention is shown, where the terminal may be used to implement the method for displaying an interactive interface provided in the foregoing embodiment. Specifically, the method comprises the following steps:
the terminal 1100 may include RF (Radio Frequency) circuitry 110, a memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a WiFi (Wireless Fidelity) module 170, a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the terminal structure shown in fig. 11 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information from a base station and then sends the received downlink information to the one or more processors 180 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 110 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (short messaging Service), etc.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal 1100, and the like. Further, the memory 120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise both touch detection means and touch controller portions. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal 1100, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 11, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal 1100 can also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or a backlight when the terminal 1100 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the terminal is stationary, and can be used for applications of recognizing terminal gestures (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal 1100, detailed descriptions thereof are omitted.
WiFi belongs to a short-distance wireless transmission technology, and the terminal 1100 can help a user send and receive e-mails, browse web pages, access streaming media, and the like through the WiFi module 170, and it provides a wireless broadband internet access for the user. Although fig. 11 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the terminal 1100, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal 1100, connects various parts of the entire terminal using various interfaces and lines, performs various functions of the terminal 1100 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the terminal. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal 1100 also includes a power supply 190 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 180 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal 1100 may further include a camera, a bluetooth module, etc., which will not be described herein. In this embodiment, the display unit of the terminal is a touch screen display, and the terminal further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors. The one or more programs include instructions for:
logging in the instant messaging application, and acquiring a preset local interaction interface display file of the instant messaging application, wherein the local interaction interface display file at least comprises a first interaction background file and a first avatar file, and the first avatar file is an avatar file of a user corresponding to the local terminal or an avatar file of a friend interacting with the local terminal;
combining the first virtual images according to the first virtual image file, and displaying the combined first virtual images;
and displaying the first interactive background according to the first interactive background file, and displaying the first virtual image obtained by combination on the first interactive background.
Assuming that the above is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal further includes instructions for performing the following operations: the interactive interface is a chat window interface;
the method for acquiring the preset local interactive interface display file of the instant messaging application comprises the following steps:
and acquiring a preset local chat window interface display file of the instant messaging application.
In a third possible implementation manner provided as a basis for the first possible implementation manner, the memory of the terminal further includes instructions for performing the following operations: after obtaining the preset local interactive interface display file of the instant messaging application, the method further comprises the following steps:
determining whether the local interactive interface display file is consistent with the interactive interface display file on the server side;
if the local interactive interface display file is not consistent with the interactive interface display file on the server side, updating the local interactive interface display file;
combining a first avatar according to a first avatar file, comprising:
combining a first avatar according to a first avatar file included in the updated local interaction interface display file;
displaying a first interaction background according to the first interaction background file, wherein the method comprises the following steps:
and displaying the first interaction background according to the first interaction background file included in the updated local interaction interface display file.
In a fourth possible implementation form, which is provided as a basis for the third possible implementation form, the memory of the terminal further includes instructions for performing the following operations: determining whether the local interactive interface display file is consistent with the interactive interface display file at the server side, including:
acquiring a first timestamp and a first hash value of a display file of a local interactive interface;
pulling a second timestamp and a second hash value of the interactive interface display file corresponding to the local interactive interface display file from the server;
and determining whether the local interactive interface display file is consistent with the interactive interface display file on the server side or not according to the first time stamp, the first hash value, the second time stamp and the second hash value.
In a fifth possible implementation manner provided as a basis for the first possible implementation manner, the memory of the terminal further includes instructions for performing the following operations: combining a first avatar according to a first avatar file, comprising:
acquiring identifications of all elements included in the first virtual image according to the first virtual image file, and determining a URL (uniform resource locator) of each element according to the identification of each element;
pulling the element corresponding to the URL of each element from the server to obtain all elements included in the first virtual image;
and loading all elements included by the first virtual image, and combining all elements included by the first virtual image to obtain the first virtual image.
In a sixth possible implementation manner provided as a basis for the fifth possible implementation manner, the memory of the terminal further includes instructions for performing the following operations: displaying the combined first avatar, comprising:
acquiring the identifier of the first virtual image obtained by combination;
the first virtual image obtained by combination is displayed in a picture form, after all elements included by the first virtual image are loaded, the first virtual image displayed in the picture form is hidden, and the first virtual image obtained by combination is displayed in an animation form.
In a seventh possible implementation manner provided on the basis of any one of the first to sixth possible implementation manners, the memory of the terminal further includes instructions for performing the following operations: after the first avatar obtained by combination is displayed on the first interactive background, the method further comprises the following steps:
acquiring an interactive interface switching instruction;
the method comprises the steps of acquiring a local interactive interface display file again according to an interactive interface switching instruction, wherein the local interactive interface display file acquired again comprises a second interactive background file and a second avatar file, and the second avatar file corresponds to the first avatar file;
combining the second virtual images according to the second virtual image files, and displaying the combined second virtual images;
and displaying a second interactive background according to the second interactive background file, and displaying a second virtual image obtained by combination on the second interactive background.
In an eighth possible implementation manner provided as the basis of the seventh possible implementation manner, the memory of the terminal further includes instructions for performing the following operations: after the combined second avatar is displayed on the second interactive background, the method further includes:
acquiring a virtual image switching instruction;
switching between a second interactive interface including a second avatar and a first interactive interface including a first avatar according to the avatar switching instruction.
The terminal provided by the embodiment of the invention acquires the local interaction interface display file of the first avatar file comprising the first interaction background file and the user corresponding to the local terminal or the friend interacting with the user corresponding to the local terminal, combines and displays the first avatar according to the first avatar file, displays the first interaction background according to the first interaction background file, and displays the first avatar on the first interaction background. The first avatar file and the first interaction background file can be set arbitrarily when the local interaction interface display file is set in advance, so that the first interaction background displayed according to the set first avatar file and the first interaction interface file can be matched with the first avatar, and the displayed interaction interface is more attractive. In addition, the local interactive interface display file only comprises one avatar file of the user corresponding to the local terminal or one of the friends interacting with the user corresponding to the local terminal, so that the displayed interactive interface only displays one avatar, and the displayed interactive interface is simpler and tidier.
An embodiment of the present invention provides a computer-readable storage medium, which may be a computer-readable storage medium contained in the memory in the above-described embodiment; or it may be a separate computer-readable storage medium not incorporated in the terminal. The computer readable storage medium stores one or more programs for use by one or more processors in performing a method of displaying an interactive interface, the method comprising:
logging in the instant messaging application, and acquiring a preset local interaction interface display file of the instant messaging application, wherein the local interaction interface display file at least comprises a first interaction background file and a first avatar file, and the first avatar file is an avatar file of a user corresponding to the local terminal or an avatar file of a friend interacting with the local terminal;
combining the first virtual images according to the first virtual image file, and displaying the combined first virtual images;
and displaying the first interactive background according to the first interactive background file, and displaying the first virtual image obtained by combination on the first interactive background.
Assuming that the above is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the memory of the terminal further includes instructions for performing the following operations: the interactive interface is a chat window interface;
the method for acquiring the preset local interactive interface display file of the instant messaging application comprises the following steps:
and acquiring a preset local chat window interface display file of the instant messaging application.
In a third possible implementation manner provided as a basis for the first possible implementation manner, the memory of the terminal further includes instructions for performing the following operations: after obtaining the preset local interactive interface display file of the instant messaging application, the method further comprises the following steps:
determining whether the local interactive interface display file is consistent with the interactive interface display file on the server side;
if the local interactive interface display file is not consistent with the interactive interface display file on the server side, updating the local interactive interface display file;
combining a first avatar according to a first avatar file, comprising:
combining a first avatar according to a first avatar file included in the updated local interaction interface display file;
displaying a first interaction background according to the first interaction background file, wherein the method comprises the following steps:
and displaying the first interaction background according to the first interaction background file included in the updated local interaction interface display file.
In a fourth possible implementation form, which is provided as a basis for the third possible implementation form, the memory of the terminal further includes instructions for performing the following operations: determining whether the local interactive interface display file is consistent with the interactive interface display file at the server side, including:
acquiring a first timestamp and a first hash value of a display file of a local interactive interface;
pulling a second timestamp and a second hash value of the interactive interface display file corresponding to the local interactive interface display file from the server;
and determining whether the local interactive interface display file is consistent with the interactive interface display file on the server side or not according to the first time stamp, the first hash value, the second time stamp and the second hash value.
In a fifth possible implementation manner provided as a basis for the first possible implementation manner, the memory of the terminal further includes instructions for performing the following operations: combining a first avatar according to a first avatar file, comprising:
acquiring identifications of all elements included in the first virtual image according to the first virtual image file, and determining a URL (uniform resource locator) of each element according to the identification of each element;
pulling the element corresponding to the URL of each element from the server to obtain all elements included in the first virtual image;
and loading all elements included by the first virtual image, and combining all elements included by the first virtual image to obtain the first virtual image.
In a sixth possible implementation manner provided as a basis for the fifth possible implementation manner, the memory of the terminal further includes instructions for performing the following operations: displaying the combined first avatar, comprising:
acquiring the identifier of the first virtual image obtained by combination;
the first virtual image obtained by combination is displayed in a picture form, after all elements included by the first virtual image are loaded, the first virtual image displayed in the picture form is hidden, and the first virtual image obtained by combination is displayed in an animation form.
In a seventh possible implementation manner provided on the basis of any one of the first to sixth possible implementation manners, the memory of the terminal further includes instructions for performing the following operations: after the first avatar obtained by combination is displayed on the first interactive background, the method further comprises the following steps:
acquiring an interactive interface switching instruction;
the method comprises the steps of acquiring a local interactive interface display file again according to an interactive interface switching instruction, wherein the local interactive interface display file acquired again comprises a second interactive background file and a second avatar file, and the second avatar file corresponds to the first avatar file;
combining the second virtual images according to the second virtual image files, and displaying the combined second virtual images;
and displaying a second interactive background according to the second interactive background file, and displaying a second virtual image obtained by combination on the second interactive background.
In an eighth possible implementation manner provided as the basis of the seventh possible implementation manner, the memory of the terminal further includes instructions for performing the following operations: after the combined second avatar is displayed on the second interactive background, the method further includes:
acquiring a virtual image switching instruction;
switching between a second interactive interface including a second avatar and a first interactive interface including a first avatar according to the avatar switching instruction.
The computer-readable storage medium provided by the embodiment of the invention acquires a local interaction interface display file of a first avatar file comprising a first interaction background file and a user corresponding to a local terminal or a friend interacting with the user corresponding to the local terminal, combines and displays a first avatar according to the first avatar file, displays a first interaction background according to the first interaction background file, and displays the first avatar on the first interaction background. The first avatar file and the first interaction background file can be set arbitrarily when the local interaction interface display file is set in advance, so that the first interaction background displayed according to the set first avatar file and the first interaction interface file can be matched with the first avatar, and the displayed interaction interface is more attractive. In addition, the local interactive interface display file only comprises one avatar file of the user corresponding to the local terminal or one of the friends interacting with the user corresponding to the local terminal, so that the displayed interactive interface only displays one avatar, and the displayed interactive interface is simpler and tidier.
Embodiments of the present invention provide a graphical user interface for use on a terminal, the terminal comprising a touch screen display, a memory, and one or more processors for executing one or more programs; the graphical user interface includes:
logging in the instant messaging application, and acquiring a preset local interaction interface display file of the instant messaging application, wherein the local interaction interface display file at least comprises a first interaction background file and a first avatar file, and the first avatar file is an avatar file of a user corresponding to the local terminal or an avatar file of a friend interacting with the local terminal;
combining the first virtual images according to the first virtual image file, and displaying the combined first virtual images;
and displaying the first interactive background according to the first interactive background file, and displaying the first virtual image obtained by combination on the first interactive background.
The graphical user interface provided by the embodiment of the invention acquires the local interaction interface display file of the first avatar file comprising the first interaction background file and the user corresponding to the local terminal or the friend interacting with the user corresponding to the local terminal, combines and displays the first avatar according to the first avatar file, displays the first interaction background according to the first interaction background file, and displays the first avatar on the first interaction background. The first avatar file and the first interaction background file can be set arbitrarily when the local interaction interface display file is set in advance, so that the first interaction background displayed according to the set first avatar file and the first interaction interface file can be matched with the first avatar, and the displayed interaction interface is more attractive. In addition, the local interactive interface display file only comprises one avatar file of the user corresponding to the local terminal or one of the friends interacting with the user corresponding to the local terminal, so that the displayed interactive interface only displays one avatar, and the displayed interactive interface is simpler and tidier.
It should be noted that: the device and the terminal for displaying an interactive interface provided in the above embodiments are only illustrated by dividing the functional modules when displaying an interactive interface, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and the terminal for displaying an interactive interface and the method embodiment for displaying an interactive interface provided by the embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (18)
1. A method of displaying an interactive interface, the method comprising:
logging in an instant messaging application, and acquiring a preset local interaction interface display file of the instant messaging application, wherein the local interaction interface display file at least comprises a first interaction background file and a first avatar file, and the first avatar file is an avatar file of a user corresponding to a local terminal or an avatar file of a friend interacting with the local terminal;
displaying a first avatar in a picture form according to the first avatar file;
according to the first virtual image file, obtaining elements included by the first virtual image, and combining the elements included by the first virtual image to obtain the first virtual image;
hiding the first virtual image in the form of the picture, and displaying the first virtual image obtained by combination in the form of animation;
and displaying a first interactive background according to the first interactive background file, and displaying the first virtual image obtained by combination on the first interactive background.
2. The method of claim 1, wherein the interactive interface is a chat window interface;
the obtaining of the preset local interactive interface display file of the instant messaging application includes:
and acquiring a preset local chat window interface display file of the instant messaging application.
3. The method according to claim 1, wherein after acquiring the preset local interactive interface display file of the instant messaging application, the method further comprises:
determining whether the local interactive interface display file is consistent with the interactive interface display file on the server side;
if the local interactive interface display file is not consistent with the interactive interface display file on the server side, updating the local interactive interface display file;
said combining a first avatar according to said first avatar file comprises:
combining a first avatar according to a first avatar file included in the updated local interaction interface display file;
the displaying a first interaction background according to the first interaction background file comprises:
and displaying the first interaction background according to the first interaction background file included in the updated local interaction interface display file.
4. The method of claim 3, wherein determining whether the local interactive interface display file is consistent with the server-side interactive interface display file comprises:
acquiring a first timestamp and a first hash value of a display file of a local interactive interface;
pulling a second timestamp and a second hash value of the interactive interface display file corresponding to the local interactive interface display file from a server;
and determining whether the local interactive interface display file is consistent with the interactive interface display file on the server side according to the first timestamp, the first hash value, the second timestamp and the second hash value.
5. The method of claim 1, wherein the obtaining the elements included in the first avatar according to the first avatar file, and combining the elements included in the first avatar to obtain the first avatar comprises:
acquiring identifiers of all elements included in the first virtual image according to the first virtual image file, and determining a Uniform Resource Locator (URL) of each element according to the identifier of each element;
pulling the element corresponding to the URL of each element from the server to obtain all elements included by the first virtual image;
and loading all elements included by the first virtual image, and combining all elements included by the first virtual image to obtain the first virtual image.
6. The method of claim 5, wherein said displaying the combined first avatar comprises:
acquiring the identifier of the first virtual image obtained by combination;
the method comprises the steps of firstly displaying a first virtual image obtained through combination in a picture form, hiding the first virtual image displayed in the picture form after all elements included by the first virtual image are loaded, and displaying the first virtual image obtained through combination in an animation form.
7. The method of any of claims 1 to 6, wherein after displaying the combined first avatar on the first interactive background, further comprising:
acquiring an interactive interface switching instruction;
according to the interactive interface switching instruction, local interactive interface display files are obtained again, wherein the local interactive interface display files obtained again comprise second interactive background files and second avatar files, and the second avatar files correspond to the first avatar files;
combining a second avatar according to the second avatar file, and displaying the combined second avatar;
and displaying a second interactive background according to the second interactive background file, and displaying a second virtual image obtained by combination on the second interactive background.
8. The method of claim 7, wherein after displaying the combined second avatar on the second interactive background, further comprising:
acquiring a virtual image switching instruction;
and switching between a second interactive interface comprising the second avatar and a first interactive interface comprising the first avatar according to the avatar switching instruction.
9. An apparatus for displaying an interactive interface, the apparatus comprising:
the login module is used for logging in the instant messaging application;
the first obtaining module is used for obtaining a preset local interaction interface display file of the instant messaging application, wherein the local interaction interface display file at least comprises a first interaction background file and a first avatar file, and the first avatar file is an avatar file of a user corresponding to a local terminal or an avatar file of a friend interacting with the local terminal;
the first display module is used for displaying a first avatar in a picture form according to the first avatar file;
the first combination module is used for obtaining elements included by the first virtual image according to the first virtual image file, and combining the elements included by the first virtual image to obtain the first virtual image;
the first display module is also used for hiding the first virtual image in the picture form and displaying the first virtual image obtained by combination in an animation form;
and the second display module is used for displaying a first interactive background according to the first interactive background file and displaying the first virtual image obtained by combination on the first interactive background.
10. The apparatus of claim 9, wherein the interactive interface is a chat window interface;
the first obtaining module is used for obtaining a preset local chat window interface display file of the instant messaging application.
11. The apparatus of claim 9, further comprising:
the determining module is used for determining whether the local interactive interface display file is consistent with the interactive interface display file on the server side;
the updating module is used for updating the local interactive interface display file when the local interactive interface display file is inconsistent with the interactive interface display file at the server side;
the first combination module is used for combining the first avatar according to the first avatar file included in the updated local interactive interface display file;
and the second display module is used for displaying the first interactive background according to the first interactive background file included in the updated local interactive interface display file.
12. The apparatus of claim 11, wherein the determining module comprises:
the first obtaining unit is used for obtaining a first timestamp and a first hash value of a local interactive interface display file;
the first pulling unit is used for pulling a second timestamp and a second hash value of the interactive interface display file corresponding to the local interactive interface display file from the server;
and the first determining unit is used for determining whether the local interactive interface display file is consistent with the interactive interface display file on the server side according to the first timestamp, the first hash value, the second timestamp and the second hash value.
13. The apparatus of claim 9, wherein the first assembly module comprises:
a second obtaining unit, configured to obtain, according to the first avatar file, identifiers of all elements included in the first avatar;
a second determining unit, configured to determine a uniform resource locator URL of each element according to the identifier of each element;
the second pulling unit is used for pulling the elements corresponding to the URL of each element from the server to obtain all the elements included in the first virtual image;
a loading unit for loading all elements included in the first avatar;
and the combination unit is used for combining all elements included by the first virtual image to obtain the first virtual image.
14. The apparatus of claim 13, wherein the first display module comprises:
a third obtaining unit, configured to obtain an identifier of the first avatar obtained by the combination;
the first display unit is used for displaying the first virtual image obtained by combination in a picture form;
and the second display unit is used for hiding the first virtual image displayed in a picture form and displaying the combined first virtual image in an animation form after all elements included by the first virtual image are loaded.
15. The apparatus of any one of claims 9 to 14, further comprising:
the second acquisition module is used for acquiring an interactive interface switching instruction;
the third acquisition module is used for acquiring a local interaction interface display file again according to the interaction interface switching instruction, wherein the local interaction interface display file acquired again comprises a second interaction background file and a second avatar file, and the second avatar file corresponds to the first avatar file;
the second combination module is used for combining a second avatar according to the second avatar file;
the third display module is used for displaying the combined second virtual image;
and the fourth display module is used for displaying a second interactive background according to the second interactive background file and displaying a second virtual image obtained by combination on the second interactive background.
16. The apparatus of claim 15, further comprising:
the third acquisition module is used for acquiring a virtual image switching instruction;
and the switching module is used for switching between a second interactive interface comprising the second virtual image and a first interactive interface comprising the first virtual image according to the virtual image switching instruction.
17. A terminal comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:
logging in an instant messaging application, and acquiring a preset local interaction interface display file of the instant messaging application, wherein the local interaction interface display file at least comprises a first interaction background file and a first avatar file, and the first avatar file is an avatar file of a user corresponding to a local terminal or an avatar file of a friend interacting with the local terminal;
displaying a first avatar in a picture form according to the first avatar file;
according to the first virtual image file, obtaining elements included by the first virtual image, and combining the elements included by the first virtual image to obtain the first virtual image;
hiding the first virtual image in the form of the picture, and displaying the first virtual image obtained by combination in the form of animation;
and displaying a first interactive background according to the first interactive background file, and displaying the first virtual image obtained by combination on the first interactive background.
18. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium for implementing the method of displaying an interactive interface according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410373452.4A CN105320532B (en) | 2014-07-31 | 2014-07-31 | Method, device and terminal for displaying interactive interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410373452.4A CN105320532B (en) | 2014-07-31 | 2014-07-31 | Method, device and terminal for displaying interactive interface |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105320532A CN105320532A (en) | 2016-02-10 |
CN105320532B true CN105320532B (en) | 2020-04-21 |
Family
ID=55247959
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410373452.4A Active CN105320532B (en) | 2014-07-31 | 2014-07-31 | Method, device and terminal for displaying interactive interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105320532B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109427083B (en) * | 2017-08-17 | 2022-02-01 | 腾讯科技(深圳)有限公司 | Method, device, terminal and storage medium for displaying three-dimensional virtual image |
CN109802931B (en) * | 2017-11-17 | 2021-08-06 | 腾讯科技(深圳)有限公司 | Communication processing method, terminal and storage medium |
CN110719533A (en) * | 2019-10-18 | 2020-01-21 | 广州虎牙科技有限公司 | Live virtual image broadcasting method and device, server and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1450761A (en) * | 2003-04-25 | 2003-10-22 | 腾讯科技(深圳)有限公司 | Method for showing network virtual image on instant communication tool |
CN1453719A (en) * | 2002-04-28 | 2003-11-05 | 上海友讯网络资讯有限公司 | Forming method and system of virtual images and virtual scenes capable of being combined freely |
CN103218844A (en) * | 2013-04-03 | 2013-07-24 | 腾讯科技(深圳)有限公司 | Collocation method, implementation method, client side, server and system of virtual image |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6910186B2 (en) * | 2000-12-08 | 2005-06-21 | Kyunam Kim | Graphic chatting with organizational avatars |
-
2014
- 2014-07-31 CN CN201410373452.4A patent/CN105320532B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1453719A (en) * | 2002-04-28 | 2003-11-05 | 上海友讯网络资讯有限公司 | Forming method and system of virtual images and virtual scenes capable of being combined freely |
CN1450761A (en) * | 2003-04-25 | 2003-10-22 | 腾讯科技(深圳)有限公司 | Method for showing network virtual image on instant communication tool |
CN103218844A (en) * | 2013-04-03 | 2013-07-24 | 腾讯科技(深圳)有限公司 | Collocation method, implementation method, client side, server and system of virtual image |
Also Published As
Publication number | Publication date |
---|---|
CN105320532A (en) | 2016-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10326861B2 (en) | Method for controlling cooperation of multiple intelligent devices and apparatus thereof | |
CN109388297B (en) | Expression display method and device, computer readable storage medium and terminal | |
KR102650142B1 (en) | Synchronization methods and electronic devices | |
WO2015172704A1 (en) | To-be-shared interface processing method, and terminal | |
US20150082231A1 (en) | Method and terminal for displaying desktop | |
CN104954149B (en) | The method, apparatus and system of data sharing are carried out in Web conference | |
CN105828160B (en) | Video broadcasting method and device | |
CN104883358A (en) | Interaction method and device based on recommended content | |
CN108039963B (en) | Container configuration method and device and storage medium | |
CN106254910B (en) | Method and device for recording image | |
CN104571979B (en) | A kind of method and apparatus for realizing split view | |
CN109857297B (en) | Information processing method and terminal equipment | |
CN107908765B (en) | Game resource processing method, mobile terminal and server | |
CN107734170B (en) | Notification message processing method, mobile terminal and wearable device | |
CN110673770B (en) | Message display method and terminal equipment | |
CN108132749B (en) | Image editing method and mobile terminal | |
CN110087149A (en) | A kind of video image sharing method, device and mobile terminal | |
CN109495638B (en) | Information display method and terminal | |
CN106101764A (en) | A kind of methods, devices and systems showing video data | |
CN111124706A (en) | Application program sharing method and electronic equipment | |
CN111061404A (en) | Control method and first electronic device | |
CN106330672B (en) | Instant messaging method and system | |
CN105320532B (en) | Method, device and terminal for displaying interactive interface | |
CN109728918B (en) | Virtual article transmission method, virtual article reception method, device, and storage medium | |
WO2019096043A1 (en) | Application icon management method and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |