CN115904372A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN115904372A
CN115904372A CN202211413070.0A CN202211413070A CN115904372A CN 115904372 A CN115904372 A CN 115904372A CN 202211413070 A CN202211413070 A CN 202211413070A CN 115904372 A CN115904372 A CN 115904372A
Authority
CN
China
Prior art keywords
interface
file
target
configuration file
tool
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
CN202211413070.0A
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.)
Zhuhai Kingsoft Digital Network Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Digital Network Technology 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 Zhuhai Kingsoft Digital Network Technology Co Ltd filed Critical Zhuhai Kingsoft Digital Network Technology Co Ltd
Priority to CN202211413070.0A priority Critical patent/CN115904372A/en
Publication of CN115904372A publication Critical patent/CN115904372A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application provides a data processing method and a device, wherein the data processing method comprises the following steps: receiving an interface editing instruction aiming at a target application; responding to the interface editing instruction to obtain an interface configuration file of the target application, and determining the file type of the interface configuration file; acquiring a target file conversion tool according to the file type, and converting the interface configuration file into a reference configuration file according to the target file conversion tool; and loading the reference configuration file in a target interface editing tool, and displaying an interface editing page of the target application. By the method, the effect of replacing the interface development editor without redeveloping the existing interface is achieved, the new interface editing tool is used as a mainstream UI frame in the market at present, most requirements of designers can be met, and manpower and material resource costs caused by the old interface editing tool are reduced.

Description

