Control Method, Device, Electronic Device and Computer Storage Medium of an Editor

Through the collaborative work of the main process and the rendering process, the management steps of the game editor are optimized, and complex operation problems caused by the numerous editor functions in the existing technology are solved, realizing unified management and efficient development of the editor.

CN113893549BActive Publication Date: 2025-07-08XIAMEN YAJI SOFTWARE
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111172952.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-08
Publication Date
2025-07-08
Estimated Expiration
2041-10-08

AI Technical Summary

Technical Problem

The existing game editor has many functions, which makes users complicated operations and is difficult to manage the editor uniformly, affecting development efficiency and user experience.

Method used

Through the collaborative work of the main process and the rendering process, the editor's management steps are optimized to achieve unified operation management of multiple editors and editor projects, including integrated processing of download, decompression, uninstallation, project management and other functions.

Benefits of technology

It improves users' operating efficiency and experience of the editor, simplifies the game development process, reduces tedious management steps, and improves development efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113893549B_ABST
    Figure CN113893549B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a control method for an editor, including: receiving a first operation instruction from a user, then instructing a rendering process to obtain first operation information corresponding to the first operation instruction according to the first operation instruction, sending the first operation information to a main process, then instructing the main process to process a target editor according to the first operation information, and sending first update indication information to the rendering process, so that the rendering process updates an operation interface based on the first update indication information. By instructing the main process to process the target editor and instructing the rendering process to update the processed target editor, the embodiment of the present application realizes the optimization of the management steps of the editor based on the main process and the rendering process, and improves the user operation experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology. Specifically, this application relates to a control method, device, electronic device, and computer-readable storage medium for an editor. Background Art

[0002] The development process of a game is inseparable from the application of a game editor. A game editor is a software used to write game-related content to facilitate the design and implementation of a game. A game editor generally includes a full set of processes from creating a new item, game production, to packaging and going online. Developers can quickly generate code, edit resources and animations through the game editor, and finally output game products suitable for multiple platforms.

[0003] Existing game editors have many functions, and developers cannot uniformly manage all functions of the game editor, making the game development process cumbersome, with problems such as a long cycle and low efficiency, which affects the user experience. Summary of the Invention

[0004] This application provides a control method, device, electronic device, and computer-readable storage medium for an editor, which is used to solve the technical problem that existing editors have many functions, complex user operations, and it is difficult to uniformly manage the editor.

[0005] According to one aspect of this application, a control method for an editor is provided. The method includes:

[0006] Receiving a first operation instruction from a user;

[0007] According to the first operation instruction, instructing the rendering process to obtain first operation information corresponding to the first operation instruction, and sending the first operation information to the main process;

[0008] According to the first operation information, instructing the main process to process the target editor, and sending a first update instruction message to the rendering process to enable the rendering process to update the operation interface based on the first update instruction message.

[0009] Optionally, a target editor project runs in the target editor;

[0010] The method further includes:

[0011] Receiving a second operation instruction from a user;

[0012] According to the second operation instruction, instructing the rendering process to obtain second operation information corresponding to the second operation instruction, and sending the second operation information to the main process;

[0013] Instruct the main process to process the target editor project according to the second operation information, and send second update instruction information to the rendering process, so that the rendering process updates the operation interface based on the second update instruction information.

[0014] Optionally, the first operation instruction includes at least one of downloading an editor, decompressing an editor, and uninstalling an editor;

[0015] The second operation instruction includes at least one of adding an editor project, deleting an editor project, starting an editor project, importing an editor project, searching for an editor project, modifying the name of an editor project, setting an icon for an editor project, and modifying the version of an editor project.

[0016] Optionally, instructing the main process to process the target editor project according to the second operation information includes:

[0017] When the second operation instruction includes adding an editor project, according to the second operation information corresponding to the second operation instruction, instruct the main process to copy the preset template data of the target editor project to the corresponding project directory and modify the corresponding configuration file; the preset template data is the template data stored in the target editor running the target editor project.

[0018] Optionally, instructing the main process to process the target editor project according to the second operation information includes:

[0019] When the second operation instruction includes modifying the name of an editor project, according to the second operation information corresponding to the second operation instruction, instruct the main process to modify the name of the project directory corresponding to the target editor project and modify the corresponding configuration file.

[0020] Optionally, the method further includes:

[0021] Receiving a second operation instruction from the user;

[0022] When the second operation instruction includes setting an icon for an editor project, according to the second operation instruction, instruct the rendering process to set a preset icon as the project icon of the target editor project in the project directory corresponding to the target editor project and update the operation interface; the preset icon is the project icon stored in the target editor running the target editor project.

[0023] According to another aspect of the present application, there is provided a control device for an editor, the device including:

[0024] A first receiving module, configured to receive a first operation instruction from the user;

[0025] A first obtaining module, configured to instruct the rendering process to obtain first operation information corresponding to the first operation instruction according to the first operation instruction, and send the first operation information to the main process;

