CN117950664A - Interface configuration method, device, electronic equipment and storage medium - Google Patents

Interface configuration method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117950664A
CN117950664A CN202410052211.3A CN202410052211A CN117950664A CN 117950664 A CN117950664 A CN 117950664A CN 202410052211 A CN202410052211 A CN 202410052211A CN 117950664 A CN117950664 A CN 117950664A
Authority
CN
China
Prior art keywords
target
interface
file
script
node
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
CN202410052211.3A
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 CN202410052211.3A priority Critical patent/CN117950664A/en
Publication of CN117950664A publication Critical patent/CN117950664A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides an interface configuration method, an interface configuration device, electronic equipment and a storage medium, wherein the interface configuration method comprises the following steps: under the condition that the target editing tool can not edit the target script file, associating the target script object with the target node in the target editing tool to obtain object mapping information, and generating an interface prefabricated file based on the object mapping information, so that the interface prefabricated file records the mapping relation between the target script object and the target node. And when the interface prefabricated file is analyzed to generate a target operation interface, binding the target script object and the corresponding target node in the target operation interface based on the object mapping information, so that the corresponding target node can be correctly called when the target script file operates, the node configuration of the target operation interface is realized, and the development efficiency of a target program is improved.

Description

Interface configuration method, device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of interface configuration technologies, and in particular, to an interface configuration method, an apparatus, an electronic device, and a storage medium.
Background
With the development of internet technology, more and more open source engines of programs are developed, and development of a program User Interface (UI) component is an important ring in program development, after an engine node of the program UI component is bound with a script object of a script file, the script file can call the engine node of the open source engine when the program runs, so that different Interface functions are realized through the program UI component. Most open source engine vendors will provide a supporting UI editing tool to configure the association of script objects with engine nodes. However, when an open source engine manufacturer develops a new engine type, a new UI editing tool generally does not support a script file based on an old engine, and for a program developed and already put into use based on an old engine, UI nodes and script objects cannot be configured through the new UI editing tool, which affects development and maintenance efficiency of a program interface.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the invention provides an interface configuration method, an interface configuration device, electronic equipment and a storage medium, which can improve the development efficiency of a program interface.
In a first aspect, an embodiment of the present invention provides an interface configuration method, including:
generating an interface prefabrication file of a target program based on a target editing tool, wherein the interface prefabrication file comprises object mapping information of a target operation interface, the object mapping information is used for indicating a mapping relation between a target script object and a target node, the target script object belongs to the target script file of the target operation interface, the target node belongs to an operation engine of the target program, and the target editing tool cannot edit the target operation interface;
analyzing the interface prefabricated file based on the operation engine to generate the target operation interface;
and operating the target operation interface based on the object mapping information and the target script file.
Optionally, the generating the interface prefabricated file of the target program based on the target editing tool includes:
generating an editing interface based on the target editing tool, wherein the editing interface is used for configuring the interface prefabricated file;
Acquiring a target index and at least one piece of object mapping information, wherein the target index is used for indicating a file address of the target script file, and the object mapping information comprises object description information and node description information;
And generating the interface prefabricated file based on all the object mapping information and the target index.
Optionally, the generating the target running interface based on the running engine parsing the interface prefabricated file includes:
loading the interface prefabrication file through the operation engine, and generating an interface component of the target operation interface based on the interface prefabrication file;
determining the target script file of the interface component based on the target index, and analyzing a plurality of available script objects from the target script file;
Determining at least one target node from a plurality of available nodes of the running engine based on the node description information, and determining at least one target script object from a plurality of available script objects based on the object description information;
In the interface component, the target node is bound to the corresponding target script object based on the object mapping information.
Optionally, the running the target running interface based on the object mapping information and the target script file includes:
Calling the interface component corresponding to the target operation interface;
Operating the interface component based on the target script file;
And when the target script object is called, executing target operation of the target script file based on the target node bound by the target script object, wherein an operation object of the target operation is the target script object.
Optionally, the target program includes a plurality of the interface prefabricated files, and the generating the target running interface based on the running engine parsing the interface prefabricated files includes:
Acquiring a preset interface configuration table, wherein the interface configuration table records file paths of the interface prefabricated files;
and generating the corresponding target operation interface based on each interface prefabricated file.
Optionally, the interface configuration table further includes a display hierarchy associated with each of the prefabricated interface files, and the running the target running interface based on the object mapping information and the target script file includes:
generating a corresponding interface stack based on the display hierarchy;
When the target operation interface is activated, adding the target operation interface into the corresponding interface stack based on the display levels, wherein the display levels of the target operation interfaces stored in the same interface stack are the same;
And operating each activated target operation interface in the target program in a layering mode based on the interface stack and the corresponding display level, wherein the higher the display level is, the more the corresponding target operation interface is positioned on the outer layer of the target program.
In a second aspect, an embodiment of the present invention provides an interface configuration method, which is applied to a man-machine interaction device, where the interface configuration method includes:
Generating a target index based on a target script file selected by a user at an editing interface of a target editing tool, wherein the target index is used for indicating a file address of the target script file;
Obtaining object mapping information input by a user at the editing interface, wherein the object mapping information is used for indicating the mapping relation between a target script object and a target node, the target script object belongs to the target script file, and the target node belongs to an operation engine of a target program;
And responding to the editing completion operation of the user, and generating an interface prefabricated file based on the target index and the object mapping information.
Optionally, after the generating an interface prefabricated file based on the target index and the object mapping information, the method further includes:
Based on the user operation of the user on the target program, the operation engine analyzes the interface prefabricated file to generate a target operation interface, wherein the target editing tool cannot edit the target operation interface;
and operating the target operation interface based on the object mapping information and the target script file.
In a third aspect, an embodiment of the present invention provides an interface configuration apparatus, including:
The file configuration module is configured to generate an interface prefabrication file of a target program based on a target editing tool, wherein the interface prefabrication file comprises object mapping information of a target operation interface, the object mapping information is used for indicating a mapping relation between a target script object and a target node, the target script object belongs to the target script file of the target operation interface, the target node belongs to an operation engine of the target program, and the target editing tool cannot edit the target operation interface;
The operation interface generation module is configured to generate the target operation interface based on the operation engine analyzing the interface prefabricated file;
And the interface running module is configured to run the target running interface based on the object mapping information and the target script file.
In a fourth aspect, an embodiment of the present invention provides an electronic device including at least one control processor and a memory for communicatively coupling with the at least one control processor; the memory stores instructions executable by the at least one control processor to enable the at least one control processor to perform the interface configuration method as described in the first aspect above or to perform the interface configuration method as described in the second aspect above.
In a fifth aspect, embodiments of the present invention provide a computer-readable storage medium storing computer-executable instructions for performing the interface configuration method according to the first aspect or the interface configuration method according to the second aspect.
According to the method provided by the embodiment of the invention, under the condition that the target editing tool can not edit the target script file, the target script object and the target node are associated in the target editing tool to obtain the object mapping information, and the interface prefabricated file is generated based on the object mapping information, so that the mapping relation between the target script object and the target node is recorded in the interface prefabricated file. And when the interface prefabricated file is analyzed to generate a target operation interface, binding the target script object and the corresponding target node in the target operation interface based on the object mapping information, so that the corresponding target node can be correctly called when the target script file operates, the node configuration of the target operation interface is realized, and the development efficiency of a target program is improved.
Drawings
FIG. 1 is a schematic diagram of a process of an interface configuration method according to an embodiment of the present invention;
FIG. 2 is a flow chart of an interface configuration method provided by one embodiment of the present invention;
FIG. 3 is a schematic diagram of an editing interface provided by one embodiment of the present invention;
FIG. 4 is a schematic diagram of a display multi-layer operation interface provided by one embodiment of the present invention;
FIG. 5 is a flow chart of an interface configuration method applied to a game scene provided by an embodiment of the present invention;
FIG. 6 is a flow chart of a method of applying interface configuration in a human-machine interaction device in accordance with one embodiment of the invention;
FIG. 7 is a schematic diagram of an interface configuration device according to an embodiment of the present invention;
Fig. 8 is a block diagram of an electronic device according to another embodiment of the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
In the description of the present invention, it should be understood that references to orientation descriptions such as upper, lower, front, rear, left, right, etc. are based on the orientation or positional relationship shown in the drawings, are merely for convenience of description of the present invention and to simplify the description, and do not indicate or imply that the apparatus or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus should not be construed as limiting the present invention.
In the description of the present invention, a number means one or more, a number means two or more, and greater than, less than, exceeding, etc. are understood to not include the present number, and above, below, within, etc. are understood to include the present number. The description of the first and second is for the purpose of distinguishing between technical features only and should not be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, unless explicitly defined otherwise, terms such as arrangement, installation, connection, etc. should be construed broadly and the specific meaning of the terms in the present invention can be reasonably determined by a person skilled in the art in combination with the specific contents of the technical scheme.
First, terms related to one or more embodiments of the present invention will be explained:
Cocos2d-x: a domestic open-source mobile game development framework is based on MIT license release. The engine core is written by C++, provides three programming language interfaces of C++, lua, javaScript, supports intelligent mobile phones such as iOS and Android in a cross-platform mode, desktop operating systems such as Windows and Mac, and HTML5 browsers such as Chrome, safari and IE.
Cocos Creator: the system is a lightweight, efficient and free open-source cross-platform game engine, is a real-time 3D content creation platform, supports 2D and 3D game development, and can provide a complete industry solution in the fields of HMI, ioT, XR, virtual figures and the like.
Lua is a compact scripting language. The design purpose is to provide flexible extension and customization functions for the application by being flexibly embedded in the application. Lua is written in standard C and can be compiled and run on almost all operating systems and platforms. Lua does not provide a powerful library, which is determined by its positioning. Lua is not suitable as a language for developing stand-alone applications. Lua has a JIT project running simultaneously, providing just-in-time compilation functionality on a particular platform.
It should be noted that, the open source engine is a development foundation of some application programs, when developing the application programs, a plurality of engine nodes are configured in the development engine according to the requirements of the programs, on the basis, development of the program UI components is performed, and the program UI components are mounted in the engine nodes, so that the engine nodes bind script objects of script files, and the script files can call the engine nodes of the open source engine when the programs run, so that different interface functions are realized through the program UI components. Most open source engine vendors will provide a supporting UI editing tool to configure the association of script objects with engine nodes. However, when an open source engine vendor develops a new engine type, the new UI editing tool typically does not support script files based on the old engine, and for programs developed based on the old engine and already in use, UI nodes and script objects cannot be configured by the new UI editing tool. Taking game development as an example, cocos2d-x is a commonly used game development framework, and can construct the UI bottom layer of a game, and Cocos2d-x is usually developed by using a Cocos Studio as a UI editing tool. After the manufacturer pushes out the new UI editing tool, the Cocos Creator does not maintain the Cocos Studio any more, but the Cocos Creator cannot develop and edit the script file of the Cocos2d-x, so that some games developed based on the Cocos2d-x cannot be developed and maintained based on the Cocos Creator for subsequent UI development and maintenance, and development and maintenance efficiency of the game UI are affected.
Therefore, the embodiment of the invention provides an interface configuration method, in which under the condition that a target editing tool cannot edit a target script file, target script objects and target nodes are associated in the target editing tool to obtain object mapping information, and an interface prefabricated file is generated based on the object mapping information, so that the interface prefabricated file records the mapping relation between the target script objects and the target nodes. And when the interface prefabricated file is analyzed to generate a target operation interface, binding the target script object and the corresponding target node in the target operation interface based on the object mapping information, so that the corresponding target node can be correctly called when the target script file operates, the node configuration of the target operation interface is realized, and the development efficiency of a target program is improved.
In the present invention, an interface configuration method, an apparatus, an electronic device, a computer-readable storage medium are provided, and detailed description is given in the following embodiments.
Referring to fig. 1, fig. 1 is a schematic diagram of a processing procedure of an interface configuration method provided by an embodiment of the present invention, as shown in fig. 1, a developer runs a target editing tool in an electronic device, generates an editing interface by using an expansion function of the target editing tool, selects a target script file in the editing interface, selects a target script object from objects of the target script file, inputs a target node corresponding to the target script object, generates an interface prefabricated file after compiling, records a mapping relation between the target script object and the target node through the interface prefabricated file, generates a target operation interface by loading and analyzing the interface prefabricated file after starting a target program, and binds the corresponding target script object and the target node in the target operation interface, wherein the target script object can determine the corresponding target node according to the mapping relation, so that the target operation interface can call a correct engine node based on the target script file, ensure normal operation of the target program, and improve development efficiency.
Referring to fig. 2, fig. 2 is a flowchart of an interface configuration method according to an embodiment of the present invention, where the interface configuration method includes, but is not limited to, steps S21, S22, and S23:
S21, generating an interface prefabrication file of the target program based on the target editing tool, wherein the interface prefabrication file comprises object mapping information of a target operation interface, the object mapping information is used for indicating the mapping relation between a target script object and a target node, the target script object belongs to the target script file of the target operation interface, the target node belongs to the operation engine of the target program, and the target editing tool cannot edit the target operation interface.
It should be noted that, the version of the target editing tool and the version of the running engine of the embodiment are different, so that the target editing tool cannot directly edit the target script file, if the versions of the target editing tool and the target program are the same and the corresponding script file can be supported, the technical scheme of the embodiment is not required to be adopted, the target script object and the target node are directly bound through the target editing tool, and the description is omitted.
In practical application, the target program and the target script file can be obtained based on an old version of the running engine, the target editing tool can be developed for a new version of the running engine, and for the target program which has been developed, the bottom development framework is invariable, so that the target program and the target script file cannot be supported by the target editing tool due to the fact that the target development framework cannot be upgraded to the latest version of the running engine, and the target script object and the target node cannot be directly bound for the target running interface.
Illustratively, taking the field of game development as an example, the Cocos is a commonly used running engine, the object program may be a game obtained based on a Cocos2d-x development framework, and the object editing tool may be a Cocos Creator tool, and since the Cocos Creator does not support Cocos2d-x, editing and node binding of the script file of Cocos2d-x cannot be performed, i.e., the UI interface of Cocos2d-x cannot be edited by the Cocos Creator.
It should be noted that, although the target editing tool cannot directly edit the target running interface and the target script file, the target editing tool can be used to generate an interface prefabricated file, and the generated interface prefabricated file can be loaded and parsed by a running engine of any version. The interface prefabricated file is a file type commonly used in interface development, the interface prefabricated file can record configuration information of an operation interface, the embodiment takes object mapping information as one type of configuration information to be recorded in the interface prefabricated file, after the operation engine loads and analyzes the interface prefabricated file, the object mapping information is analyzed and can be deployed and bound in a target operation interface, and an information foundation is provided for binding a target script object and a target node.
In practical application, the target script object can be directly input into the target editing tool, the associated target node is selected, when the interface prefabricated file is generated, the corresponding target node and the target script object can be stored in the interface prefabricated file in an associated mode, and when the target editing tool cannot directly edit the target operation interface, the script object and the engine node are bound through the creation of the interface prefabricated file.
In practical application, the target script object may be a commonly used object in UI interfaces such as variables, arrays, constants, animation, etc. of the script, and the specific object type is not limited in this embodiment. The target node is an engine node preset in the running engine, and the specific type of the target node is not limited in this embodiment.
Illustratively, continuing with the example of the Cocos gaming field described above, the target script file is exemplified by the Lua script file, the target script object may be a Lua variable, the target node is a Cocos node, and referring to FIG. 3, the Cocos Creator tool cannot directly edit the UI interface of Cocos2d-x and the Lua script file, but can compile an interface preparation file by inputting "variable 1" and selecting "node 1" in the Cocos Creator tool.
It should be noted that, the prefabricated file of a target operation interface of the interface prefabricated file may include object mapping information in each interface prefabricated file, where the object mapping information may include multiple pairs of target script objects and target nodes, and this embodiment does not limit the mapping number in the object mapping information, as shown in fig. 3, the target script objects include variables, arrays, constants, and animations, where the target script objects bind variable 1 to variable 3, array 1, and fade-in fade-out animation through the target editing tool, and 5 pairs of mapping relationships are built together, where the 5 pairs of mapping relationships are recorded in the object mapping information, and when the interface prefabricated file is parsed, the 5 pairs of mapping relationships can be obtained, and binding is performed in the target operation interface respectively.
In an implementation manner of the embodiment of the present invention, the method for generating the interface prefabricated file of the target program based on the target editing tool specifically further includes, but is not limited to, the following steps:
Generating an editing interface based on the target editing tool, wherein the editing interface is used for configuring an interface prefabricated file; acquiring a target index and at least one object mapping information, wherein the target index is used for indicating a file address of a target script file, and the object mapping information comprises object description information and node description information; and generating an interface prefabricated file based on all the object mapping information and the target index.
Specifically, script file selection, relevant information input of a target script object and a target node can be performed on the editing interface, and after configuration is completed, a completion button is clicked to compile an interface prefabricated file.
It should be noted that, based on the description of the above embodiment, the target editing tool is not used to edit the target script file, so the present embodiment selects the target script file by means of file selection, and obtains the file address of the target script file as the target index based on file selection, instead of performing file editing after reading the target script file. The target script file of the embodiment can be associated with a plurality of target running interfaces, and the same target script file can be multiplexed by the plurality of target running interfaces, so that after the target index is obtained, the target index is recorded in the interface prefabricated file, and when the target script object and the target node are bound subsequently, the target script file to which the target script object belongs can be determined by taking the target index as index information, and node binding of the target running interface based on the object of the corresponding target script file is ensured.
In practical application, the target script file can be selected by browsing the system file, so that for a developer, the script object in the target script file can be known, for example, the target script object takes a Lua variable as an example, the object description information can directly adopt the variable name of the Lua variable, and the character string of the variable name of the Lua variable is input at the corresponding position of the editing interface; similarly, the target node is an engine node running the engine, and can be selected by clicking from a node tree, or can be directly input with a character string of the node name of the engine node manually, and the embodiment is not limited to specific forms of the object description information and the node description information.
For example, as shown in fig. 3, after clicking the "OPEN" button in the script address area shown in fig. 3, the file list of the electronic device is opened, and after selecting the target script file from the file list, the file address of the target script file is obtained, for example, the target index displayed in the editing interface shown in fig. 3 is "lua\file address\file name.
For example, as shown in fig. 3, the target script object includes UI interface objects such as variables, arrays, constants, and animations, and taking a variable name as object description information and a node name as node description information as an example, a developer may click on an "add" key in options binding variables to generate new options, input "variable 1" in the options, select "node 1", input "variable 2", select "node 2", input "variable 3", select "node 3", and display delete keys behind the corresponding options, so as to implement flexible configuration. After the interface prefabricated file is generated, the target index of Lua\file address\file name.lua\is recorded in the interface prefabricated file, wherein variable 1 is associated with node 1, variable 2 is associated with node 2, and variable 3 is associated with node 3. If there are further sets, constants and animation associations, they are not described in detail herein.
In practical application, the editing interface is an expansion interface, and since the analysis of the target script file is not involved, the options displayed by the editing interface in this embodiment cannot be adaptively adjusted according to the content of the target script file, and in order to ensure the comprehensiveness of the association relationship, in this embodiment, all the object options that can be edited are displayed on the editing interface, for example, even if the target script file does not have an array, the options of binding the array are displayed on the editing interface, and the developer does not fill in the related content.
S22, generating a target operation interface based on the operation engine analysis interface prefabricated file.
Specifically, when the target program is started, the running engine analyzes the resource file of the target program, and the interface prefabrication file in this embodiment belongs to one of the resource files, so that a corresponding target running interface can be generated under the analysis of the running engine, and the content recorded in the interface prefabrication file is associated as configuration information of the target running interface.
Illustratively, continuing to refer to the above-mentioned Cocos game example, starting a game after obtaining an interface prefabricated file of character information, analyzing the interface prefabricated file by a Cocos engine to generate a character information interface, determining a Lua script file corresponding to the character information according to a target index recorded in the interface prefabricated file, and binding a Lua variable (target script object) in the Lua script file with a corresponding Cocos node (target node) based on object mapping information of the interface prefabricated file.
In practical application, the target running interface may be paved on a display device of the electronic device, for example, a game background interface in a game, or may be displayed in a part of a display area of the display device, for example, a role information interface in the game, where each interface prefabricated file corresponds to one target running interface, and if there are multiple target running interfaces to be configured, corresponding interface prefabricated files are generated respectively.
In an implementation manner of the embodiment of the present invention, the target operation interface is generated based on the operation engine parsing the interface prefabricated file, and the method specifically includes but is not limited to the following steps:
loading an interface prefabricated file through an operation engine, and generating an interface component of a target operation interface based on the interface prefabricated file; determining a target script file of the interface component based on the target index, and analyzing a plurality of available script objects from the target script file; determining at least one target node from a plurality of available nodes of the running engine based on the node description information, and determining at least one target script object from a plurality of available script objects based on the object description information; in the interface component, the target node is bound to a corresponding target script object based on the object mapping information.
In practical application, the interface prefabricated file is loaded into the memory when the target program is started, and the operation engine can acquire the interface prefabricated file from the memory and perform subsequent analysis operation, so that the data reading efficiency can be improved.
Specifically, the interface component is a program UI component, when the target program runs based on the running engine, a plurality of content blocks are displayed on the display interface, each content block is displayed by one interface component, and when the interface prefabricated file is parsed, the interface prefabricated file is parsed into the interface component, and the interface component is used as a specific representation of the target running interface, so that a plurality of interface components are displayed in the target program.
Illustratively, taking the above-mentioned Cocos game as an example, taking the interface prefabricated file as an example, as shown in fig. 4, after the Cocos parses the character file, a character component 43 is displayed in the program interface 41, after the Cocos parses the character information file, a character information component 42 is displayed in the program interface 41, a game character is displayed in the program interface 41 through the character component 43, and character information corresponding to the game character is displayed in the program interface 41 through the character information component 42.
It should be noted that, after the interface component is parsed, based on the description of the above embodiment, the corresponding target script file can be determined according to the target index, and the target script file is associated to the interface component, so that the interface component can operate according to the target script file.
Specifically, the target script object generally includes a plurality of available script objects, but not every available script object is required by the target running interface, and in this embodiment, object description information is input when the interface prefabrication file is configured, and the corresponding available script object is determined as the target script object from the target script file based on the object description information.
In practical application, when the running engine analyzes the interface prefabricated file, modification of the target script file is not involved, so that after the target script object is determined based on the object description information, the association relationship between the target script object and the target node is recorded in the resource configuration of the target running interface, and the target script object can be associated to the target node for calling when the target script object is subsequently called.
In an implementation manner of the embodiment of the present invention, the target program includes a plurality of interface prefabricated files, and generates a target operation interface based on analyzing the interface prefabricated files by the operation engine, and specifically includes but is not limited to the following steps:
acquiring a preset interface configuration table, wherein the interface configuration table records file paths of all interface prefabricated files; and generating a corresponding target operation interface based on each interface prefabricated file.
Specifically, each interface prefabricated file corresponds to one target operation interface, and when a target program has a plurality of target operation interfaces to be configured, the technical scheme of the embodiment can be executed for a plurality of times through a target editing tool to obtain a plurality of interface prefabricated files, file identifications, file paths, corresponding target operation interfaces and the like of the interface prefabricated files are recorded through an interface configuration table, so that an operation engine can analyze the interface prefabricated files one by one based on the interface configuration table, and a plurality of target operation interfaces are generated in the target program.
In practical application, after the target program is started, the operation engine loads each interface prefabricated file into the memory based on the file path recorded in the interface configuration table, and analyzes the interface prefabricated files one by one according to the loading sequence in the interface configuration table, so as to generate a plurality of target operation interfaces.
For example, continuing with the example of the above-described Cocos game, referring to fig. 4, the object program includes 4 interface prefabricated files, which are character information prefabricated file, character prefabricated file, background prefabricated file, and prompt box prefabricated file, respectively, and file paths of the respective files are described in the interface configuration table. After the game is started, the Cocos engine loads the 4 interface prefabricated files into the memory based on the interface configuration table, the Cocos engine analyzes the character information prefabricated files and then generates character information components 42 in the program interface 41, analyzes the character prefabricated files and then generates character components 43 in the program interface 41, analyzes the background prefabricated files and then generates background components 44 in the program interface 41, analyzes the prompt box prefabricated files and then generates prompt box components 45 in the program interface 41, and according to the technical scheme of the embodiment, the Lua variables and Cocos nodes are bound in the character information components 42 based on object mapping information recorded by the character information prefabricated files, and the rest of the components are the same and are not repeated herein.
S23, operating the target operation interface based on the object mapping information and the target script file.
It should be noted that, the target editing tool of this embodiment cannot edit the target script file, so the target node cannot be directly written into the target script file, and since the target script file can be multiplexed by multiple target running interfaces, it cannot be determined in advance which of the available script objects is the target script object. Based on the method, in order to ensure that the available script object of the target script file can acquire a return value, meaningless self-assignment can be performed on the available script object in the target script file, when the target script object is called at the target operation interface, the acquired return value is the object description information of the target script object due to the self-assignment, so that a corresponding target node is acquired based on the object mapping information, and the target operation interface can call the target node based on the binding relation between the script and the node during operation.
For example, as shown in fig. 3, the target script object is exemplified by a variable 1, the target program is exemplified by a Cocos game, the target script file is exemplified by a Lua script file, the Lua script file can carry out self-assignment on the Lua variable 1 through a self field, binding between the variable 1 and the node 1 is recorded in an interface prefabrication file, after a target operation interface is resolved based on the interface prefabrication file, the node 1 can be invoked according to a mapping relation when the target operation interface invokes the Lua variable 1 based on the Lua script file.
According to the technical scheme, under the condition that the target editing tool does not support the operation engine, the interface prefabrication file is configured through the target editing tool, because the interface prefabrication file can still be loaded and analyzed by the operation engine, target index and object mapping information are input into the editing interface, the target script object and target node which are related to each other are recorded through the object mapping information, when the target program is operated, the target operation interface can be generated in the form of an interface component through analyzing the interface prefabrication file, the target script object and the target node are bound in the target operation interface, when the target script file is operated on the target operation interface and the target script object is called, the corresponding target node is determined based on the association relation, so that the target node is called to complete logic of the target script file, a UI bottom layer can be built based on the operation engine, UI editing can be performed through the target editing tool of an updated version, and development efficiency is effectively improved.
In an implementation manner of the embodiment of the present invention, the target running interface is run based on the object mapping information and the target script file, and specifically includes but is not limited to the following steps:
Calling an interface component corresponding to a target operation interface; operating an interface component based on the target script file; and when the target script object is called, executing target operation of the target script file based on the target node bound by the target script object, wherein the operation object of the target operation is the target script object.
Specifically, based on the description of the related embodiment of fig. 4, the interface component can be used as a carrier of the target operation interface to display, when the interface component is called, the logic of the interface component is triggered to call the corresponding target script file, and the target operation is executed based on the UI logic recorded by the target script file, so that the UI editing and developing based on the interface prefabricated file are realized.
Illustratively, continuing to refer to the above example of the Cocos game, taking a prompt box node in the Cocos node as an example, referring to fig. 4, in the running process of the Cocos game, when a network is disconnected, a target script file corresponding to the prompt box component 45 is called, when UI logic indicated by the target script file is a prompt box popped up for a user to select, the prompt box component 45 is generated (target operation) in the program interface 41, and an animation (target script object) is popped up from the target script file calling the prompt box, based on the object mapping information bound in the prompt box component 45, the target node is determined to be the prompt box node, and the prompt box node is called to execute the target operation of generating the prompt box.
In an implementation manner of the embodiment of the present invention, the interface configuration table further includes a display hierarchy associated with each prefabricated interface file, and runs the target running interface based on the object mapping information and the target script file, and specifically includes, but is not limited to, the following steps:
Generating a corresponding interface stack based on the display hierarchy; when the target operation interface is activated, adding the target operation interface into a corresponding interface stack based on the display level, wherein the display level of the target operation interface stored in the same interface stack is the same; and operating each activated target operation interface in the target program in a layered mode based on the interface stack and the corresponding display level, wherein the higher the display level is, the more the corresponding target operation interface is positioned on the outer layer of the target program.
It should be noted that, based on the description of the above embodiment, a plurality of object operation interfaces may be included in the object program, and interface components corresponding to some of the object operation interfaces may be displayed simultaneously, for example, the character information component 42, the character component 43 and the background component 44 in fig. 4, while some of the interface components need to be displayed at a higher display level, so as to avoid being blocked by other interface components, for example, the prompt box component 45 in fig. 4, where the prompt content needs to be preferentially processed by the user, so that the prompt box component 45 needs to be displayed at the highest display level, and the result is that a part of the character component 43 and a part of the background component 44 are blocked in the program interface 41.
It should be noted that, after parsing each interface prefabricated file, the running engine makes the object program have each interface component, but not all the interface components need to be in a display state, for example, the prompt box component 45 shown in fig. 4 is not displayed under the condition that the prompt condition is not triggered. Based on this, the present embodiment manages each target operation interface through the UI management class, configures the display hierarchy indicated by the interface configuration table to the target operation interface during initialization, and generates multiple interface stacks according to the number of display hierarchies, where the same interface stack is used to store the target operation interfaces with the same display hierarchy, so that the activated target operation interface can be controlled according to the principle of first-in last-out, for example, the post-pop-up is closed first.
Illustratively, continuing to refer to the above example of the Cocos game, the display level may be divided into a scene layer, an fight layer, a main interface layer, a full screen interface layer, a popup window layer, and a prompt layer, where the scene layer is the lowest layer for displaying a game background, the interface component corresponding to the fight layer is used for displaying information related to fight generation, such as data generated by a fight, special effects, etc., the interface component corresponding to the full screen interface layer is used for displaying a system configuration interface, the interface component corresponding to the popup window layer is used for displaying popup window information, and the interface component corresponding to the prompt layer is used for displaying prompt information.
The following describes an example of application of the interface configuration method provided by the present invention in a game scene with reference to fig. 5. Fig. 5 shows a flowchart of an interface configuration method applied to a Cocos scene, where the method specifically includes the following steps:
s51, generating an editing interface through a Cocos Creator tool, selecting a Lua script file of a Cocos2d-X game in the editing interface, and obtaining a file address of the Lua script file.
The Cocos Creator tool is the target editing tool of the embodiment, the Lua script file is the target script file of the embodiment, and the Cocos2d-X game is the target program of the embodiment.
S52, inputting a plurality of pairs of Lua variables and Cocos nodes in the editing interface to generate an interface prefabrication file and an interface configuration table.
The Lua variable is the target script object of the above embodiment, and the Cocos node is the target node of the above embodiment.
S53, after the Cocos2d-X game is started, the Cocos engine loads the interface prefabricated file based on the interface configuration table.
The Cocos engine is the operation engine of the above embodiment.
S54, analyzing the interface prefabricated files to generate interface components corresponding to the target operation interface, and when the number of the interface prefabricated files is multiple, displaying the multiple interface components based on the display level recorded in the interface configuration table, and storing the activated interface components through an interface stack.
S55, after the interface component is generated, the Lua variable and the Cocos node are bound in the interface component.
S56, in the operation process of the interface component, when the Lua variable is called by the Lua script file, the target operation is executed based on the bound Cocos node.
In the interface configuration method applied to the game scene provided by the embodiment of the invention, the Lua variable and the corresponding Cocos node are input into the Cocos Creator to obtain the object mapping information, and the interface prefabrication file is generated based on the object mapping information, so that the interface prefabrication file records the mapping relation between the Lua variable and the Cocos node. And when the interface prefabricated file is analyzed to generate a target operation interface, binding the Lua variable and the corresponding Cocos node in the target operation interface based on the object mapping information, so that the corresponding Cocos node can be correctly called when the Lua script file operates, the node configuration of the target operation interface is realized, and the development efficiency of a target program is improved.
Corresponding to the above method embodiment, referring to fig. 6, the present invention further provides an embodiment of an interface configuration method applied to a man-machine interaction device, where the interface configuration method includes, but is not limited to, the following steps:
S61, generating a target index based on a target script file selected by a user on an editing interface of a target editing tool, wherein the target index is used for indicating a file address of the target script file;
s62, obtaining object mapping information input by a user on an editing interface, wherein the object mapping information is used for indicating the mapping relation between a target script object and a target node, the target script object belongs to a target script file, and the target node belongs to an operation engine of a target program;
s63, responding to the editing completion operation of the user, and generating an interface prefabricated file based on the target index and the object mapping information.
Specifically, the man-machine interaction device of the embodiment may be a device capable of man-machine interaction, such as an intelligent device, a computer, or the like. The user can run the target editing tool through the man-machine interaction device, so that the interface prefabricated file is configured and generated in the target editing tool.
It should be noted that, according to the process and principle of generating the interface prefabricated file, reference may be made to the description of the embodiment shown in fig. 2, and the description is not repeated here.
According to the technical scheme of the embodiment, under the condition that the target editing tool cannot edit the target script file, a user can specify the target script file in the target editing tool, input a target script object of the target script file in an editing interface, and input a target node associated with the target script object, so that the generated interface prefabricated file records the mapping relation between the target script object and the target node. And when the interface prefabricated file is analyzed to generate a target operation interface, binding the target script object and the corresponding target node in the target operation interface based on the object mapping information, so that the corresponding target node can be correctly called when the target script file operates, the node configuration of the target operation interface is realized, and the development efficiency of a target program is improved.
In one implementation of the embodiment of the present invention, after generating the interface prefabricated file based on the target index and the object mapping information, the method further includes, but is not limited to, the following steps:
Based on the user operation of the user in the target program, the operation engine analyzes the interface prefabricated file to generate a target operation interface, wherein the target operation interface cannot be edited by a target editing tool; and operating the target operation interface based on the object mapping information and the target script file.
It should be noted that, the specific method for generating and operating the target operation interface in the man-machine interaction device may refer to the description of the embodiment shown in fig. 2, and the description is not repeated here.
In one implementation manner of the embodiment of the present invention, the interface prefabricated file is generated based on the target index and the object mapping information, and specifically includes but is not limited to the following steps:
Generating an editing interface based on the target editing tool, wherein the editing interface is used for configuring an interface prefabricated file; acquiring a target index and at least one object mapping information, wherein the target index is used for indicating a file address of a target script file, and the object mapping information comprises object description information and node description information; and generating an interface prefabricated file based on all the object mapping information and the target index.
It should be noted that, the specific method for editing the object mapping information in the man-machine interaction device may refer to the description of the embodiment shown in fig. 2, and the detailed description is not repeated here.
In an implementation manner of the embodiment of the present invention, the operation engine parses the interface prefabricated file to generate the target operation interface, and specifically includes but is not limited to the following steps:
loading an interface prefabricated file through an operation engine, and generating an interface component of a target operation interface based on the interface prefabricated file; determining a target script file of the interface component based on the target index, and analyzing a plurality of available script objects from the target script file; determining at least one target node from a plurality of available nodes of the running engine based on the node description information, and determining at least one target script object from a plurality of available script objects based on the object description information; in the interface component, the target node is bound to a corresponding target script object based on the object mapping information.
It should be noted that, the specific method for binding the target node and the target script object in the target operation interface in the man-machine interaction device may refer to the description of the embodiment shown in fig. 2, and the description is not repeated here.
In an implementation manner of the embodiment of the present invention, the operation engine parses the interface prefabricated file to generate the target operation interface, and specifically includes but is not limited to the following steps:
Calling an interface component corresponding to a target operation interface; operating an interface component based on the target script file; and when the target script object is called, executing target operation of the target script file based on the target node bound by the target script object, wherein the operation object of the target operation is the target script object.
It should be noted that, the specific method for operating the target operation interface in the man-machine interaction device may refer to the description of the embodiment shown in fig. 2, and the detailed description is not repeated here.
In one implementation manner of the embodiment of the present invention, the target program includes a plurality of interface prefabricated files, and the operation engine parses the interface prefabricated files to generate a target operation interface, and specifically includes but is not limited to the following steps:
acquiring a preset interface configuration table, wherein the interface configuration table records file paths of all interface prefabricated files; and generating a corresponding target operation interface based on each interface prefabricated file.
It should be noted that, the specific method for generating the target operation interface based on the interface configuration table in the man-machine interaction device may refer to the description of the embodiment shown in fig. 2, and the description is not repeated here.
In one implementation manner of the embodiment of the present invention, the interface configuration table further includes a display hierarchy associated with each prefabricated interface file, and runs the target running interface based on the object mapping information and the target script file, and specifically includes, but is not limited to, the following steps:
Generating a corresponding interface stack based on the display hierarchy; when the target operation interface is activated, adding the target operation interface into a corresponding interface stack based on the display level, wherein the display level of the target operation interface stored in the same interface stack is the same; and operating each activated target operation interface in the target program in a layered mode based on the interface stack and the corresponding display level, wherein the higher the display level is, the more the corresponding target operation interface is positioned on the outer layer of the target program.
It should be noted that, a specific method for displaying the target operation interfaces of different levels based on the interface stack in the man-machine interaction device may refer to the description of the embodiment shown in fig. 2, and the description is not repeated here.
Corresponding to the above method embodiment, the present invention further provides an embodiment of an interface configuration device, and fig. 7 shows a schematic structural diagram of an interface configuration device according to an embodiment of the present invention. As shown in fig. 7, the interface configuration apparatus includes:
A file configuration module 701 configured to generate an interface prefabrication file of the target program based on the target editing tool, where the interface prefabrication file includes object mapping information of a target running interface, the object mapping information is used to indicate a mapping relationship between a target script object and a target node, the target script object belongs to a target script file of the target running interface, the target node belongs to a running engine of the target program, and the target editing tool cannot edit the target script file;
The running interface generating module 702 is configured to generate a target running interface based on the running engine parsing the interface prefabricated file;
an interface running module 703 configured to run a target running interface based on the object mapping information and the target script file.
In one implementation of the embodiment of the present invention, the file configuration module 701 is further configured to:
The editing operation interface generation module is configured to generate an editing interface based on the target editing tool, wherein the editing interface is used for configuring an interface prefabricated file;
The information input module is configured to acquire a target index and at least one object mapping information, wherein the target index is used for indicating a file address of a target script file, and the object mapping information comprises object description information and node description information;
and the first file generation module is configured to generate an interface prefabricated file based on all the object mapping information and the target index.
In one implementation of the embodiment of the present invention, the running interface generation module 702 is further configured to:
The system comprises a prefabricated file loading module, a target operation interface module and a control module, wherein the prefabricated file loading module is configured to load an interface prefabricated file through an operation engine and generate an interface component of the target operation interface based on the interface prefabricated file;
The script file analysis module is configured to determine a target script file of the interface component based on the target index, and analyze a plurality of available script objects from the target script file;
an object acquisition module configured to determine at least one target node from a plurality of available nodes of the running engine based on the node description information, and determine at least one target script object from a plurality of available script objects based on the object description information;
And the object binding module is configured to bind the target node to the corresponding target script object based on the object mapping information in the interface component.
In one implementation of the embodiment of the present invention, the interface running module 703 is further configured to:
the component calling module is configured to call an interface component corresponding to the target operation interface;
A component running module configured to run the interface component based on the target script file;
And the script running module is configured to execute target operations of the target script file based on the target nodes bound by the target script object when the target script object is called, wherein the operation objects of the target operations are the target script objects.
In one implementation of the embodiment of the present invention, the object program includes a plurality of interface prefabricated files, and the running interface generating module 702 is further configured to:
The configuration table acquisition module is configured to acquire a preset interface configuration table, wherein the interface configuration table records file paths of all interface prefabricated files;
and the second file generation module is configured to generate a corresponding target operation interface based on each interface prefabricated file.
In one implementation of the embodiment of the present invention, the interface configuration table further includes a display hierarchy associated with each of the prefabricated interface files, and the interface running module 703 is further configured to:
The interface stack generation module is configured to generate a corresponding interface stack based on the display hierarchy;
The interface stacking module is configured to add the target operation interface to a corresponding interface stack based on a display level when the target operation interface is activated, wherein the display level of the target operation interface stored in the same interface stack is the same;
And the layering display module is configured to hierarchically run each activated target running interface in the target program based on the interface stack and the corresponding display level, wherein the higher the display level is, the more the corresponding target running interface is positioned on the outer layer of the target program.
In the interface configuration device provided by the embodiment of the invention, under the condition that the target editing tool cannot edit the target script file, the target script object and the target node are associated in the target editing tool to obtain the object mapping information, and the interface prefabrication file is generated based on the object mapping information, so that the interface prefabrication file records the mapping relation between the target script object and the target node. And when the interface prefabricated file is analyzed to generate a target operation interface, binding the target script object and the corresponding target node in the target operation interface based on the object mapping information, so that the corresponding target node can be correctly called when the target script file operates, the node configuration of the target operation interface is realized, and the development efficiency of a target program is improved.
The above is a schematic solution of an interface configuration device of this embodiment. It should be noted that, the technical solution of the interface configuration device and the technical solution of the interface configuration method belong to the same concept, and details of the technical solution of the interface configuration device, which are not described in detail, can be referred to the description of the technical solution of the interface configuration method.
As shown in fig. 8, fig. 8 shows a block diagram of an electronic device 800 according to an embodiment of the invention. The components of the electronic device 800 include, but are not limited to, a memory 810 and a processor 820. Processor 820 is coupled to memory 810 through bus 830 and database 850 is used to hold data.
The electronic device 800 also includes an access device 840, the access device 840 enabling the electronic device 800 to communicate via one or more networks 860. Examples of such networks include the 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. Access device 840 may include one or more of any type of network interface, wired or wireless (e.g., a Network Interface Card (NIC)), 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 invention, the above-described components of the electronic device 800, as well as other components not shown in FIG. 8, may also be connected to each other, such as via a bus. It should be understood that the block diagram of the electronic device shown in fig. 8 is for exemplary purposes only and is not intended to limit the scope of the present invention. Those skilled in the art may add or replace other components as desired.
Electronic device 800 may be any type of stationary or mobile electronic device including a mobile computer or mobile electronic device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile telephone (e.g., smart phone), wearable electronic device (e.g., smart watch, smart glasses, etc.), or other type of mobile device, or a stationary electronic device such as a desktop computer or PC. The electronic device 800 may also be a mobile or stationary server.
Wherein processor 820 is configured to execute computer-executable instructions of the object processing method.
The above is a schematic solution of an electronic device of the present embodiment. It should be noted that, the technical solution of the electronic device and the technical solution of the object processing method belong to the same concept, and details of the technical solution of the electronic device, which are not described in detail, can be referred to the description of the technical solution of the object processing method.
The embodiment of the invention also provides a storage medium, which is a computer readable storage medium, and the storage medium stores a computer program, and the computer program realizes the interface configuration method when being executed by a processor.
The memory, as a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory remotely located relative to the processor, the remote memory being connectable to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The apparatus embodiments described above are merely illustrative, in which the elements illustrated as separate components may or may not be physically separate, implemented to reside in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and may include any information delivery media.
While the preferred embodiment of the present invention has been described in detail, the present invention is not limited to the above embodiments, and those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit and scope of the present invention, and these equivalent modifications or substitutions are included in the scope of the present invention as defined in the appended claims.

