CN110347468A - Textures switching method, textures switching device and electronic equipment - Google Patents

Textures switching method, textures switching device and electronic equipment Download PDF

Info

Publication number
CN110347468A
CN110347468A CN201910625143.4A CN201910625143A CN110347468A CN 110347468 A CN110347468 A CN 110347468A CN 201910625143 A CN201910625143 A CN 201910625143A CN 110347468 A CN110347468 A CN 110347468A
Authority
CN
China
Prior art keywords
textures
model
target
identification field
title
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910625143.4A
Other languages
Chinese (zh)
Inventor
曾幸福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910625143.4A priority Critical patent/CN110347468A/en
Publication of CN110347468A publication Critical patent/CN110347468A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/04Texture mapping

Abstract

The embodiment of the invention provides a kind of textures switching method, textures switching device, computer-readable medium and electronic equipments, are related to technical field of data processing.The textures switching method includes: the corresponding relationship according to model and textures, determines the identification field of the corresponding original textures of model;Object language is obtained, target textures are obtained based on the identification field and the object language;The corresponding original textures of the model are changed to target textures.The technical solution of the embodiment of the present invention can inquire target textures by identification field and object language, to carry out textures localization switching, can greatly shorten the time of textures switching.

Description

Textures switching method, textures switching device and electronic equipment
Technical field
The present invention relates to technical field of data processing, in particular to a kind of textures switching method, textures switching dress It sets, computer-readable medium and electronic equipment.
Background technique
With the intensification of globalization degree, the user that consolidated network application is provided to global different regions is used, and is fitted Answer different language needs.
When carrying out language switching, the text textures of plain text content, UI text and model in are required to cut It changes, plain text content and UI text can be configured by configuration file, and include the model pinup picture of text because of 3D system The complexity of work can not directly switch.Fine arts producer can make different textures resources for different language, then needle It is that model binds corresponding textures to different regions, a variety of packets of final output are downloaded for user, to realize different language environment Textures switching.However, this mode needs to issue different packets for different language respectively, user needs first to obtain in switching Corresponding packet resource is taken, and unloads currently used packet, is easy to cause loss of data, and for research staff, Issuing multiple packets also can increased care difficulty.
It should be noted that information is only used for reinforcing the reason to background of the invention disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of textures switching method, textures switching device, computer-readable Jie Matter and electronic equipment, so reduce at least to a certain extent because textures switching caused by a large amount of maintenance works.
Other characteristics and advantages of the invention will be apparent from by the following detailed description, or partially by the present invention Practice and acquistion.
According to a first aspect of the embodiments of the present invention, a kind of textures switching method is provided, comprising: according to model and textures Corresponding relationship, determine the identification field of the corresponding original textures of model;Obtain object language, based on the identification field and The object language obtains target textures;The corresponding original textures of the model are changed to target textures.
It is described to be obtained based on the identification field and the object language in a kind of exemplary embodiment of the invention Target textures, comprising: the identification field and the language identification of the object language are spliced according to preset format, obtained First title;According to first name acquiring target textures accordingly.
It is described that the corresponding original textures of the model are changed to target patch in a kind of exemplary embodiment of the invention Figure, comprising: modify after obtaining entitled second title of the original textures to the title of the original textures;It will be described Target textures are named as second title, so that the corresponding original textures of the model are changed to target textures.
It is right after entitled second title for obtaining the original textures in a kind of exemplary embodiment of the invention The title of the original textures is modified, comprising: entitled second title for obtaining original textures, in second title Addition preset field obtains third title;The original textures are named as the third title, with to the original textures into Row backup.
In a kind of exemplary embodiment of the invention, by the corresponding original textures of the model be changed to target textures it Afterwards, further includes: if receiving revocation replacement instruction, according to the identification field and the preset field by the patch of backup Figure is redefined as the corresponding textures of the model.
It is described to be obtained based on the identification field and the object language in a kind of exemplary embodiment of the invention Target textures, comprising: target textures are obtained from textures concordance list based on the identification field and the object language.
It is described to be obtained based on the identification field and the object language in a kind of exemplary embodiment of the invention Target textures, comprising: the corresponding target textures of the identification field are searched in the corresponding textures set of the object language.
In a kind of exemplary embodiment of the invention, target is obtained based on the identification field and the object language Before textures, further includes: classify according to category of language to textures, obtain multiple textures set;To in the textures set Textures encoded, determine the identification field of each textures, wherein the identification field of the textures of corresponding same model It is identical.
In a kind of exemplary embodiment of the invention, after determining object language by language switching instruction, further includes: If category of language belonging to the original textures is identical as the object language, it is changed without the corresponding original patch of the model Figure.
According to a second aspect of the embodiments of the present invention, a kind of textures switching device is provided, comprising: mark determination unit, For the corresponding relationship according to model and textures, the identification field of the corresponding original textures of model is determined;Textures determination unit is used In obtaining object language, target textures are obtained based on the identification field and the object language;Textures replace unit, are used for The corresponding original textures of the model are changed to target textures.
According to a third aspect of the embodiments of the present invention, a kind of computer-readable medium is provided, computer is stored thereon with Program realizes the textures switching method as described in first aspect in above-described embodiment when described program is executed by processor.
According to a fourth aspect of the embodiments of the present invention, a kind of electronic equipment is provided, comprising: one or more processors; Storage device, for storing one or more programs, when one or more of programs are held by one or more of processors When row, so that one or more of processors realize the textures switching method as described in first aspect in above-described embodiment.
Technical solution provided in an embodiment of the present invention can include the following benefits:
In the technical solution provided by some embodiments of the present invention, mould is determined by the corresponding relationship of model and textures Then the identification field of the corresponding original textures of type obtains the target textures of object language, by model pair according to the identification field The original textures answered are changed to target textures.On the one hand, object language directly can be obtained according to the identification field of original textures Target textures, can be avoided the operation repeatedly bound to the different textures of model, thus simplify operation.Another party Face can be improved textures switching efficiency when switching textures without the unloading and installation wrapped;And it is possible to which packet is avoided to unload It is lost when load and uses data, to improve user experience;Furthermore, it is not necessary that making resource packet for every kind of language environment, reduce The work of research staff, and reduce maintenance difficulties.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not It can the limitation present invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.It should be evident that the accompanying drawings in the following description is only the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 diagrammatically illustrates first flow chart of the textures switching method of embodiment according to the present invention;
Fig. 2 diagrammatically illustrates second flow chart of the textures switching method of embodiment according to the present invention;
Fig. 3 diagrammatically illustrates the third flow chart of the textures switching method of embodiment according to the present invention;
Fig. 4 diagrammatically illustrates the 4th flow chart of the textures switching method of embodiment according to the present invention;
Fig. 5 diagrammatically illustrates the 5th flow chart of the textures switching method of embodiment according to the present invention;
Fig. 6 diagrammatically illustrates the block diagram of the textures switching device of embodiment according to the present invention;
Fig. 7 shows the structural schematic diagram for being suitable for the computer system for the electronic equipment for being used to realize the embodiment of the present invention.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the present invention will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner In example.In the following description, many details are provided to provide and fully understand to the embodiment of the present invention.However, It will be appreciated by persons skilled in the art that technical solution of the present invention can be practiced without one or more in specific detail, Or it can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes known side Method, device, realization or operation are to avoid fuzzy each aspect of the present invention.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity. I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
Flow chart shown in the drawings is merely illustrative, it is not necessary to including all content and operation/step, It is not required to execute by described sequence.For example, some operation/steps can also decompose, and some operation/steps can close And or part merge, therefore the sequence actually executed is possible to change according to the actual situation.
The inventors discovered that research staff needs for different language environment in existing textures localization handover scheme Different textures resources is made, and binds corresponding textures, more parts of packet resource distribution of final output for different regions.User It when needing to switch language environment, needs first to obtain corresponding packet resource, local directly switching can not be carried out.
A kind of textures switching method is provided first based on this, in exemplary embodiment of the invention.As shown in Figure 1, the patch Figure switching method may comprise steps of:
S110. according to the corresponding relationship of model and textures, the identification field of the corresponding original textures of model is determined;
S120. object language is obtained, target textures are obtained based on the identification field and the object language;
S130. the corresponding original textures of the model are changed to target textures.
According to the textures switching method of this example embodiment, on the one hand, can be directly according to the identifier word of original textures Section obtains the target textures of object language, does not need to obtain additional packet resource, can be avoided the different patches repeatedly to model The operation that figure is bound, to simplify operation.On the other hand, when switching textures without the unloading and installation wrapped, energy Enough shorten switching time, improves efficiency;And it is possible to lose when packet being avoided to unload using data, to improve user experience;This Outside, it does not need to make resource packet for every kind of language environment, reduces the work of research staff, and reduce maintenance difficulties.
In the following, each step of the textures switching method of this example embodiment is described in detail.
It should be noted that each processing step in textures switching method of the invention can be executed by server, Wherein, the server can be cloud server cluster, which, which may include, can be realized different processing functions Multiple servers.However, textures switching method of the present invention is also applied to the scene of serverless backup (for example, single Machine game software etc.) in, in this case, reason process can be by running the terminal of the software everywhere in the present invention Processor executes.
With reference to Fig. 1, the corresponding original textures of model are determined according to the corresponding relationship of model and textures for step S110 Identification field.
Wherein, model can refer to threedimensional model, may include multiple threedimensional models, each threedimensional model pair in virtual scene The textures answered can be different.Fine arts producer makes corresponding textures according to shape, size dimension of threedimensional model etc., and will Textures are bundled on threedimensional model, so that threedimensional model shows the textures in virtual scene.Virtual scene can refer to using journey The scene that sequence is shown, application program may include the application of amusement class, study class application etc., such as game application, navigation application etc.. Therefore, the textures switching method of present embodiment can be used for various scenes.Identification field can be an attribute information of textures, Its value can be made of number, letter, symbol etc., for example, the value of identification field can be 001.Certainly, identification field can be with Including other values, for example, 00A, #123 etc., present embodiment is not limited this.
The identification field of the corresponding textures of different models is different, can determine mould according to the corresponding relationship of model and textures The identification field of the corresponding textures of type, conversely, also can determine corresponding model according to identification field.In this example embodiment In, the corresponding relationship of the identification field of model and textures can be preset, by recording the corresponding textures of each model Identification field between mapping relations, so that it is corresponding to carry out model with textures.For example, passing through key-value pair for model and textures Identification field is mapped.Original textures can refer to the textures currently shown on model.
For step S120, object language is obtained, target is obtained based on the identification field of object language and original textures Textures.
In the present embodiment, the acquisition of object language can be in response to a language switching instruction.For example, client user Language switching instructions can be issued by clicking a variety of interactive operations such as button, sending voice, receive language switching instruction When the identification field of the original textures of model can be recorded.It may include that user needs to switch in language switching instruction Object language, such as Chinese, English etc..User can click the target language for needing to switch in the user interface that front end is shown Speech, then can obtain object language by front end interface.After determining object language, object language and original patch can be based on The identification field of figure obtains target textures.
After determining object language according to language switching instruction, language belonging to the original textures currently shown can also be judged Say whether type is object language, if category of language belonging to the original textures currently shown is object language, does not need Original textures are replaced.In this case, it may be possible to the wrong switching command for causing to have issued mistake of user's operation, because This can prompt user's operation wrong with display reminding information.
By taking game class is applied as an example.Fine arts producer can make multiple textures of model for different language environment, Then all textures resources are packaged in the packet of game application distribution, without being packaged respectively for different language environment, user Only needing to obtain a packet when using the game application can be by all textures resource localization.It can after determining object language It inquires to obtain target textures with the identification field by object language and determination.Specifically, textures concordance list pair can be passed through Textures are inquired, the fast speed of concordance list inquiry, so as to shorten the time for obtaining target textures.As shown in table 1, table In may include two attributes of identification field and category of language, a textures, example can be determined by the attribute value of the two attributes If category of language is Chinese, identification field GUID, it is A that corresponding textures can be inquired in table by the two values, and A can be with It is an index address, target textures can be obtained by the address.
Table 1
For example, if necessary to switch over to the textures of model a certain in virtual scene, first determine what needs switched Object language, and the identification field for the original textures that the model is currently shown is obtained, then utilize the identification field and target The language textures that querying attributes value matches in tables of data, to obtain target textures, such as object language is English, model The identification field of the original textures currently shown is 1110, then the attribute value of category of language and identification field is English in tables of data Corresponding textures are target textures with 1110.
In the exemplary embodiment, it can specifically be wrapped according to the method that identification field and object language obtain target textures Include following steps:
S201. the identification field and the language identification of the object language are spliced according to preset format, is obtained First title;
S202. the target textures according to first name acquiring.
The title of textures can be the unique identification of textures, and the title of textures can be by language identification and identification field group At, therefore can be inferred that after object language and identification field has been determined the title of textures, to be arrived according to name index Target textures.Wherein, language identification is the identification information of the language of different language type, such as the language identification of English can be EN, Chinese language identification can be CH etc..Language identification can by number, letter, symbol it is one such or it is a variety of form, For example, the language identification of Chinese is 1, the language identification of Japanese is 2, the language identification of English is 3 etc., this example embodiment pair This is without limitation.
The first title can be determined using identification field and the language identification of object language.Specifically, after identification field Splicing identification field after language identification obtains the first title or language identification can be spliced and obtain the first title.Identification field It can directly be stitched together with language identification, for example, identification field is 123, language identification A, it is 123A after splicing.Identifier word It can also be spliced by symbol between section and language identification, for example, being spliced by underscore, identification field 123, language It is identified as A, is 123_A after splicing.In addition, can also be spliced by other means between identification field and language identification, For example, with sign-on and by symbol splice again with sign-off, then if identification field be 123, language identification A, spell It can be #123#A# after connecing.
After obtaining the first title, target textures can be inquired according to the first title.Title can be being capable of unique identification The information of textures, all textures download the memory space that installation application can be saved in equipment in user, therefore according to textures Title target textures can be inquired in memory space.This mode at runtime can be in memory directly to identifier word Section and language identification are spliced, so that the title of target textures is obtained, it is easy to operate without establishing concordance list.It obtains Target textures can replace original textures and be shown on model.
It continues to refer to figure 1, for step S130, the corresponding original textures of model is changed to target textures.
Under normal conditions, the textures needs shown on model are bound with model, so that user is being initially opened virtually With regard to the textures of display model when scene.Fine arts producer needs the title of the textures by showing in code designated model, example Such as, textures 001A is shown on model 01, and each dummy model is required to execute the operation, to complete model and textures Binding.That is, the textures that user binds model for fine arts producer using the textures shown on model when application, That is, having preassigned corresponding relationship between model and the textures shown thereon.In present embodiment, not to the textures of model Again it is bound, that is, do not change the corresponding relationship of model and textures, the original textures of model can be changed to target patch Figure.It specifically, can be by being renamed to target textures, so that original textures are switched over target textures, so that it may To avoid the operation for re-executing binding, and realizes and directly replace textures using the corresponding relationship of original binding.
Therefore, in the exemplary embodiment, the original textures of model are changed to can specifically including for target textures Following steps:
S301. it modifies after obtaining entitled second title of the original textures to the title of the original textures;
S302. the target textures are named as second title, so that the original textures of the model are changed to mesh Labeling figure.
When carrying out textures switching, the title of target textures can be changed to the title of original textures, so that model is shown Target textures.Therefore, it is first determined the title of the original textures currently shown on model, the title can be according to models and textures Corresponding relationship obtain.It gets the titles of original textures and the title is recorded as the second title, then by the title of original textures It modifies.It is then possible to target textures are named as the second title, since the textures bound on model are the second title, because This model meeting displaying target textures in display, to realize the switching of textures.
In addition, modifying to the title of original textures, the title of modified original textures can claim for third.Tool Body, preset field is added in the second title and obtains third title, is then third title by the name modifications of original textures, To be backed up to original textures.If the title of textures plays a part of unique identification, original textures and target to textures The title of textures cannot be identical, it is therefore desirable to after the title for having recorded original textures, to original textures renamed as third Claim.Wherein, preset field may include the combination of number, letter and symbol, for example, bak, h12, _ lok etc., this embodiment party Formula does not limit this.For example, preset field, which can be added, obtains third title, such as second place after second place is referred to as Referred to as 123_A, preset field are _ bak, then third title can be 123_A_bak.
Further, if necessary to by target textures gain switching before original textures, then can according to identification field with And the original textures backed up are redefined as the textures that model is shown by preset field.For example, if what model was currently shown The identification field of textures A is 123, then inquiring identification field is the image in 123 and title comprising preset field, by textures A Title carry out record and be A by the name modifications of the image inquired title, then the title of A modified.
It, can be in order to obtain target textures by identification field and language identification in illustrative embodiments The following steps are included:
S401. classify according to category of language to textures, obtain multiple textures set;
S402. the textures in the textures set are encoded, the identification field of each textures is determined, wherein corresponding to The identification field of the textures of same model is identical.
The category of language according to belonging to textures can carry out classification preservation to textures.Category of language can refer to the word in textures Language form, such as Chinese, English, French, Japanese etc., this example embodiment does not limit this.Different language type Textures be stored in different textures set.In turn, the textures in each textures set are encoded respectively, generates textures Identification field value.Also, the identification field of the corresponding textures of same model is identical.As an example it is assumed that there are three types of languages altogether Speech, respectively Chinese, French, German, then the corresponding Chinese textures of model A, French textures, German paste in three textures set It is identical to scheme its identification field.In addition, in same textures set, textures can be carried out with sequential coding, for example, 1,2,3, 4…;Textures can also be encoded with other rules, such as textures be encoded by hash algorithm, present embodiment Particular determination is not done to this.
For example, preservation category of language is the textures of Chinese in textures set A, textures set B preservation category of language is The textures of English, then encode the textures in textures set A, the identification field of generation can be 1,2,3,4, wherein identifying The textures that field is 1 are the textures shown on model d, then in textures set B, the identifier word of the English textures of model d Section is also 1.
Fig. 5 shows the treatment process of this example embodiment, as shown in figure 5, may include in this example embodiment Following steps:
S501. user's selection target language is prompted;
S502. judge whether object language is identical as currently used language;
S503. backup textures file;
S504. inquiry relation table obtains target textures;
S505. target textures are renamed;
S506. model displaying target textures.
User can trigger language switching by user interface, when receiving language switching instruction, prompt user Selection target language.User can be by clicking button, issuing a variety of interactive mode selection target languages such as voice, input text Speech.Judge whether object language is identical as the currently used language of application after user's selection target language.If user selects Object language it is identical as currently used language, then do not execute textures switching.If object language and currently used language Difference then backs up textures file, which can refer to the textures that model is currently shown.Backup textures file may include by After the title of textures file is recorded, modify to the title of the textures file.Wherein, the title of textures file can be remembered Record is the first title.Then, target textures are obtained by inquiry relation table, may include identification field and language in relation table Two attribute informations of type, can be indexed by the identification field of the textures currently shown and the language identification of object language Target textures in relation table.In turn, target textures are renamed, by what is recorded before the filename modification of target textures First title, so that model displaying target textures in display.
It follows that after user determines switching language, by carrying out weight to the textures and target textures that currently show Name, then virtual scene can directly display target textures after refreshing, and complete the switching of textures.Without being downloaded packet resource Or the processes such as installation kit resource, the speed of textures switching is very fast, can significantly improve user experience.
The device of the invention embodiment introduced below can be used for executing the above-mentioned textures switching method of the present invention.Such as Fig. 6 Shown, which may include mark determination unit 610, textures determination unit 620 and textures replacement unit 630。
Wherein, mark determination unit 610 is used for the corresponding relationship according to model and textures, determines the corresponding original patch of model The identification field of figure;Textures determination unit 620 is based on the identification field and the object language for obtaining object language Obtain target textures;Textures replacement unit 630 is used to the corresponding original textures of the model being changed to target textures.
In an illustrative embodiments, textures determination unit 620 may include title determination unit and textures cargo tracer Member.Specifically, title determination unit is used for the identification field and the language identification of the object language according to preset format Spliced, obtains the first title;Textures query unit is used for according to first name acquiring target textures accordingly.
In an illustrative embodiments, textures replacement unit 630 can specifically include name modifications first unit and name Claim modification second unit.Wherein, name modifications first unit can be used for obtaining entitled second title of the original textures It modifies afterwards to the title of the original textures;Name modifications second unit can be used for the target textures being named as institute The second title is stated, so that the corresponding original textures of the model are changed to target textures.
In an illustrative embodiments, name modifications first unit can be specifically used for: obtain the title of original textures For the second title, preset field is added in second title and obtains third title;The original textures are named as described Third title, to be backed up to the original textures.
In an illustrative embodiments, which can also include switching revocation unit.The switching is removed If pin unit specifically can be used for receiving revocation replacement instruction, will according to the identification field and the preset field The textures of backup are redefined as the corresponding textures of the model.
In an illustrative embodiments, textures determination unit 620 specifically can be used for corresponding in the object language The corresponding target textures of the identification field are searched in textures set.
In an illustrative embodiments, which can also include taxon and coding unit.Tool Body, taxon can be used for classifying to textures according to category of language, obtain multiple textures set;Coding unit can be with For encoding to the textures in the textures set, the identification field of each textures is determined, wherein corresponding same model Textures the identification field it is identical.
In an illustrative embodiments, which can also include instruction judging unit.The instruction is sentenced If it is identical as the object language that disconnected unit can be used for category of language belonging to the original textures, it is changed without the mould The corresponding original textures of type.
Each functional module and above-mentioned textures switching method due to the textures switching device of example embodiments of the present invention Example embodiment the step of it is corresponding, therefore for undisclosed details in apparatus of the present invention embodiment, please refer in the present invention The embodiment for the textures switching method stated.
Below with reference to Fig. 7, it illustrates the computer systems 700 for the electronic equipment for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.The computer system 700 of electronic equipment shown in Fig. 7 is only an example, should not be to the embodiment of the present invention Function and use scope bring any restrictions.
As shown in fig. 7, computer system 700 includes central processing unit (CPU) 701, it can be read-only according to being stored in Program in memory (ROM) 702 or be loaded into the program in random access storage device (RAM) 703 from storage section 708 and Execute various movements appropriate and processing.In RAM 703, it is also stored with various programs and data needed for system operatio.CPU 701, ROM 702 and RAM 703 is connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to bus 704。
I/O interface 705 is connected to lower component: the importation 706 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 707 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 708 including hard disk etc.; And the communications portion 709 of the network interface card including LAN card, modem etc..Communications portion 709 via such as because The network of spy's net executes communication process.Driver 710 is also connected to I/O interface 705 as needed.Detachable media 711, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 710, in order to read from thereon Computer program be mounted into storage section 708 as needed.
Particularly, according to an embodiment of the invention, may be implemented as computer above with reference to the process of flow chart description Software program.For example, the embodiment of the present invention includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 709, and/or from detachable media 711 are mounted.When the computer program is executed by central processing unit (CPU) 701, executes and limited in the system of the application Above-mentioned function.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in unit involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part realizes that described unit also can be set in the processor.Wherein, the title of these units is in certain situation Under do not constitute restriction to the unit itself.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in electronic equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying electronic equipment. Above-mentioned computer-readable medium carries one or more program, when the electronics is set by one for said one or multiple programs When standby execution, so that the electronic equipment realizes such as above-mentioned textures switching method as described in the examples.
For example, the electronic equipment may be implemented as shown in Figure 1: step S110, according to pair of model and textures It should be related to, determine the identification field of the corresponding original textures of model;Step S120 obtains object language, is based on the identifier word Section and the object language obtain target textures;The corresponding original textures of the model are changed to target patch by step S130 Figure.
For another example, each step as shown in Figure 2 may be implemented in the electronic equipment.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, embodiment according to the present invention, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the present invention The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, touch control terminal or network equipment etc.) executes embodiment according to the present invention Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the present invention Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (12)