[0026] The first processing module is used to instruct the main process to process the target editor according to the first operation information, and send the first update instruction information to the rendering process, so that the rendering process updates the operation interface based on the first update instruction information.

[0027] Optionally, a target editor project runs in the target editor;

[0028] The device further includes:

[0029] The second receiving module is used to receive the second operation instruction of the user;

[0030] The second obtaining module is used to instruct the rendering process to obtain the second operation information corresponding to the second operation instruction according to the second operation instruction, and send the second operation information to the main process;

[0031] The second processing module is used to instruct the main process to process the target editor project according to the second operation information, and send the second update instruction information to the rendering process, so that the rendering process updates the operation interface based on the second update instruction information.

[0032] Optionally, the first operation instruction includes at least one of downloading an editor, decompressing an editor, and uninstalling an editor;

[0033] The second operation instruction includes at least one of adding an editor project, deleting an editor project, starting an editor project, importing an editor project, searching for an editor project, modifying the name of an editor project, setting an icon for an editor project, and modifying the version of an editor project.

[0034] Optionally, instructing the main process to process the target editor project according to the second operation information includes:

[0035] When the second operation instruction includes adding an editor project, according to the second operation information corresponding to the second operation instruction, instruct the main process to copy the preset template data of the target editor project to the corresponding project directory and modify the corresponding configuration file; the preset template data is the template data stored in the target editor running the target editor project.

[0036] Optionally, instructing the main process to process the target editor project according to the second operation information includes:

[0037] When the second operation instruction includes modifying the name of an editor project, according to the second operation information corresponding to the second operation instruction, instruct the main process to modify the name of the project directory corresponding to the target editor project and modify the corresponding configuration file.

[0038] Optionally, the device further includes:

[0039] The third receiving module is used to receive the second operation instruction of the user;

[0040] The third processing module is configured to, when the second operation instruction includes setting an editor project icon, instruct the rendering process to set a preset icon as the project icon of the target editor project in the project directory corresponding to the target editor project according to the second operation instruction, and update the operation interface; the preset icon is the project icon stored in the target editor running the target editor project.

[0041] According to another aspect of the present application, there is provided an electronic device, which includes:

[0042] One or more processors;

[0043] A memory;

[0044] One or more applications, wherein one or more applications are stored in the memory and are configured to be executed by one or more processors, and one or more programs are configured to: execute the control method of the editor shown in the first aspect of the present application.

[0045] According to another aspect of the present application, there is provided a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the control method of the editor shown in the first aspect of the present application.

[0046] According to another aspect of the present application, there is provided a computer program product or a computer program, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the various alternative implementations of any of the above aspects.

[0047] By instructing the main process to process the target editor and instructing the rendering process to update the processed target editor, the embodiments of the present application implement the management steps of optimizing the editor based on the main process and the rendering process, and improve the user's operation experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments of the present application.

[0049] Figure 1 It is one of the flow diagrams of a control method of an editor provided by an embodiment of the present application;

[0050] Figure 2 It is the second of the flow diagrams of a control method of an editor provided by an embodiment of the present application;

[0051] Figure 3 It is the third flowchart diagram of a control method for an editor provided by an embodiment of the present application;

[0052] Figure 4 It is a structural schematic diagram of a control device for an editor provided by an embodiment of the present application;

[0053] Figure 5 It is a structural schematic diagram of a control electronic device for an editor provided by an embodiment of the present application. Detailed implementation manners

[0054] The embodiments of the present application will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the accompanying drawings are exemplary only for explaining the present application and should not be construed as limiting the present invention.

[0055] Those skilled in the art of the present technology can understand that unless specifically stated otherwise, the singular forms "a", "an", "the", and "said" used herein may also include the plural forms. It should be further understood that the term "including" used in the specification of the present application means the presence of the described features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or their groups. It should be understood that when we say an element is "connected" or "coupled" to another element, it can be directly connected or coupled to other elements, or there may also be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The phrase "and / or" used herein includes all or any unit and all combinations of one or more related listed items.

[0056] To make the purpose, technical solutions, and advantages of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0057] In an existing application scenario, when a user develops a game through an editor, due to the large number of functions of the editor, the user cannot uniformly manage all the functions of the editor. At the same time, when the user develops a game through the editor, multiple editors may be used, and each editor has a corresponding editor project. In this case, the user cannot uniformly manage multiple editors and the corresponding editor projects, the development process is relatively complex, it takes a lot of time, and the experience is not good. In addition, the existing game editor cannot rename the editor project name and customize the project icon, which is not conducive to the user to perform real-time updates during the game development process.

[0058] The control method, device and electronic device of the editor provided by this application aim to solve the above technical problems in the prior art.

[0059] The following uses specific embodiments to elaborate in detail on the technical solution of this application and how the technical solution of this application solves the above technical problems. These several specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0060] A control method of an editor is provided in an embodiment of this application, as Figure 1 shown, specifically including:

[0061] Step S101, receive a first operation instruction from the user.

