Visual programming interface operation method and device, equipment, medium and product
Through the split-screen display operation, the work area and the block-related area are simultaneously displayed in the visual programming environment, which solves the problem of low efficiency in searching and editing programming blocks, improves programming efficiency and interactive experience, and optimizes the programming process.
Patent Information
- Application Number
- CN202411010084.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-09-17
AI Technical Summary
In a visual programming environment, users need to frequently search and compare programming building blocks in the work area, resulting in low search and editing efficiency, affecting learning interest and human-computer interaction efficiency.
Through the split-screen display operation, the work area and the building block association area are displayed at the same time, and the program construction relationship between the programming building blocks in the building block association area and the programming building blocks in the work area is used to realize the collaborative construction and detailed analysis of the programming building blocks, and improve programming efficiency and interactive experience.
It improves the efficiency and interactive experience of visual programming, reduces the need for multiple display devices, optimizes the programming process, and improves the efficiency of human-computer interaction.
Smart Images

Figure CN118656067A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of human-computer interaction, and in particular to an operation method, device, equipment, medium and product of a visual programming interface. Background Art
[0002] With the development of computer technology, more and more people are learning the basics of programming to enhance their competitiveness and creativity in the field of science and technology. Programming ability has gradually become an important skill in various industries. In order to make it easier for beginners to learn programming knowledge more intuitively and fun, web-based visual programming environments have emerged. In visual programming environments, building blocks are usually used to build programs.
[0003] In the related art, a visual programming environment includes a work area, through which programming blocks can be combined to construct program content, thereby helping to better learn programming using objects in a visual way.
[0004] Usually, a large number of programming blocks are used when constructing program content in the work area, and different programming blocks used usually represent different meanings. Sometimes it may be necessary to compare programming blocks in different positions in the work area. At this time, it is necessary to search back and forth in the work area for the purpose of comparison. Not only is the efficiency of using objects to search for programming blocks low, but the efficiency of editing programming blocks is also low, which affects the interest of objects in learning programming through visual programming and reduces the efficiency of human-computer interaction. Summary of the invention
[0005] The embodiments of the present application provide a method, device, equipment, medium and product for operating a visual programming interface, which can simultaneously operate a block-related area and a first working area in visual programming, thereby optimizing the visual programming process while improving work efficiency and human-computer interaction efficiency. The technical solution is as follows.
[0006] In one aspect, a method for operating a visual programming interface is provided, the method comprising: Displaying a first working area, the first working area is used to construct program content in a visual form based on programming blocks, the programming blocks are basic units used to represent programming logic in visual programming, and the first working area includes first programming blocks; receiving a split-screen display operation for the first working area; In response to the split-screen display operation, the first working area and the block-associated area are displayed, the block-associated area includes a second programming block, and a program construction relationship exists between the second programming block and the first programming block, and the program construction relationship is used to represent that the second programming block cooperates with the first programming block to construct the program content.
[0007] On the other hand, a device for operating a visual programming interface is provided, the device comprising: A display module, used to display a first working area, the first working area is used to construct program content in a visual form based on programming building blocks, the programming building blocks are basic units used to represent programming logic in visual programming, and the first working area includes first programming building blocks; A receiving module, used for receiving a split-screen display operation for the first working area; The display module is further used to display the first working area and the building block associated area in response to the split-screen display operation, wherein the building block associated area includes a second programming building block, and a program construction relationship exists between the second programming building block and the first programming building block, and the program construction relationship is used to represent that the second programming building block cooperates with the first programming building block to construct the program content.
[0008] In an optional embodiment, the display module is also used to display the first working area and the second working area in response to the split-screen display operation, the first working area being used to construct a first program content, and the second working area being the block-associated area for constructing a second program content in a visual form based on the programming blocks; wherein the second program content and the first program content together constitute the program content, and the program content is a logic code for running a program.
[0009] In an optional embodiment, the display module is also used to display multiple trigger groups in response to receiving a group viewing operation for the first working area, wherein the trigger group is composed of at least one trigger, and the trigger is obtained by combining at least one programming building block, and the multiple trigger groups respectively correspond to a working area, and the working area is used to construct the program content based on the programming building blocks in the trigger group; receive the split-screen display operation for the first trigger group among the multiple trigger groups, and the first trigger group corresponds to the second working area.
[0010] In an optional embodiment, the receiving module is further used to receive a selection operation for the first trigger group as the split-screen display operation; The display module is further configured to display the first working area in response to the selection operation for the trigger group identifier, and to position and display the first programming block of the first trigger group in the second working area.
[0011] In an optional embodiment, the receiving module is also used to display event programming blocks corresponding to multiple triggers in the first trigger group, the trigger is used to represent a programming block group obtained by combining the event programming block as the starting programming block, and the event programming block is used to represent a programming block of an event type; a block trigger operation for a first event programming block among multiple event programming blocks is received as the split-screen display operation, and the block trigger operation is used to locate the first event programming block when displaying the second working area.
[0012] In an optional embodiment, the display module is further used to display the first working area and a block definition area in response to the split-screen display operation, and the block definition area is used to obtain the second programming block that has the program construction relationship with the first programming block.
[0013] In an optional embodiment, the display module is further used to display a block definition control in response to receiving a block selection operation for the first programming block in the first working area, the block definition control being used to customize the block parameters to obtain the second programming block on the basis of maintaining the logical function of the first programming block, the block parameters being used to determine the logic implementation method while exerting the logical function corresponding to the programming block; and receiving a control trigger operation for the block definition control as the split-screen display operation.
[0014] In an optional embodiment, the receiving module is further used to display multiple custom programming blocks for application in a working area, wherein the working area includes the first working area; receive a selection operation for a first custom programming block among the multiple custom programming blocks, and display multiple editing options; and receive an option trigger operation for a defined option among the multiple editing options as the split-screen display operation.
[0015] In an optional embodiment, the display module is further used to receive an area size adjustment operation for a boundary trigger bar, wherein the boundary trigger bar is a trigger bar connecting the first working area and the building block associated area, and the area size adjustment operation is used to adjust the relative area ratio between the first working area and the building block associated area; in response to the area size adjustment operation, the size adjustment result is displayed, and the size adjustment result includes at least one of the adjusted first working area and the adjusted building block associated area.
[0016] In an optional embodiment, the display module is also used to receive an area exchange operation for a boundary trigger bar, the first working area is displayed at a first position, the building block associated area is displayed at a second position, and the area exchange operation is used to exchange the display positions of the first working area and the building block associated area; in response to the area exchange operation, the building block associated area at the first position and the first working area at the second position are displayed.
[0017] In an optional embodiment, the display module is also used to display an area control control, which is used to adjust the display status of the first working area and the building block associated area; in response to receiving a first trigger operation for the area control control, the focus area in the first working area and the building block associated area is retained and the non-focus area is canceled, and the focus area is used to indicate the area targeted by the most recent operation.
[0018] In an optional embodiment, the display module is further configured to, in response to the split-screen display operation pointing to a first display position, display the building block associated area at the first display position, and display the first working area.
[0019] In an optional embodiment, the display module is further used to display the first working area at a second display position, the second display position is different from the first display position, and the first working area and the building block associated area are independent of each other.
[0020] In an optional embodiment, the display module is further used to display the building block associated area at a third position in response to the split-screen display operation instruction, displaying the building block associated area of a first size and the first working area of a second size, wherein the second size is determined based on the interface display size and the first size; and to display the building block associated area at a fourth position in response to the split-screen display operation instruction, displaying the building block associated area of a third size and the first working area of a fourth size, wherein the fourth size is determined based on the interface display size and the third size; wherein the third position is different from the fourth position, and the first size is different from the third size.
[0021] In an optional embodiment, the display module is also used to display split-screen prompt information in response to the number of programming blocks used in the first working area reaching a preset threshold, and the split-screen prompt information is used to prompt the creation of a new third working area and display the third working area through the split-screen display operation.
[0022] In an optional embodiment, the display module is also used to display the first working area and the building block-associated area of the first style in response to the operation object pointed to by the split-screen display operation being the first split-screen object; display the first working area and the building block-associated area of the second style in response to the operation object pointed to by the split-screen display operation being the second split-screen object; the first split-screen object and the second split-screen object are different, and the first style and the second style are different.
[0023] On the other hand, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement an operating method of a visual programming interface as described in any of the above-mentioned embodiments of the present application.
[0024] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement an operating method of a visual programming interface as described in any of the above-mentioned embodiments of the present application.
[0025] On the other hand, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a 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 method for operating the visual programming interface described in any of the above embodiments.
[0026] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least: Based on the split-screen display operation of the first working area, the first working area and the block-related area are displayed simultaneously, wherein there is a program construction relationship between the first programming block in the first working area and the second programming block in the block-related area, so that the second programming block cooperates with the first programming block to construct the program content. With the help of the split-screen display operation, the user object is allowed to view and operate multiple areas on a single display device at the same time, which helps to operate the block-related area and the first working area at the same time in visual programming, realize efficient interaction between areas, and also helps to analyze the first programming block in the first working area more carefully through the block-related area, while improving the efficiency of visual programming, it is convenient to compare the differences and correlations between areas, enhance the regional interaction experience in visual programming, reduce the need for multiple display devices, optimize the visual programming process, and improve work efficiency, and improve human-computer interaction efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0028] Figure 1 is a structural block diagram of an operating system provided by an exemplary embodiment of the present application; Figure 2 is a flowchart of an operation method of visual programming provided by an exemplary embodiment of the present application; Figure 3 is a flowchart of an operation method of visual programming provided by another exemplary embodiment of the present application; Figure 4 is a schematic diagram of an interface of a first working area provided by an exemplary embodiment of the present application; Figure 5 is a schematic diagram of an interface of multiple triggers under a trigger group provided by an exemplary embodiment of the present application; Figure 6 is a schematic diagram of an interface displaying a first working area in a single-column mode provided by an exemplary embodiment of the present application; Figure 7 is a schematic diagram of an interface for displaying multiple trigger groups provided by an exemplary embodiment of the present application; Figure 8 is a schematic diagram of an interface displaying multiple event programming blocks provided by an exemplary embodiment of the present application; Fig. 9 A process of displaying a first working area and a second working area based on a split-screen display operation provided by an exemplary embodiment of the present application; Fig.10 It is a schematic diagram of an interface for triggering a recently used control to display historical programming blocks provided by an exemplary embodiment of the present application; Fig.11 is a flowchart of an operation method of visual programming provided by another exemplary embodiment of the present application; Fig.12 It is a schematic diagram of an interface for performing a split-screen display operation on a building block definition control provided by an exemplary embodiment of the present application; Fig.13 is a schematic diagram of an interface for performing a split-screen display operation on a definition option provided by an exemplary embodiment of the present application; Fig.14 is a schematic diagram of a split-screen interface displayed after an option trigger operation provided by another exemplary embodiment of the present application; Fig.15 is a flowchart of an operation method of visual programming provided by another exemplary embodiment of the present application; Fig.16 is a schematic diagram of an interface of a tool area provided by an exemplary embodiment of the present application; Fig.17 is a schematic diagram of parallel display areas based on a split-screen display operation provided by another exemplary embodiment of the present application; Fig.18 This is a schematic diagram of an interface for performing a region size adjustment operation based on a boundary trigger bar provided by an exemplary embodiment of the present application; Fig.19 It is a schematic diagram of an interface showing a block-related area provided by an exemplary embodiment of the present application; Fig. 20 This is a schematic diagram of an interface for displaying prompt information provided by an exemplary embodiment of the present application; Fig.21 It is a simplified project structure diagram provided by an exemplary embodiment of the present application; Fig. 22 is a schematic diagram of enclosing a single programming building block by a bounding box provided by an exemplary embodiment of the present application; Fig.23 is a schematic diagram of enclosing a whole block by a bounding box provided by an exemplary embodiment of the present application; Fig.24 is a schematic diagram of a canvas corresponding to a switching trigger group provided by an exemplary embodiment of the present application; Fig.25 is a flow chart of an operation method of moving a trigger to another trigger group in a related art provided by an exemplary embodiment of the present application; Fig.26 is a flow chart of copying programming blocks provided by an exemplary embodiment of the present application; Fig. 27 This is a rendering flow chart for a single column mode and a double column mode provided by an exemplary embodiment of the present application; Fig.28 is a schematic diagram of a zone control component provided by an exemplary embodiment of the present application; Fig.29 is a background flow chart of opening a new trigger group provided by an exemplary embodiment of the present application; Fig.30 is a schematic diagram of an interface for displaying programming blocks provided by an exemplary embodiment of the present application; Fig.31 is a flow chart showing a block definition area provided by an exemplary embodiment of the present application; Fig.32is a structural block diagram of an operating device for visual programming provided by an exemplary embodiment of the present application; Fig.33 It is a structural block diagram of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0030] First, a brief introduction is given to the terms involved in the embodiments of the present application.
[0031] Visual programming: Visual programming aims to help developers create graphical programming editors, which provide an intuitive interface so that users can build programs by dragging and connecting various program blocks (building blocks); each building block represents a programming concept or operation, such as loops, conditional statements, mathematical operations, etc. Visual programming usually supports multiple programming languages, such as JavaScript, Python, Lua, etc. This means that users can use the same graphical editor to create programs in different languages and convert them into corresponding source code.
[0032] Tool area: A component in visual programming that contains all available programming blocks. Different programming blocks can be organized according to different block categories. Users can drag the required programming blocks from the tool area to the work area for programming. The tool area can be customized according to actual needs and display a specific set of programming blocks.
[0033] Workspace: In the workspace, users can build program content by dragging and combining programming blocks. The workspace provides various operations on programming blocks, such as deletion, modification, copying, and pasting.
[0034] In the related art, the working area can help the user learn programming better in a visual way. However, a large number of programming blocks are usually used in the working area, and different programming blocks used usually represent different meanings. If there is a need to compare programming blocks in different positions in the working area, it is necessary to search back and forth in the working area for the compared programming blocks. Not only is the search efficiency of programming blocks low, but the editing efficiency of programming blocks is also low, which is easy to reduce the user's interest in learning programming through visual programming, and the human-computer interaction efficiency is low.
[0035] In the embodiment of the present application, a method for operating visual programming is introduced, which can operate the block-related area and the first working area simultaneously in the visual programming, optimize the visual programming process, improve work efficiency, and enhance the efficiency of human-computer interaction. The method for operating visual programming provided in the embodiment of the present application can be applied to a variety of usage scenarios such as programming enlightenment scenarios, product development scenarios, business process automation scenarios, robot programming scenarios, audio synthesis scenarios, game development scenarios, etc., and the embodiment of the present application does not limit this.
[0036] In an optional embodiment, the following description is given by taking the application of the operation method of visual programming to a programming enlightenment scenario as an example.
[0037] Schematically, a company has launched a visual programming application for programming beginners, and the user can use it online or download it. Take the user A downloading the visual programming application through the terminal as an example. After downloading, when the user A opens the visual programming application, the first work area is displayed. The first work area is used to show the construction process of the program content in a visual form based on the programming building blocks; after that, when the terminal receives the split-screen display operation for the first work area, the first work area and the building block association area will be displayed on the terminal interface at the same time. There is a program construction relationship between the second programming building block included in the building block association area and the first programming building block in the first work area, so that the second programming building block can cooperate with the first programming building block to build the program content. In this way, the user can view and operate at least two areas at the same time in visual programming, increase the frequency of use of programming building blocks, reduce the threshold for beginners to use visual programming, avoid the problem that the user cannot remember the relevant programming building blocks and cause a high degree of difficulty in programming learning, and improve the efficiency of human-computer interaction.
[0038] In an optional embodiment, the following description is given by taking the application of the operation method of visual programming to a game development scenario as an example.
[0039] Schematically, it is necessary to build complicated program content during the game development process. If a visual programming method is used, it is helpful to simplify the development process and reduce programming errors. During the visual programming process, the developer will display the first working area for building program content in a visual form. If the developer performs a split-screen display operation on the first working area, the first working area and the building block association area will be displayed on the terminal interface at the same time. There is a program construction relationship between the second programming building block included in the building block association area and the first programming building block in the first working area, so that the program content can be constructed by the second programming building block in collaboration with the first programming building block. When the developer needs to view or operate the content in different areas at the same time, the display of the building block association area helps the developer to perform visual programming more efficiently, improve the developer's work efficiency when performing visual programming, and also help the developer and other team members with non-programming backgrounds to carry out interdisciplinary cooperation, enrich the application scenarios of visual programming, and improve the efficiency of human-computer interaction.
[0040] It should be noted that this application can display a prompt interface, pop-up window or output voice prompt information before collecting relevant data of the user and during the process of collecting relevant data of the user. The prompt interface, pop-up window or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining relevant data of the user after obtaining the confirmation operation issued by the user to the prompt interface or pop-up window, otherwise (that is, when the confirmation operation issued by the user to the prompt interface or pop-up window is not obtained), the relevant steps of obtaining relevant data of the user are terminated, that is, the relevant data of the user is not obtained. In other words, all user data collected by this application are collected with the consent and authorization of the user, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of the relevant regions.
[0041] Secondly, the operating system involved in the embodiment of the present application is described. The operation method of visual programming provided in the embodiment of the present application can be implemented by a terminal alone, or by a server, or by a terminal and a server through data interaction, which is not limited in the embodiment of the present application. Optionally, the operation method of visual programming performed interactively by a terminal and a server is used as an example for description.
[0042] For illustration, please refer to Figure 1 The operating system involves a terminal 110 and a server 120 , and the terminal 110 and the server 120 are connected via a communication network 130 .
[0043] In some embodiments, the terminal 110 has a visual programming function. Schematically, the terminal 110 itself has the visual programming function; or the terminal 110 has the visual programming function based on downloading a visual programming application program.
[0044] Optionally, visual programming is a function built into an application, such as a user-generated content (UGC) editor provided in a game application. The UGC editor supports the use of objects to create, adjust, and share custom content (such as virtual maps, virtual scenes, virtual characters, etc.). Schematically, after opening the UGC editor, the visual programming interface is displayed. Players can use the visual programming interface to build virtual maps, set non-player character (Non-Player Character) behavior, set virtual props positions, set virtual object movement speed, and other processes. The use of the UGC editor helps to lower the threshold for creation while maintaining high-quality output; the visual programming function of the UGC editor can effectively help the use of objects in game applications to create a graphical programming editor, thereby prompting the use of objects through programming blocks to build program content through an intuitive programming interface.
[0045] Schematically, the visual programming function is implemented through a programming interface, which includes multiple interactive functions, and the user object performs the visual programming process through the interactive functions. The interactive function includes at least one of the multiple functions such as selection function, magnification function, reduction function, deletion function, and move function. The user object can select the programming building blocks in the programming interface through the selection function, and can also adjust the size of the programming building blocks through the magnification function, reduction function, etc., and can also adjust the state of the programming building blocks in the programming interface through the deletion function, move function, etc. The interactive function is not limited here.
[0046] In some embodiments, when executing the visual programming process, the terminal 110 displays a first working area.
[0047] The first working area is used to construct program content in a visual form based on programming blocks, and programming blocks are basic units used to represent programming logic in visual programming.
[0048] Illustratively, programming blocks may be applied individually or in combination through the first working area to implement logic functions corresponding to the programming blocks.
[0049] The first working area includes a first programming block. Schematically, the first programming block is a programming block used in the first working area, and the first programming block can be any programming block in the first working area, or can be a specific programming block in the first working area.
[0050] In some embodiments, the terminal 110 receives a split-screen display operation for the first working area.
[0051] Schematically, the first working area has a split-screen display function, which is used to simultaneously view and operate multiple independent windows or applications and other interface contents on the screen of the terminal 110. The split-screen display function is very helpful in improving the efficiency of multi-tasking in a visual programming environment, and can easily interact between different tasks without switching to full-screen applications.
[0052] Optionally, the triggering operation on the split-screen display function in the first working area is regarded as the split-screen display operation. Schematically, the split-screen display function is implemented by a split-screen display control, and the triggering operation on the split-screen display control is regarded as the split-screen display operation.
[0053] In some embodiments, the terminal 110 displays the first working area and the building block associated area in response to the split screen display operation.
[0054] Illustratively, the first working area is an area for applying programming building blocks. Based on the split-screen display operation, the building block associated area can be displayed on the interface of the terminal 110 while displaying the first working area; the building block associated area is an area used to assist the first working area in jointly constructing program content.
[0055] The block association area includes a second programming block, and a program construction relationship exists between the second programming block and the first programming block, and the program construction relationship is used to represent that the second programming block cooperates with the first programming block to construct program content.
[0056] Illustratively, the second programming block in the block association area is a block definition introduction of the first programming block in the first working area, such as taking the first programming block as a basis in the second programming block to describe multiple other programming blocks belonging to the first programming block and corresponding definition information; or, the second programming block in the block association area is a block supplement to the first programming block in the first working area, such as the second programming block is different from the first programming block, and the second programming block can be combined with the first programming block to jointly construct program content, etc.
[0057] Optionally, the terminal 110 determines the split-screen content corresponding to the block-associated area to be displayed based on the split-screen display operation, and renders the split-screen content on the screen of the terminal 110 to achieve the purpose of simultaneously displaying the first working area and the block-associated area.
[0058] Optionally, the terminal 110 generates a query request based on the split-screen display operation and sends it to the server 120 through the communication network 130, so as to query the split-screen content corresponding to the building block associated area that currently needs to be displayed with the help of the server 120; the server 120 can feed back the queried split-screen content to the terminal 110, so as to render and display the split-screen content on the screen of the terminal 110, thereby achieving the purpose of simultaneously displaying the first working area and the building block associated area.
[0059] It is worth noting that the above-mentioned terminals include but are not limited to mobile terminals such as mobile phones, tablet computers, portable laptops, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, etc., and can also be implemented as desktop computers, etc.; the above-mentioned servers can be independent physical servers, or they can be server clusters or distributed systems composed of multiple physical servers, or they can also be cloud servers.
[0060] In combination with the above-mentioned noun introduction and application scenarios, the operation method of visual programming provided by this application is described, and the application of this method to a terminal is used as an example for description. Figure 2 As shown, the method includes the following steps 210 to 230.
[0061] Step 210: display the first working area.
[0062] The first working area is used to construct program content in a visual form based on programming blocks, and programming blocks are basic units used to represent programming logic in visual programming.
[0063] Illustratively, the first work area is used to carry the programming building blocks selected by the user in the visual programming, so that the user can drag, drop, combine, configure and other layout adjustment operations on the programming building blocks in the work area. Optionally, the first work area is implemented as a blank canvas area; or, the work area is implemented as a grid-shaped canvas area, etc.
[0064] Schematically, programming blocks are graphical elements in visual programming. Different programming blocks represent different concepts and operations in programming and are used to implement different logical functions.
[0065] In some embodiments, the plurality of programming blocks correspond to block types respectively, and the block type is the type of logic function implemented in visual programming.
[0066] Optionally, the programming building block is understood as a data block encapsulating data execution logic, and the process of applying the programming building block in the first working area is the process of adopting the data execution logic.
[0067] Illustratively, the block type corresponding to the programming block is the logic function type corresponding to the data execution logic, such as: mathematical operation logic function corresponds to mathematical operation type programming block, conditional judgment logic function corresponds to conditional judgment type programming block, string operation logic function corresponds to string operation type programming block, etc.
[0068] Optionally, the building block type can be a type set by the platform itself, or a type customized by the user object in the programming interface. For example, the platform itself sets basic data types such as numeric type and string type; the user object can add object attribute types (such as the object level and object name of the virtual object in the game scene) before visual programming, or can add building block types during visual programming, etc., which are not limited here.
[0069] Optionally, programming blocks of corresponding block types are displayed in the programming interface for different application scenarios, and the block types displayed in different application scenarios may be the same or different. Schematically, when visual programming is performed for a game scenario, the block types of the displayed programming blocks are content related to game programming; when visual programming is performed for a text programming scenario, the block types of the displayed programming blocks are content related to text programming, etc.
[0070] Schematically, the building block types set by the platform when performing visual programming for the game scene are used as an example for explanation. When the programming process of the game program needs to be carried out through the programming interface, the building block types of the multiple programming building blocks displayed on the programming interface include event type, control type, action type, condition type, value type, function type, variable type and other types. Event type is used to indicate the implementation of specific events (such as starting the game, terminating the game, etc.); control type is used to control the direction of logic (such as continuing execution, repeating execution, etc.); action type is used to control the action posture of virtual objects in the game; condition type is used to set conditions during the game process (such as eliminating virtual objects when the blood volume reaches 0, etc.); value type is used to input relevant numerical information (such as turning 45° to the left, etc.); function type is used to determine the execution mode during the logic execution process based on the input numerical information (such as performing mathematical operations, string processing, etc.); variable type is used to assist in adjusting and modifying the logic execution process, etc.
[0071] Optionally, when performing visual programming in the game scene, the player can also customize the type of the programming blocks. Schematically, the object for which the player customizes programming is a virtual object A, and the virtual object A corresponds to multiple building block types including object name, object level, object health value, object mana value, object camp, etc.
[0072] In some embodiments, based on a dragging operation of dragging a programming block to the first working area, the purpose of applying the programming block to the first working area is achieved; or, based on an area triggering operation of the first working area, multiple programming blocks are displayed, and based on a selection operation of the programming block, the purpose of applying the programming block to the first working area is achieved, etc.
[0073] The first working area includes a first programming building block.
[0074] Illustratively, the first programming building block is a programming building block used in the first working area. The first programming building block is any programming building block in the first working area, and may also be a specific programming building block in the first working area.
[0075] Optionally, taking the example that the first programming block is a specific programming block in the first working area, the first working area includes multiple programming blocks, and a selected programming block is regarded as the first programming block, such as clicking on a programming block is regarded as selecting the programming block, and the programming block is regarded as the first programming block, etc.
[0076] Step 220: receiving a split-screen display operation for the first working area.
[0077] Schematically, the split-screen display operation is an operation used to implement the split-screen display function, which is a function provided by the first working area, and is used to simultaneously view and operate multiple independent areas (also referred to as independent windows), and can easily interact between different tasks without switching to the full-screen application.
[0078] Optionally, there is a split-screen display control in the first working area, and the split-screen display function is triggered based on a trigger operation on the split-screen display control, and the trigger operation on the split-screen display control is used as a split-screen display operation.
[0079] Optionally, environmental voice is received during the process of displaying the first working area, and the split-screen display function is automatically triggered when a split-screen instruction is received, that is, the split-screen instruction is used as a split-screen display operation for the first working area.
[0080] Optionally, the first working area includes area identifiers corresponding to other areas respectively, and a dragging operation of dragging the area identifier to a specified position is used as a split-screen display operation to display the area corresponding to the dragged area identifier, etc.
[0081] Step 230: In response to the split-screen display operation, display the first working area and the building block associated area.
[0082] Illustratively, after the terminal receives the split-screen display operation, it will simultaneously display the first working area and the building block-related area, so as to achieve the purpose of split-screen display of displaying other areas while displaying the first working area.
[0083] Among them, the building block associated area is the area displayed based on the split-screen display operation, which is used to assist the first working area in jointly constructing the program content; the purpose of the split-screen display operation is to display at least two areas at the same time, so based on the split-screen display operation, on the basis of retaining the display of the first working area, the building block associated area determined based on the split-screen display operation can be additionally displayed.
[0084] The block association area includes a second programming block, and a program construction relationship exists between the second programming block and the first programming block.
[0085] Illustratively, the second programming block is a programming block displayed in the block association area, and the program construction relationship between the second programming block and the first programming block in the first working area is used to represent that the second programming block cooperates with the first programming block to construct program content.
[0086] Optionally, the second programming block and the first programming block are different programming blocks used to construct program content. For example: in the visual programming of the game, the first programming block in the first working area is "When the player enters the game", the block-associated area is another working area based on the split-screen display operation display, and the second programming block in the block-associated area is "When the game starts". The first programming block and the second programming block are programming blocks in different working areas but used to jointly construct program content, wherein the first programming block is used to cover the logic implementation of "When the player enters the game", and the second programming block is used to cover the logic implementation of "When the game starts", etc. That is: the second programming block can assist the first programming block in constructing program content by covering multiple execution logics.
[0087] Optionally, considering that multiple implementation methods may be involved in program construction, such as both method 1 and method 2 can be executed in state 1, then method 1 and method 2 are two implementation methods in state 1, so the same programming building block may be used in the construction of program content, such as the second programming building block and the first programming building block are the same programming building blocks used to construct program content. For example: in the visual programming of the game, the first programming building block in the first working area is "when the player enters the game", the building block associated area is another working area based on the split-screen display operation display, and the second programming building block in the building block associated area is also "when the player enters the game". The first programming building block and the second programming building block are the same programming building blocks in different working areas but with the same logical functions, and are both used to jointly construct programming building blocks for program content, wherein the first programming building block is used to cover a logical implementation situation when "when the player enters the game" (such as starting the game), and the second programming building block is used to cover another logical implementation situation when "when the player enters the game" (such as viewing a virtual store), etc. That is, the same programming building block can be repeatedly used in the process of constructing program content, and the second programming building block can assist the first programming building block in constructing program content through a process covering multiple implementation methods.
[0088] Optionally, the second programming block is a programming block determined by performing a block definition on the first programming block, and the block definition is used to customize the block parameters in the programming block. The second programming block with fixed block parameters can be obtained through the block definition. The block parameters are used to determine the logic implementation method while exerting the logic function corresponding to the programming block. For example, programming block 1 is used to control the orientation of the virtual object in the virtual environment. If the block parameters of programming block 1 are adjusted to 45 degrees in the x-axis direction and 45 degrees in the y-axis direction, the virtual object is roughly fixed in the virtual environment to face the northeast direction, etc. That is, the second programming block can assist the first programming block in constructing program content, etc. by customizing the block parameters.
[0089] In an optional embodiment, the first working area and the building block associated area are displayed based on the operation object pointed to by the split-screen display operation.
[0090] Schematically, the split-screen display operation displays different building block-related areas for different operation objects; that is, the building block-related area is an area determined based on the split-screen display operation.
[0091] Schematically, the operation object is used to represent the object targeted by the split-screen display operation. The operation object can be a separate programming building block, a building block combination obtained by combining multiple programming building blocks, area identifiers corresponding to different working areas, or function identifiers of multiple programming functions in the first working area, etc. The operation object targeted by the split-screen display operation is not limited here.
[0092] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0093] In summary, based on the split-screen display operation of the first working area, the first working area and the block-associated area are displayed simultaneously, wherein there is a program construction relationship between the first programming block in the first working area and the second programming block in the block-associated area, so that the second programming block cooperates with the first programming block to construct the program content. With the help of the split-screen display operation, the user object is allowed to view and operate multiple areas on a single display device at the same time, which helps to operate the block-associated area and the first working area at the same time in visual programming, realize efficient interaction between areas, and also helps to analyze the first programming block in the first working area more carefully through the block-associated area, while improving the efficiency of visual programming, it is convenient to compare the differences and correlations between areas, enhance the regional interaction experience in visual programming, reduce the need for multiple display devices, optimize the visual programming process, and improve work efficiency, and improve human-computer interaction efficiency.
[0094] In an optional embodiment, the block-related area displayed based on the split-screen display operation is the second work area, and the second work area is another work area for constructing program content in a visual form based on programming blocks. Figure 3 As shown above Figure 2 The illustrated embodiment may also be implemented as steps 310 to 330 as follows; wherein step 230 may be implemented as step 330 as follows.
[0095] Step 310: display the first working area.
[0096] The first working area is used to construct program content in a visual form based on programming blocks. Programming blocks are basic units used to represent programming logic in visual programming. The first working area includes the first programming blocks.
[0097] In some embodiments, the first work area is a work area displayed in a programming interface, and the programming interface is an interface for implementing visual programming. Optionally, if visual programming is implemented through a web page, the programming interface is a web page interface, and accordingly, the first work area is a work area displayed on the web page; or, if visual programming is implemented through an application, the programming interface is a built-in interface of the application, and accordingly, the first work area is a work area displayed in the application, etc.
[0098] Among them, visual programming is a programming method that allows the use of objects to create and edit programs through graphical elements and visual layout. Different from the traditional text code editing method, the visual editing method makes the logic and flow of the program content more intuitive and easy to understand, which helps to quickly understand the program structure.
[0099] In some embodiments, the programming interface may display a tool area in addition to the first working area. The first working area and the tool area are independent areas, or the tool area is located in the first working area.
[0100] Optionally, the tool area is used to display a plurality of programming blocks. When a programming block is applied in the first working area, the application purpose of the programming block is achieved by dragging the programming block in the tool area to the first working area.
[0101] In some embodiments, the programming interface may display an editing area in addition to the first working area. The first working area and the editing area are independent areas, or the editing area is located in the first working area.
[0102] Optionally, the editing area is used to display multiple editing functions, including a copy function (such as copying a programming block, a programming block group, etc. in the first working area), a clone function (such as cloning a programming block, when the programming block changes, the cloned programming block changes accordingly), a delete function (such as deleting a programming block), an annotation function (such as annotating a programming block), a disable function (such as prohibiting the use of a programming block), an insert function (such as inserting a programming block into a programming block group), a pop-up function (such as removing a programming block from a programming block group), etc. In addition, other editing functions such as zooming in and out of the programming block can also be performed through the first working area, which are not limited here.
[0103] In some embodiments, some programming blocks have a parameter editing function, and the parameter editing function is used to adjust parameter information corresponding to the programming blocks when applying the programming blocks, so as to determine the implementation method of the logic while exerting the logic function corresponding to the programming blocks.
[0104] Optionally, a parameter filling box corresponding to the programming block is displayed in the first working area; and a parameter filling operation for the parameter filling box is received.
[0105] Among them, the parameter filling box is used to fill in the building block parameter information; the parameter filling operation is used to determine the logic implementation method based on the building block parameter information while exerting the logic function corresponding to the programming building block.
[0106] Schematically, the parameter editing function of the programming building block is implemented through at least one parameter filling box, and at least one parameter information can be filled in based on the filling operation of the parameter filling box, so as to determine the logic implementation method based on the parameter information while exerting the logic function corresponding to the programming building block. For example: Programming building block 1 includes two parameter filling boxes, which are used to fill in the offset angles in the x-axis direction and the y-axis direction respectively, so as to locate the direction of the virtual object in the virtual environment. For example, if the x-axis direction is filled in as 45 degrees and the y-axis direction is filled in as 45 degrees, it is roughly determined that the virtual object is facing the northeast direction in the virtual environment, etc.
[0107] like Figure 4 , which is a schematic diagram of the interface showing the first work area. The first work area 410 includes a programming building block group obtained by combining multiple programming building blocks, and the first work area 410 also includes an editing area 420, which includes multiple editing functions such as copy function and clone function; in addition, there is a tool area 430 next to the first work area 410, which includes multiple building block types such as event type, control type, action type, condition type, value type, function type, variable type, etc., and each building block type includes at least one programming building block belonging to the building block type and can be applied to the first work area 410.
[0108] Step 320: receiving a split-screen display operation for the first working area.
[0109] Schematically, the split-screen display operation is used to implement a split-screen display function, which is used to view and operate multiple independent areas at the same time, and can easily interact between different tasks without switching to a full-screen application.
[0110] Optionally, the split-screen display operation is implemented by triggering a split-screen display control; or, the split-screen display operation is implemented by selecting a programming building block; or, the split-screen display operation is implemented by selecting a programming building block group; or, the split-screen display operation is implemented by triggering a programming function, etc.
[0111] In an optional embodiment, in response to receiving a group view operation for the first work area, a plurality of trigger groups are displayed.
[0112] Schematically, a trigger group is a content composed of at least one trigger, and a trigger is obtained by combining at least one programming building block. Optionally, a trigger is used to represent a programming building block group composed of a programming building block of an event type as a starting programming building block.
[0113] Schematically, a programming building block set is a combination of multiple programming building blocks. The combination of multiple programming building blocks can be regarded as a whole, that is, a programming building block set; or the multiple programming building blocks can be regarded as independent individuals, that is, the programming building block set includes multiple programming building blocks.
[0114] Optionally, when multiple programming blocks are combined to obtain a programming block group, there is a logical order relationship between the multiple programming blocks, such as programming block 1 is in front and programming block 2 is in the back, etc.; since different programming blocks have their corresponding block types, event-type programming blocks are used to represent code logic blocks that start to execute when event conditions are met. Therefore, the programming block group with event-type programming blocks as the starting programming blocks represents the code logic content that starts to execute when the event conditions are met, and has an event triggering effect. Therefore, the programming block group with event-type programming blocks as the starting programming blocks is called a trigger, and can also be called an event programming block group, which is not limited here.
[0115] Indicatively, Figure 5 , which is a schematic diagram of the interface of multiple triggers under a trigger group. The multiple trigger groups include trigger group 510, trigger group 520, and trigger group 530; trigger group 510 includes trigger 511 with an event type programming block "when the game starts" as the starting programming block, and trigger 512 with an event type programming block "when a signal is received" as the starting programming block.
[0116] Among them, the trigger 511 is represented by the programming building block group 541 in the working area 540, and the multiple programming building blocks in the programming building block group 541 are the programming building blocks belonging to the trigger 511; in addition, the trigger 512 is represented by the programming building block group 542 in the working area 540, and the multiple programming building blocks in the programming building block group 542 are the programming building blocks belonging to the trigger 512.
[0117] Wherein, the multiple trigger groups correspond to one working area respectively.
[0118] Optionally, in order to better organize and manage the various components of the program content, so as to better improve the usability of the program content and reduce the complexity of the program content, multiple work areas may be involved in the process of constructing the program content. Different work areas are used to construct different parts of the program content. Combining the sub-program contents constructed separately in multiple work areas can obtain program content with clearer and smoother logic.
[0119] Illustratively, each trigger group corresponds to a working area, so each working area includes at least one trigger in the trigger group, that is, includes a plurality of programming blocks corresponding to the at least one trigger.
[0120] The working area is used to build program contents based on the programming blocks in the trigger group.
[0121] Schematically, trigger group A corresponds to working area 1, and trigger group A includes trigger A1 and trigger A2, wherein trigger A1 is a programming block group obtained by taking event type programming block 1 - "when the player enters the game" as the starting programming block, and trigger A1 includes not only the programming block "when the player enters the game", but also the programming block "sends a custom signal" and the programming block "plays an animation special effect next to the virtual object that triggers the event", that is, trigger A1 is a programming block group obtained by combining three programming blocks; wherein trigger A2 is a programming block group obtained by taking event type programming block 2 - "when the game starts" as the starting programming block, and trigger A2 includes not only the programming block "when the game starts", but also the programming block "sends a custom signal", that is, trigger A2 is a programming block group obtained by combining two programming blocks; trigger group A corresponding to working area 1 includes trigger A1 and trigger A2, so when working area 1 is displayed, 3 programming blocks subordinate to trigger A1 and 2 programming blocks subordinate to trigger A2 will be displayed.
[0122] In an optional embodiment, a split-screen display operation is received for a first trigger group among multiple trigger groups.
[0123] The first trigger group corresponds to the second working area.
[0124] Illustratively, the first trigger group is any one of the multiple trigger groups. Based on the determination of the first trigger group, the second working area corresponding to the first trigger group can be determined, and the second working area is a working area applying at least one programming building block in the first trigger group.
[0125] In some embodiments, a selection operation for the first trigger group is received as a split-screen display operation.
[0126] Illustratively, the selection operation includes multiple operation forms such as single-click operation, double-click operation, long-press operation, and sliding operation on the first trigger group. For example: after displaying multiple first trigger groups, if you want to expand and display the second working area corresponding to the first trigger group, you can click the first trigger group to select the first trigger group, and use the click operation as a split-screen display operation.
[0127] Optionally, the selection operation may also be an operation for selecting the trigger group identifier of the first trigger group. For example, if multiple trigger groups correspond to a trigger group identifier respectively, selecting the trigger group identifier of the first trigger group may be regarded as a split-screen display operation for the first trigger group.
[0128] Optionally, a configuration operation for the first trigger group is received, and multiple configuration options corresponding to the first trigger group are displayed; and a trigger operation for a split-screen display option among the multiple configuration options is received as a split-screen display operation.
[0129] Optionally, multiple trigger groups each correspond to a group configuration control, and operations on the group configuration control are regarded as configuration operations on the trigger group. When the group configuration control of the first trigger group among the multiple trigger groups is triggered, multiple configuration options corresponding to the first trigger group can be displayed, and different configuration options provide different configuration functions.
[0130] Among them, the multiple configuration options include a split-screen display option, which is used to display the work area corresponding to the trigger group in a split-screen on the interface. Therefore, a trigger operation is performed on the split-screen display option corresponding to the first trigger group, which is used to display the second work area corresponding to the first trigger group in a split-screen on the interface, that is, to achieve the purpose of receiving the split-screen display operation.
[0131] like Figure 6 As shown, it is a schematic diagram of the interface displaying the first working area in single-column mode, which includes two programming building block groups, namely programming building block group 610 and programming building block group 620; the first working area also includes a trigger group control 630, and the group viewing operation is implemented based on the triggering of the trigger group control 630 to display multiple trigger groups.
[0132] like Figure 7, is a schematic diagram of an interface showing multiple trigger groups, including trigger group 710, trigger group 720 and trigger group 730; each trigger group corresponds to a name edit control and a group configuration control, the name edit control is used to edit the name of the trigger group, and the group configuration control is used to configure the trigger group.
[0133] Schematically, trigger group 710 corresponds to group configuration control 711; multiple configuration options are displayed for the triggering of group configuration control 711, such as: "Open on the right", "Clone" and "Delete", where "Open on the right" is used to indicate that the work area corresponding to trigger group 710 is displayed in the right area, "Clone" is used to indicate cloning trigger group 710 to establish a trigger group identical to trigger group 710 in multiple trigger groups, and "Delete" is used to indicate removing trigger group 710 from multiple trigger groups. The configuration options here are only illustrative examples, and multiple configuration options can also include multiple configuration functions such as "Open on the left", "Open on the top", "Move", "Change style", etc., which are not limited here.
[0134] In some embodiments, event programming blocks corresponding to the plurality of triggers in the first trigger group are displayed.
[0135] Among them, the trigger is used to represent the programming building block group obtained by combining the event programming building block as the starting programming building block, and the event programming building block is used to represent the programming building block of the event type; therefore, multiple event programming building blocks correspond to a trigger respectively, and the trigger corresponding to the event programming building block is used to represent the programming building block group combined with the event programming building block as the starting programming building block.
[0136] Optionally, after displaying the first trigger group, a plurality of event programming blocks belonging to the first trigger group are displayed, and the plurality of event programming blocks are programming blocks for constructing program contents in the second working area corresponding to the first trigger group.
[0137] Optionally, when each event programming block is a starting programming block, other programming blocks may be combined under different event programming blocks, such as combined action type programming blocks, condition type programming blocks, etc., that is, the trigger corresponding to the event programming block includes multiple programming blocks; other programming blocks may not be combined under the event programming block, that is, the trigger corresponding to the event programming block only includes the event programming block, which is not limited here.
[0138] In some embodiments, a block triggering operation for a first event programming block among a plurality of event programming blocks is received as a split-screen display operation.
[0139] The block operation is used to locate the first event programming block when the second working area is displayed.
[0140] Illustratively, the first event programming building block is an event programming building block selected from a plurality of event programming building blocks, and can be implemented as any event programming building block from the plurality of event programming building blocks.
[0141] Optionally, the block triggering operation includes multiple triggering forms of operations such as single-click operation, double-click operation, long-press operation, and sliding operation. For example: after displaying multiple event programming blocks, if you want to position and display the first event programming block in the first trigger group while expanding and displaying the second working area corresponding to the first trigger group, you can select the first event programming block belonging to the first trigger group through the block triggering operation under the first trigger group, so as to realize the purpose of positioning and displaying the first event programming block while performing the split-screen display operation.
[0142] In some embodiments, a configuration operation for a first event programming block is received, and multiple configuration options corresponding to the first event programming block are displayed; and a block triggering operation for a split-screen display option in the multiple configuration options is received as a split-screen display operation.
[0143] Optionally, each of the multiple trigger groups includes at least one event programming building block, each event programming building block corresponds to a building block configuration control, and the operation on the building block configuration control is regarded as a configuration operation on the event programming building block. The building block configuration control of the first event programming building block is triggered, and multiple configuration options corresponding to the first event programming building block can be displayed, and different configuration options provide different configuration functions.
[0144] Among them, the multiple configuration options include a split-screen display option, which is used to display the work area corresponding to the trigger group in a split-screen on the interface and position the event programming block at the same time. Therefore, when the split-screen display option corresponding to the first event programming block is triggered, the second work area corresponding to the first trigger group to which the first event programming block belongs is displayed in a split-screen on the interface and the first event programming block is positioned and displayed at the same time, that is, the purpose of receiving the split-screen display operation is achieved.
[0145] like Figure 8 As shown, it is a schematic diagram of an interface showing multiple event programming blocks, including trigger group 810, trigger group 820 and trigger group 830; taking multiple event programming blocks under trigger group 810 as an example, multiple event programming block groups correspond to a name editing control and a block configuration control respectively, the name editing control is used to adjust the name of the event programming block, and the block configuration control is used to configure the event programming block.
[0146] Schematically, the event programming block 811 corresponds to the block configuration control 812; multiple configuration options are displayed for the triggering of the block configuration control 812, such as: "Open on the right", "Clone" and "Delete", where "Open on the right" is used to indicate that the working area corresponding to the trigger group 810 is displayed in the right area and "When a signal is received" is positioned and displayed (i.e., the event programming block 811 is positioned and displayed), "Clone" is used to indicate that the event programming block 811 is cloned to establish an event programming block identical to the event programming block 811 in multiple event programming blocks, and "Delete" is used to indicate that the event programming block 811 is removed from multiple event programming blocks, etc. The configuration options here are only illustrative examples, and the multiple configuration options can also include multiple configuration functions such as "Open on the left", "Open on the top", "Move", "Change style", etc., which are not limited here.
[0147] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0148] Step 330: Display the first working area and the second working area in response to the split-screen display operation.
[0149] Illustratively, when a split-screen display operation is an operation implemented based on triggering a trigger group, when a split-screen display operation is received, the second working area corresponding to the split-screen display operation can be displayed while retaining the first working area on the interface based on the working area corresponding to the selected trigger group.
[0150] Among them, the first working area is used to construct the first program content, the second working area is a block-associated area for constructing the second program content in a visual form based on the programming blocks, the second program content and the first program content together constitute the program content, and the program content is the logic code used to run the program.
[0151] Illustratively, the first working area is used to construct first program content, which is a sub-program content of the program content, such as the first program content is used to implement some functions in the program content; the second working area is used to construct second program content, which is another sub-program content of the program content. Different from the first program content, the second program content is used to implement other functions in the program content, etc.
[0152] Optionally, if the program content is constructed through two working areas, the first program content and the second program content are aggregated to obtain the program content; if the program content is constructed through more working areas, multiple program contents including the first program content and the second program content are aggregated to obtain the program content, etc.
[0153] In an optional embodiment, in response to the split-screen display operation pointing to the first trigger group, the first programming building block in the first trigger group is positioned and displayed in the second working area corresponding to the first trigger group.
[0154] Illustratively, the first trigger group is the operation object pointed to by the split-screen display operation, and the second working area corresponding to the first trigger group is displayed as the block-associated area based on the split-screen display operation; in the process of simultaneously displaying the first working area and the second working area, if the split-screen display operation does not point to a specific programming block in the first trigger group, the first programming block in the first trigger group is positioned and displayed in the second working area.
[0155] Optionally, the first programming block is the programming block ranked first in the first trigger group; or, the first programming block is the first programming block in the first trigger group that is applied to the second working area; or, the first programming block is the programming block with the most applications, etc.
[0156] Indicative, based on Figure 7 The trigger operation of the configuration option "Open on the right" (split screen display option) under the group configuration control 711 is displayed as follows Fig. 9 The interface schematic diagram shown is used to illustrate the process of displaying the first working area and the second working area based on the split-screen display operation.
[0157] It includes a first working area 910 displayed on the left and a second working area 920 displayed on the right; the first working area 910 is a working area pre-displayed on the interface, and the second working area 920 is a working area displayed on the interface in split screen after the first trigger group is split-screen displayed, and the programming block group in the second working area 920 is a plurality of triggers subordinate to the first trigger group, including a trigger 921 with an event type programming block "when the game starts" as the starting programming block, and a trigger 922 with an event type programming block "when the sky environment changes" as the starting programming block, and also includes other triggers not shown.
[0158] Illustratively, if the first programming block in the first trigger group is “When the game starts”, as shown in the second working area 920, “When the game starts” is positioned and displayed in the second working area 920, and other programming blocks are displayed in sequence.
[0159] In an optional embodiment, in response to the split-screen display operation pointing to the first event programming block in the first trigger group, the first event programming block is positioned and displayed in the second working area corresponding to the first trigger group.
[0160] Illustratively, the first event programming block is an event programming block subordinate to the first trigger group. Based on the selection of the first event programming block, it is considered that both the first trigger group and the first event programming block are selected; therefore, based on the situation that the split-screen display operation points to the first event programming block, it is determined that the second working area corresponding to the first trigger is displayed, and the situation that the first time programming block is positioned and displayed is determined. That is: based on the split-screen display operation, while retaining the display of the first working area, the second working area is displayed and the first event programming block is positioned and displayed in the second working area.
[0161] Indicative, based on Figure 8 The trigger operation of the configuration option "Open on the right" (split screen display option) under the middle block configuration control 812 is displayed as follows Fig.10 The interface schematic diagram shown is used to illustrate the process of displaying the first working area and the second working area based on the split-screen display operation.
[0162] It includes a first working area 1010 displayed on the left and a second working area 1020 displayed on the right; the first working area 1010 is a working area pre-displayed on the interface, and the second working area 1020 is a working area displayed on the interface in split screen after a split-screen display operation is performed on the first event programming building block in the first trigger group, and the programming building block group in the second working area 1020 is subordinate to the multiple triggers in the first trigger group.
[0163] Indicatively, based on Figure 8 The first event programming block shown is "When a signal is received" (event programming block 811). When the second working area 1020 corresponding to the first trigger group is displayed, the first event programming block 1021 is positioned and displayed, or the trigger 1022 with the first event programming block as the starting programming block is positioned and displayed; in addition, based on the fact that the second working area 1020 represents the working area corresponding to the first trigger group, the second working area 1020 also includes a trigger 1023 with "When the sky environment changes" as the starting programming block and other triggers not shown, which are not limited here.
[0164] In the above content, the second working area is regarded as the working area displayed after the trigger group in the first working area is triggered. The second working area is a type of split-screen display area, wherein the second programming block can be implemented as any programming block in the second working area, and the first programming block in the first working area is implemented as any programming block in the first working area; since the second working area and the first working area are used together to construct program content, there is a program construction relationship between any programming block in the second working area and any programming block in the first working area, so as to characterize that the second programming block cooperates with the first programming block to construct program content.
[0165] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0166] In summary, the split-screen display operation allows the user to view and operate multiple areas on a single display device at the same time, which helps to operate the block-associated area and the first working area at the same time in visual programming, realize efficient interaction between areas, and also helps to analyze the first programming block in the first working area more carefully through the block-associated area, which improves the efficiency of visual programming and facilitates comparison of differences and correlations between areas, enhances the regional interaction experience in visual programming, reduces the need for multiple display devices, optimizes the visual programming process and improves work efficiency, and improves human-computer interaction efficiency.
[0167] In the embodiment of the present application, the content of the second work area is introduced as the block-associated area. When the operation object pointed to by the split-screen display operation is a trigger group or a trigger, the content displayed on the split-screen needs to be the work area corresponding to the trigger group or the trigger. Therefore, the second work area is displayed while the first work area is displayed. The multiple work areas help to efficiently handle different programming parts when constructing program content, speed up the program construction process through parallel editing, and also help to more easily compare and contrast the programming blocks used in different work areas, greatly improving the flexibility of the workflow, helping to reduce potential errors due to simultaneous operations, improving the readability and clarity of the code, and greatly improving the user experience of visual programming using objects.
[0168] In an optional embodiment, the block-related area displayed based on the split-screen display operation is the block definition area. Fig.11 As shown above Figure 2 The illustrated embodiment may also be implemented as steps 1110 to 1130 as follows; wherein step 230 may be implemented as step 1130 as follows.
[0169] Step 1110, displaying the first working area.
[0170] The first working area is used to construct program content in a visual form based on programming blocks. Programming blocks are basic units used to represent programming logic in visual programming. The first working area includes the first programming blocks.
[0171] Step 1120: receiving a split-screen display operation for the first working area.
[0172] Schematically, the split-screen display operation is used to implement a split-screen display function, which is used to view and operate multiple independent areas at the same time, and can easily interact between different tasks without switching to a full-screen application.
[0173] Optionally, the split-screen display operation is implemented by triggering a split-screen display control; or, the split-screen display operation is implemented by selecting a programming building block; or, the split-screen display operation is implemented by selecting a programming building block group; or, the split-screen display operation is implemented by triggering a programming function, etc.
[0174] In an optional embodiment, in response to receiving a block selection operation for a first programming block in the first work area, a block definition control is displayed.
[0175] Optionally, the block selection operation includes multiple triggering forms of operations such as a single-click operation, a double-click operation, and a long-press operation on the first programming block; after the first working area is displayed, if a block selection operation is performed on the first programming block therein, it is regarded as further viewing the block information corresponding to the first programming block, or as editing the first programming block, etc.
[0176] The block definition control is used to customize the block parameters to obtain the second programming block on the basis of maintaining the logical function of the first programming block, and the block parameters are used to determine the logic implementation method while exerting the logical function corresponding to the programming block.
[0177] Illustratively, after a block selection operation is performed on a first programming block, a block definition control corresponding to the first programming block is displayed in the first work area, and the first programming block can be operated more finely with the help of the block definition control. For example: the first programming block is a programming block with a parameter editing function, and a block definition control can be displayed based on the selection operation of the first programming block, so that while adjusting the block parameters corresponding to the first programming block, the block parameters are fixed to obtain a new second programming block, and the second programming block can achieve the same programming function as the first programming block, but have different programming effects due to the difference in block parameters. For example, the first programming block is function 1, the numerical value of function 1 is 0, and the Boolean value (a logical data type, Boolean value has only two values, namely true and false, or represented by 0 and 1) is 1, wherein the numerical value and the Boolean value are block parameters of the first programming block; if the block parameters are adjusted to obtain the second programming block as function 1', the numerical value of function 1' is 1, and the Boolean value is 0, then the first programming block and the second programming block can realize the same programming function (namely, the programming function corresponding to function 1), but have different programming effects, such as the result indicated by the first programming block is correct, and the result indicated by the second programming block is wrong, etc.
[0178] In some embodiments, based on a block selection operation on a first programming block, a block editing bar is displayed.
[0179] The block editing bar includes a block definition control, and the block editing bar is used to adjust the programming blocks in the first working area.
[0180] Schematically, the block editing bar includes a plurality of block definition controls for realizing different block editing functions, and the selected first programming block can be edited in a variety of ways through the block editing bar. For example: the first programming block can be copied through the "copy" control so as to be pasted to other locations in the current work area or to other work areas; other programming blocks can be selected while selecting the first programming block through the "multi-select" control; the programming block can be deleted from the work area through the "delete" control; a custom function can be created through the "define" control (block definition control) so as to repeatedly apply the custom function, etc.
[0181] In an optional embodiment, a control triggering operation for a block-defined control is received as a split-screen display operation.
[0182] Indicatively, the control trigger operation includes multiple triggering forms of operations such as single-click operation, double-click operation, long-press operation, and drag operation on the block definition control. For example: a single-click operation on the block definition control is used as a split-screen display operation for the first working area; or a long-press operation on the block definition control is used as a split-screen display operation for the first working area; or a drag operation of dragging the block definition control to another position is used as a split-screen display operation for the first working area, such as dragging the block definition control to the right area to achieve a split-screen display operation for the first working area.
[0183] like Fig.12 As shown, it is a schematic diagram of the interface for performing a split-screen display operation on a block definition control. A plurality of programming blocks are displayed in the first working area 1210. Taking the programming block 1211 as the first programming block as an example, if a block selection operation for the first programming block is received, the block definition control 1220 is displayed, such as the block definition control 1220 is a control displayed in the block editing bar 1230. Afterwards, a control trigger operation for the block definition control 1220 can be received as a split-screen display operation, so as to display a block association interface related to the first programming block while displaying the first working area 1210, and the relevant content is introduced in step 1130.
[0184] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0185] In an optional embodiment, multiple custom programming blocks for application in a work area are displayed; a selection operation for a first custom programming block among the multiple custom programming blocks is received, and multiple editing options are displayed; and an option trigger operation for a defined option among the multiple editing options is received as a split-screen display operation.
[0186] The working area includes a first working area. In addition, the working area may also include other working areas such as a second working area, so the working area is a general term for areas where program content is constructed using programming blocks.
[0187] The custom programming block is used to represent a programming block with adjustable block parameters. For example, the custom programming block is a programming block that can adjust the orientation angle; or the custom programming block is a programming block that can adjust the judgment condition; or the custom programming block is a programming block that can adjust the moving speed, etc.
[0188] Illustratively, the plurality of custom programming blocks are programming blocks that can be applied in a working area, such as applying at least one programming block among the plurality of custom programming blocks in a first working area.
[0189] Optionally, a plurality of custom programming blocks are pre-displayed in the first working area; or, a plurality of custom programming blocks are pre-displayed in the tool area outside the first working area; or, after a specific block display control is triggered, a plurality of custom programming blocks are displayed, such as after a function type control is triggered, a plurality of custom programming blocks are displayed.
[0190] Illustratively, the first custom programming block is any one of the multiple custom programming blocks; the selection operation includes at least one of multiple operation forms such as a click operation, a long press operation, a slide operation, and a drag operation on the first custom programming block. If the selection operation is performed on the first custom programming block, multiple editing options corresponding to the first custom programming block are displayed.
[0191] Optionally, the plurality of editing options correspond to an editing function respectively, and are used to adjust the block state of the first custom programming block. For example, the "Edit" option is used to adjust the parameter configuration of the current first custom programming block, the "Define" option is used to generate a second programming block with a new parameter configuration based on the first custom programming block, and the "Delete" option is used to remove the first custom programming block from the plurality of custom programming blocks.
[0192] Illustratively, the multiple editing options include a definition option, and the definition option is used to generate a second programming block by adjusting the block parameters of the first custom programming block. Optionally, an option triggering operation is performed on the definition option as a split-screen display operation, so as to more comprehensively adjust the block parameters of the first custom programming block through the block association interface displayed on the split screen and obtain the second programming block.
[0193] like Fig.13 As shown, it is a schematic diagram of the interface for performing split-screen display operation for definition options. In the first working area 1310, multiple programming blocks are displayed, and in addition, multiple custom programming blocks 1320 for application in the working area are also displayed in the interface (such as triggering multiple custom programming blocks 1320 for the function type control in the tool area 1330); taking the custom programming block 1321 as the first custom programming block as an example, if a selection operation for the first custom programming block is received to display multiple editing options 1340, the multiple editing options 1340 include the definition option 1341; then, the option trigger operation for the definition option 1341 can be received as a split-screen display operation, so as to display the block association interface related to the first custom programming block while displaying the first working area 1310, so as to obtain the second programming block in the block association interface, and the relevant content is introduced in step 1130.
[0194] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0195] Step 1130: In response to the split-screen display operation, display the first working area and the building block definition area.
[0196] The block definition area is used to obtain a second programming block that has a program construction relationship with the first programming block.
[0197] Schematically, block definition usually refers to the process of creating custom programming blocks, which allows the use of objects to encapsulate a set of operations or logic so that they can be reused in multiple places of visual programming; the process of creating custom programming blocks is implemented with the help of the block definition area, which helps to improve the modularity and reusability of the code, making the structure of the program content clearer and more organized.
[0198] The block definition area is an area used to implement the block definition process. The block definition area can be used to adjust the block parameters based on the first programming block to obtain the second programming block, and can also be used to adjust the block parameters based on the custom programming block to obtain the second programming block that can assist the first programming block in constructing program content.
[0199] like Fig.12As shown, it is a schematic diagram of the interface for performing split-screen display operation on the block definition control. The control trigger operation for the block definition control 1220 is received as a split-screen display operation, so that the block definition area 1230 related to the first programming block 1211 is displayed as a block association interface while the first working area 1210 is displayed, and the block definition area 1230 includes a second programming block 1231 that has a program construction relationship with the first programming block 1210. Optionally, the second programming block 1231 is used to display definition information related to the first programming block 1211, such as detailed display of the implementation of the block parameters of the first programming block 1211, wherein the value 1 parameter is set to 0 and the Boolean value 1 is set to "True"; in addition, the user can also adjust the block parameters of the second programming block 1231 based on the block definition area 1230, such as setting the value 1 parameter to 1, setting the Boolean value 1 to "False", etc. That is: the effects of the block definition area and the second programming block are not limited.
[0200] like Fig.14 As shown, for Fig.13 The split screen interface diagram shown in the definition option 1341 is displayed after the option triggering operation. On the basis of retaining the display of the first working area 1410, the block definition area 1420 corresponding to the first custom programming block (custom programming block 1321-self-made code 1) is displayed in split screen. The block definition area 1420 is used to display the self-made code 1 in more detail, and the block parameters (such as: value 1, forward, etc.) therein can also be modified and adjusted to achieve the purpose of obtaining the second programming block in the block definition area 1420. The second programming block can be applied to the first working area 1410 or to other working areas, which is not limited here.
[0201] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0202] In summary, the split-screen display operation allows the user to view and operate multiple areas on a single display device at the same time, which helps to operate the block-associated area and the first working area at the same time in visual programming, realize efficient interaction between areas, and also helps to analyze the first programming block in the first working area more carefully through the block-associated area, which improves the efficiency of visual programming and facilitates comparison of differences and correlations between areas, enhances the regional interaction experience in visual programming, reduces the need for multiple display devices, optimizes the visual programming process and improves work efficiency, and improves human-computer interaction efficiency.
[0203] In the embodiment of the present application, the block association area is introduced as the content of the block definition area. The program content can be constructed in a visual form through the first working area, and the programming blocks can be modified and created through the block definition area, which not only makes it easy for the user to intuitively see the real-time performance of the programming blocks, so as to efficiently test and adjust in the working area, but also helps to quickly iterate and design new programming blocks when defining and using programming blocks. The separation of the working area and the block definition area helps to maintain the organization of the working area, making the construction results of the program clearer, and also helps to independently apply and repeatedly apply the new programming blocks created in the block definition area, optimizing the visualization process while improving the readability and clarity of the code.
[0204] In an optional embodiment, when the first working area and the building block associated area are displayed based on the split screen display operation, the first working area and the building block associated area are connected by a boundary trigger bar; the state between the first working area and the building block associated area can be adjusted by the boundary trigger bar to make the interface presentation more flexible. Fig.15 As shown above Figure 2 The illustrated embodiment may also be implemented as the following steps 1510 to 1570 .
[0205] Step 1510: display the first working area.
[0206] The first working area is used to construct program content in a visual form based on programming blocks. Programming blocks are basic units used to represent programming logic in visual programming. The first working area includes the first programming blocks.
[0207] In some embodiments, the first work area is a work area displayed on a programming interface, and the programming interface is an interface for implementing visual programming. Optionally, in addition to displaying the first work area, the programming interface can also implement a tool area, the first work area and the tool area are independent areas, or the tool area is located in the first work area, etc.
[0208] Optionally, the tool area includes multiple building block types, each building block type includes programming blocks belonging to the building block type; or each building block type includes multiple building block sub-types, each building block sub-type includes programming blocks belonging to the building block sub-type, etc.
[0209] like Fig.16, which is a schematic diagram of the interface of the tool area. It includes multiple building block types, such as event type, control type, action type 1610, condition type, value type, function type and variable type; taking action type 1610 as an example, action type 1610 also includes assignment subtype 1620, array subtype, global subtype and many other building block subtypes subordinate to action type 1610; if assignment subtype 1620 is selected, multiple programming building blocks subordinate to assignment subtype 1620 will be displayed, such as "set variable", "set array variable" and so on.
[0210] In an optional embodiment, in response to the number of programming blocks used in the first working area reaching a preset threshold, split-screen prompt information is displayed.
[0211] The split-screen prompt information is used to prompt the creation of a new third work area and to display the third work area through a split-screen display operation.
[0212] In schematic form, the number of programming blocks in the first working area is detected in real time. If the number of blocks reaches a preset threshold (such as 100, 500, etc.), a split-screen prompt message can be displayed on the interface to prompt the user to create a third working area to share the storage pressure of the first working area when constructing program content. The third working area can then be displayed in a split-screen manner, so that the program content can be constructed more comprehensively by displaying the first working area and the third working area at the same time, which has a higher degree of coordination.
[0213] Step 1520: receiving a split-screen display operation for the first working area.
[0214] Schematically, the split-screen display operation is an operation for implementing the split-screen display function, which is a function provided by the first work area for viewing and operating multiple independent areas at the same time, and can easily interact between different tasks without switching to full-screen applications. For example: based on the split-screen display operation, the first work area and the building block-related area are displayed as different independent areas.
[0215] Optionally, at least two independent areas are displayed based on the split-screen display operation. That is, in the split-screen display operation, not only two independent areas can be displayed simultaneously on the interface, but also three independent areas, four independent areas, or a greater number of independent areas can be displayed simultaneously on the interface, and the number of split-screen displays is not limited here.
[0216] In some embodiments, the split-screen display operation is an operation performed on a first programming block in the first working area; or, the split-screen display operation is an operation performed on a trigger group in the first working area; or, the split-screen display operation is an operation performed on a custom programming block for application in the first working area; or, the split-screen display operation is an operation performed on an editing function in the first working area.
[0217] Schematically, the first working area includes multiple function controls that implement different editing functions. By dragging a function control to a specific area on the interface, the editing area corresponding to the function control can be displayed as a block-associated area for split-screen display, so as to make more macro adjustments to the programming blocks in the first working area, etc. The operation object pointed to by the split-screen display operation is not limited here.
[0218] Step 1530: In response to the split-screen display operation, display the first working area and the building block associated area.
[0219] The block association area includes a second programming block, and a program construction relationship exists between the second programming block and the first programming block, and the program construction relationship is used to represent that the second programming block cooperates with the first programming block to construct program content.
[0220] In some embodiments, the split-screen display operation corresponds to an operation attribute, and the operation attribute includes at least one of multiple attributes such as operation position, operation direction, operation size, operation time, etc. The operation attribute is used to set the operation state achieved by the split-screen display operation.
[0221] Schematically, the operation position is used to set the position where the area (the first working area and / or the building block associated area) after the split-screen display operation is displayed, such as: the operation position of the split-screen display operation is used to indicate the position of the newly added building block associated area displayed in the interface; the operation direction is used to set the relative direction between the areas (the first working area and / or the building block associated area) after the split-screen display operation, such as: the operation direction of the split-screen display operation is used to indicate that the newly added building block associated area is displayed on the right side of the interface, and the first working area is displayed on the left side of the interface; the operation size is used to set the area (the first working area and / or the building block associated area) after the split-screen display operation. For example, the operation size of the split-screen display operation is used to indicate that the newly added block-associated area is the same as the area size of the first working area, or the newly added block-associated area occupies 80% of the interface and the first working area occupies 20% of the interface; the operation time sets the time when the split-screen display operation triggers the split-screen display, such as: the current time is 12:56, and the operation time of the split-screen display operation is 13:30, then based on the constraint of the operation time, the first working area and the block-associated area can be displayed simultaneously at 13:30, that is, the split-screen display process can be delayed based on the operation time, etc.
[0222] In some embodiments, based on the operation attributes corresponding to the split-screen display operation, the first working area and the building block associated area are displayed.
[0223] Optionally, if the operation attribute corresponding to the split-screen display operation indicates that the first working area and the building block associated area are arranged side by side and each occupies half of the interface, the first working area and the building block associated area with the same area size are displayed side by side on the interface.
[0224] like Fig.17 , which is a schematic diagram of the parallel display area based on the split screen display operation, wherein the first working area 1710 and the building block associated area 1720 are displayed side by side on the interface, and the area size of the interface occupied by each is the same.
[0225] Optionally, if the operation attribute corresponding to the split-screen display operation indicates that the first working area is displayed on the left side of the interface and the building block associated area is displayed on the right side of the interface, and each occupies half of the interface, then the first working area and the building block associated area with the same area size are displayed in sequence from left to right on the interface.
[0226] Optionally, if the operation attributes corresponding to the split-screen display operation indicate that the first working area is displayed above the interface, the building block associated area is displayed below the interface, and the first working area occupies 60% of the interface and the building block associated area occupies 40% of the interface, then the first working area with an area occupancy ratio of 60% and the building block associated area with an area occupancy ratio of 40% are displayed in sequence from top to bottom on the interface.
[0227] In some embodiments, in response to the split-screen display operation pointing to the first display position, the block-associated area is displayed at the first display position, and the first working area is displayed.
[0228] Schematically, the first display position is an operation attribute corresponding to the split-screen display operation. When the split-screen display operation points to the first display position, it means that the building block associated area needs to be displayed at the first display position.
[0229] Optionally, the first working area is displayed at the second display position.
[0230] The second display position is different from the first display position, and the first working area and the building block associated area are independent of each other. Schematically, based on displaying the building block associated area at the first display position, other display positions other than the first display position can be used as the second display position, and the first working area can be displayed at the second display position.
[0231] It is worth noting that the operation attributes corresponding to the above split-screen display operations are only illustrative examples and are not limited to this in the embodiments of the present application.
[0232] In some embodiments, in response to a split-screen display operation instruction, the building block associated area is displayed at a third position, displaying the building block associated area of the first size and the first working area of the second size; in response to a split-screen display operation instruction, the building block associated area is displayed at a fourth position, displaying the building block associated area of the third size and the first working area of the fourth size.
[0233] The third position is different from the fourth position, and the first size is different from the third size. That is, when the display positions of the building block associated areas indicated by the split-screen display operation are different, building block associated areas of different sizes will be displayed.
[0234] Optionally, the first size and the second size are the same; or, the first size and the second size are different. Schematically, the second size is a size determined based on the interface display size and the first size. For example, the second size is the difference between the interface display size and the first size.
[0235] Optionally, the third size is the same as the fourth size; or, the third size is different from the fourth size. Schematically, the fourth size is a size determined based on the interface display size and the third size. For example, the fourth size is the difference between the interface display size and the third size.
[0236] In an optional embodiment, the area control control is displayed when the first working area and the building block associated area are displayed; in response to a first trigger operation on the area control control, the focus area in the first working area and the building block associated area is kept displayed, and the non-focus area is canceled.
[0237] The area control is used to keep displaying the focus area and cancel displaying the non-focus area.
[0238] Illustratively, the focus area is the first working area or the building block associated area, and the focus area is used to indicate the area targeted by the most recent operation.
[0239] Optionally, if the most recent operation is an operation of opening a block-associated area, the focus area is the block-associated area; if the most recent operation is an operation of applying a new programming block on the first working area, the focus area is the first working area; if the most recent operation is an operation of clicking on a programming block in the block-associated area, the focus area is the block-associated area, etc.
[0240] That is, the focus area is an operation that changes flexibly along with the operation performed on the area.
[0241] Optionally, a region control control is displayed when the first working area and the building block associated area are displayed, so that the multiple areas displayed on the split screen can be managed more quickly through the region control control.
[0242] Illustratively, if the focus area is the first working area, a first trigger operation is performed on the area control control, then the first working area is retained and the block-associated area is cancelled; if the focus area is the first working area, a first trigger operation is performed on the area control control, then the block-associated area is retained and the first working area is cancelled, etc.
[0243] Optionally, the first trigger operation includes at least one of multiple trigger forms such as a single-click operation and a double-click operation.
[0244] In some embodiments, in response to a second trigger operation on the area control widget, display positions of the first working area and the block-associated area are swapped.
[0245] The second trigger operation is a trigger operation different from the first trigger operation. For example, the first trigger operation is a click trigger operation, and the second trigger operation is a long press trigger operation.
[0246] In an optional embodiment, in response to the operation object pointed to by the split-screen display operation being the first split-screen object, the first working area and the first style of the building block associated area are displayed; in response to the operation object pointed to by the split-screen display operation being the second split-screen object, the first working area and the second style of the building block associated area are displayed.
[0247] The first split screen object and the second split screen object are different, and the first style and the second style are different. That is, when the split screen display operation points to different operation objects, different styles of building block associated areas will be displayed. The style includes a variety of styles such as color, border, thickness, etc., which are not limited here.
[0248] For example: when the operation object pointed to by the split-screen display operation is a trigger group, the rectangular second working area is displayed as the building block associated area; when the operation object pointed to by the split-screen display operation is a definition option, the circular building block definition area is displayed as the building block associated area, etc.
[0249] Alternatively, when the split-screen display operation points to the operation object of trigger group 1, the orange second working area is displayed as the building block associated area; when the split-screen display operation points to the operation object of trigger group 2, the green second working area is displayed as the building block associated area, etc.
[0250] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0251] Step 1540: Receive an area size adjustment operation for the border trigger bar.
[0252] The border trigger bar is a trigger bar connecting the first working area and the block-related area. Optionally, the border trigger bar is a line segment between the first working area and the block-related area; or, the border trigger bar is a narrow strip area between the first working area and the block-related area; or, the border trigger bar is a circular adjustment control between the first working area and the block-related area, etc. The implementation form of the border trigger bar is not limited here.
[0253] The area size adjustment operation is used to adjust the relative area ratio between the first working area and the building block associated area.
[0254] Illustratively, in the default state, the first working area and the building block associated area each have the same area size on the interface. When the user needs to adjust the display size of any area on the interface, the boundary trigger bar can be dragged to implement the area size adjustment operation.
[0255] Optionally, in the split screen state, adjusting the display size of the corresponding area may affect the display size of other areas. For example, in the split screen state, there are two areas. If the display size of area 1 is increased, the display size of the corresponding area 2 will be reduced; similarly, if the display size of area 1 is reduced, the display size of the corresponding area 2 will be expanded.
[0256] Optionally, in the split screen state, adjusting the display size corresponding to a certain area may affect the display size of some areas, but will not affect the display size of other areas. For example, in the split screen state, there are three areas. If the display size of area 1 is increased, the display size of area 2 is reduced, but the display size of area 3 remains unchanged.
[0257] like Fig.18 As shown, it is a schematic diagram of the interface for performing the region size adjustment operation based on the boundary trigger bar. A boundary trigger bar 1830 is connected between the first working area 1810 and the building block associated area 1820; if the boundary trigger bar 1830 is dragged to the left, the region size of the building block associated area 1820 will be enlarged, and the region size of the first working area 1810 will be reduced accordingly, that is, the purpose of adjusting the relative proportion of the region between the first working area and the building block associated area based on the region size adjustment operation is achieved; similarly, if the boundary trigger bar 1830 is dragged to the right, the region size of the building block associated area 1820 will be reduced, and the region size of the first working area 1810 will be enlarged accordingly.
[0258] Step 1550 , in response to the region resizing operation, display the resizing result.
[0259] The size adjustment result is a display result obtained based on the area size adjustment operation, and includes at least one of the adjusted first working area and the adjusted building block associated area.
[0260] Optionally, if the area resizing result is used to reduce or expand a certain area, the resizing result displayed based on the area resizing operation includes the adjusted first working area and the adjusted block-associated area.
[0261] Illustratively, based on the area resizing operation of reducing or expanding a certain area, the resized first working area and the resized building block associated area are displayed on the interface so that the object can be used to operate on the resized first working area; or, the object can be used to operate on the resized building block associated area, etc.
[0262] like Fig.18 , which is a schematic diagram of an interface for adjusting the area size based on a boundary trigger bar. A boundary trigger bar 1830 is connected between the first working area 1810 and the building block associated area 1820; if the boundary trigger bar 1830 is dragged to the left, the area size of the building block associated area 1820 will be expanded, and the area size of the first working area 1810 will be reduced accordingly.
[0263] Optionally, if the area resizing result is used to cancel the display of a certain area, the resizing result displayed based on the area resizing operation is the adjusted first working area (cancelling the display of the block-associated area), or the resizing result is the adjusted block-associated area (cancelling the display of the first working area).
[0264] Indicatively, in Fig.18 On the basis of the above, the boundary trigger bar 1830 is continued to be dragged to the left until the first working area 1810 is canceled on the interface, and the following is displayed: Fig.19 The interface diagram is shown in which the first working area is not displayed on the interface, and the building block associated area 1910 occupies the entire interface.
[0265] Step 1560: Receive a region exchange operation for the border trigger bar.
[0266] The first working area is displayed at a first position, the building block associated area is displayed at a second position, and the area exchange operation is used to exchange the display positions of the first working area and the building block associated area.
[0267] Optionally, the area exchange operation includes at least one of a plurality of triggering forms such as a long press operation and a double click operation on the boundary trigger bar. For example, the first working area is displayed on the left side (first position), and the building block associated area is displayed on the right side (second position), and a double click operation on the boundary trigger bar is received as the area exchange operation, so as to exchange the first working area and the building block associated area.
[0268] Step 1570: In response to the area exchange operation, display the block-associated area at the first position and the first working area at the second position.
[0269] Optionally, in response to the area exchange operation, prompt information is displayed; based on a confirmation operation on the prompt information, the building block associated area at the first position and the first working area at the second position are displayed.
[0270] Indicatively, Fig. 20 As shown, in response to the area exchange operation on the boundary trigger bar, a prompt message 2010 is displayed to prompt the user whether to exchange the left and right canvases (i.e., the first working area 2020 on the left and the building block associated area 2030 on the right); if the user object triggers the confirmation control 2011 in the prompt message 2010 as a confirmation operation on the prompt message, then the building block associated area 2030 on the left and the first working area 2020 on the right are displayed accordingly.
[0271] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0272] In summary, the split-screen display operation allows the user to view and operate multiple areas on a single display device at the same time, which helps to operate the block-associated area and the first working area at the same time in visual programming, realize efficient interaction between areas, and also helps to analyze the first programming block in the first working area more carefully through the block-associated area, which improves the efficiency of visual programming and facilitates comparison of differences and correlations between areas, enhances the regional interaction experience in visual programming, reduces the need for multiple display devices, optimizes the visual programming process and improves work efficiency, and improves human-computer interaction efficiency.
[0273] In the embodiment of the present application, the content of adjusting the display status of the first working area and the block-related area through the boundary trigger bar is introduced. Not only can the relative proportion of the first working area and the block-related area be adjusted through the boundary trigger bar, but any area can also be cancelled to make the interface display more flexible; in addition, the display position of the first working area and the block-related area can also be exchanged through the boundary trigger bar, enriching the split-screen display effect in visual programming and improving the efficiency of human-computer interaction.
[0274] In an optional embodiment, taking the split-screen display operation to display two columns of areas as an example, the operation method of the above-mentioned visual programming interface is called "a dual-column method of a visual programming editor". The visual programming process can be run on devices that support Web browsers, such as personal computers, tablet computers, and smart phones, and can also be accessed through the above-mentioned devices. Applications that provide visualization functions.
[0275] Considering that the program content is relatively complex, a large number of programming blocks are usually used when constructing the program content. Therefore, some programming blocks can be used separately through different canvases, thereby simplifying the number of programming blocks in the work area; a programming block group with an event type as the starting programming block can be called a trigger, and a trigger group includes at least one trigger. Different trigger groups correspond to a working area respectively. The working area can also be called a canvas, which represents the working area where the programming blocks are located; a working area is usually displayed on the programming interface of visual programming, and the working areas corresponding to multiple trigger groups are hidden through trigger group controls.
[0276] Schematically, the data structure in the canvas is explained. Using objects to drag programming blocks in the visual programming interface can create triggers, and you can also customize programming blocks of function types. This process will generate corresponding json files at the bottom of the platform for saving. When using objects to submit the built program content, the terminal will save the json file to the background. The next time you use the object to open this project again in the programming interface, the client will download the project json file from the background, parse it, generate the programming blocks displayed on the programming interface, and display the programming blocks on the canvas.
[0277] In actual projects, there will be multiple canvases, multiple triggers, and corresponding attached data. There are also multi-level relationships between projects and programming blocks, such as Fig.21 As shown, it is a simplified schematic diagram of the project structure, which shows the overall hierarchical division of the project structure, wherein the outer circle and the inner circle are in a one-to-many relationship.
[0278] For example, project 2110 is the abbreviation of the constructed program content. Project 2110 includes multiple trigger groups 2120 . One trigger group 2120 includes multiple blocks 2130 (programming building block groups). One block 2130 includes multiple programming building blocks 2140 .
[0279] Schematically, the programming building block 2140 is represented by attribute parameters such as building block type (category) and building block content (type). Building block types include event type, control type, action type, value type, function definition type, etc. Building block content includes "when the game starts", "set variables", etc. In addition, it also includes building block identification, building block location and size, actual data in the building block (building block parameters), etc., which are not limited here.
[0280] The position and size of the building block are represented by a bounding box, which is a rectangle that includes the x-axis coordinate, y-axis coordinate, building block width, building block height, etc.
[0281] like Fig. 22 As shown, a schematic diagram of enclosing a single programming building block by a bounding box is shown, wherein the bounding box 2210 is a rectangle and the programming building block 2220 is an irregular shape similar to a rectangle.
[0282] Illustratively, a whole block is used to describe a combination of multiple programming building blocks, that is, the above-mentioned programming building block group; a whole block has a whole block representation and also has a whole block bounding box.
[0283] like Fig.23 As shown, a schematic diagram of enclosing a whole block by a bounding box is shown, wherein the whole block bounding box 2310 is a rectangle, and the whole block 2320 is an irregular programming building block group obtained by combining multiple programming building blocks.
[0284] Optionally, the bounding box of the entire block is calculated by the union of the bounding boxes of each internal programming block.
[0285] If the entire block starts with an event-type programming block (i.e., it starts with an event programming block), then the entire block is a trigger, which means it is triggered by an event. Fig.23 The entire block 2330 is a trigger that begins with the event type programming block "When the player enters the game".
[0286] If a block starts with a function type programming block, then the block is a "function definition" block. Alternatively, if the block is not called in other cases, it is a garbage block, that is, a useless block in visual programming.
[0287] If a programming block is not connected to any other programming blocks, such as Fig.23 The programming building block 2340 at the lower right corner constitutes a whole block by itself, that is, the whole block can include at least one programming building block.
[0288] Therefore, the trigger group is intuitively all the programming blocks in a canvas, and the non-trigger programming blocks that are not event-type starting programming blocks are also included in the trigger group.
[0289] Optionally, the trigger group also has a trigger group identifier and includes a name of the trigger group, and may also include at least one corresponding bounding box of the entire block in the trigger group and all programming blocks connected therein, which is not limited here.
[0290] A project can contain multiple trigger groups, such as Fig.24 As shown, a schematic diagram of a canvas corresponding to a switching trigger group is introduced, which includes multiple trigger groups 2410, and different trigger groups can be switched through a trigger group panel 2420.
[0291] In the related art, canvas 1 corresponding to trigger group A is displayed by default when entering the programming interface. Based on the triggering of the trigger group control, canvases corresponding to multiple trigger groups are displayed. If canvas 2 corresponding to trigger group B is selected, canvas 2 will be displayed on the programming interface and canvas 1 will be cancelled, and then all programming blocks belonging to trigger B will be loaded on canvas 2, that is: the working area in visual programming is displayed in a single column in the related art.
[0292] Indicatively, Fig.25 The figure shows the operation method of moving a trigger to another trigger group in the related art.
[0293] Step 2510, open the source trigger group.
[0294] The source trigger group is used to indicate the trigger group where the trigger to be moved is located, the trigger group opposite to the source trigger group is the target trigger group, and the target trigger group is used to indicate the trigger group where the trigger to be moved is located after being moved. Indicatively, if the trigger in the source trigger group needs to be moved to another trigger group, the moved trigger group is the target trigger group.
[0295] Among them, after the trigger is moved, it can continue to exist in the source trigger group, or it can be removed from the source trigger group and displayed, which is not limited here.
[0296] Schematically, when a source trigger group is opened, a canvas corresponding to the source trigger group is displayed.
[0297] Step 2520, scroll the canvas to the specified trigger.
[0298] Indicatively, the designated trigger is the trigger in the source trigger group that needs to be moved; after displaying the canvas corresponding to the source trigger group, scroll the canvas to the designated trigger.
[0299] Step 2530: Check whether there are any programming blocks that need to be copied.
[0300] Illustratively, each trigger includes at least one programming building block. After scrolling the canvas to the specified trigger, if there is a programming building block to be copied in the specified trigger, the following step 2540 is executed; if there is no programming building block to be copied in the specified trigger, the execution of the process is terminated.
[0301] Step 2540, select a programming block.
[0302] Indicatively, a programming block is selected by single-clicking, double-clicking, long-pressing, etc. on the programming block.
[0303] Step 2550, click Copy in the toolbar below.
[0304] Optionally, based on the selection process of the programming building block, a toolbar (ie, the building block editing bar mentioned above) is displayed below, and the toolbar includes a copy control for indicating that the selected programming building block is copied.
[0305] Step 2560, open the target trigger group.
[0306] Indicatively, the target trigger group is the trigger group to which the copied programming blocks need to be pasted. Opening the target trigger group means displaying the canvas corresponding to the target trigger group. Based on the related technology, the canvas is displayed in a single column, so the canvas corresponding to the source trigger group is cancelled.
[0307] Step 2570, click Paste.
[0308] Schematically, click Paste in the toolbar below the canvas corresponding to the target trigger group to paste the copied programming blocks into the current canvas.
[0309] Step 2580, drag the programming block to the specified position.
[0310] Indicatively, the programming block copied and pasted to the canvas corresponding to the target trigger group is dragged to the specified position to apply the programming block at the specified position.
[0311] If it is necessary to copy new programming blocks from the source trigger group (the above source trigger group or a new source trigger group) to the target trigger group, it is necessary to execute again from the above step 2510. That is, the number of the above operations is approximately: the number of programming blocks to be copied * 7.
[0312] In an optional embodiment, compared with the above single-column display method of the working area (canvas), a double-column display method is introduced to simultaneously display the contents of the source trigger group canvas and the target trigger group canvas, such as Fig.26 As shown above Figure 2 The illustrated embodiment may also be implemented as the following steps 2610 to 2650 .
[0313] Step 2610, open the source trigger group.
[0314] The source trigger group is used to indicate the trigger group where the trigger to be moved is located, the trigger group opposite to the source trigger group is the target trigger group, and the target trigger group is used to indicate the trigger group where the trigger to be moved is located after being moved. Indicatively, if the trigger in the source trigger group needs to be moved to another trigger group, the moved trigger group is the target trigger group.
[0315] Among them, after the trigger is moved, it can continue to exist in the source trigger group, or it can be removed from the source trigger group and displayed, which is not limited here.
[0316] Schematically, when a source trigger group is opened, a canvas corresponding to the source trigger group is displayed.
[0317] Step 2620, scroll the canvas to the specified trigger.
[0318] Indicatively, the designated trigger is the trigger in the source trigger group that needs to be moved; after displaying the canvas corresponding to the source trigger group, scroll the canvas to the designated trigger.
[0319] Step 2630, open the target trigger group on the right.
[0320] Schematically, the target trigger group is the trigger group to which the copied programming blocks need to be pasted. Opening the target trigger group means displaying the canvas corresponding to the target trigger group. The operation method of the visual programming interface introduced in this embodiment is schematically shown as a double-column display state. Therefore, while retaining the canvas corresponding to the source trigger group, the canvas corresponding to the target trigger group is displayed.
[0321] Optionally, for example, a canvas corresponding to a source trigger group is reserved on the left side of the screen, and a canvas corresponding to a target trigger group is reserved on the right side of the screen.
[0322] Step 2640, scroll the right canvas to the specified trigger.
[0323] Indicatively, taking the canvas corresponding to the target trigger group displayed on the right as an example, scroll the canvas on the right to the specified trigger, where the specified trigger is the trigger to which the copied programming block needs to be pasted.
[0324] Step 2650, drag the programming block.
[0325] Schematically, the programming blocks that need to be dragged and copied to the specified trigger in the target trigger group are found from the canvas corresponding to the source trigger group. The process of dragging the programming blocks in the source trigger group to the specified trigger corresponding to the target trigger group is regarded as the process of copying the programming blocks in the source trigger group to the target trigger group.
[0326] That is, the number of operations for copying programming blocks to the target trigger group in the above double-column display mode is approximately: the number of programming blocks to be copied + 4, which greatly improves the efficiency of copying programming blocks in different trigger groups.
[0327] In an optional embodiment, if Fig. 27 As shown, the rendering process in single-column mode and double-column mode is explained.
[0328] Step 2710, load the project json file and parse it.
[0329] Indicatively, after saving the json file to the background, if you need to load the project content, you need to load the project json file and parse it.
[0330] Step 2720, whether double column.
[0331] Determine whether it is a double-column display situation; if not, execute step 2731; if so, execute step 2741.
[0332] Step 2731, retrieve the corresponding trigger group data from the json file.
[0333] Indicatively, if the display is in a single column, the corresponding trigger group data is taken out from the JSON file for subsequent rendering.
[0334] Step 2732, traverse and render each programming building block.
[0335] Schematically, multiple programming blocks are rendered and displayed based on the json file.
[0336] Step 2741, retrieve the trigger group data on the left from the json file.
[0337] Indicatively, if the display is in double columns, the trigger group data on the left is taken out from the JSON file.
[0338] Step 2742, render each programming block in the left half.
[0339] Illustratively, the programming blocks that should be displayed on the left are rendered and displayed in the left area. If the left area is the first working area, the programming blocks in the first working area are rendered and displayed.
[0340] Step 2743, retrieve the trigger group data on the right from the json file.
[0341] Indicatively, if the display is double-column, the trigger group data on the right is taken out from the JSON file.
[0342] Step 2744, render each programming block in the right half.
[0343] Illustratively, the programming blocks that should be displayed on the right are rendered and displayed in the right area. If the right area is a block-related area, the programming blocks in the block-related area are rendered and displayed.
[0344] Step 2745, render the partition area.
[0345] Indicatively, it is also necessary to render the left area and the dividing area in the middle of the right area, such as rendering a display boundary trigger bar.
[0346] Step 2750, render toolbars and other panels.
[0347] Indicatively, the toolbar and other panel contents also need to be rendered.
[0348] Optionally, when the project json file is loaded into the runtime environment, only the trigger group currently displayed in the foreground will be focused on, and the data structure in memory is as follows: The values of single column mode (normal mode) are as follows: Schematically, triggersList represents the trigger group list. When displayed in a single column, it is the data of the currently opened trigger group; columnNum represents the number of columns, and the value is 1 in a single column; focusIndex represents the representation of the focus area, and the value is 0 in a single column.
[0349] The values of double column mode are as follows: triggersList has two items, such as the two trigger groups on the left and right; columnNum takes the value of 2 in double columns; when the focus area is on the left, focusIndex takes the value of 0, and when the focus area is on the right, focusIndex takes the value of 1. The number of areas can be expanded to 3 or 4 columns, and the above example takes the support of two columns as an example.
[0350] Indicatively, Fig.28As shown, when the columnNum value is 1, the area control control is represented by icon 2810; when the columnNum value is 2 and the focusIndex value is 0, the area control control is represented by icon 2820, indicating that the focus area is the right area; when the columnNum value is 2 and the focusIndex value is 1, the area control control is represented by icon 2830, indicating that the focus area is the left area, etc., which is not limited here.
[0351] In an optional embodiment, if Fig.29 As shown in the figure, the background process of opening a new trigger group is explained.
[0352] Step 2910, adding the identifier of the newly opened trigger group to the interface space.
[0353] Schematically, the interface space corresponding to the interface displayed on the terminal is identified as WorkspaceData. If a new trigger group is opened, the identifier of the trigger group is added to the interface space so that the canvas corresponding to the new trigger group is displayed on the interface corresponding to the interface space.
[0354] Step 2920, the number of columns becomes 2; the focus becomes 1.
[0355] Indicatively, if the display is double-column, the number of columns is 2, the focus area defaults to the newly opened area, and the focus value is 1.
[0356] Step 2930, render the canvas in double column mode.
[0357] Schematically, the two side canvases are rendered in double columns.
[0358] Step 2940, whether to specify a trigger.
[0359] Illustratively, if a specified trigger is selected, step 2950 is executed; if no specified trigger is selected, the process ends.
[0360] Step 2950: Move the designated trigger in the right half of the canvas to the top.
[0361] Indicatively, if a specified trigger is selected, the specified trigger is moved and displayed on the right half of the canvas, such as displaying the specified trigger at the top.
[0362] like Fig.30 As shown, when clicking on the mark 3010 corresponding to the trigger group, it means that the selected trigger group needs to be assigned to the selected trigger group instead of the specified trigger in the selected trigger group. Therefore, multiple programming blocks (such as Fig.30The solid arrow in the middle indicates the content. Taking the custom function 1 as the first programming building block as an example, based on the selection of the trigger group, multiple programming building blocks in the trigger group are displayed starting from the custom function 1); when the mark 3020 corresponding to a trigger in the trigger group is clicked, it means that a specific trigger in the trigger group is assigned at this time, so at least one programming building block in the trigger can be located and displayed (such as Fig.30 The dashed arrow in the middle indicates the content. If the selected specified trigger is "When the game starts", the programming blocks in the trigger "When the game starts" will be positioned to display the trigger).
[0363] In some embodiments, the block-related area displayed based on the split-screen display operation is taken as an example of a block definition area, such as Fig.31 As shown, the process of displaying the building block definition area is explained, taking the building block definition area displayed on the right as an example.
[0364] Step 3110, query the function definition building block in the project json file according to the function identifier.
[0365] In an illustrative manner, a programming block of the selected function type is determined, and the programming block of the function type is searched in the project json according to the block identifier of the programming block, that is, the custom programming block is searched.
[0366] Step 3120, whether it is currently double column.
[0367] Illustratively, determine whether the current display format is double-column; if not, execute step 3131; if so, execute step 3141.
[0368] Step 3131, release the data memory of the right canvas.
[0369] Indicatively, if the current display is not double-column, the data memory of the right canvas is released, that is, the content in the right area is not displayed.
[0370] Step 3132, the right screen draws the function definition building block.
[0371] Schematically, programming blocks related to function definition are displayed in the right area, and the right area and the left area are connected areas in the case of single-column display.
[0372] Step 3141, the original image is reduced in size by half on the left.
[0373] Schematically, the original image is reduced to the left area, and an independent right area remains on the right.
[0374] Step 3142, rendering the canvas areas on both sides.
[0375] Indicatively, the content that should be rendered to the two side areas is queried based on the JSON file.
[0376] Step 3143, render the partition area.
[0377] Indicatively, it is also necessary to render the left area and the dividing area in the middle of the right area, such as rendering a display boundary trigger bar.
[0378] Step 3150, render toolbars and other panels.
[0379] Indicatively, the toolbar and other panel contents also need to be rendered.
[0380] In some embodiments, the sizes of the two images can be changed by dragging the separator, and the interface content can be re-rendered; when rendering, pay attention to the space of the canvas and the position of the separator, and other processes remain unchanged.
[0381] In some embodiments, when the double-column canvas is closed, the screen data that does not belong to the focus area will be cleared and then re-rendered.
[0382] In some embodiments, the left area and the right area can be interchanged, and the memory data is valid and does not need to be destroyed or rebuilt. For example, for the interface space WorkspaceData, it is only necessary to swap the two data in triggersIdList, change focus from 0 to 1 or from 1 to 0, and then re-render the entire canvas.
[0383] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.
[0384] In summary, the split-screen display operation allows the user to view and operate multiple areas on a single display device at the same time, which helps to operate the block-associated area and the first working area at the same time in visual programming, realize efficient interaction between areas, and also helps to analyze the first programming block in the first working area more carefully through the block-associated area, which improves the efficiency of visual programming and facilitates comparison of differences and correlations between areas, enhances the regional interaction experience in visual programming, reduces the need for multiple display devices, optimizes the visual programming process and improves work efficiency, and improves human-computer interaction efficiency.
[0385] In the embodiment of the present application, the operation process of copying programming blocks is simplified. The dual-column mode allows the user to edit multiple trigger groups at the same time, avoiding the frequent switching of trigger groups, simplifying the copy and paste steps, and improving the intuitiveness and convenience of the operation; in addition, the working area and the block definition area can be displayed in two columns, reducing the number of blocks in a single trigger group, thereby shortening the loading time, avoiding frequent reloading and destruction of trigger groups, and improving the system response speed. The user can also manually adjust the width of the two columns to meet different editing needs and provide better interactive feedback.
[0386] Fig.32 is a structural block diagram of a visual programming operation device provided by an exemplary embodiment of the present application, such as Fig.32 As shown, the device includes the following parts: Display module 3210, used to display a first work area, the first work area is used to construct program content in a visual form based on programming building blocks, the programming building blocks are basic units used to represent programming logic in visual programming, and the first work area includes first programming building blocks; A receiving module 3220 is used to receive a split-screen display operation for the first working area; The display module 3210 is further used to display the first working area and the block-associated area in response to the split-screen display operation, wherein the block-associated area includes a second programming block, and a program construction relationship exists between the second programming block and the first programming block, and the program construction relationship is used to represent that the second programming block cooperates with the first programming block to construct the program content.
[0387] In an optional embodiment, the display module 3210 is also used to display the first working area and the second working area in response to the split-screen display operation, wherein the first working area is used to construct the first program content, and the second working area is the block-associated area for constructing the second program content in a visual form based on the programming blocks; wherein the second program content and the first program content together constitute the program content, and the program content is the logic code for running the program.
[0388] In an optional embodiment, the display module 3210 is also used to display multiple trigger groups in response to receiving a group viewing operation for a first working area, wherein the trigger group is composed of at least one trigger, and the trigger is obtained by combining at least one programming building block, and the multiple trigger groups respectively correspond to a working area, and the working area is used to construct the program content based on the programming building blocks in the trigger group; receive the split-screen display operation for the first trigger group among the multiple trigger groups, and the first trigger group corresponds to the second working area.
[0389] In an optional embodiment, the receiving module 3220 is further configured to receive a selection operation for the first trigger group as the split-screen display operation; The display module 3210 is further configured to display the first working area in response to the selection operation for the trigger group identifier, and to position and display the first programming block of the first trigger group in the second working area.
[0390] In an optional embodiment, the receiving module 3220 is also used to display event programming blocks corresponding to multiple triggers in the first trigger group, the trigger is used to represent a programming block group obtained by combining the event programming block as the starting programming block, and the event programming block is used to represent a programming block of an event type; receiving a block trigger operation for a first event programming block among multiple event programming blocks as the split-screen display operation, and the block trigger operation is used to locate the first event programming block when displaying the second working area.
[0391] In an optional embodiment, the display module 3210 is further used to display the first working area and a block definition area in response to the split-screen display operation, wherein the block definition area is used to obtain the second programming block that has the program construction relationship with the first programming block.
[0392] In an optional embodiment, the display module 3210 is further used to display a block definition control in response to receiving a block selection operation for the first programming block in the first working area, wherein the block definition control is used to customize the block parameters on the basis of maintaining the logical function of the first programming block to obtain the second programming block, and the block parameters are used to determine the logic implementation method while exerting the logical function corresponding to the programming block; and receive a control trigger operation for the block definition control as the split-screen display operation.
[0393] In an optional embodiment, the receiving module 3220 is also used to display multiple custom programming blocks for application in a working area, wherein the working area includes the first working area; receive a selection operation for a first custom programming block among the multiple custom programming blocks, and display multiple editing options; receive an option trigger operation for a defined option among the multiple editing options as the split-screen display operation.
[0394] In an optional embodiment, the display module 3210 is further used to receive an area size adjustment operation for a boundary trigger bar, wherein the boundary trigger bar is a trigger bar connecting the first working area and the building block associated area, and the area size adjustment operation is used to adjust the relative area ratio between the first working area and the building block associated area; in response to the area size adjustment operation, the size adjustment result is displayed, and the size adjustment result includes at least one of the adjusted first working area and the adjusted building block associated area.
[0395] In an optional embodiment, the display module 3210 is also used to receive an area exchange operation for a boundary trigger bar, the first working area is displayed at a first position, the building block associated area is displayed at a second position, and the area exchange operation is used to exchange the display positions of the first working area and the building block associated area; in response to the area exchange operation, the building block associated area at the first position and the first working area at the second position are displayed.
[0396] In an optional embodiment, the display module 3210 is also used to display an area control control, which is used to adjust the display status of the first working area and the building block associated area; in response to receiving a first trigger operation on the area control control, the focus area in the first working area and the building block associated area is retained and the non-focus area is canceled, and the focus area is used to indicate the area targeted by the most recent operation.
[0397] In an optional embodiment, the display module 3210 is further configured to display the block-associated area at the first display position and the first working area in response to the split-screen display operation pointing to the first display position.
[0398] In an optional embodiment, the display module 3210 is further configured to display the first working area at a second display position, the second display position is different from the first display position, and the first working area and the building block associated area are independent of each other.
[0399] In an optional embodiment, the display module 3210 is further used to display the building block associated area at a third position in response to the split-screen display operation instruction, display the building block associated area of a first size and the first working area of a second size, wherein the second size is determined based on the interface display size and the first size; and to display the building block associated area at a fourth position in response to the split-screen display operation instruction, display the building block associated area of a third size and the first working area of a fourth size, wherein the fourth size is determined based on the interface display size and the third size; wherein the third position is different from the fourth position, and the first size is different from the third size.
[0400] In an optional embodiment, the display module 3210 is also used to display split-screen prompt information in response to the number of programming blocks used in the first working area reaching a preset threshold, and the split-screen prompt information is used to prompt the creation of a new third working area and display the third working area through the split-screen display operation.
[0401] In an optional embodiment, the display module 3210 is also used to display the first working area and the building block associated area of the first style in response to the operation object pointed to by the split-screen display operation being the first split-screen object; display the first working area and the building block associated area of the second style in response to the operation object pointed to by the split-screen display operation being the second split-screen object; the first split-screen object and the second split-screen object are different, and the first style and the second style are different.
[0402] In summary, the split-screen display operation allows the user to view and operate multiple areas on a single display device at the same time, which helps to operate the block-associated area and the first working area at the same time in visual programming, realize efficient interaction between areas, and also helps to analyze the first programming block in the first working area more carefully through the block-associated area, which improves the efficiency of visual programming and facilitates comparison of differences and correlations between areas, enhances the regional interaction experience in visual programming, reduces the need for multiple display devices, optimizes the visual programming process and improves work efficiency, and improves human-computer interaction efficiency.
[0403] It should be noted that the visual programming operation device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the visual programming operation device provided in the above embodiment and the visual programming operation method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0404] Fig.33 The block diagram of the structure of an electronic device 3300 provided by an exemplary embodiment of the present application is shown. The electronic device 3300 may be a portable mobile terminal, such as a smart phone, a vehicle-mounted terminal, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The electronic device 3300 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0405] Typically, the electronic device 3300 includes: a processor 3301 and a memory 3302 .
[0406] The processor 3301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 3301 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 3301 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 3301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 3301 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0407] The memory 3302 may include one or more computer-readable storage media, which may be non-transitory. The memory 3302 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 3302 is used to store at least one instruction, which is used to be executed by the processor 3301 to implement the operation method of visual programming provided by the method embodiment of the present application.
[0408] In some embodiments, the electronic device 3300 further includes one or more sensors, including but not limited to: a proximity sensor, a gyroscope sensor, and a pressure sensor.
[0409] The proximity sensor, also called a distance sensor, is usually disposed on the front panel of the electronic device 3300. The proximity sensor is used to collect the distance between the user and the front of the electronic device 3300.
[0410] The gyroscope sensor can detect the body direction and rotation angle of the electronic device 3300, and the gyroscope sensor can cooperate with the acceleration sensor to collect the user's 3D actions on the electronic device 3300. The processor 3301 can implement the following functions based on the data collected by the gyroscope sensor: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0411] The pressure sensor can be set on the side frame of the electronic device 3300 and / or the lower layer of the display screen. When the pressure sensor is set on the side frame of the electronic device 3300, it can detect the user's holding signal of the electronic device 3300, and the processor 3301 performs left and right hand recognition or quick operation according to the holding signal collected by the pressure sensor. When the pressure sensor is set on the lower layer of the display screen, the processor 3301 controls the operability controls on the UI interface according to the user's pressure operation on the display screen. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0412] In some embodiments, the electronic device 3300 also includes other components, which can be understood by those skilled in the art. Fig.33 The structure shown in the figure does not constitute a limitation on the electronic device 3300, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0413] The embodiment of the present application also provides a computer device, which can be implemented as follows: Figure 1The computer device includes a processor and a memory, wherein at least one instruction, at least one program, code set or instruction set is stored in the memory, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the visual programming operation method provided by the above-mentioned method embodiments.
[0414] An embodiment of the present application also provides a computer-readable storage medium, on which is stored at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the operating methods of visual programming provided by the above-mentioned method embodiments.
[0415] The embodiments of the present application also provide a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a 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 operation method of visual programming described in any of the above embodiments.
[0416] Optionally, the computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a solid-state drive (SSD), or an optical disk. Among them, the random access memory may include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM). The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0417] Those skilled in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or by a program to instruct the relevant hardware to complete, and the program can be stored in a computer-readable storage medium, and the above-mentioned storage medium can be a read-only memory, a disk or an optical disk, etc. The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for operating a visual programming interface, It is characterized in that The method comprises: Displaying a first working area, the first working area is used to construct program content in a visual form based on programming blocks, the programming blocks are basic units used to represent programming logic in visual programming, and the first working area includes first programming blocks; receiving a split-screen display operation for the first working area; In response to the split-screen display operation, the first working area and the block-associated area are displayed, the block-associated area includes a second programming block, and a program construction relationship exists between the second programming block and the first programming block, and the program construction relationship is used to represent that the second programming block cooperates with the first programming block to construct the program content.
2. The method according to claim 1, It is characterized in that The step of displaying the first working area and the building block associated area in response to the split-screen display operation includes: In response to the split-screen display operation, the first working area and the second working area are displayed, wherein the first working area is used to construct a first program content, and the second working area is the block-associated area for constructing a second program content in a visual form based on the programming blocks; The second program content and the first program content together constitute the program content, and the program content is a logic code for running a program.
3. The method according to claim 2, It is characterized in that The receiving a split-screen display operation for the first working area includes: In response to receiving a group view operation for the first working area, a plurality of trigger groups are displayed, wherein the trigger group is composed of at least one trigger, wherein the trigger is obtained by combining at least one programming building block, wherein the plurality of trigger groups correspond to a working area respectively, and the working area is used to construct the program content based on the programming building blocks in the trigger group; The split-screen display operation for a first trigger group among the multiple trigger groups is received, and the first trigger group corresponds to the second working area.
4. The method according to claim 3, It is characterized in that The receiving the split-screen display operation for the first trigger group among the multiple trigger groups includes: receiving a selection operation for the first trigger group as the split-screen display operation; The step of displaying the first working area and the building block associated area in response to the split-screen display operation includes: In response to the selection operation for the trigger group identifier, the first working area is displayed, and a first programming block of the first trigger group is positioned and displayed in the second working area.
5. The method according to claim 3, It is characterized in that The receiving the split-screen display operation for the first trigger group among the multiple trigger groups includes: Displaying event programming blocks corresponding to a plurality of triggers in the first trigger group, wherein the triggers are used to represent a programming block group formed by combining the event programming blocks as the starting programming blocks, and the event programming blocks are used to represent programming blocks of event types; A block triggering operation for a first event programming block among a plurality of event programming blocks is received as the split-screen display operation, wherein the block triggering operation is used to locate the first event programming block when displaying the second working area.
6. The method according to any one of claims 1 to 5, It is characterized in that The step of displaying the first working area and the building block associated area in response to the split-screen display operation includes: In response to the split-screen display operation, the first working area and the block definition area are displayed, and the block definition area is used to obtain the second programming block that has the program construction relationship with the first programming block.
7. The method according to claim 6, It is characterized in that The receiving a split-screen display operation for the first working area includes: In response to receiving a block selection operation for the first programming block in the first working area, displaying a block definition control, the block definition control being used to self-adjust block parameters to obtain the second programming block on the basis of maintaining the logic function of the first programming block, the block parameters being used to determine a logic implementation method while exerting the logic function corresponding to the programming block; A control triggering operation for the building block definition control is received as the split-screen display operation.
8. The method according to claim 6, It is characterized in that The receiving a split-screen display operation for the first working area includes: displaying a plurality of custom programming blocks for application in a work area, the work area including the first work area; receiving a selection operation for a first custom programming building block among the plurality of custom programming building blocks, and displaying a plurality of editing options; An option trigger operation for a defined option among the plurality of editing options is received as the split-screen display operation.
9. The method according to any one of claims 1 to 5, It is characterized in that After the first working area and the building block associated area are displayed in response to the split-screen display operation, the method further includes: receiving an area size adjustment operation for a boundary trigger bar, the boundary trigger bar being a trigger bar connecting the first working area and the building block associated area, the area size adjustment operation being used to adjust a relative area ratio between the first working area and the building block associated area; In response to the area resizing operation, a resizing result is displayed, the resizing result including at least one of an adjusted first working area and an adjusted brick-associated area.
10. The method according to any one of claims 1 to 5, It is characterized in that After the first working area and the building block associated area are displayed in response to the split-screen display operation, the method further includes: receiving an area exchange operation for a boundary trigger bar, wherein the first working area is displayed at a first position, and the building block associated area is displayed at a second position, and the area exchange operation is used to exchange display positions of the first working area and the building block associated area; In response to the area exchange operation, the block-associated area at the first position and the first working area at the second position are displayed.
11. The method according to any one of claims 1 to 5, It is characterized in that After the first working area and the building block associated area are displayed in response to the split-screen display operation, the method further includes: A display area control control, wherein the area control control is used to adjust the display status of the first working area and the building block associated area; In response to receiving a first trigger operation for the area control control, a focus area in the first working area and the block-associated area is kept displayed, and a non-focus area is canceled, wherein the focus area is used to indicate the area targeted by the most recent operation.
12. The method according to any one of claims 1 to 5, It is characterized in that The step of displaying the first working area and the building block associated area in response to the split-screen display operation includes: In response to the split-screen display operation pointing to a first display position, the block-associated area is displayed at the first display position, and the first working area is displayed.
13. The method according to claim 12, It is characterized in that The displaying the first working area includes: The first working area is displayed at a second display position, the second display position is different from the first display position, and the first working area and the building block associated area are independent of each other.
14. The method according to any one of claims 1 to 5, It is characterized in that The method further comprises: In response to the split-screen display operation instruction, the building block associated area is displayed at a third position, and the building block associated area of a first size and the first working area of a second size are displayed, where the second size is determined based on the interface display size and the first size; In response to the split-screen display operation instruction, the building block associated area is displayed at a fourth position, the building block associated area of a third size and the first working area of a fourth size are displayed, and the fourth size is determined based on the interface display size and the third size; The third position is different from the fourth position, and the first size is different from the third size.
15. The method according to any one of claims 1 to 5, It is characterized in that The method further comprises: In response to the number of programming blocks used in the first working area reaching a preset threshold, split-screen prompt information is displayed, where the split-screen prompt information is used to prompt the creation of a third working area and display the third working area through the split-screen display operation.
16. The method according to any one of claims 1 to 5, It is characterized in that The method further comprises: In response to the operation object pointed to by the split-screen display operation being the first split-screen object, displaying the first working area and the building block-associated area of the first style; In response to the operation object pointed to by the split-screen display operation being the second split-screen object, the first working area and the block-associated area of the second style are displayed; the first split-screen object is different from the second split-screen object, and the first style is different from the second style.
17. An operating device for a visual programming interface, It is characterized in that The device comprises: A display module, used to display a first working area, the first working area is used to construct program content in a visual form based on programming building blocks, the programming building blocks are basic units used to represent programming logic in visual programming, and the first working area includes first programming building blocks; A receiving module, used for receiving a split-screen display operation for the first working area; The display module is further used to display the first working area and the building block associated area in response to the split-screen display operation, wherein the building block associated area includes a second programming building block, and a program construction relationship exists between the second programming building block and the first programming building block, and the program construction relationship is used to represent that the second programming building block cooperates with the first programming building block to construct the program content.
18. A computer device, It is characterized in that The computer device includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the operating method of the visual programming interface as described in any one of claims 1 to 16.
19. A computer-readable storage medium, It is characterized in that The storage medium stores at least one program, and the at least one program is loaded and executed by the processor to implement the operating method of the visual programming interface as described in any one of claims 1 to 16.
20. A computer program product, It is characterized in that It comprises computer instructions, which, when executed by a processor, implement the operating method of the visual programming interface as described in any one of claims 1 to 16.