Claims (11)

1. An interface configuration method, comprising:
generating an interface prefabrication file of a target program based on a target editing tool, wherein the interface prefabrication file comprises object mapping information of a target operation interface, the object mapping information is used for indicating a mapping relation between a target script object and a target node, the target script object belongs to the target script file of the target operation interface, the target node belongs to an operation engine of the target program, and the target editing tool cannot edit the target operation interface;
analyzing the interface prefabricated file based on the operation engine to generate the target operation interface;
and operating the target operation interface based on the object mapping information and the target script file.
2. The method of claim 1, wherein the generating an interface prefabrication file for the target program based on the target editing tool comprises:
generating an editing interface based on the target editing tool, wherein the editing interface is used for configuring the interface prefabricated file;
Acquiring a target index and at least one piece of object mapping information, wherein the target index is used for indicating a file address of the target script file, and the object mapping information comprises object description information and node description information;
And generating the interface prefabricated file based on all the object mapping information and the target index.
3. The method of claim 2, wherein the generating the target running interface based on the running engine parsing the interface prefabrication file comprises:
loading the interface prefabrication file through the operation engine, and generating an interface component of the target operation interface based on the interface prefabrication file;
determining the target script file of the interface component based on the target index, and analyzing a plurality of available script objects from the target script file;
Determining at least one target node from a plurality of available nodes of the running engine based on the node description information, and determining at least one target script object from a plurality of available script objects based on the object description information;
In the interface component, the target node is bound to the corresponding target script object based on the object mapping information.
4. The method of claim 3, wherein the running the target running interface based on the object mapping information and the target script file comprises:
Calling the interface component corresponding to the target operation interface;
Operating the interface component based on the target script file;
And when the target script object is called, executing target operation of the target script file based on the target node bound by the target script object, wherein an operation object of the target operation is the target script object.
5. The method of any one of claims 1 to 4, wherein the target program includes a plurality of the interface preparation files, and the generating the target running interface based on the running engine parsing the interface preparation files includes:
Acquiring a preset interface configuration table, wherein the interface configuration table records file paths of the interface prefabricated files;
and generating the corresponding target operation interface based on each interface prefabricated file.
6. The method of claim 5, wherein the interface configuration table further includes a display hierarchy associated with each of the pre-manufactured interface files, the running the target running interface based on the object mapping information and the target script file comprising:
generating a corresponding interface stack based on the display hierarchy;
When the target operation interface is activated, adding the target operation interface into the corresponding interface stack based on the display levels, wherein the display levels of the target operation interfaces stored in the same interface stack are the same;
And operating each activated target operation interface in the target program in a layering mode based on the interface stack and the corresponding display level, wherein the higher the display level is, the more the corresponding target operation interface is positioned on the outer layer of the target program.
7. An interface configuration method, which is characterized by being applied to man-machine interaction equipment, comprises the following steps:
Generating a target index based on a target script file selected by a user at an editing interface of a target editing tool, wherein the target index is used for indicating a file address of the target script file;
Obtaining object mapping information input by a user at the editing interface, wherein the object mapping information is used for indicating the mapping relation between a target script object and a target node, the target script object belongs to the target script file, and the target node belongs to an operation engine of a target program;
And responding to the editing completion operation of the user, and generating an interface prefabricated file based on the target index and the object mapping information.
8. The method of claim 7, wherein after the generating an interface prefabricated file based on the target index and the object mapping information, the method further comprises:
Based on the user operation of the user on the target program, the operation engine analyzes the interface prefabricated file to generate a target operation interface, wherein the target editing tool cannot edit the target operation interface;
and operating the target operation interface based on the object mapping information and the target script file.
9. An interface configuration apparatus, comprising:
The file configuration module is configured to generate an interface prefabrication file of a target program based on a target editing tool, wherein the interface prefabrication file comprises object mapping information of a target operation interface, the object mapping information is used for indicating a mapping relation between a target script object and a target node, the target script object belongs to the target script file of the target operation interface, the target node belongs to an operation engine of the target program, and the target editing tool cannot edit the target operation interface;
The operation interface generation module is configured to generate the target operation interface based on the operation engine analyzing the interface prefabricated file;
And the interface running module is configured to run the target running interface based on the object mapping information and the target script file.
10. An electronic device comprising at least one control processor and a memory for communication connection with the at least one control processor; the memory stores instructions executable by the at least one control processor to enable the at least one control processor to perform the interface configuration method of any one of claims 1 to 6 or to perform the interface configuration method of any one of claims 7 to 8.
11. A computer-readable storage medium storing computer-executable instructions for causing a computer to perform the interface configuration method according to any one of claims 1 to 6 or to perform the interface configuration method according to any one of claims 7 to 8.
CN202410052211.3A 2024-01-12 2024-01-12 Interface configuration method, device, electronic equipment and storage medium Pending CN117950664A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410052211.3A CN117950664A (en) 2024-01-12 2024-01-12 Interface configuration method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410052211.3A CN117950664A (en) 2024-01-12 2024-01-12 Interface configuration method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117950664A true CN117950664A (en) 2024-04-30