[0062] The first operation instruction is an operation instruction initiated by the user for the target editor.

[0063] The application provided in the embodiment of this application can be built and implemented by Electron. Electron is a framework for building cross-platform desktop applications using JavaScript, HTML, and CSS. The control interface of the application can be responsible for implementation through the renderer process in Electron, and the underlying logic corresponding to the control interface is responsible for implementation through the main process in Electron.

[0064] The user clicks the function button for the target editor in the application to initiate the first operation instruction. Correspondingly, the application receives the first operation instruction from the user.

[0065] In an embodiment of this application, the first operation instruction includes at least one of downloading the editor, decompressing the editor, and uninstalling the editor.

[0066] That is to say, there can be function buttons for downloading the editor, decompressing the editor, and uninstalling the editor in the application. For different function buttons clicked by the user, different first operation instructions are received. For example, when the user performs operation processing on the target editor, the first operation instruction of the user can include at least one of downloading the editor, decompressing the editor, and uninstalling the editor.

[0067] Step S102, according to the first operation instruction, instruct the renderer process to obtain the first operation information corresponding to the first operation instruction, and send the first operation information to the main process.

[0068] The first operation information is the operation information corresponding to the first operation instruction. For example, if the first operation instruction includes downloading the editor, then the first operation information may include operation information such as the download method and download address of the target editor specified by the user for downloading.

[0069] According to the user's first operation instruction, the rendering process is instructed to obtain the first operation information corresponding to the first operation instruction, and send the obtained first operation information to the main process.

[0070] The main process in the embodiments of this application mainly includes two modules, namely, the editor module and the editor project module. Among them, the editor module is used to manage operations such as downloading, decompressing, and uninstalling the editor; the editor project module is used to manage operations such as generating and deleting editor projects.

[0071] The rendering process is composed of multiple components. For example, components for adding an editor project, deleting an editor project, starting an editor project, etc.

[0072] There is a one-to-many correspondence between the main process and the rendering process. The main process and the rendering process jointly implement the operation processing of the editor and editor projects by the user through IPC (Inter-Process Communication).

[0073] The rendering process obtains the first operation information and sends the first operation information to the main process through IPC.

[0074] Step S103, according to the first operation information, instruct the main process to process the target editor, and send the first update instruction information to the rendering process, so that the rendering process updates the operation interface based on the first update instruction information.

[0075] The first update instruction information is the instruction information fed back to the rendering process by the main process after processing the target editor based on the first operation information. The first update instruction information instructs the rendering process to update the operation interface corresponding to the target editor in the application program and display the updated target editor. The main process sends the first update instruction information to the rendering process through IPC.

[0076] The main process receives the first operation information sent by the rendering process and processes the corresponding target editor under the instruction of the first operation information.

[0077] For example, the first operation instruction includes downloading the editor and decompressing the editor. The rendering process obtains the corresponding first operation information and sends the first operation information to the main process. Further, the main process can determine the target editor specified by the user according to the first operation information, download the target editor from the server, and feedback the first update instruction information to the rendering process during the download process to notify the rendering process to update the downloaded target editor and timely inform the user of the progress of downloading the target editor.

[0078] After the editor is downloaded, the main process determines the target editor to be decompressed according to the first operation information sent by the rendering process, that is, the above-mentioned downloaded target editor. The main process decompresses the target editor and feeds back the first update indication information to the rendering process to notify the rendering process to update the decompressed target editor and timely inform the user of the progress of decompressing the target editor. Further, after the target editor is decompressed, the rendering process updates the operation interface to display the decompressed editor for the user to use.

[0079] When the first operation instruction includes uninstalling the editor, the rendering process obtains the corresponding first operation information and sends the first operation information to the main process. Specifically, the user can choose whether to retain the source files of the editor and determine the uninstallation method of the editor by clicking the button in the operation interface. The main process determines the specified editor to be uninstalled by the user and the specific uninstallation method according to the first operation information sent by the rendering process, automatically uninstalls the editor, and notifies the rendering process to update. Further, after the editor is uninstalled, the rendering process updates the operation interface to display the operation interface of the application after uninstalling the specified editor.

[0080] In the embodiment of the present application, by instructing the main process to process the target editor and instructing the rendering process to update the processed target editor, the management steps of the editor are optimized based on the main process and the rendering process, and multiple editors can be managed simultaneously without the user having to download and install the editor on the server by themselves, improving the user's operation experience.

[0081] In addition, the application provided in the embodiment of the present application can manage multiple editors and multiple editor projects corresponding to the editors at the same time. When the user uses the application, multiple editors can be opened, and each editor can open the corresponding editor project. There are different function buttons in the control interface of the application. By clicking different function buttons, the user can open multiple editors and the corresponding editor projects in the application and perform unified operation management on the editors and the corresponding editor projects opened in the application.

[0082] In the embodiment of the present application, a control method for an editor is provided, as Figure 2 shown, which specifically includes:

[0083] Step S201, receiving the second operation instruction of the user.

