Skip to main content

Smart Importer UI

This page describes the Smart Importer dialog. The Smart Importer dialog consists of the following four parts.

  1. Preview
  2. Import
  3. Layer Tree
  4. Control
drawing-5-1725626895.pngdrawing-5-1725626895.png

Preview

HereThe youPreview willpanel seedisplays a preview of the file to be imported.

Zoom factor of the preview

The current zoom factor is displayed in the lower-left corner. To adjust the zoom factor of the preview:

    Use the mouse wheel to zoom in and outout. of the preview image. The zoom factor of the preview is displayed in the lower left corner of the preview section. PressingClick the button with the four arrows willto preview the file at the maximum zoom factor within the display areaarea. of the preview area.
    drawing-4-1710316832.pngdrawing-4-1710316832.png

    Select an element on the preview image,image. thenArtificial AIintelligence detection(AI) willdetects be performedcontrols on the selected element and thelists controls will be listedthem in the Control section.

    Import

    The import section consists of two tabs, [ Import Settings ] and [ AI Settings ].

    drawing-4-1710316951.pngdrawing-4-1710316951.png
    Import Settings Tab

    The Import Settings tab contains the following settings.

    Import to folder

    Select a destination folder for the imported resources. The selection can be any location on the Solution Explorer. To change the destination folder, use the pull-down menu. To create a new destination folder, use the next section [ Create new folder for import ].section. The destination folder can be any location in Solution Explorer.

    Create new folder for import

    When this option is enabled, a new import folder can be created with any name. The created folder will beis located in the import destination folder specified in [ Import to folder ].

    Scenes

    You can editEdit scenes with the Smart Importer. PleaseSee clickthe hereBasic toOperations learnguide howfor toediting usescenes it.with Smart Importer.

    Toggle Applied Controls Preview

    When this option is enabled, a green frame will appearappears where the control is applied. ThisThe green frame allows you to visually check where the control is applied on the preview.

    Resize Display Resolution

    This option is enabled when the resolution of the file to be imported is larger than the solution's display resolution. When this option is enabled, the Smart Importer automatically resizes the resolution of the imported file will be automatically resized to fit the display resolution.

    Import State Machine

    When this option is enabled,the importSmart Importer imports state machines from your design file directly tointo your CGI Studio solution. If a global state machine already exists within your solution, the Smart Importer displays a prompt will be displayed in whichwhere you can choose whether or not to import the new state machines with the Is Global property enabled.

    AI Settings Tab

    Settings forConfigure AI detection aresettings madeon here.this tab.

    drawing-4-1729212783.pngdrawing-4-1729212783.png

    The Smart Importer uses the value specified in the PreferencePreferences is used for [ Edge Detection ]. For details, pleasesee referthe toPreferences that.page.

    TheAI colouruses the color selected under [ Transparent background color ] is used by AI to analyseanalyze the image being imported. WhichThe transparentbest background colour is bestcolor for detecting controls depends greatly on the contentimage ofcontent.

    the image.

    If youAI are havinghas problems with AI detecting controls, try changingchange this setting.


    Layer Tree

    DisplaysThe Layer Tree displays a tree view of each element from the file being imported. The list displayed here corresponds to the scene tree in Scene Composer. When you select one or more elements are selected in this list, AI detectiondetects is performedcontrols on the selected elements and thelists controls are listedthem in the Control section.

    Entering anyEnter keywords in the search field at the top of the Layer Tree willto narrow down the list to only those layers that contain the enteredthose keywords.

    drawing-5-1725626973.pngdrawing-5-1725626973.png

    Check the checkbox to the left of each layer element to setinclude it asin an element that constitutes athe scene. UncheckedThe elementsSmart willImporter does not beimport imported.cleared elements.

    Revert/Revert All button

    To cancel the applied control settings, select the target item in the Layer Tree panel and pressclick theRevert.

    [

    To Revert ] button. Note that pressing the [ Revert All ] button cancelscancel all applied control settings in the layerLayer tree.Tree, Whenclick the [ Revert All. ]The buttonSmart isImporter pressed,displays a confirmation dialog boxbefore will appear to confirm the continuation of the operation for safety.continuing.


    Control

    Control List Tab

    Select any layer in the Layer TreeTree, and the AI will detectdetects the most suitable controls. The resultsControl ofList thistab displays the analysis areresults displayedand in the "Control List" tab, wherelists candidate controls are listed in order of probability.

    The Smart Importer categorizes the controls are categorised by solution and referencereference, (such as ConstructionKit and Custom Controls).Controls.

    • For controls in ConstructionKit, the probability of matching with the AI is displayed as a number (and bar) to the right of the control name, and they are listed in descending order from the highest number.
      • For Custom controls that are not included in ConstructionKit, theyConstructionKit are displayed in order of control name.
    • By default, each category displays five controls are displayed in each category.controls. Clicking the [ View All ] button (red box in the image below) will displaydisplays a list of all controls.
    • The list of controls that is displayed can be narrowed down by entering keywords in the search field at the top (orange box in the image below).
    • To apply the controls to the selected element, use the [ Apply ] button in the controlControl list.List.
    drawing-4-1729213292.pngdrawing-4-1729213292.png

    TheTo displayed control list can be narrowed down by entering keywords inconfigure the searchdisplay fieldsettings, at the top. In addition, using the settings section that appears by clickingclick the triangle icon on the left side of the search field,field. The settings section lets you can configure the display settings of thewhich controls that appear according to the detection value.

    To apply a control to a selected element, useclick the "Apply" buttonApply in the controlControl list.List. When applyingyou apply a control with a low probability of AI detection result,probability, a dialog box will appearappears to confirm your selection.

    Appearance Tab

    When you apply any control is applied,control, the display automatically switches to the "Appearance"Appearance tab. SetConfigure the propertyiesappearance settingsproperties related tofor the applied control'scontrol. appearance.Some Note that some controlscontrols, such as TextValueTextValue, do not require appearance settings.

    The Appearance tab is made up of the following three main sections.

    1. Image
    2. Pivot Point
    3. 9-Patch
    drawing-4-1729213616.pngdrawing-4-1729213616.png

    Image

    For each control image properties, setselect the layer image infrom the file to be imported.import. If the control image propertiesproperty name andmatches the layer namename, arethe equal,Smart Importer automatically sets the layer imageimage. is automatically set. However, youYou cannot edit the image layer.

    For example, when you apply the Gauge control is applied,control, the Control Image has a NeedleImage property. Therefore, if NeedleImage exists in the layer name of the file to beimport, imported,the itSmart isImporter automatically setsets it to the NeedleImage property.

    drawing-4-1729213753.pngdrawing-4-1729213753.png

    When you assign a control to a group player,layer, you can choose from the following options for the control image.

    drawing-4-1729213848.pngdrawing-4-1729213848.png
    Select layers

    Select any image layer from the group layer. You can use composite images with multiple layers. For more information, please refer to hereConfigure a control image with multiple layers.

    After importing, the Smart Importer places the composite image will be placed in the [ ControlBitmaps ]folder folder.and At this time,sets the bitmap name will be set to the property name specified here.

    If you select a single layer, the Smart Importer uses the original bitmap placed in the [Bitmaps Bitmapsfolder. ]For folder willlocations, be used. For information on the location of the folder, please refer tosee Folder structure after import.

    Transparent AThe Smart Importer uses a transparent image will be used.image.
    Default value UsesThe Smart Importer uses the default image for the applied control.

    You can selectSelect images included in the group playerlayer by clicking on the selection icon on the right of the image.

    • You can select theSelect images offrom the descendant layers and yourselfthe current layer as property values.values
    • You cannot select layers other than images (except for bitmap layers to which controls have been applied).
    • After selecting,you selected the image, the Smart Importer sets the pivot point is set to the centrecenter of the composite image.
    drawing-4-1729214897.pngdrawing-5-1789127376.png

    For each control image properties, set the layer image in the file to be imported.import. If the control image propertiesproperty name and the layer name arematch, equal,the Smart Importer automatically sets the layer image is automatically set.image.

    Image Array Properties

    ImageThe Smart Importer supports image array properties is supported, and forautomatically example,assigns images in the FlipBook control are automatically assigned.control. The numbers attached to each Image element on the Appearance tab correspond to the values displayed in descending order in the layer tree.

    drawing-4-1729230884.pngdrawing-4-1729230884.png

    Folder structure after import

    After import, the [Smart Importer creates the Bitmaps ], [ ControlBitmaps ], and [ TextStyles ] folders are created in the Solution Explorer.

    Bitmaps TheSmart Importer places the imported bitmap for each layer isin placed.this folder.
    ControlBitmaps TheSmart Importer places the bitmap composed of multiple layers isin placedthis folder for the control properties.
    ImportedScenes TheSmart Importer places the scene imported as a template willin bethis placed.folder.
    Scenes When you import a StateMachine (screen transition), the Smart Importer places the target scene willin bethis placed.folder.
    TextStyles TheSmart Importer places the created text style isin placed.this folder.
    drawing-4-1729754524.pngdrawing-4-1729754524.png

    Pivot Point

    When set-you set up a control image with layer mapping, the pivotSmart point isImporter automatically set.sets the pivot point. The pivot point values setthat the Smart Importer sets automatically are as follows. (However, if the pivot point values are specified with the layer names mentioned later, the specified values will beare used as the set values.)

    • Pivot point X value: 0
    • Pivot point Y value: 0

    In addition, bywhen checkingyou select the Pivot Point check box (No.1 belowin image)the image below), you can use the following options can be usedoptions:

    drawing-4-1729214188.pngdrawing-4-1729214188.png
    • Can be enter anyEnter values for the X/X and Y coordinates of the pivot pointpoint. (decimal pointsYou can beenter entered).decimal values.
    • Set the pivot point to the centrecenter of the image (clickby onclicking No.2 in the aboveimage image)above).
    • The Freehand dialog box will appear (click onClick No. 3 in the image above image).to open the Freehand dialog box. Move the crosshair cursor onin the dialog box to setconfigure the pivot point as you want.point.
    • TheSet the background color of the [ Freehand ] dialog can be set to black or gray from [ Background Color ] in the lower lower-right corner of the dialog (highlighted in the orange box in the figure below). Additionally, configure the default background color can be configured in Preferences > Smart Importer.
    drawing-4-1741158028.png

    drawing-4-1741158028.png

    On

    the other hand,

    Alternatively, you can apply any pivot point value by specifying the pivot point valueit in the layer name of the image to be imported.import.

    • If the layer name in the target file to be imported is something like "***@X10@Y20", the pivot point values are automatically set as X10X = 10 and Y20.Y = 20.
    • If the layer name in the file to be imported is "***@X10.5", the pivot point value is automatically set as X10.X = 10.5 and Y as= ”0".0.

    9-patchPatch

    This option appears when the "Enable editing 9-patch"Patch option is enabled in the Preferences > Smart Importer settings. When enabled, the 9-patchPatch feature can be configured (input values must be positive numbers only).

    Basic Properties Tab

    This section allowslets you to set some properties items for the applied control. After importing, you can also select the target control and configure it on the propertiesProperties panel.

    drawing-5-1725628096.pngdrawing-5-1725628096.png

    If the layer name is the same as the control's property name, the Smart Importer automatically maps the individual properties are automatically mapped from the file to be imported.import.