{
   "main@common.base_screen" : {
      "controls" : [
         {
            "panel" : {
               "controls" : [
                  {
                     "label" : {
                        "anchor_from" : "top_middle",
                        "anchor_to" : "top_middle",
                        "color" : [ 0.3333333333333333, 1.0, 0.1490196078431373 ],
                        "font_scale_factor" : 1.40,
                        "font_type" : "default",
                        "layer" : 2,
                        "offset" : [ 0.0, "2.0%+0.0px" ],
                        "size" : [ "80.0%+0.0px", "20.0%+-24.0px" ],
                        "text" : "展示两种UI创建方式，手柄如何交互",
                        "text_alignment" : "center",
                        "type" : "label"
                     }
                  },
                  {
                     "label(0)" : {
                        "anchor_from" : "top_middle",
                        "anchor_to" : "top_middle",
                        "color" : [ 1.0, 0.2313725490196079, 0.1607843137254902 ],
                        "font_type" : "default",
                        "layer" : 2,
                        "offset" : [ 0.0, "10.0%+0.0px" ],
                        "size" : [ "80.0%+0.0px", "50.0%+0.0px" ],
                        "text" : "（1）该界面是第一种：pushScreen生成的，调用出手柄光标与按钮交互\n（2）如果想调用出手柄光标有两个条件。\n一是将最底层的screen控件继承自common.base_screen，当前UI最底层的screen控件为main，所以写为main@common.base_screen。\n二是为main添加一个名为gamepad_cursor的属性，且设置为true，即写为\"gamepad_cursor\" : true\n（3）点击左侧按钮可查看第二种UI创建方式（CreateUI）的交互\n（4）点击右侧按钮可查看手柄与轮盘的交互",
                        "type" : "label"
                     }
                  },
                  {
                     "button0@common.button" : {
                        "$control_alpha" : 1.0,
                        "$default_texture" : "textures/netease/common/button/default",
                        "$hover_texture" : "textures/netease/common/button/hover",
                        "$is_new_nine_slice" : false,
                        "$label_color" : [ 1, 1, 1 ],
                        "$label_font_scale_factor" : 1.0,
                        "$label_font_size" : "large",
                        "$label_layer" : 3,
                        "$label_offset" : [ 0, 0 ],
                        "$label_text" : "CreateUI(isHud为0)",
                        "$nine_slice_buttom" : 0,
                        "$nine_slice_left" : 0,
                        "$nine_slice_right" : 0,
                        "$nine_slice_top" : 0,
                        "$nineslice_size" : [ 0, 0, 0, 0 ],
                        "$pressed_button_name" : "%netease_editor_template_namespace.click",
                        "$pressed_texture" : "textures/netease/common/button/pressed",
                        "$texture_layer" : 2,
                        "anchor_from" : "bottom_middle",
                        "anchor_to" : "bottom_middle",
                        "bindings" : [
                           {
                              "binding_collection_name" : "",
                              "binding_condition" : "always_when_visible",
                              "binding_type" : "collection_details"
                           }
                        ],
                        "button_mappings" : [],
                        "controls" : [
                           {
                              "default@netease_editor_template_namespace.default" : {}
                           },
                           {
                              "hover@netease_editor_template_namespace.hover" : {}
                           },
                           {
                              "pressed@netease_editor_template_namespace.pressed" : {}
                           },
                           {
                              "button_label@netease_editor_template_namespace.button_label" : {}
                           }
                        ],
                        "default_control" : "default",
                        "hover_control" : "hover",
                        "is_handle_button_move_event" : true,
                        "layer" : 2,
                        "offset" : [ "-24.73%+0.0px", "-3.0%+0.0px" ],
                        "pressed_control" : "pressed",
                        "size" : [ "42.03%+0.0px", "37.68%+0.0px" ],
                        "type" : "button"
                     }
                  },
                  {
                     "closeButton@common.button" : {
                        "$control_alpha" : 1.0,
                        "$default_texture" : "textures/ui/closeIcon",
                        "$hover_texture" : "textures/ui/closeIcon",
                        "$is_new_nine_slice" : false,
                        "$label_color" : [ 1, 1, 1 ],
                        "$label_font_scale_factor" : 1.0,
                        "$label_font_size" : "large",
                        "$label_layer" : 3,
                        "$label_offset" : [ 0, 0 ],
                        "$label_text" : "",
                        "$nine_slice_buttom" : 0,
                        "$nine_slice_left" : 0,
                        "$nine_slice_right" : 0,
                        "$nine_slice_top" : 0,
                        "$nineslice_size" : [ 0, 0, 0, 0 ],
                        "$pressed_button_name" : "%netease_editor_template_namespace.click",
                        "$pressed_texture" : "textures/ui/closeIcon",
                        "$texture_layer" : 2,
                        "anchor_from" : "top_right",
                        "anchor_to" : "top_right",
                        "bindings" : [
                           {
                              "binding_collection_name" : "",
                              "binding_condition" : "always_when_visible",
                              "binding_type" : "collection_details"
                           }
                        ],
                        "button_mappings" : [],
                        "controls" : [
                           {
                              "default@netease_editor_template_namespace.default" : {}
                           },
                           {
                              "hover@netease_editor_template_namespace.hover" : {}
                           },
                           {
                              "pressed@netease_editor_template_namespace.pressed" : {}
                           },
                           {
                              "button_label@netease_editor_template_namespace.button_label" : {}
                           }
                        ],
                        "default_control" : "default",
                        "hover_control" : "hover",
                        "is_handle_button_move_event" : true,
                        "layer" : 2,
                        "offset" : [ "0.0%+0.0px", "0.0%+0.0px" ],
                        "pressed_control" : "pressed",
                        "size" : [ "12.91%+0.0px", "21.74%+0.0px" ],
                        "type" : "button"
                     }
                  },
                  {
                     "button1@common.button" : {
                        "$control_alpha" : 1.0,
                        "$default_texture" : "textures/netease/common/button/default",
                        "$hover_texture" : "textures/netease/common/button/hover",
                        "$is_new_nine_slice" : false,
                        "$label_color" : [ 1, 1, 1 ],
                        "$label_font_scale_factor" : 1.0,
                        "$label_font_size" : "large",
                        "$label_layer" : 3,
                        "$label_offset" : [ 0, 0 ],
                        "$label_text" : "PushScreen",
                        "$nine_slice_buttom" : 0,
                        "$nine_slice_left" : 0,
                        "$nine_slice_right" : 0,
                        "$nine_slice_top" : 0,
                        "$nineslice_size" : [ 0, 0, 0, 0 ],
                        "$pressed_button_name" : "%netease_editor_template_namespace.click",
                        "$pressed_texture" : "textures/netease/common/button/pressed",
                        "$texture_layer" : 2,
                        "anchor_from" : "bottom_middle",
                        "anchor_to" : "bottom_middle",
                        "bindings" : [
                           {
                              "binding_collection_name" : "",
                              "binding_condition" : "always_when_visible",
                              "binding_type" : "collection_details"
                           }
                        ],
                        "button_mappings" : [],
                        "controls" : [
                           {
                              "default@netease_editor_template_namespace.default" : {}
                           },
                           {
                              "hover@netease_editor_template_namespace.hover" : {}
                           },
                           {
                              "pressed@netease_editor_template_namespace.pressed" : {}
                           },
                           {
                              "button_label@netease_editor_template_namespace.button_label" : {}
                           }
                        ],
                        "default_control" : "default",
                        "hover_control" : "hover",
                        "is_handle_button_move_event" : true,
                        "layer" : 2,
                        "offset" : [ "23.63%+0.0px", "-3.0%+0.0px" ],
                        "pressed_control" : "pressed",
                        "size" : [ "42.03%+0.0px", "37.68%+0.0px" ],
                        "type" : "button"
                     }
                  },
                  {
                     "image" : {
                        "clip_direction" : "left",
                        "clip_ratio" : 0.0,
                        "color" : [ 0.1176470588235294, 0.1215686274509804, 0.1254901960784314 ],
                        "controls" : [],
                        "is_new_nine_slice" : true,
                        "layer" : 1,
                        "offset" : [ "0.0%+0.0px", "0.0%+0.0px" ],
                        "size" : [ "100.0%+0.0px", "100.0%+0.0px" ],
                        "texture" : "textures/forcefield_atlas",
                        "type" : "image"
                     }
                  }
               ],
               "offset" : [ 1.0, 0.0 ],
               "size" : [ 364, 207 ],
               "type" : "panel"
            }
         }
      ],
      "gamepad_cursor" : true
   },
   "namespace" : "gamepadUI"
}