[0084] The second operation instruction is an operation instruction initiated by the user for the target editor project.

[0085] In the embodiment of the present application, an application that can manage multiple editors and editor projects at the same time is provided. When the user uses the application, multiple editors can be opened, and each editor can open the corresponding editor project.

[0086] There are different function buttons in the control interface of the application. By clicking different function buttons, the user can open multiple editors and corresponding editor projects in the application and perform unified operation management on the editors and corresponding editor projects opened in the application.

[0087] Among them, the application can be built and implemented by Electron. Electron is a framework for building cross-platform desktop applications using JavaScript, HTML, and CSS. The control interface of the application can be responsible for implementation through the rendering process in Electron, while the underlying logic corresponding to the control interface is responsible for implementation through the main process in Electron.

[0088] The user clicks the function button for the target editor project in the application to initiate a second operation instruction. Correspondingly, the application receives the user's second operation instruction.

[0089] In an embodiment of the present application, the second operation instruction includes at least one of adding an editor project, deleting an editor project, starting an editor project, importing an editor project, searching for an editor project, modifying the name of the editor project, setting the icon of the editor project, and modifying the version of the editor project.

[0090] That is to say, there can be function buttons for adding an editor project, deleting an editor project, starting an editor project, importing an editor project, searching for an editor project, modifying the name of the editor project, setting the icon of the editor project, and modifying the version of the editor project in the application. For different function buttons clicked by the user, different second operation instructions are received. For example, when the user performs operation processing on the target editor project, the user's second operation instruction can include at least one of adding an editor project, deleting an editor project, starting an editor project, importing an editor project, searching for an editor project, modifying the name of the editor project, setting the icon of the editor project, and modifying the version of the editor project.

[0091] Step S202: According to the second operation instruction, instruct the rendering process to obtain second operation information corresponding to the second operation instruction and send the second operation information to the main process.

[0092] The second operation information is the operation information corresponding to the second operation instruction. For example, if the second operation instruction includes adding an editor project, the second operation information may include operation information such as the project name, project type, and project storage address of the target editor project specified by the user to be added.

[0093] According to the user's second operation instruction, the rendering process is instructed to obtain second operation information corresponding to the second operation instruction and send the obtained second operation information to the main process.

[0094] In an embodiment of the present application, the main process mainly includes two modules, namely an editor module and an editor project module. Among them, the editor module is used to manage operations such as downloading, decompressing, and uninstalling the editor; the editor project module is used to manage operations such as generating and deleting editor projects.

[0095] The rendering process is composed of multiple components. For example, components for adding an editor project, deleting an editor project, starting an editor project, etc.

[0096] There is a one-to-many correspondence between the main process and the rendering process. The main process and the rendering process jointly implement the operation processing of the editor and the editor project by the user through IPC (Inter-Process Communication).

[0097] The rendering process obtains the second operation information and sends the second operation information to the main process through IPC.

[0098] Step S203: According to the second operation information, instruct the main process to process the target editor project, and send a second update instruction message to the rendering process, so that the rendering process updates the operation interface based on the second update instruction message.

[0099] The second update instruction message is an instruction message fed back to the rendering process by the main process after processing the target editor project based on the second operation instruction. The second update instruction message instructs the rendering process to update the operation interface corresponding to the target editor project in the application program and display the updated target editor project. The main process sends the second update instruction message to the rendering process through IPC.

[0100] The main process receives the second operation information sent by the rendering process and processes the corresponding target editor project under the instruction of the second operation information. After the target editor project is processed, the main process sends a second update instruction message to the rendering process, so that the rendering process updates the corresponding operation interface based on the second update instruction message.

[0101] In an embodiment of the present application, instructing the main process to process the target editor project according to the second operation information in step S203 includes:

[0102] When the second operation instruction includes adding an editor project, according to the second operation information corresponding to the second operation instruction, the main process is instructed to copy the preset template data of the target editor project to the corresponding project directory and modify the corresponding configuration file; the preset template data is the template data stored in the target editor running the target editor project.

[0103] Specifically, when the second operation instruction includes adding an editor project, the rendering process obtains the second operation information corresponding to the second operation instruction, and sends the second operation information to the main process through IPC, instructing the main process to add the target editor project.

[0104] The main process copies the preset template data of the target editor project to the corresponding project directory according to the second operation information and modifies the corresponding configuration file; among them, the preset template data is the template data stored in the application program or the target editor. The preset template data includes the project files of the initial editor project. The project files of the editor project are stored in the corresponding project directory according to a unified rule.

[0105] The configuration file is a computer file that stores the file data required for the application program to run in plain text format. The main process copies the preset template data to the corresponding project directory and modifies the corresponding configuration file, so that the newly added target editor project can run successfully. After the main process finishes the operations corresponding to adding the editor project, it sends the second update indication information to the rendering process through IPC, so that the rendering process updates the corresponding operation interface according to the second update indication information.

[0106] The rendering process receives the second update indication information, updates the user's operation interface, and displays the added editor project.