1. a kind of textures switching method characterized by comprising
According to the corresponding relationship of model and textures, the identification field of the corresponding original textures of the model is determined;
Object language is obtained, target textures are obtained based on the identification field and the object language;
The corresponding original textures of the model are changed to target textures.
2. the method according to claim 1, wherein described be based on the identification field and the object language Obtain target textures, comprising:
The identification field and the language identification of the object language are spliced according to preset format, obtain the first title;
According to first name acquiring target textures accordingly.
3. according to the method described in claim 2, it is characterized in that, described be changed to mesh for the corresponding original textures of the model Labeling figure, comprising:
It modifies after obtaining entitled second title of the original textures to the title of the original textures;
The target textures are named as second title, so that the corresponding original textures of the model are changed to target patch Figure.
4. according to the method described in claim 3, it is characterized in that, entitled second title for obtaining the original textures It modifies afterwards to the title of the original textures, comprising:
Entitled second title for obtaining original textures adds preset field in second title and obtains third title;
The original textures are named as the third title, to back up to the original textures.
5. according to the method described in claim 4, it is characterized in that, the corresponding original textures of the model are changed to target patch After figure, further includes:
If receive revocation replacement instruction, according to the identification field and the preset field by the textures of backup again It is determined as the corresponding textures of the model.
6. the method according to claim 1, wherein described be based on the identification field and the object language Obtain target textures, comprising:
Target textures are obtained from textures concordance list based on the identification field and the object language.
7. the method according to claim 1, wherein described be based on the identification field and the object language Obtain target textures, comprising:
The corresponding target textures of the identification field are searched in the corresponding textures set of the object language.
8. the method according to the description of claim 7 is characterized in that being obtained based on the identification field and the object language Before target textures, further includes:
Classify according to category of language to textures, obtains multiple textures set;
Textures in the textures set are encoded, determine the identification field of each textures, wherein corresponding same model Textures the identification field it is identical.
9. the method according to the description of claim 7 is characterized in that after obtaining object language, further includes:
If category of language belonging to the original textures is identical as the object language, it is changed without the corresponding original of the model Beginning textures.
10. a kind of textures switching device characterized by comprising
It identifies determination unit and determines the identifier word of the corresponding original textures of model for the corresponding relationship according to model and textures Section;
Textures determination unit obtains target patch based on the identification field and the object language for obtaining object language Figure;
Textures replace unit, for the corresponding original textures of the model to be changed to target textures.
11. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor Textures switching method as claimed in any one of claims 1-9 wherein is realized when row.
12. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs, when one or more of programs are by one or more of processing When device executes, so that one or more of processors realize textures switching side as claimed in any one of claims 1-9 wherein Method.
CN201910625143.4A 2019-07-11 2019-07-11 Textures switching method, textures switching device and electronic equipment Pending CN110347468A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910625143.4A CN110347468A (en) 2019-07-11 2019-07-11 Textures switching method, textures switching device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910625143.4A CN110347468A (en) 2019-07-11 2019-07-11 Textures switching method, textures switching device and electronic equipment