Data processing method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data processing method. The application also relates to a data processing apparatus, a computing device, and a computer-readable storage medium.
Background
With the development requirement of the virtual scene application, the complexity of the interface of the virtual scene application is increasing day by day, most of the existing projects of the virtual scene application also use the traditional interface editor development tools, which leads to that developers need to expand new functions in the code during the operation and also need to consider the function expansion of the interface editor, and cannot specialize in realizing the business logic of the virtual scene application. At present, interface editors of new virtual scenes in the market are all perfect development engines such as Unity and the like, the development process of a User Interface (UI) has good community property, the problems can be solved basically, the old Interface editors can be observed, numerous personnel are not maintained, the problems can be found and solved together, and meanwhile, the manpower and material resource cost of subsequent projects can be increased.
Disclosure of Invention
In view of this, the embodiments of the present application provide a data processing method. The present application is also directed to a data processing apparatus, a computing device, and a computer-readable storage medium to solve the above-mentioned problems in the prior art.
According to a first aspect of embodiments of the present application, there is provided a data processing method, including:
receiving an interface editing instruction aiming at a target application;
responding to the interface editing instruction to obtain an interface configuration file of the target application, and determining the file type of the interface configuration file;
acquiring a target file conversion tool according to the file type, and converting the interface configuration file into a reference configuration file according to the target file conversion tool;
and loading the reference configuration file in a target interface editing tool, and displaying an interface editing page of the target application.
According to a second aspect of embodiments of the present application, there is provided a data processing apparatus including:
a first receiving module configured to receive an interface editing instruction for a target application;
the determining module is configured to respond to the interface editing instruction to acquire an interface configuration file of the target application and determine the file type of the interface configuration file;
the first conversion module is configured to acquire a target file conversion tool according to the file type and convert the interface configuration file into a reference configuration file according to the target file conversion tool;
and the loading display module is configured to load the reference configuration file in a target interface editing tool and display an interface editing page of the target application.
According to a third aspect of embodiments herein, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the data processing method when executing the computer instructions.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the data processing method.
The data processing method provided by the application receives an interface editing instruction aiming at a target application; responding to the interface editing instruction to obtain an interface configuration file of the target application, and determining the file type of the interface configuration file; acquiring a target file conversion tool according to the file type, and converting the interface configuration file into a reference configuration file according to the target file conversion tool; and loading the reference configuration file in a target interface editing tool, and displaying an interface editing page of the target application.
According to the embodiment of the application, the original interface configuration file based on the target application is converted into the interface configuration file in the new format through the pre-generated file conversion tool, so that the original interface configuration file is opened in a new interface editing tool, the effect of replacing an interface development editor without redeveloping the existing interface is achieved, the new interface editing tool is used as a mainstream UI frame in the market at present, most requirements of designers can be met, and the cost of manpower and material resources brought by the old interface editing tool is reduced.
Drawings
Fig. 1 is a schematic diagram of a data processing method according to an embodiment of the present application;
fig. 2 is a flowchart of a data processing method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a data processing method applied to a game development scenario according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 5 is a block diagram of a computing device according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first can also be referred to as a second and, similarly, a second can also be referred to as a first without departing from the scope of one or more embodiments of the present application. The word "if," as used herein, may be interpreted as "at \8230; \8230when" or "when 8230; \823030when" or "in response to a determination," depending on the context.
First, the noun terms to which one or more embodiments of the present application relate are explained.
UGUI: the UI is a latest UI system promoted by Unity, namely a UI (user interface) is short for, and is a set of UI systems which are arranged in a Unity engine and used for developing a user interactive interface, a desired UI control can be created by a menu or clicking a right key in a hierarchical view, what you see is what you get when the UI control is modified, and the development efficiency of all the developments is greatly improved.
Unity: the Unity platform provides a complete set of software solution, can be used for creating, operating and realizing any real-time interactive 2D and 3D contents, and supports mobile phones, tablet computers, personal computers, game hosts, augmented reality and virtual reality equipment.
With the development requirement of virtual scene applications, the complexity of interfaces of the virtual scene applications is increasing day by day, for example, game applications, art applications, virtual building applications, movie scenes and the like have higher requirements on the complexity of pictures. Most of the existing projects of virtual scene application use traditional interface editor development tools, which leads to that developers need to expand new functions in running codes and also need to consider the function expansion of the interface editor, and cannot specialize in realizing the business logic of the virtual scene application. At present, interface editors of new virtual scenes in the market are all perfect development engines such as Unity and the like, the development process of a User Interface (UI) has good community property, the problems can be solved basically, the old Interface editors can be observed, numerous personnel are not maintained, the problems can be found and solved together, and meanwhile, the manpower and material resource cost of subsequent projects can be increased.
Based on this, in the present application, a data processing method is provided, and the present application relates to a data processing apparatus, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.
Fig. 1 shows a schematic diagram of a data processing method according to an embodiment of the present application, and as shown in fig. 1, the method provided by the present application is applied to a terminal 100, where the terminal 100 may be a terminal device such as a personal computer, a notebook computer, an intelligent terminal, a server, a cloud server, and the like.
The method provided by the application provides a portable interface development scheme based on a target interface editing tool, namely, the interface of the old project is developed and maintained through the interface editing tool which is mainly used in the industry at present, all the interfaces of the new and old projects can be edited and modified through the new interface editing tool, and new underlying functions, such as an animation system of the old project, can be better expanded. In addition, the new interface editing tool adopts a what you see is what you get mode, and a corresponding interface can be displayed by loading the configuration file, and whether the modified effect is the effect required by a designer can be determined without starting a target application.
In the terminal 100, first, an interface configuration file of a target application is obtained, where the target application specifically refers to an application developed by an old interface editing tool, and in an actual application, the target application specifically may be a game, an art development application, a movie editing application, and the like. The interface configuration file can specifically understand the interface configuration file of the virtual image corresponding to the target application, in practical application, the target application usually has a lot of information such as animation, virtual scene and the like, the interface configuration file is used for storing the configuration information corresponding to each scene, and when the target application is loaded, what animation effect each interface should show can be obtained through the interface configuration file. The interface configuration file was created in the old interface editing tool.
With the development of the technology, the interface editing tool is more and more convenient, and a new interface editing tool comes out and is widely applied, but the new interface editing tool may not be capable of directly loading the interface configuration file generated by the old interface editing tool, and at this time, if a page is newly developed in the new interface editing tool, a great waste of resources is caused, and a great development amount and manpower and material resources are wasted when a target project is transplanted from the old interface editing tool to the new interface editing tool.
Therefore, according to the method provided by the application, the interface configuration file generated by the old interface editing tool can be converted into the reference configuration file which can be accessed by the new interface editing tool by creating the plurality of file conversion tools, so that the effect of loading and rendering the interface configuration file of the target application in the target interface editing tool is achieved. The user can modify and adjust the interface corresponding to the target application in the target interface editing tool, and the application universality of the target interface editing tool can be utilized, so that functions which cannot be realized in some old interface editing tools can be realized in the target interface editing tool. It should be noted that the file conversion tool may perform self-setting according to actual applications, for example, if the interface configuration file is an a type, and the file type that can be loaded by the target interface editing tool is a B type, the function of the file conversion tool is to read the interface configuration file of the a type and convert it into the file of the B type.
After the interface configuration file is converted into the reference configuration file through the file conversion tool, the reference configuration file can be loaded in the target interface editing tool, an interface editing page of the target application is rendered and generated in the target interface editing tool, and a designer can edit the interface editing page and preview the actual effect of the edited image in real time.
The data processing method provided by the application realizes the original interface configuration file based on the target application, converts the original interface configuration file into the interface configuration file with a new format through the pre-generated file conversion tool, so that the interface configuration file is opened in a new interface editing tool, the effect of replacing an interface development editor without redeveloping the existing interface is realized, the new interface editing tool is used as a mainstream UI frame in the market at present, most requirements of designers can be met, and the manpower and material costs caused by the old interface editing tool are reduced.
Fig. 2 shows a flowchart of a data processing method according to an embodiment of the present application, which specifically includes the following steps:
step 202: an interface editing instruction for a target application is received.
The data processing method is applied to the terminal, and the terminal can be a personal computer, a notebook computer, an intelligent terminal, a server, a cloud server and other terminal equipment.
In the terminal, a target application program is stored, where the target application specifically refers to an application program or a multimedia resource with a virtual screen, the application program may be a software application running on a computer, and may also be an APP (application, mobile phone software) running on an intelligent mobile terminal, and further, the target application may be game software, a movie and television resource, a motion picture resource, an art resource, and the like. The virtual picture may be a static picture or a dynamic picture, such as a single piece of art work, a game animation in a game, a special effect animation in a movie and television play, and the like.
The interface editing instruction is specifically an instruction that needs to edit a virtual picture in a target application, and in actual application, the interface editing instruction is sent based on technical requirements of a technician, and the technical requirements of the technician may be requirements generated when the virtual picture of the target application is browsed, or requirements generated due to service change of the target application, that is, when the terminal receives the interface editing instruction, the starting state of the target application is not limited. For example, a technician needs to use a computer to edit a special effect animation in a movie and television scenario, and the corresponding target application is a movie and television resource; for another example, because the service changes, the designer needs to edit a certain game animation in the game, and the corresponding target application is game development software. The interface editing instruction only means that the virtual picture in the target application needs to be edited, and whether the target application is in a starting state or not does not need to be concerned.
In a specific embodiment provided by the present application, taking a target application as a video resource as an example, an interface editing instruction for a certain animation special effect in the video resource is received.
Step 204: and responding to the interface editing instruction to acquire the interface configuration file of the target application, and determining the file type of the interface configuration file.
In actual application, each target application has a corresponding interface configuration file, where the interface configuration file specifically refers to a file for storing configuration information of a virtual screen in the target application. For example, the interface configuration file comprises at least one of an interface element property configuration file, an atlas property configuration file, and a character property configuration file. The element attribute configuration file is used for storing position information, size information, rotation information, atlas information and the like of each virtual element in the virtual picture; the album attribute configuration file is used for storing album information in a virtual picture, and specifically may include that one album includes different sizes of the same resource map, or resource maps of different sizes are stored in one album; the character attribute profile is used to store related information about the character in the virtual picture, such as font, character size, rotational position of the character, and the like.
In practical application, different development languages can correspondingly generate different file types in the development process, and meanwhile, different interface configuration files can also have different file types.
For example, the file type of INI is composed of section and key, and the file type of UITex is composed of special format and computer code composed of data structure such as UITEX-FILEADER, UITEX-FRAMEDATASTRUCTURURE, UITEX-DICEDINFO, UITEX-DICEDBLOK, etc.; the text format data stored in the sprite texture information constitutes a file type of TXT.
In a specific embodiment provided by the application, along with the above example, an interface element attribute configuration file A1, an atlas attribute configuration file B1, and a character attribute configuration file C1 of the animation special effect are obtained, where the interface element attribute configuration file is an INI file type, the atlas attribute configuration file is a UITex file type, and the character attribute configuration file is a TXT file type.
Step 206: and acquiring a target file conversion tool according to the file type, and converting the interface configuration file into a reference configuration file according to the target file conversion tool.
In practical application, the target file conversion tool specifically refers to a tool for converting an interface configuration file into a reference configuration file, and more specifically, a tool for performing data transfer on core data in the interface configuration file.
In practical applications, taking the development language identified by the currently mainstream interface editing tool as C # as an example, it is necessary to convert files generated in other languages into files of C # type. For example, the development language used by the target application is C + +, and the data of C + + is converted into the data of C # by the target file conversion tool, so that the data used on the C + + development tool can be transferred to the C # development tool for use.
Obtaining a target file conversion tool according to the file type comprises the following steps:
determining a target conversion tool identifier in a preset tool comparison table according to the file type;
and acquiring a target file conversion tool in a preset file conversion tool set based on the target conversion tool identification.
Furthermore, since the development language of each application is different, a file conversion format corresponding to each development language needs to be created, for example, if the development language identified by the currently mainstream interface editing tool is a language a, interface configuration files in other various formats need to be converted into the language a, and if the file type of the interface configuration file is a type B, a conversion tool for converting the type B into the language a needs to be used; if the file type of the interface configuration file is the type C, a conversion tool for converting the type C into the type A is needed.
In practical application, a corresponding conversion tool may be created for each file type, and the file type and the conversion tool identifier are stored in a preset tool comparison table, where the preset tool comparison table is used to determine the conversion tool identifier corresponding to the file type after the file type is determined. And acquiring a corresponding target file conversion tool in a preset file conversion tool set according to the conversion tool identifier.
Further, the preset file conversion tool set is generated by the following steps:
receiving a file conversion tool creation task, wherein the file conversion tool creation task comprises creating a file conversion tool, and the file conversion tool is used for converting a first type file into a second type file;
receiving programming instructions for the file conversion tool to create tasks;
and generating a file conversion tool according to the programming instruction, and adding the file conversion tool to a preset file conversion tool set.
In practical application, after a new file type is determined, a corresponding file conversion tool needs to be created for the file type, specifically, a developer determines that a first type file needs to be converted into a second type file, where the first type file may be understood as an original file, and the second type file may be understood as a target file generated after conversion. After determining that the file conversion tool creates a task, the developer sends out a programming instruction based on the task, and the terminal responds to the programming instruction to generate a corresponding file conversion tool and adds the file conversion tool to a preset file conversion tool set.
For example, the terminal receives a file conversion tool creation instruction for converting a type file into a type B file, a technician performs programming development in the terminal according to the instruction, inputs the programming instruction, and finally generates a file conversion tool a according to the programming instruction, where the file conversion tool a can convert the type a file into the type B file and add the file conversion tool a to a file conversion tool set.
In a specific embodiment provided by the application, the above example is continued, file conversion needs to be performed on files of an INI type, a UITex type and a TXT type, a file conversion tool inereader corresponding to the file of the INI type is determined, a file conversion tool UITex reader corresponding to the file of the UITex type is determined, and a file conversion tool TXTReader corresponding to the file of the TXT type is determined. The method comprises the steps of converting an interface element attribute configuration file A1 of an INI type into an interface element attribute reference configuration file A2 through an INIReader, converting an atlas attribute configuration file B1 of a UITex type into an atlas attribute reference configuration file B2 through a UITexReader, and converting a character attribute configuration file C1 of a TXT type into a character attribute reference configuration file C2 through a TXTReader.
Step 208: and loading the reference configuration file in a target interface editing tool, and displaying an interface editing page of the target application.
The target interface editing tool can be specifically understood as a mainstream interface editing tool in the market at present, such as a UGUI editing tool, the mainstream interface editing tool in the market at present is maintained by numerous personnel, and commonly discovers and solves files.
The reference configuration file is specifically understood to be a configuration file that can be directly read and loaded in the target interface editing tool, and a user can directly load the reference configuration file through the target interface editing tool, so that an interface editing page corresponding to the target application is displayed in the target interface editing tool. Specifically, the interface editing page may be understood as a page for performing editing processing on a page of the target application.
The target interface editing tool is used for displaying the interface editing page of the target application after processing according to the reference configuration file, so that developers can visually edit the target application through the target interface editing tool, the interfaces which are made by old projects are compatible, the situation that all existing interfaces need to be redeveloped after an editor is replaced is avoided, and the development efficiency is improved. Meanwhile, because the target interface editing tool is the mainstream development tool at present, the labor cost caused by the expansion of new functions is reduced, and the learning cost in actual operation of staff is also reduced.
Further, loading the reference configuration file in a target interface editing tool, and displaying an interface editing page of the target application, including:
reading the reference configuration information in the reference configuration file through the target interface editing tool;
and rendering and generating an interface editing page in the target interface editing tool according to the reference configuration information.
In practical application, the reference configuration information in the reference configuration file can be directly read through the target interface editing tool, and the corresponding interface editing pages are generated by sequentially reducing and rendering in the target interface editing tool according to the reference configuration information.
Rendering and generating an interface editing page in the target interface editing tool according to the reference configuration information, wherein the rendering and generating of the interface editing page comprises the following steps:
determining at least one component to be rendered and associated information between the components to be rendered according to the reference configuration information;
and rendering the at least one component to be rendered in the target interface editing tool according to the associated information to generate an interface editing page.
Further, the reference configuration information may be understood as a plurality of development program source codes, which include declared components, component information, and associations between components, for example, a determination button (component to be rendered) is declared in the reference configuration information, and size, position information, font information, referenced album information, and the like of the determination button are declared, and related information of the determination button in other pages may also be represented by parent-child reference relationships.
And through the association relation between the components to be rendered and the components to be rendered, rendering can be performed in the target interface editing tool to generate corresponding rendering components, and finally an interface editing page is generated.
In practical application, determining at least one component to be rendered and associated information between the components to be rendered according to the reference configuration information includes:
reading at least one node attribute information in the reference configuration information;
and determining an association relation between the component to be rendered and the component to be rendered corresponding to each node attribute information, wherein the component to be rendered comprises a basic component to be rendered and an extended component to be rendered.
And the reference configuration information comprises the attribute information of a plurality of nodes, the node attribute information and the target interface editing tool are bound by traversing the node attribute information of each node, meanwhile, the relation between the component to be rendered corresponding to each node attribute information and the component to be rendered is determined, and the component to be rendered and the component in the target interface editing tool are subjected to board jacking. And constructing and generating a tree structure of all nodes so as to generate a final interface editing page. It is to be noted that the component to be rendered includes a base component to be rendered and an extension component to be rendered.
In a specific embodiment provided by the present application, following the above example, taking a target interface editing tool as an UGUI as an example, after core data of an interface configuration file is transferred to a reference configuration file, traversing each node in the reference configuration file, first using wdbase (basis) to bind with a Recttform of the UGUI, then using wdWindow to perform a first step of generating an interface component, and modifying key information of the component, such as Position (Position), size (Size), alpha (transparency), anchor (Anchor), and the like. And further judging that the current component respectively adopts core types such as Wndbutton, wndCheckBox, wndContainer, wndEdit, wndFrame, wndMinimap, wndMovie, wndPage, wndPageSet, wndScene, wndScroll, wndSFX and the like to carry out one-to-one or one-to-many asymmetric data binding with Button, toggle, label, image, scrollView and the like of UGUI according to the WndType field.
And then, according to Parent (father) fields in the WndWindow, constructing tree structures of all nodes. And previewing the interface in the UGUI interface, and previewing the interface generated after interface data conversion.
In another specific embodiment provided by the present application, in order to make the designer more convenient to edit the production interface, the interface editing page includes a visual editing control;
the method further comprises the following steps:
receiving an operation instruction aiming at the visual editing control;
and rendering and generating a corresponding virtual picture in the interface editing page in response to the operation instruction.
Specifically, selectors such as a kguifontcolorderselectter (color Selector), a kguifontedidselector (font identification Selector), a KGUIFontSelector (font Selector), a kguisperstreelector (sprite Selector), and a kguisterngenselector (element Selector) may be added, the designer sends an instruction to the visual editing control in a resource dragging manner, and the terminal renders and generates a corresponding picture in the interface editing page according to the operation instruction. By means of the visual editing control, the developed boundary line is achieved, and the what you see is what you get page editing preview effect is achieved.
In another specific embodiment provided herein, the method further comprises:
receiving a restore instruction for the reference profile;
responding to the recovery instruction, and converting the reference configuration file into a target interface configuration file according to the target file conversion tool;
and updating the interface configuration file of the target application according to the target interface configuration file.
In practical applications, the reference configuration file generated in the target interface editing tool needs to be restored to the initial interface configuration file of the target application in order to avoid other risks caused by the migration of the target application instead of being used in the target interface editing tool after the screen of the target application is modified and adjusted in the target interface editing tool, so that the intrusion amount of the original code of the target application is minimized.
Specifically, the technician may modify the reference configuration file in real time during the process of modifying the picture of the target application in the target interface editing tool. After the modification is completed, the reference configuration file needs to be converted again, and the reference configuration file is converted into the initial file format of the target application.
Further, the terminal receives a recovery instruction for the reference configuration file, and in response to the recovery instruction, converts the modified reference configuration file into a target interface configuration file through a target file conversion tool, wherein the target interface configuration file has the same file format as the interface configuration file. And updating the interface configuration file in the target application through the target interface configuration file so as to realize the function of updating the virtual picture of the target application.
The data processing method provided by the application receives an interface editing instruction aiming at a target application; responding to the interface editing instruction to obtain an interface configuration file of the target application, and determining the file type of the interface configuration file; acquiring a target file conversion tool according to the file type, and converting the interface configuration file into a reference configuration file according to the target file conversion tool; and loading the reference configuration file in a target interface editing tool, and displaying an interface editing page of the target application.
According to the method and the device, the original interface configuration file based on the target application is converted into the interface configuration file in the new format through the pre-generated file conversion tool, so that the interface configuration file is opened in a new interface editing tool, the effect of replacing an interface development editor without redeveloping the existing interface is achieved, the new interface editing tool is used as a mainstream UI frame in the market at present, most requirements of designers can be met, and the cost of manpower and material resources brought by the old interface editing tool is reduced.
In the following, with reference to fig. 3, the data processing method provided in the present application is further described by taking an application of the data processing method in a game development scene as an example. Fig. 3 shows a processing flow chart of a data processing method applied to a game development scenario according to an embodiment of the present application, which specifically includes the following steps:
step 302: an interface editing instruction for game a is received.
Step 304: the interface profile a1 of game a is acquired in response to the interface editing instruction, and the file type of the interface profile is determined.
Step 306: and determining a target conversion tool identifier c in a preset tool comparison table according to the file type.
Step 308: and acquiring a target file conversion tool C in a preset file conversion tool set based on the target conversion tool identification C.
Step 310: and converting the interface configuration file a1 into a reference configuration file a2 according to the target file conversion tool C.
Step 312: and reading the reference configuration information in the reference configuration file a2 through a UGUI tool.
Step 314: and determining at least one component to be rendered and associated information among the components to be rendered according to the reference configuration information.
Step 316: rendering the at least one component to be rendered in the target interface editing tool according to the associated information, and generating an interface editing page, wherein the interface editing page comprises a visual editing control.
Step 318: and receiving an operation instruction aiming at the visual editing control, responding to the operation instruction, rendering and generating a corresponding virtual picture in the interface editing page, and simultaneously obtaining a reference configuration file a3.
Step 320: a restore instruction for the reference profile a3 is received.
Step 322: and converting the reference configuration file a3 into a target interface configuration file a4 according to a target file conversion tool C.
Step 324: and updating the interface configuration file a1 of the target application according to the target interface configuration file a4, and loading the game A based on the target interface configuration file a4.
According to the method and the device, the original interface configuration file based on the game is converted into the interface configuration file in the new format through the pre-generated file conversion tool, so that the original interface configuration file is opened in a new interface editing tool, the effect of replacing an interface development editor without redeveloping the existing interface is realized, the new interface editing tool is used as a mainstream UI frame in the market at present, most requirements of designers can be met, and the cost of manpower and material resources brought by the old interface editing tool is reduced.
Corresponding to the above data processing method embodiment, the present application further provides a data processing apparatus embodiment, and fig. 4 shows a schematic structural diagram of a data processing apparatus provided in an embodiment of the present application. As shown in fig. 4, the apparatus includes:
a first receiving module 402 configured to receive an interface editing instruction for a target application;
a determining module 404, configured to obtain an interface configuration file of the target application in response to the interface editing instruction, and determine a file type of the interface configuration file;
a first conversion module 406, configured to obtain a target file conversion tool according to the file type, and convert the interface configuration file into a reference configuration file according to the target file conversion tool;
and the loading display module 408 is configured to load the reference configuration file in the target interface editing tool and display an interface editing page of the target application.
Optionally, the apparatus further comprises:
a second receiving module configured to receive a restore instruction for the reference profile;
a second conversion module configured to convert the reference configuration file into a target interface configuration file according to the target file conversion tool in response to the restore instruction;
an update module configured to update an interface profile of the target application according to the target interface profile.
Optionally, the first conversion module 406 is further configured to:
determining a target conversion tool identifier in a preset tool comparison table according to the file type;
and acquiring a target file conversion tool in a preset file conversion tool set based on the target conversion tool identifier.
Optionally, the apparatus further comprises a generating module configured to:
receiving a file conversion tool creation task, wherein the file conversion tool creation task comprises the creation of a file conversion tool, and the file conversion tool is used for converting a first type file into a second type file;
receiving programming instructions for the file conversion tool to create a task;
and generating a file conversion tool according to the programming instruction, and adding the file conversion tool to a preset file conversion tool set.
Optionally, the loading display module 408 is further configured to:
reading the reference configuration information in the reference configuration file through the target interface editing tool;
and rendering and generating an interface editing page in the target interface editing tool according to the reference configuration information.
Optionally, the loading display module 408 is further configured to:
determining at least one component to be rendered and associated information between the components to be rendered according to the reference configuration information;
and rendering the at least one component to be rendered in the target interface editing tool according to the associated information to generate an interface editing page.
Optionally, the loading display module 408 is further configured to:
reading at least one node attribute information in the reference configuration information;
and determining an association relation between the component to be rendered and the component to be rendered corresponding to each node attribute information, wherein the component to be rendered comprises a basic component to be rendered and an extended component to be rendered.
Optionally, the interface configuration file includes at least one of an interface element attribute configuration file, an atlas attribute configuration file, and a character attribute configuration file.
Optionally, the interface editing page includes a visual editing control;
the device further comprises:
a third receiving module configured to receive an operation instruction for the visual editing control;
and the rendering module is configured to render and generate a corresponding virtual picture in the interface editing page in response to the operation instruction.
The data processing device provided by the embodiment of the application realizes the original interface configuration file based on the target application, converts the original interface configuration file into the interface configuration file in a new format through the pre-generated file conversion tool, is opened in a new interface editing tool, realizes the effect of replacing an interface development editor without redeveloping the existing interface, and takes the new interface editing tool as a mainstream UI frame in the market at present, so that most requirements of designers can be met, and the cost of manpower and material resources brought by the old interface editing tool is reduced.
The above is a schematic configuration of a data processing apparatus of the present embodiment. It should be noted that the technical solution of the data processing apparatus and the technical solution of the data processing method belong to the same concept, and details that are not described in detail in the technical solution of the data processing apparatus can be referred to the description of the technical solution of the data processing method.
Fig. 5 illustrates a block diagram of a computing device 500 provided according to an embodiment of the present application. The components of the computing device 500 include, but are not limited to, a memory 510 and a processor 520. Processor 520 is coupled to memory 510 via bus 530, and database 550 is used to store data.
Computing device 500 also includes access device 540, access device 540 enabling computing device 500 to communicate via one or more networks 560. Examples of such networks include a Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. The Access device 540 may include one or more of any type of Network interface (e.g., a Network interface controller) that may be wired or Wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) Wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular Network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the application, the above-described components of computing device 500 and other components not shown in FIG. 5 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device illustrated in FIG. 5 is for purposes of example only and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 500 may be any type of stationary or mobile computing device, including a mobile Computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop Computer or Personal Computer (PC). Computing device 500 may also be a mobile or stationary server.
Wherein the steps of the data processing method are implemented when the processor 520 executes the computer instructions.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the data processing method belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the data processing method.
An embodiment of the present application further provides a computer readable storage medium, which stores computer instructions, when executed by a processor, implement the steps of the data processing method as described above.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the data processing method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the data processing method.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in source code form, object code form, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer-readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer-readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical application, to thereby enable others skilled in the art to best understand the application and its practical application. The application is limited only by the claims and their full scope and equivalents.