[0107] In an embodiment of the present application, the instructing the main process to process the target editor project according to the second operation information in step S203 includes:

[0108] When the second operation instruction includes deleting an editor project, according to the second operation information corresponding to the second operation instruction, the main process is instructed to delete the project files in the project directory corresponding to the target editor project and delete the data records in the corresponding configuration file.

[0109] Specifically, only when the target editor project is not in the open state can the user click the delete button for deletion processing. Among them, the state of the editor project specifically includes three states: the open state, the lost state, and the normal state.

[0110] When the second operation instruction includes deleting an editor project, the rendering process obtains the second operation information corresponding to the second operation instruction, and sends the second operation information to the main process through IPC, instructing the main process to delete the target editor project.

[0111] According to the second operation information, the main process deletes the project files in the project directory corresponding to the target editor project and deletes the data records in the corresponding configuration file. In this embodiment, the main process can confirm with the user whether to delete all project files through the rendering process. In other words, the user can choose to delete the target editor project and clear all data records, or only clear the data records and keep the corresponding project files. In one case, the main process deletes the editor project according to the user's selection, deletes the data records of the editor project from the corresponding configuration file, and then sends the second update indication information to the rendering process through IPC, so that the rendering process updates the corresponding operation interface according to the second update indication information.

[0112] The rendering process receives the second update indication information, updates the user's operation interface, and displays the list of editor projects after deleting the target editor project.

[0113] In an embodiment of the present application, the main process is instructed to process the target editor project according to the second operation information in step S203, including:

[0114] When the second operation instruction includes starting the editor project, according to the second operation information corresponding to the second operation instruction, the main process is instructed to start the target editor project.

[0115] Specifically, only when the target editor project is not in the state of being opened or lost, that is, when the target editor project is in the normal state, the target editor project is allowed to be started.

[0116] The user issues a second operation instruction to start the target editor project through the operation interface of the application program. The rendering process obtains the second operation information corresponding to the second operation instruction, and sends the second operation information to the main process through IPC, instructing the main process to start the target editor project.

[0117] The main process starts a child process of a target editor according to the second operation information. The child process of the target editor is used to implement the operation of the target editor project. The application program will record the operation data of the target editor project, and store the relevant operation data to the project directory corresponding to the target editor project through the main process, and modify the corresponding configuration file.

[0118] Specifically, the application program can store the PID (process ID) information of the child process to the configuration file corresponding to the target editor project, so that the user can distinguish different started editor projects by comparing the PID information of the current process and the stored PID information.

[0119] After the main process starts the target editor project, it monitors the corresponding subprocess of the target editor project. When the subprocess is closed, it notifies the rendering process to perform an update. The main process sends the second update instruction information to the rendering process through IPC, so that the rendering process updates the corresponding operation interface according to the second update instruction information.

[0120] In one embodiment of the present application, the processing of the target editor project by the main process according to the second operation information in step S203 includes:

[0121] When the second operation instruction includes importing an editor project, according to the second operation information corresponding to the second operation instruction, the main process is instructed to import the target editor project.

[0122] Specifically, the user can import the target editor project by directly moving into the project directory of the target editor project or by clicking the import button.

[0123] The rendering process obtains the second operation information corresponding to the second operation instruction, and sends the second operation information to the main process through IPC, instructing the main process to import the target editor project.

[0124] The main process receives the second operation information and determines whether the target editor project has been imported according to the configuration file. Specifically, the main process determines whether the target editor project has been imported according to whether there is a data record corresponding to the target editor project in the configuration file. If there is a corresponding data record in the configuration file, it is determined that the editor project has been imported, and the operation of importing the editor project is ended. If there is no corresponding data record, it is determined that the editor project has not been imported, and the operation of importing the editor project continues. The main process modifies the corresponding configuration file, and after the import of the target editor project is completed, it sends the second update instruction information to the rendering process through IPC, so that the rendering process updates the corresponding operation interface according to the second update instruction information and displays the target editor and the target editor project.

[0125] In one embodiment of the present application, as Figure 3 shown, the control method of the editor further includes:

[0126] Step S301, receiving the second operation instruction of the user.

[0127] Step S302, according to the second operation instruction, instruct the rendering process to obtain the second operation information corresponding to the second operation instruction, process the target editor project according to the second operation information, and update the operation interface.

[0128] When the second operation instruction includes searching for an editor project, receive the user's second operation instruction, and instruct the rendering process to obtain second operation information corresponding to the second operation instruction according to the second operation instruction. Among them, the second operation information may be the name information of the target editor project input by the user.

[0129] Specifically, there is a search box for editor projects in the user's operation interface. The user enters the name of the target editor project in the search box, and the corresponding editor project can be searched. In the embodiment of the present application, a fuzzy search method is used to search for the target editor project, which is convenient for the user to use. In other words, the user does not need to enter the complete project name of the target editor project to search for possible editor projects.

[0130] The rendering process performs a search process based on the name of the target editor project and displays the editor projects obtained from the search process; the editor projects obtained from the search process are sorted according to time information; the time information is stored in the configuration file corresponding to the editor project.