Family

ID=90795742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410052211.3A Pending CN117950664A (en) 2024-01-12 2024-01-12 Interface configuration method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117950664A (en)

Similar Documents

Publication Publication Date Title
JP5282324B2 (en) Data container for user interface data
CN104991763B (en) A kind of general interface Behavior- Based control system
CN106775744B (en) Method and device for generating static library
CA2443454A1 (en) Data binding method in workflow system
CN112882700A (en) iOS application program construction method and device, electronic equipment and storage medium
CN109240666B (en) Function calling code generation method and system based on call stack and dependent path
KR20130017337A (en) Hybrid app development platform architecture and test method of the same, and computer-readable recording medium with program for the same
CN108984161A (en) The software installation packet construction method and device of a kind of unification and the expansion that can classify
CN113986741A (en) Component debugging method and device and computer equipment
CN116974620A (en) Application program generation method, operation method and corresponding device
US20220300262A1 (en) Method for constructing, running and implementing cross-platform application, terminal, server and system
US20080196009A1 (en) Apparatus and method for componentizing legacy system
CN109766095A (en) A kind of thematic page creation method of activity, relevant apparatus and equipment
CN117950664A (en) Interface configuration method, device, electronic equipment and storage medium
CN109933355A (en) Application program updating method and device
CN115185519A (en) Auxiliary coding method based on front-end visualization
CN109960503A (en) Component development method and device based on Django framework
CN112925698B (en) Test script generation method and integrated development environment
Lachgar et al. Dsl and code generator for accelerating ios apps development
CN116360779B (en) Method for constructing micro front end base based on qiankun in Vue CLI application
US20210232413A1 (en) Third party executable asset bundle deployment
CN113608726B (en) Code generation method, device, electronic equipment and storage medium
CN116974527B (en) Pluggable page expansion method and system based on low-code front-end component
CN118035079A (en) Debugging method, system, device, electronic equipment and storage medium of program node
CN112615779A (en) Interface route generation method and device

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