Claims (12)

1. A data processing method, comprising:
receiving an interface editing instruction aiming at a target application;
responding to the interface editing instruction to obtain an interface configuration file of the target application, and determining the file type of the interface configuration file;
acquiring a target file conversion tool according to the file type, and converting the interface configuration file into a reference configuration file according to the target file conversion tool;
and loading the reference configuration file in a target interface editing tool, and displaying an interface editing page of the target application.
2. The method of claim 1, wherein the method further comprises:
receiving a restore instruction for the reference profile;
responding to the recovery instruction, and converting the reference configuration file into a target interface configuration file according to the target file conversion tool;
and updating the interface configuration file of the target application according to the target interface configuration file.
3. The method of claim 1, wherein obtaining a target document conversion tool based on the document type comprises:
determining a target conversion tool identifier in a preset tool comparison table according to the file type;
and acquiring a target file conversion tool in a preset file conversion tool set based on the target conversion tool identification.
4. The method of claim 3, wherein the preset set of file transformation tools is generated by:
receiving a file conversion tool creation task, wherein the file conversion tool creation task comprises creating a file conversion tool, and the file conversion tool is used for converting a first type file into a second type file;
receiving programming instructions for the file conversion tool to create tasks;
and generating a file conversion tool according to the programming instruction, and adding the file conversion tool to a preset file conversion tool set.
5. The method of claim 1, wherein loading the reference configuration file in a target interface editing tool and displaying an interface editing page of the target application comprises:
reading the reference configuration information in the reference configuration file through the target interface editing tool;
and rendering and generating an interface editing page in the target interface editing tool according to the reference configuration information.
6. The method of claim 5, wherein rendering a generated interface editing page in the target interface editing tool according to reference configuration information comprises:
determining at least one component to be rendered and associated information between the components to be rendered according to the reference configuration information;
and rendering the at least one component to be rendered in the target interface editing tool according to the associated information to generate an interface editing page.
7. The method of claim 6, wherein determining the at least one component to be rendered and the association information between the components to be rendered according to the reference configuration information comprises:
reading at least one node attribute information in the reference configuration information;
and determining an association relation between the component to be rendered and the component to be rendered corresponding to each node attribute information, wherein the component to be rendered comprises a basic component to be rendered and an extended component to be rendered.
8. The method of claim 1, wherein the interface profile comprises at least one of an interface element property profile, an atlas property profile, and a character property profile.
9. The method of claim 1, wherein the interface editing page includes a visual editing control;
the method further comprises the following steps:
receiving an operation instruction aiming at the visual editing control;
and rendering and generating a corresponding virtual picture in the interface editing page in response to the operation instruction.
10. A data processing apparatus, characterized by comprising:
a first receiving module configured to receive an interface editing instruction for a target application;
the determining module is configured to respond to the interface editing instruction to acquire an interface configuration file of the target application and determine the file type of the interface configuration file;
the first conversion module is configured to acquire a target file conversion tool according to the file type and convert the interface configuration file into a reference configuration file according to the target file conversion tool;
and the loading display module is configured to load the reference configuration file in a target interface editing tool and display an interface editing page of the target application.
11. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-9 when executing the computer instructions.
12. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 9.
CN202211413070.0A 2022-11-11 2022-11-11 Data processing method and device Pending CN115904372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211413070.0A CN115904372A (en) 2022-11-11 2022-11-11 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211413070.0A CN115904372A (en) 2022-11-11 2022-11-11 Data processing method and device

