{
  "namespace": "phone",
  "menu@common_dialogs.main_panel_no_buttons": {
    "$title_panel": "common_dialogs.standard_title_label",
    "$title_size": [ "100% - 15px", 10 ],
    "$title_max_size": [ "100% - 15px", 10 ],
    "size": [ 160, 230 ],
    "$title_text_binding_type": "none",
    "$custom_background": "phone.smartphone_background",
    "layer": 2,
    "controls": [
      {
        "common_panel@common.common_panel": { "$dialog_background": "$custom_background" }
      },
      {
        "panel_indent@phone.phone_panel_main": {
          "$csize": [ 64, 64 ],
          "$iconsize": [ 32, 32 ],
          "bindings": [
            {
              "binding_name": "#title_text"
            },
            {
              "binding_type": "view",
              "source_property_name": "(not (#title_text = 'phone lootbox') and not (#title_text = 'phone market'))",
              "target_property_name": "#visible"
            }
          ]
       }
      },
      {
        "panel_lootbox@phone.lootbox_panel": {
          "bindings": [
            {
              "binding_name": "#title_text"
            },
            {
              "binding_type": "view",
              "source_property_name": "(#title_text = 'phone lootbox')",
              "target_property_name": "#visible"
            }
          ]
       }
      },
      {
        "panel_market@phone.market_panel_main": {
          "bindings": [
            {
              "binding_name": "#title_text"
            },
            {
              "binding_type": "view",
              "source_property_name": "(#title_text = 'phone market')",
              "target_property_name": "#visible"
            }
          ]
       }
      }
    ]
  },
  "smartphone_background@common.dialog_background_common": {
    "texture": "textures/ui/smartphone_drz"
  },
	"phone_panel_main": {
		"type": "stack_panel",
       "$off | default": [ 0, 0 ],
		"size": ["100%", "98%"],
		"orientation": "vertical",
		"layer": 1,
		"anchor_from": "top_left",
		"anchor_to": "top_left",
       "offset": [0, 3],
		"controls": [
			{
				"scrolling_panel@common.scrolling_panel": {
					"anchor_to": "top_left",
					"anchor_from": "top_left",
					"$show_background": false,
					"size": ["100%", "100%"],
					"$scrolling_content": "phone.phone_panel",
					"$scroll_size": [3, "100% - 4px"],
					"$scrolling_pane_size": ["100% - 4px", "100% - 2px"],
					"$scrolling_pane_offset": [1, 0],
					"$scroll_bar_right_padding_size": [0, 0]
				}
			}
		]
	},
	"market_panel_main": {
		"type": "stack_panel",
       "$off | default": [ 0, 0 ],
		"size": ["100%", "98%"],
		"orientation": "vertical",
		"layer": 1,
		"anchor_from": "top_left",
		"anchor_to": "top_left",
       "offset": [0, 3],
		"controls": [
			{
				"scrolling_panel@common.scrolling_panel": {
					"anchor_to": "top_left",
					"anchor_from": "top_left",
					"$show_background": false,
					"size": ["100%", "100%"],
					"$scrolling_content": "phone.market_panel",
					"$scroll_size": [3, "100% - 4px"],
					"$scrolling_pane_size": ["100% - 4px", "100% - 2px"],
					"$scrolling_pane_offset": [1, 0],
					"$scroll_bar_right_padding_size": [0, 0]
				}
			}
		]
	},
	"phone_panel": {
		"type": "stack_panel",
		"size": ["100%", "100%c"],
		"orientation": "vertical",
		"controls": [
      {
        "label_offset_panel": {
          "type": "panel",
          "size": ["100%", "100%c"],
          "controls": [
            {
              "main_label": {
                "type": "label",
                "offset":[2,4],
                "color": "$main_header_text_color",
                "size": ["100%", "default"],
                "anchor_from": "top_left",
                "anchor_to": "top_left",
                "text": "#form_text"
              }
            }
          ]
        }
      },
      {
        "buttons": {
         "type": "stack_panel",
	      "orientation": "horizontal",
         "size": ["100%", "43%c"],
         "collection_name": "form_buttons",
         "controls": [
          {
  	         "tombol@server_form.custom_button": {
             "$padding": [ 80, 80 ],
             "collection_index": 0
           }
          },
          {
  	         "tombol_2@server_form.custom_button": {
             "$padding": [ 73, 80 ],
             "collection_index": 1
           }
          }
        ]
       }
      },
      {
        "buttons_2": {
         "type": "stack_panel",
	      "orientation": "horizontal",
         "size": ["100%", "43%c"],
         "collection_name": "form_buttons",
         "controls": [
          {
  	         "tombol@server_form.custom_button": {
             "$padding": [ 80, 80 ],
             "collection_index": 2
           }
          },
          {
  	         "tombol_2@server_form.custom_button": {
             "$padding": [ 73, 80 ],
             "collection_index": 3
           }
          }
        ]
       }
      },
      {
        "buttons_3": {
         "type": "stack_panel",
	      "orientation": "horizontal",
         "size": ["100%", "43%c"],
         "collection_name": "form_buttons",
         "controls": [
          {
  	         "tombol@server_form.custom_button": {
             "$padding": [ 80, 80 ],
             "collection_index": 4
           }
          },
          {
  	         "tombol_2@server_form.custom_button": {
             "$padding": [ 73, 80 ],
             "collection_index": 5
           }
          }
        ]
       }
      }
     ]
	},
	"market_panel": {
		"type": "stack_panel",
		"size": ["100%", "100%c"],
		"orientation": "vertical",
       "$padding": [ 53, 53 ],
       "$csize": [ 48, 48 ],
       "$iconsize": [ 30, 30 ],
		"controls": [
      {
        "label_offset_panel": {
          "type": "panel",
          "size": ["100%", "105%c"],
          "controls": [
            {
              "main_label": {
                "type": "label",
                "offset":[2, 4],
                "color": "$main_header_text_color",
                "size": ["100%", "default"],
                "anchor_from": "top_left",
                "anchor_to": "top_left",
                "text": "#form_text"
              }
            }
          ]
        }
      },
      {
        "buttons": {
         "type": "stack_panel",
	      "orientation": "horizontal",
         "size": ["100%", "33%c"],
         "collection_name": "form_buttons",
         "controls": [
          {
  	         "tombol@server_form.custom_button": {
             "collection_index": 0
           }
          },
          {
  	         "tombol_2@server_form.custom_button": {
             "collection_index": 1
           }
          },
          {
  	         "tombol_3@server_form.custom_button": {
             "collection_index": 2
           }
          }
        ]
       }
      },
      {
        "buttons_2": {
         "type": "stack_panel",
	      "orientation": "horizontal",
         "size": ["100%", "33%c"],
         "collection_name": "form_buttons",
         "controls": [
          {
  	         "tombol@server_form.custom_button": {
             "collection_index": 3
           }
          },
          {
  	         "tombol_2@server_form.custom_button": {
             "collection_index": 4
           }
          },
          {
  	         "tombol_3@server_form.custom_button": {
             "collection_index": 5
           }
          }
        ]
       }
      },
      {
        "buttons_3": {
         "type": "stack_panel",
	      "orientation": "horizontal",
         "size": ["100%", "33%c"],
         "collection_name": "form_buttons",
         "controls": [
          {
  	         "tombol@server_form.custom_button": {
             "collection_index": 6
           }
          },
          {
  	         "tombol_2@server_form.custom_button": {
             "collection_index": 7
           }
          },
          {
  	         "tombol_3@server_form.custom_button": {
             "collection_index": 8
           }
          }
        ]
       }
      },
      {
        "buttons_4": {
         "type": "stack_panel",
	      "orientation": "horizontal",
         "size": ["100%", "33%c"],
         "collection_name": "form_buttons",
         "controls": [
          {
  	         "tombol@server_form.custom_button": {
             "collection_index": 9
           }
          },
          {
  	         "tombol_2@server_form.custom_button": {
             "collection_index": 10
           }
          },
          {
  	         "tombol_3@server_form.custom_button": {
             "collection_index": 11
           }
          }
        ]
       }
      }
     ]
	},
	"lootbox_panel": {
		"type": "stack_panel",
		"size": ["100%", "100%"],
		"orientation": "vertical",
		"layer": 1,
		"anchor_from": "top_left",
		"anchor_to": "top_left",
		"controls": [
			{
				"scrolling_panel@common.scrolling_panel": {
					"anchor_to": "top_left",
					"anchor_from": "top_left",
					"$show_background": false,
					"size": ["100%", "100%"],
					"$scrolling_content": "phone.lootbox",
					"$scroll_size": [3, "100% - 4px"],
					"$scrolling_pane_size": ["100% - 4px", "100% - 2px"],
					"$scrolling_pane_offset": [1, 0],
					"$scroll_bar_right_padding_size": [0, 0]
				}
			}
		]
	},
    "lootbox": {
      "type": "label",
      "color": "$main_header_text_color",
      "size": ["100%", "default"],
      "offset": [ 0, "45%" ],
      "anchor_from": "center",
      "anchor_to": "center",
      "text": "#form_text",
      "font_type": "MinecraftTen",
      "text_alignment": "center",
      "shadow": true,
      "font_size": "large"
   }
}