Search

CN-122018902-A - Cross-platform interface conversion method, device, equipment, medium and product

CN122018902ACN 122018902 ACN122018902 ACN 122018902ACN-122018902-A

Abstract

The invention discloses a cross-platform interface conversion method, a device, equipment, a medium and a product. The method comprises the steps of obtaining an instance object corresponding to a first component used when a first media production platform generates a first interface, wherein the instance object comprises a component type and a resource path of a second component corresponding to the first component in a second media production platform, determining interface structural information of the first interface, and converting the first interface into a second interface which is adapted to the second media production platform based on the interface structural information and the instance object. According to the technical scheme provided by the invention, the cross-platform interface high-efficiency conversion is realized, the conversion result is ensured to accord with the design specification of the second media manufacturing platform, and the consistency with the original interface in structural layout and visual performance is maintained.

Inventors

  • TANG WENLIANG
  • Wei Mengqiang
  • ZOU QING
  • CHEN ZIHUI

Assignees

  • 网易(杭州)网络有限公司

Dates

Publication Date
20260512
Application Date
20260116

Claims (11)

  1. 1. The cross-platform interface conversion method is characterized by comprising the following steps of: acquiring an instance object corresponding to a first component used when a first media production platform generates a first interface, wherein the instance object comprises a component type and a resource path of a second component corresponding to the first component in a second media production platform; and determining interface structural information of the first interface, and converting the first interface into a second interface which is adapted to the second media production platform based on the interface structural information and the example object.
  2. 2. The method of claim 1, wherein the obtaining an instance object corresponding to a first component used by the first media production platform when generating the first interface comprises: displaying an interface export page at least comprising a first interface; And responding to the conversion operation aiming at the first interface, and acquiring an instance object corresponding to a first component used when the first interface is generated.
  3. 3. The method of claim 1, wherein the determining interface structural information of the first interface comprises: Analyzing the first interface to obtain interface structural information; The interface structuring information at least comprises component hierarchy structure information, at least one hierarchy level identification, interface layout information, at least one relative position information of the first component in the first interface and style attributes of a second component corresponding to the first component in the second media production platform, wherein the style attributes comprise at least one of interactable, initial hiding state, color, font thickening identification and font size.
  4. 4. The method of claim 1, wherein the converting the first interface to a second interface that adapts to the second media production platform based on the interface structural information and the instance object comprises: Carrying out serialization processing on the interface structuring information, the component types and the resource paths in the instance objects to generate an interface description file in a structuring text format; converting and generating a runtime format file which can be analyzed by the second media making platform based on the interface description file so as to render and display the second interface based on the runtime format file loaded by the second media making platform; Wherein the runtime format file is a binary preform file.
  5. 5. The method of claim 4, wherein upon loading the runtime format file based on the second media production platform, the method further comprises: Checking whether a resource file pointed by the resource path exists in a local resource library or not based on the second media manufacturing platform aiming at least one resource path in the runtime format file; When at least one resource file corresponding to the resource path is detected to be missing, displaying a occupation area corresponding to a second component of the missing resource file according to a preset form in an editing canvas of the second media manufacturing platform, and displaying a jump control; and responding to a trigger event of the jump control, and positioning a resource path to the missing resource file.
  6. 6. The method of claim 4, wherein after the rendering reveals the second interface, the method further comprises: receiving an attribute adjustment operation for a second component in the second interface, and determining attribute adjustment parameters associated with the attribute adjustment operation; and updating the second interface based on the attribute adjustment parameter.
  7. 7. The method according to claim 1, wherein the method further comprises: and for at least one third component in the first media production platform, determining a fourth component corresponding to the third component in the second media production platform, and determining an instance object corresponding to the third component based on the component type and the resource path of the fourth component.
  8. 8. A cross-platform interface conversion device, comprising: The system comprises an instance object acquisition module, a first interface generation module and a second interface generation module, wherein the instance object acquisition module is used for acquiring an instance object corresponding to a first component used when the first media production platform generates the first interface, and the instance object comprises a component type and a resource path of a second component corresponding to the first component in the second media production platform; And the interface conversion module is used for determining the interface structural information of the first interface and converting the first interface into a second interface which is adaptive to the second media production platform based on the interface structural information and the example object.
  9. 9. An electronic device, the electronic device comprising: and a memory communicatively coupled to the at least one processor, wherein, The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the cross-platform interface conversion method of any one of claims 1-7.
  10. 10. A computer readable storage medium storing computer instructions for causing a processor to implement the cross-platform interface conversion method of any one of claims 1-7 when executed.
  11. 11. A computer program product comprising a computer program which, when executed by a processor, implements the cross-platform interface conversion method according to any of claims 1-7.

Description

Cross-platform interface conversion method, device, equipment, medium and product Technical Field The present invention relates to the field of computer processing technologies, and in particular, to a method, an apparatus, a device, a medium, and a product for cross-platform interface conversion. Background In current game development, the requirements of user interfaces are increasingly complex and the number is larger, and when the interfaces are manufactured, the interface design and implementation are usually completed by relying on multiple tools. At present, the cross-tool interface is generally manufactured by exporting an interface into pictures after finishing interface design in one design tool, and reconstructing components one by one in another design tool according to the design pictures by a user. The cross-tool interface reconstruction mode depends on manual derivation, visual comparison and manual configuration, so that the problem of low interface conversion efficiency is solved, and the problem that the interface performance is inconsistent with the original design due to artificial omission is solved easily. Disclosure of Invention The invention provides a cross-platform interface conversion method, a device, equipment, a medium and a product, which are used for realizing the high-efficiency conversion of a cross-platform interface, ensuring that a conversion result accords with the design specification of a second media manufacturing platform and keeping consistency with an original interface in structural layout and visual performance. According to an aspect of the present invention, there is provided a cross-platform interface conversion method, including: acquiring an instance object corresponding to a first component used when a first media production platform generates a first interface, wherein the instance object comprises a component type and a resource path of a second component corresponding to the first component in a second media production platform; and determining interface structural information of the first interface, and converting the first interface into a second interface which is adapted to the second media production platform based on the interface structural information and the example object. According to another aspect of the present invention, there is provided a cross-platform interface conversion apparatus, the apparatus comprising: The system comprises an instance object acquisition module, a first interface generation module and a second interface generation module, wherein the instance object acquisition module is used for acquiring an instance object corresponding to a first component used when the first media production platform generates the first interface, and the instance object comprises a component type and a resource path of a second component corresponding to the first component in the second media production platform; And the interface conversion module is used for determining the interface structural information of the first interface and converting the first interface into a second interface which is adaptive to the second media production platform based on the interface structural information and the example object. According to another aspect of the present invention, there is provided an electronic apparatus including: and a memory communicatively coupled to the at least one processor, wherein, The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the cross-platform interface conversion method of any one of the embodiments of the present invention. According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement a cross-platform interface conversion method according to any embodiment of the present invention when executed. According to another aspect of the invention, there is provided a computer program product comprising a computer program which, when executed by a processor, implements a cross-platform interface conversion method according to any of the embodiments of the invention. According to the technical scheme, the method and the device for generating the first interface by the media production platform, the example object corresponding to the first component is obtained when the first media production platform generates the first interface, the example object comprises the component type and the resource path of the second component corresponding to the first component in the second media production platform, the interface structural information of the first interface is determined, the first interface is converted into the second interface which is matched with the second media production platform based on the interface structural information and the example object, the problems that in the prior art, the efficiency is low, the interface performance is