[0131] The rendering process obtains the name of the editor project input by the user, searches in the existing editor project directory according to the name of the editor project, obtains the search results, and displays the search results on the user's operation interface. The editor projects in the search results are sorted according to time information, where the time information may be the time when the editor project was last opened, and the time information is stored in the configuration file corresponding to the editor project.

[0132] Sorting the search results of editor projects by time information can enable the user to quickly find the editor project they need, which is convenient for the user to operate.

[0133] In an embodiment of the present application, the control method of the editor further includes:

[0134] Receive the user's second operation instruction.

[0135] When the second operation instruction includes setting the editor project icon, according to the second operation instruction, instruct the rendering process to set the preset icon as the project icon of the target editor project in the project directory corresponding to the target editor project, and update the operation interface; the preset icon is the project icon stored in the target editor running the target editor project.

[0136] Specifically, receive the user's second operation instruction, and instruct the rendering process to obtain second operation information corresponding to the second operation instruction according to the second operation instruction, and process the target editor project according to the operation information.

[0137] Among them, processing the target editor project according to the second operation information includes setting a preset icon as the project icon of the target editor project in the project directory corresponding to the target editor project and updating the operation interface; the preset icon is the project icon stored in the target editor that runs the target editor project.

[0138] When the target editor project is not in the open state or the lost state, that is, when the target editor project is in the normal state, the user can issue a second operation instruction to set the editor project icon through the control interface.

[0139] When the user does not select to customize the editor project icon, the target editor project icon is the default icon. The default icon is the icon data stored in the application of the target editor.

[0140] The rendering process obtains the preset icon and sets it as the project icon of the target editor project. That is to say, the user can also customize the project icon. For example, the rendering process obtains the storage directory of the project icon selected by the user, obtains the project icon determined by the user, and sets it as the project icon of the editor project. It should be noted that after obtaining the project icon determined by the user, the project icon is stored in the project directory corresponding to the editor project, and the project icon is renamed so that the project icon in the project directory conforms to the naming rule of the editor project icon.

[0141] Furthermore, the rendering process updates the user's operation interface and displays the editor project after setting the editor project icon.

[0142] In the embodiment of the present application, the second operation instruction of the user is received, and then according to the second operation instruction, the rendering process is instructed to obtain the second operation information corresponding to the second operation instruction, and the target editor project is processed according to the second operation information, and the operation interface is updated.

[0143] By instructing the rendering process to process the target editor project and updating the processed target editor project, the management steps of the editor project are optimized based on the rendering process, and the editor projects of multiple editors can be managed simultaneously, improving the user's operation experience.

[0144] In an embodiment of the present application, the instruction of the main process to process the target editor project according to the second operation information in step S203 includes:

[0145] When the second operation instruction includes modifying the editor project name, according to the second operation information corresponding to the second operation instruction, the main process is instructed to modify the name of the project directory corresponding to the target editor project and modify the corresponding configuration file. Among them, the second operation information includes the modified name input by the user.

[0146] Specifically, only when the target editor project is not in the opening state or the lost state, that is, when the target editor project is in the normal state, can the user issue a second operation instruction to modify the name of the editor project through the control interface.

[0147] The rendering process obtains the second operation information corresponding to the second operation instruction, and sends the second operation information to the main process through IPC. Correspondingly, the main process modifies the project name of the target editor project, modifies the name of the project directory corresponding to the target editor project to the modified name input by the user, and modifies the corresponding configuration file, and then sends the second update indication information to the rendering process through IPC, so that the rendering process updates the corresponding operation interface according to the second update indication information.

[0148] The rendering process displays the target editor project with the modified project name according to the second update indication information.

[0149] In an alternative embodiment of the present application, the step of instructing the main process to process the target editor project according to the second operation information in step S203 includes:

[0150] When the second operation instruction includes modifying the editor project version, according to the second operation information corresponding to the second operation instruction, the main process is instructed to modify the editor project version and modify the corresponding configuration file. Among them, the second operation information includes the version type data selected by the user.

[0151] Specifically, only when the target editor project is not in the opening state or the lost state, that is, when the target editor project is in the normal state, can the user issue a second operation instruction to modify the editor project version through the control interface.

[0152] The rendering process obtains the second operation information corresponding to the second operation instruction, and sends the second operation information to the main process through IPC. In an embodiment of the present application, the user can be prompted to select whether to switch the editor project version in the form of a pop-up window. After receiving the confirmation indication from the user, the main process changes the project version of the editor by modifying the configuration file in the project directory.

[0153] Then the main process sends the second update indication information to the rendering process through IPC, so that the rendering process updates the corresponding operation interface according to the second update indication information.

[0154] The rendering process displays the target editor project with the modified project version according to the second update indication information.

[0155] It should be noted that the application program provided in the embodiment of the present application can manage multiple editors and multiple editor projects corresponding to the editors at the same time.

