Puzzle / res / edje /
main.edc
- /*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- #include "../../inc/view_defines.h"
- #define PART_MAIN_BG "bg"
- #define PART_MAIN_TITLE_BG "title_bg"
- #define PART_MAIN_TITLE "title"
- #define PART_MENU_BG "menu_bg"
- #define PART_NAVI_BG "navi_bg"
- #define PART_POPUP_BG "popup_bg"
- #define PART_POPUP_ITEM_1_TEXT "popup_item_1_text"
- #define PART_POPUP_ITEM_2_TEXT "popup_item_2_text"
- collections {
- group {
- name: GRP_MAIN;
- parts {
- part {
- name: PART_MAIN_BG;
- type: RECT;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; }
- rel2 { relative: 1.0 1.0; }
- }
- }
- part {
- name: PART_MAIN_TITLE_BG;
- type: RECT;
- mouse_events: 0;
- description{
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; }
- rel2 { relative: 1.0 0.1; }
- color: 20 107 147 255;
- }
- }
- part {
- name: PART_MAIN_TITLE;
- type: TEXT;
- mouse_events: 0;
- description{
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0;}
- rel2 { relative: 1.0 0.1;}
- text {
- font: "Tizen:style = regular";
- size: 50;
- min: 1 1;
- text: "Puzzle";
- ellipsis: -1;
- }
- color: 255 255 255 255;
- }
- }
- part {
- name: PART_MAIN_MENU;
- type: SWALLOW;
- description{
- state: "default" 0.0;
- rel1 { relative: 0.0 0.1; to: PART_MAIN_BG; }
- rel2 { relative: 1.0 0.2; to: PART_MAIN_BG; }
- }
- }
- part {
- name: PART_MAIN_PUZZLE;
- type: RECT;
- description{
- state: "default" 0.0;
- rel1 { relative: 0.0 0.2; to: PART_MAIN_BG; }
- rel2 { relative: 1.0 0.8; to: PART_MAIN_BG; }
- }
- }
- part {
- name: PART_MAIN_NAVI;
- type: SWALLOW;
- description{
- state: "default" 0.0;
- rel1 { relative: 0.0 0.8; to: PART_MAIN_BG; }
- rel2 { relative: 1.0 1.0; to: PART_MAIN_BG; }
- }
- }
- }
- }
- group {
- name: GRP_MENU;
- parts {
- part {
- name: PART_MENU_BG;
- type: RECT;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; }
- rel2 { relative: 1.0 1.0; }
- }
- }
- part {
- name: PART_MENU_ANSWER;
- type: SWALLOW;
- description{
- state: "default" 0.0;
- align: 0.0 0.0;
- rel1 { relative: 0.1 0.1; to: PART_MENU_BG; }
- rel2 { relative: 0.3 0.9; to: PART_MENU_BG; }
- }
- }
- part {
- name: PART_MENU_LEVEL;
- type: SWALLOW;
- description{
- state: "default" 0.0;
- align: 0.0 0.0;
- rel1 { relative: 0.4 0.1; to: PART_MENU_BG; }
- rel2 { relative: 0.6 0.9; to: PART_MENU_BG; }
- }
- }
- part {
- name: PART_MENU_SHUFFLE;
- type: SWALLOW;
- description {
- state: "default" 0.0;
- align: 0.0 0.0;
- rel1 { relative: 0.7 0.1; to: PART_MENU_BG; }
- rel2 { relative: 0.9 0.9; to: PART_MENU_BG; }
- }
- }
- }
- }
- group {
- name: GRP_NAVI;
- parts {
- part {
- name: PART_NAVI_BG;
- type: RECT;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- rel1 { relative: 0.0 0.0; }
- rel2 { relative: 1.0 1.0; }
- }
- }
- part {
- name: PART_NAVI_UP;
- type: SWALLOW;
- description{
- state: "default" 0.0;
- rel1 { relative: 0.35 0.05; to: PART_NAVI_BG; }
- rel2 { relative: 0.65 0.47; to: PART_NAVI_BG; }
- }
- }
- part {
- name: PART_NAVI_DOWN;
- type: SWALLOW;
- description{
- state: "default" 0.0;
- rel1 { relative: 0.35 0.53; to: PART_NAVI_BG; }
- rel2 { relative: 0.65 0.95; to: PART_NAVI_BG; }
- }
- }
- part {
- name: PART_NAVI_LEFT;
- type: SWALLOW;
- description{
- state: "default" 0.0;
- rel1 { relative: 0.05 0.29; to: PART_NAVI_BG; }
- rel2 { relative: 0.30 0.71; to: PART_NAVI_BG; }
- }
- }
- part {
- name: PART_NAVI_RIGHT;
- type: SWALLOW;
- description{
- state: "default" 0.0;
- rel1 { relative: 0.70 0.29; to: PART_NAVI_BG; }
- rel2 { relative: 0.95 0.71; to: PART_NAVI_BG; }
- }
- }
- }
- }
- group {
- name: GRP_POPUP;
- parts {
- part {
- name: PART_POPUP_BG;
- type: SPACER;
- description {
- state: "default" 0.0;
- min: 480 200;
- fixed: 1 0;
- }
- }
- part {
- name: PART_POPUP_ITEM_1;
- type: SWALLOW;
- description {
- state: "default" 0.0;
- align: 0.0 0.0;
- min: 40 40;
- fixed: 1 1;
- rel1 { relative: 0.0 0.0; to: PART_POPUP_BG; offset: 20 40; }
- rel2 { relative: 0.0 0.0; to: PART_POPUP_BG; offset: 20 40; }
- }
- }
- part {
- name: PART_POPUP_ITEM_1_TEXT;
- type: TEXT;
- description {
- state: "default" 0.0;
- align: 0.0 0.0;
- min: 0 40;
- fixed: 1 1;
- rel1 { relative: 1.0 0.0; to: PART_POPUP_ITEM_1; offset: 20 0; }
- rel2 { relative: 1.0 0.0; to: PART_POPUP_ITEM_1; offset: 20 0; }
- text {
- font: "Tizen:style = regular";
- size: 30;
- min: 1 1;
- text: "4 x 4 Puzzle";
- ellipsis: -1;
- }
- color: 0 0 0 255;
- }
- }
- part {
- name: PART_POPUP_ITEM_2;
- type: SWALLOW;
- description {
- state: "default" 0.0;
- align: 0.0 0.0;
- min: 40 40;
- fixed: 1 1;
- rel1 { relative: 0.0 1.0; to: PART_POPUP_ITEM_1; offset: 0 40; }
- rel2 { relative: 0.0 1.0; to: PART_POPUP_ITEM_1; offset: 0 40; }
- }
- }
- part {
- name: PART_POPUP_ITEM_2_TEXT;
- type: TEXT;
- description {
- state: "default" 0.0;
- align: 0.0 0.0;
- min: 0 40;
- fixed: 1 1;
- rel1 { relative: 1.0 0.0; to: PART_POPUP_ITEM_2; offset: 20 0; }
- rel2 { relative: 1.0 0.0; to: PART_POPUP_ITEM_2; offset: 20 0; }
- text {
- font: "Tizen:style = regular";
- size: 30;
- min: 1 1;
- text: "5 x 5 Puzzle";
- ellipsis: -1;
- }
- color: 0 0 0 255;
- }
- }
- }
- }
- }