Publications (1)

Publication Number Publication Date
CN110347468A true CN110347468A (en) 2019-10-18

Family

ID=68175046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910625143.4A Pending CN110347468A (en) 2019-07-11 2019-07-11 Textures switching method, textures switching device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110347468A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078338A (en) * 2019-11-28 2020-04-28 北京三快在线科技有限公司 Method and device for internationalized processing of software, storage medium and electronic device
CN114693895A (en) * 2022-03-24 2022-07-01 北京城市网邻信息技术有限公司 Map switching method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6396515B1 (en) * 1998-12-15 2002-05-28 International Business Machines Corporation Method, system and computer program product for dynamic language switching in user interface menus, help text, and dialogs
CN102810060A (en) * 2011-06-01 2012-12-05 腾讯科技(深圳)有限公司 Method and device for configuring Android picture resource
CN103778211A (en) * 2014-01-16 2014-05-07 北京乐动卓越科技有限公司 Method and device for switching language of mobile terminal game software
CN104951364A (en) * 2014-03-31 2015-09-30 Tcl集团股份有限公司 Android platform based language switching method and system
CN105867920A (en) * 2016-03-29 2016-08-17 海尔优家智能科技(北京)有限公司 APP multi-language switching method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6396515B1 (en) * 1998-12-15 2002-05-28 International Business Machines Corporation Method, system and computer program product for dynamic language switching in user interface menus, help text, and dialogs
CN102810060A (en) * 2011-06-01 2012-12-05 腾讯科技(深圳)有限公司 Method and device for configuring Android picture resource
CN103778211A (en) * 2014-01-16 2014-05-07 北京乐动卓越科技有限公司 Method and device for switching language of mobile terminal game software
CN104951364A (en) * 2014-03-31 2015-09-30 Tcl集团股份有限公司 Android platform based language switching method and system
CN105867920A (en) * 2016-03-29 2016-08-17 海尔优家智能科技(北京)有限公司 APP multi-language switching method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078338A (en) * 2019-11-28 2020-04-28 北京三快在线科技有限公司 Method and device for internationalized processing of software, storage medium and electronic device
CN114693895A (en) * 2022-03-24 2022-07-01 北京城市网邻信息技术有限公司 Map switching method and device, electronic equipment and storage medium
CN114693895B (en) * 2022-03-24 2023-03-03 北京城市网邻信息技术有限公司 Map switching method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109634598A (en) A kind of page display method, device, equipment and storage medium
CN109034907A (en) Ad data put-on method and device, electronic equipment, storage medium
CN109446099A (en) Automatic test cases generation method, device, medium and electronic equipment
JP7397094B2 (en) Resource configuration method, resource configuration device, computer equipment, and computer program
CN108932220A (en) article generation method and device
CN108733787A (en) Database operation method, device, electronic equipment and storage medium
US20160316002A1 (en) Access to supplemental data based on identifier derived from corresponding primary application data
CN109492013A (en) Data processing method, device and system applied to data-base cluster
CN109036397A (en) The method and apparatus of content for rendering
CN108304067A (en) System, method and apparatus for showing information
CN108052664A (en) The data migration method and device of database purchase cluster
CN109359281A (en) Dynamic list generation method and device
CN110019263A (en) Information storage means and device
CN107203372A (en) Control shows method and device
CN110347468A (en) Textures switching method, textures switching device and electronic equipment
CN109684022A (en) Word input processing method, device and electronic equipment
CN108920618A (en) A kind of store method, device, medium and the electronic equipment of object reference relationship
JP2022091904A (en) Mini program page skin changeover method, device, and electronic apparatus
CN110119386A (en) Data processing method, data processing equipment, medium and calculating equipment
CN109766319A (en) Compression duty processing method, device, storage medium and electronic equipment
CN109375910A (en) Class file generation method, device, electronic equipment and storage medium
CN109344152A (en) Data processing method, device, electronic equipment and storage medium
CN109561212A (en) A kind of merging method of release information, device, equipment and storage medium
CN109614549A (en) Method and apparatus for pushed information
CN110347454A (en) Application program theme setting method, terminal equipment control method and device, terminal device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191018