[0156] In the embodiments of the present application, by instructing the main process to process the target editor project and instructing the rendering process to update the processed target editor project, the management steps of optimizing the editor project based on the main process and the rendering process are realized, and the editor projects of multiple editors can be managed simultaneously, improving the user operation experience.

[0157] Embodiments of the present application provide a control device 40 for an editor, as Figure 4 shown. The control device 40 includes:

[0158] A first receiving module 401, configured to receive a first operation instruction of a user;

[0159] A first obtaining module 402, configured to instruct the rendering process to obtain first operation information corresponding to the first operation instruction according to the first operation instruction, and send the first operation information to the main process;

[0160] A first processing module 403, configured to instruct the main process to process the target editor according to the first operation information, and send a first update instruction message to the rendering process, so that the rendering process updates the operation interface based on the first update instruction message.

[0161] Optionally, a target editor project runs in the target editor;

[0162] The control device 40 further includes:

[0163] A second receiving module, configured to receive a second operation instruction of a user;

[0164] A second obtaining module, configured to instruct the rendering process to obtain second operation information corresponding to the second operation instruction according to the second operation instruction, and send the second operation information to the main process;

[0165] A second processing module, configured to instruct the main process to process the target editor project according to the second operation information, and send a second update instruction message to the rendering process, so that the rendering process updates the operation interface based on the second update instruction message.

[0166] Optionally, the first operation instruction includes at least one of downloading an editor, decompressing an editor, and uninstalling an editor;

[0167] The second operation instruction includes at least one of adding an editor project, deleting an editor project, starting an editor project, importing an editor project, searching for an editor project, modifying the name of an editor project, setting an icon for an editor project, and modifying the version of an editor project.

[0168] Optionally, instructing the main process to process the target editor project according to the second operation information includes:

[0169] When the second operation instruction includes adding an editor project, according to the second operation information corresponding to the second operation instruction, the main process is instructed to copy the preset template data of the target editor project to the corresponding project directory and modify the corresponding configuration file; the preset template data is the template data stored in the target editor running the target editor project.

[0170] Optionally, according to the second operation information, the main process is instructed to process the target editor project, including:

[0171] When the second operation instruction includes modifying the editor project name, according to the second operation information corresponding to the second operation instruction, the main process is instructed to modify the name of the project directory corresponding to the target editor project and modify the corresponding configuration file.

[0172] Optionally, the control device 40 further includes:

[0173] A third receiving module, configured to receive the user's second operation instruction;

[0174] A third processing module, configured to, when the second operation instruction includes setting an editor project icon, according to the second operation instruction, instruct the rendering process to set a preset icon as the project icon of the target editor project in the project directory corresponding to the target editor project and update the operation interface; the preset icon is the project icon stored in the target editor running the target editor project.

[0175] Applying the control method of an editor provided in an embodiment of the present application, receiving the user's first operation instruction, then according to the first operation instruction, instructing the rendering process to obtain the first operation information corresponding to the first operation instruction, sending the first operation information to the main process, and then according to the first operation information, instructing the main process to process the target editor and sending the first update instruction information to the rendering process, so that the rendering process updates the operation interface based on the first update instruction information.

[0176] In the embodiment of the present application, by instructing the main process to process the target editor and instructing the rendering process to update the processed target editor, the management steps of optimizing the editor based on the main process and the rendering process are realized, and the user's operation experience is improved.

[0177] In the embodiment of the present application, an electronic device is provided, and the electronic device includes: a memory and a processor; at least one program, stored in the memory and configured to, when executed by the processor, compared with the prior art, realize: by instructing the main process to process the target editor and instructing the rendering process to update the processed target editor, the management steps of optimizing the editor based on the main process and the rendering process are realized, and the user's operation experience is improved.

[0178] In an alternative embodiment, an electronic device is provided, such asFigure 5 As shown Figure 5 Figure 5 The electronic device 5000 shown in the figure includes: a processor 5001 and a memory 5003. Among them, the processor 5001 and the memory 5003 are connected, such as connected through a bus 5002. Optionally, the electronic device 5000 may further include a transceiver 5004, and the transceiver 5004 may be used for data interaction between the electronic device and other electronic devices, such as data sending and / or data receiving, etc. It should be noted that in practical applications, the transceiver 5004 is not limited to one, and the structure of the electronic device 5000 does not constitute a limitation to the embodiments of the present application.

[0179]

[0179] The processor 5001 may be a CPU (Central Processing Unit, central processor), a general-purpose processor, a DSP (Digital Signal Processor, data signal processor), an ASIC (Application Specific Integrated Circuit, application-specific integrated circuit), an FPGA (Field Programmable Gate Array, field programmable gate array) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logic blocks, modules, and circuits described in combination with the disclosure of the present application. The processor 5001 may also be a combination that implements computing functions, such as a combination including one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0180] The bus 5002 may include a path for transmitting information between the above components. The bus 5002 may be a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus or an EISA (Extended Industry Standard Architecture, extended industry standard architecture) bus, etc. The bus 5002 may be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 5