Publications (1)

Publication Number Publication Date
CN115904372A true CN115904372A (en) 2023-04-04

Family

ID=86481856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211413070.0A Pending CN115904372A (en) 2022-11-11 2022-11-11 Data processing method and device

Country Status (1)

Country Link
CN (1) CN115904372A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116627397A (en) * 2023-07-24 2023-08-22 腾讯科技(深圳)有限公司 Program development method and related device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116627397A (en) * 2023-07-24 2023-08-22 腾讯科技(深圳)有限公司 Program development method and related device
CN116627397B (en) * 2023-07-24 2024-01-30 腾讯科技(深圳)有限公司 Program development method and related device

Similar Documents

Publication Publication Date Title
CN108710739B (en) Method and system for building information model lightweight and three-dimensional scene visualization
CN107393013B (en) Virtual roaming file generation and display method, device, medium, equipment and system
CN111158866A (en) Engine system and rendering method thereof
CN110633436B (en) Visual and user-defined panoramic editing method, system, storage medium and equipment
CN104915201A (en) Interface generating method and device
CN105528418A (en) Design document generation method and apparatus
CN114115883B (en) Method for quickly constructing front-end application by using middle station service capability
KR20180082845A (en) Method for Providing E-Book Service and Computer Program Therefore
WO2022033131A1 (en) Animation rendering method based on json data format
CN103051652A (en) Mobile terminal cloud commuting delivery platform
CN115904372A (en) Data processing method and device
CN113656005B (en) Application component library construction method, application component configuration method and related devices
CN114140564A (en) Expression creating method and device
CN113705156A (en) Character processing method and device
CN110990104B (en) Texture rendering method and device based on Unity3D
CN113282852A (en) Method and device for editing webpage
CN115544311A (en) Data analysis method and device
CN114222185B (en) Video playing method, terminal equipment and storage medium
CN114185915A (en) Service processing method and device
CN110975287A (en) Module optimization method and device based on Unity3D
CN111158675A (en) Front-end page template multiplexing method
CN117437342B (en) Three-dimensional scene rendering method and storage medium
WO2024046029A1 (en) Method and apparatus for creating media content, and device and storage medium
CN114049416A (en) Animation data acquisition method and device
CN116595284B (en) Webpage system operation method, device, equipment, storage medium and program

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