[0180] only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.

[0181] The memory 5003 can be a ROM (Read Only Memory), or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory), or other types of dynamic storage devices that can store information and instructions. It can also be an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory), or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0182] The memory 5003 is used to store the application program code for executing the solution of this application and is controlled by the processor 5001 for execution. The processor 5001 is used to execute the application program code stored in the memory 5003 to implement the content shown in the foregoing method embodiments.

[0183] The embodiment of this application provides a computer-readable storage medium, on which a computer program is stored. When it runs on a computer, it enables the computer to execute the corresponding content in the foregoing method embodiments. Compared with the prior art, by instructing the main process to process the target editor and instructing the rendering process to update the processed target editor, the management steps of optimizing the editor based on the main process and the rendering process are realized, and the user's operation experience is improved.

[0184] The embodiment of this application provides a computer program product containing instructions. When it runs on a computer device, it enables the computer device to execute the control method of the editor provided in each of the foregoing method embodiments.

[0185] It should be understood that although the steps in the flowchart of the accompanying drawings are displayed sequentially according to the indication of the arrows, these steps do not necessarily have to be executed sequentially in the order indicated by the arrows. Unless otherwise clearly stated in this article, the execution of these steps is not strictly limited in order and can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages. These sub-steps or stages do not necessarily have to be executed at the same moment, but can be executed at different moments, and their execution order does not necessarily have to be sequential, but can be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.

[0186] The above are only some embodiments of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present invention.

Claims

1. A control method for an editor, characterized in that, Including: Receiving a first operation instruction from a user; the first operation instruction includes at least one of downloading an editor, decompressing an editor, and uninstalling an editor; According to the first operation instruction, instructing a rendering process to obtain first operation information corresponding to the first operation instruction and sending the first operation information to a main process; According to the first operation information, instructing the main process to process a target editor and sending a first update instruction information to the rendering process, so that the rendering process updates an operation interface based on the first update instruction information.

2. The control method of the editor according to claim 1, characterized in that, A target editor project runs in the target editor; The method further includes: Receiving a second operation instruction from the user; According to the second operation instruction, instructing the rendering process to obtain second operation information corresponding to the second operation instruction and sending the second operation information to the main process; According to the second operation information, instructing the main process to process the target editor project and sending a second update instruction information to the rendering process, so that the rendering process updates the operation interface based on the second update instruction information.

3. The control method of the editor according to claim 2, characterized in that, The second operation instruction includes at least one of adding an editor project, deleting an editor project, starting an editor project, importing an editor project, searching for an editor project, modifying the name of an editor project, setting an icon for an editor project, and modifying the version of an editor project.

4. The control method of the editor according to claim 2, characterized in that, The instructing the main process to process the target editor project according to the second operation information includes: When the second operation instruction includes adding an editor project, according to the second operation information corresponding to the second operation instruction, instructing the main process to copy preset template data of the target editor project to a corresponding project directory and modify a corresponding configuration file; the preset template data is template data stored in the target editor running the target editor project.

5. The control method of the editor according to claim 2, characterized in that The instructing the main process to process the target editor project according to the second operation information includes: When the second operation instruction includes modifying the name of an editor project, according to the second operation information corresponding to the second operation instruction, instructing the main process to modify the name of the project directory corresponding to the target editor project and modify a corresponding configuration file.

6. The control method of the editor according to claim 2, characterized in that, The method further includes: Receiving a second operation instruction from the user; When the second operation instruction includes setting an icon for an editor project, according to the second operation instruction, instructing the rendering process to set a preset icon as the project icon of the target editor project in the project directory corresponding to the target editor project and update the operation interface; the preset icon is the project icon stored in the target editor running the target editor project.

7. A control device for an editor, characterized in that, The device includes: A first receiving module, configured to receive a first operation instruction from a user; the first operation instruction includes at least one of downloading an editor, decompressing an editor, and uninstalling an editor; A first obtaining module, configured to instruct a rendering process to obtain first operation information corresponding to the first operation instruction according to the first operation instruction and send the first operation information to a main process; The first processing module is configured to instruct the main process to process the target editor according to the first operation information, and send a first update indication information to the rendering process, so that the rendering process updates the operation interface based on the first update indication information.

8. The control device of the editor according to claim 7, characterized in that, The target editor project runs in the target editor; The device further includes: A second receiving module, configured to receive a second operation instruction from the user; A second obtaining module, configured to instruct the rendering process to obtain second operation information corresponding to the second operation instruction according to the second operation instruction, and send the second operation information to the main process; A second processing module, configured to instruct the main process to process the target editor project according to the second operation information, and send a second update indication information to the rendering process, so that the rendering process updates the operation interface based on the second update indication information.

9. An electronic device, characterized in that, The electronic device includes: One or more processors; A memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to: execute the control method of the editor according to any one of claims 1 to 6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the control method of the editor according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Online document management method, device, system, equipment and storage medium

    CN113392070A