}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_01_normal_press.png";
- }
+ image.normal: "00_button_01_normal_press.png";
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_01_normal_dim.png";
- }
+ image.normal: "00_button_01_normal_dim.png";
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_01_normal_press.png";
- }
+ image.normal: "00_button_01_normal_press.png";
}
}
part { name: "padding_left_top";
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel2 {
- relative: 0.0 0.0;
- }
+ rel2.relative: 0.0 0.0;
min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
- rel1 {
- relative: 1.0 1.0;
- }
+ rel1.relative: 1.0 1.0;
min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
to: "padding_left_top";
}
rel2 {
- relative: 1.0 0.0;
+ relative: 1.0 0.0;
to_x: "padding_left_top";
to_y: "padding_right_bottom";
}
relative: 1.0 0.0;
to: "icon_rect";
}
- rel2 {
- to: "icon_rect";
- }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: 0 0;
visible: 0;
relative: 1.0 0.0;
to: "icon_rect";
}
- rel2 {
- to: "icon_rect";
- }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
}
description { state: "icononly" 0.0;
min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
- align: 0.5 0.5;
}
}
part { name: "elm.text";
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_04_press.png";
- }
+ image.normal: "00_button_04_press.png";
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_04_dim.png";
- }
+ image.normal: "00_button_04_dim.png";
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_04_press.png";
- }
+ image.normal: "00_button_04_press.png";
}
}
part { name: "padding_left_top";
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel2 {
- relative: 0.0 0.0;
- }
+ rel2.relative: 0.0 0.0;
min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
- rel1 {
- relative: 1.0 1.0;
- }
+ rel1.relative: 1.0 1.0;
min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
relative: 1.0 0.0;
to: "icon_rect";
}
- rel2 {
- to: "icon_rect";
- }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: 0 0;
visible: 0;
relative: 1.0 0.0;
to: "icon_rect";
}
- rel2 {
- to: "icon_rect";
- }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
}
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_sweep_press.png";
- }
+ image.normal: "00_button_sweep_press.png";
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_sweep_dim.png";
- }
+ image.normal: "00_button_sweep_dim.png";
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_sweep_press.png";
- }
+ image.normal: "00_button_sweep_press.png";
}
}
part { name: "padding_left_top";
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel2 {
- relative: 0.0 0.0;
- }
+ rel2.relative: 0.0 0.0;
min: BUTTON_SWEEP_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
- rel1 {
- relative: 1.0 1.0;
- }
+ rel1.relative: 1.0 1.0;
min: BUTTON_SWEEP_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
relative: 1.0 0.0;
to: "icon_rect";
}
- rel2 {
- to: "icon_rect";
- }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: 0 0;
color: 0 0 0 0;
relative: 1.0 0.0;
to: "icon_rect";
}
- rel2 {
- to: "icon_rect";
- }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
color: 0 0 0 0;
alias: "elm/button/base/popup_button/volumebarstyle";
alias: "elm/button/base/popup_button/customstyle";
alias: "elm/button/base/popup_button/verticalbuttonstyle";
- alias: "elm/button/base/popup_button/image_scroll";
- alias: "elm/button/base/popup_button/image_slider";
- alias: "elm/button/base/popup_button/image_list";
images {
image: "00_button_popup_normal.png" COMP;
image: "00_button_popup_press.png" COMP;
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_popup_press.png";
- }
+ image.normal: "00_button_popup_press.png";
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_popup_dim.png";
- }
+ image.normal: "00_button_popup_dim.png";
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_popup_focus.png";
- }
+ image.normal: "00_button_popup_focus.png";
}
}
part { name: "padding_left_top";
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel2 {
- relative: 0.0 0.0;
- }
+ rel2.relative: 0.0 0.0;
min: BUTTON_POPUP_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
scale: 1;
description { state: "default" 0.0;
align: 1.0 0.0;
- rel1 {
- relative: 1.0 1.0;
- }
+ rel1.relative: 1.0 1.0;
min: BUTTON_POPUP_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
relative: 1.0 0.0;
to: "elm.swallow.content";
}
- rel2 {
- to: "elm.swallow.content";
- }
+ rel2.to: "elm.swallow.content";
fixed: 1 0;
min: 0 0;
visible: 0;
description { state: "default" 0.0; \
min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
- image { \
- normal: "00_btn_circle_bg_normal.png"; \
- } \
+ image.normal: "00_btn_circle_bg_normal.png"; \
color: 255 255 255 255; \
} \
description { \
state: "clicked" 0.0; \
inherit: "default" 0.0; \
- image { \
- normal: "00_btn_circle_bg_press.png"; \
- } \
+ image.normal: "00_btn_circle_bg_press.png"; \
} \
description { \
state: "disabled" 0.0; \
description { state: "default" 0.0; \
min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
- image { \
- normal: image_normal; \
- } \
+ image.normal: image_normal; \
color: 255 255 255 255; \
} \
description { \
state: "clicked" 0.0; \
inherit: "default" 0.0; \
- image { \
- normal: image_press; \
- } \
+ image.normal: image_press; \
} \
description { \
state: "disabled" 0.0; \
}
///////////////////////////////////////////////////////////////////////////////////////
- BUTTON_CIRCLE_STYLES("reveal", "00_button_reveal.png", "00_button_reveal.png", 40, 40)
+ BUTTON_CIRCLE_STYLES("reveal", "00_button_reveal.png", "00_button_reveal_press.png", 40, 40)
///////////////////////////////////////////////////////////////////////////////////////
BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_reveal.png", "00_button_reveal_press.png", 60, 70)
///////////////////////////////////////////////////////////////////////////////////////
BUTTON_CIRCLE_STYLES("send/extended", "00_button_send.png", "00_button_send_press.png", 60, 70)
///////////////////////////////////////////////////////////////////////////////////////
-
group { name: "elm/button/base/circle/empty";
images {
image: "00_btn_circle_bg_normal.png" COMP;
description { \
state: "clicked" 0.0; \
inherit: "default" 0.0; \
- image { \
- normal: "00_button_edit_press.png"; \
- } \
+ image.normal: "00_button_edit_press.png"; \
} \
description { \
state: "disabled" 0.0; \
inherit: "default" 0.0; \
- image { \
- normal: "00_button_edit_dim.png"; \
- } \
+ image.normal: "00_button_edit_dim.png"; \
} \
} \
part { name: "button_center_part"; \
description { \
state: "clicked" 0.0; \
inherit: "default" 0.0; \
- image { \
- normal: image_press; \
- } \
+ image.normal: image_press; \
} \
} \
part { name: "over1"; \
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_edit_press.png";
- }
+ image.normal: "00_button_edit_press.png";
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_edit_dim.png";
- }
+ image.normal: "00_button_edit_dim.png";
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_edit_press.png";
- }
+ image.normal: "00_button_edit_press.png";
}
}
part { name: "padding_left_top";
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel2 {
- relative: 0.0 0.0;
- }
+ rel2.relative: 0.0 0.0;
min: BUTTON_CONTACT_DELETE_PADDING_LEFT_TOP_MIN_INC;
fixed: 1 1;
visible: 0;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
- rel1 {
- relative: 1.0 1.0;
- }
+ rel1.relative: 1.0 1.0;
min: BUTTON_CONTACT_DELETE_PADDING_RIGHT_BOTTOM_MIN_INC;
fixed: 1 1;
visible: 0;
relative: 1.0 0.0;
to: "elm.swallow.content";
}
- rel2 {
- to: "elm.swallow.content";
- }
+ rel2.to: "elm.swallow.content";
fixed: 1 0;
min: 0 0;
visible: 0;
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_04_press.png";
- }
+ image.normal: "00_button_04_press.png";
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_04_dim.png";
- }
+ image.normal: "00_button_04_dim.png";
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_04_press.png";
- }
+ image.normal: "00_button_04_press.png";
}
}
part { name: "padding_left_top";
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel2 {
- relative: 0.0 0.0;
- }
+ rel2.relative: 0.0 0.0;
min: 2 2;
fixed: 1 1;
visible: 0;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
- rel1 {
- relative: 1.0 1.0;
- }
+ rel1.relative: 1.0 1.0;
min: 2 2;
fixed: 1 1;
visible: 0;
relative: 1.0 0.0;
to: "icon_rect";
}
- rel2 {
- to: "icon_rect";
- }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: 0 0;
color: 0 0 0 0;
relative: 1.0 0.0;
to: "icon_rect";
}
- rel2 {
- to: "icon_rect";
- }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: 5 0;
color: 0 0 0 0;
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_01_normal_press.png";
- }
+ image.normal: "00_button_01_normal_press.png";
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_01_normal_dim.png";
- }
+ image.normal: "00_button_01_normal_dim.png";
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_01_normal_press.png";
- }
+ image.normal: "00_button_01_normal_press.png";
}
}
part { name: "padding_left_top";
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel2 {
- relative: 0.0 0.0;
- }
+ rel2.relative: 0.0 0.0;
min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
- rel1 {
- relative: 1.0 1.0;
- }
+ rel1.relative: 1.0 1.0;
min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
relative: 1.0 0.0;
to: "elm.swallow.content";
}
- rel2 {
- to: "elm.swallow.content";
- }
+ rel2.to: "elm.swallow.content";
fixed: 1 0;
min: 0 0;
}
///////////////////////////////////////////////////////////////////////////////////////
BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_color_picker_btn_right.png", "00_color_picker_btn_right_press.png", "00_color_picker_btn_right_dim.png")
///////////////////////////////////////////////////////////////////////////////////////
-
group { name: "elm/button/base/hidden";
images {
image: "00_button_sweep.png" COMP;
image: "00_button_sweep_press.png" COMP;//focus image is missing, so using press
- }
+ }
script {
public button_state = BUTTON_STATE_ENABLED;
}
parts {
part { name: "button_image";
- mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
min: BUTTON_HIDDEN_BG_NORMAL_MIN_INC;
image.normal: "00_button_sweep_press.png";
}
}
- part {
- name: "padding_left_top";
+ part { name: "padding_left_top";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel1.relative: 0.0 0.0;
rel2.relative: 0.0 0.0;
min: BUTTON_HIDDEN_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "padding_right_bottom";
+ part { name: "padding_right_bottom";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
rel1.relative: 1.0 1.0;
- rel2.relative: 1.0 1.0;
min: BUTTON_HIDDEN_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "icon_rect";
+ part { name: "icon_rect";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
- visible: 1;
min: BUTTON_HIDDEN_ICON_RECT_MIN_INC;
fixed: 1 0;
- rel1 { relative: 0.0 1.0; to_x: "elm.swallow.content"; to_y: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "elm.swallow.content"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "elm.swallow.content";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "elm.swallow.content";
+ to_y: "padding_right_bottom";
+ }
align: 0.0 0.5;
color: 0 0 0 0;
}
}
- part {
- name: "padding_icon_text";
+ part { name: "padding_icon_text";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0; //when only icon or no icon is there
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1 {
+ relative: 1.0 0.0;
+ to: "icon_rect";
+ }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: 0 0;
color: 0 0 0 0;
}
description { state: "visible" 0.0; //when icon is visible
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1 {
+ relative: 1.0 0.0;
+ to: "icon_rect";
+ }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: BUTTON_HIDDEN_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
color: 0 0 0 0;
part { name: "elm.swallow.content";
type: SWALLOW;
scale: 1;
+ clip_to: "clipper";
description { state: "default" 0.0;
visible: 0;
align: 0.0 0.5;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
fixed: 1 0;
}
description { state: "visible" 0.0;
fixed: 1 0;
- visible: 1;
align: 0.0 0.5;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
aspect: 1.0 1.0;
aspect_preference: VERTICAL;
}
description { state: "icononly" 0.0;
- visible: 1;
min: BUTTON_HIDDEN_ICON_ICONONLY_MIN_INC;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
- align: 0.5 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
aspect: 1.0 1.0;
aspect_preference: VERTICAL;
}
type: TEXT;
mouse_events: 0;
scale: 1;
+ clip_to: "clipper";
description { state: "default" 0.0;
visible: 0;
- rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
- align: 0.5 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "padding_icon_text";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
color: BUTTON_HIDDEN_BUTTON_TEXT_NORMAL_COLOR_INC;
text {
font: "SLP:style=Medium";
size: BUTTON_HIDDEN_FONT_SIZE_INC;
min: 0 0;
- align: 0.5 0.5;
}
}
description { state: "visible" 0.0;
}
part { name: "over2";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
ignore_flags: ON_HOLD;
description { state: "default" 0.0;
}
part { name: "over3";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
description { state: "default" 0.0;
color: 0 0 0 0;
}
}
+ part { name: "clipper";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ }
part { name: "disabler";
type: RECT;
description { state: "default" 0.0;
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "clicked", 0.0);
+ set_state(PART:"elm.text", "clicked", 0.0);
}
}
program { name: "button_unpress";
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (strcmp(st, "icononly"))
- {
- emit("elm,action,default,text,set", "");
- set_state(PART:"elm.text", "visible", 0.0);
- }
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"button_image", "default", 0.0);
+ {
+ emit("elm,action,default,text,set", "");
+ set_state(PART:"elm.text", "visible", 0.0);
+ }
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
+ set_state(PART:"button_image", "default", 0.0);
}
after: button_unpress;
}
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "icononly"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"padding_icon_text", "visible", 0.0);
- }
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"padding_icon_text", "visible", 0.0);
+ }
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
set_state(PART:"elm.text", "visible", 0.0);
else
set_state(PART:"elm.text", "disabled_visible", 0.0);
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"padding_icon_text", "icononly", 0.0);
- }
- set_state(PART:"elm.text", "default", 0.0);
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"padding_icon_text", "icononly", 0.0);
+ }
+ set_state(PART:"elm.text", "default", 0.0);
}
}
program { name: "icon_show";
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"padding_icon_text", "visible", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"padding_icon_text", "visible", 0.0);
+ }
else
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"padding_icon_text", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"padding_icon_text", "icononly", 0.0);
+ }
}
}
program { name: "icon_hide";
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
+ set_state(PART:"elm.text", "disabled_visible", 0.0);
else
- set_state(PART:"elm.text", "disabled", 0.0);
+ set_state(PART:"elm.text", "disabled", 0.0);
set_int(button_state, BUTTON_STATE_DISABLED);
}
}
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "visible", 0.0);
+ set_state(PART:"elm.text", "visible", 0.0);
else
- set_state(PART:"elm.text", "default", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
set_int(button_state, BUTTON_STATE_ENABLED);
}
}
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_picker_btn_press.png";
- }
+ image.normal: "00_picker_btn_press.png";
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_picker_btn_press.png";
- }
+ image.normal: "00_picker_btn_press.png";
}
}
part { name: "padding_left_top";
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel2 {
- relative: 0.0 0.0;
- }
+ rel2.relative: 0.0 0.0;
min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
- rel1 {
- relative: 1.0 1.0;
- }
+ rel1.relative: 1.0 1.0;
min: BUTTON_PICKER_BAR_DEFAULT_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
relative: 1.0 0.0;
to: "icon_rect";
}
- rel2 {
- to: "icon_rect";
- }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: 0 0;
color: 0 0 0 0;
relative: 1.0 0.0;
to: "icon_rect";
}
- rel2 {
- to: "icon_rect";
- }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: BUTTON_PICKER_BAR_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
color: 0 0 0 0;
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_picker_btn_press.png";
- }
+ image.normal: "00_picker_btn_press.png";
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_picker_btn_press.png";
- }
+ image.normal: "00_picker_btn_press.png";
}
}
part { name: "padding_left_top";
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel2 {
- relative: 0.0 0.0;
- }
+ rel2.relative: 0.0 0.0;
min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
- rel1 {
- relative: 1.0 1.0;
- }
+ rel1.relative: 1.0 1.0;
min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
relative: 1.0 0.0;
to: "icon_rect";
}
- rel2 {
- to: "icon_rect";
- }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: 0 0;
color: 0 0 0 0;
relative: 1.0 0.0;
to: "icon_rect";
}
- rel2 {
- to: "icon_rect";
- }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: BUTTON_PICKER_PREV_TEXT_DEFAULT_PADDING_ICON_RECT_TEXT_MIN_INC;
color: 0 0 0 0;
}
parts {
part { name: "button_image";
- type: RECT;
- mouse_events: 1;
+ type: RECT;
scale: 1;
description { state: "default" 0.0;
- rel1 { to_x: "padding.left"; to_y: "elm.text"; }
- rel2 { to_x: "padding.right"; to_y: "elm.text"; }
+ rel1 {
+ to_x: "padding.left";
+ to_y: "elm.text";
+ }
+ rel2 {
+ to_x: "padding.right";
+ to_y: "elm.text";
+ }
min: BUTTON_CONTACT_BG_NORMAL_MIN_INC;
color: BUTTON_CONTACT_BUTTON_BG_NORMAL_COLOR_INC;
}
min: BUTTON_CONTACT_PADDING_MIN_INC;
fixed: 1 0;
color: 0 0 0 0;
- rel1.relative: 0 0;
- rel2 { relative: 0.0 1.0; to_x: "elm.text"; }
- align: 1 0;
+ rel2 {
+ relative: 0.0 1.0;
+ to_x: "elm.text";
+ }
+ align: 1.0 0.0;
}
}
part { name: "padding.right";
min: BUTTON_CONTACT_PADDING_MIN_INC;
fixed: 1 0;
color: 0 0 0 0;
- rel1 { relative: 1.0 0.0; to_x: "elm.text"; }
- rel2.relative: 1.0 1.0;
- align: 0 0;
+ rel1 {
+ relative: 1.0 0.0;
+ to_x: "elm.text";
+ }
+ align: 0.0 0.0;
}
}
part { name: "elm.text";
description { state: "default" 0.0;
visible: 0;
fixed: 1 1;
- align: 0.5 0.5;
color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
text {
font: "SLP:style=Medium";
size: BUTTON_CONTACT_FONT_SIZE_INC;
min: 1 1;
- align: 0.5 0.5;
}
}
description { state: "visible" 0.0;
}
}
part { name: "over2";
- mouse_events: 1;
repeat_events: 1;
ignore_flags: ON_HOLD;
description { state: "default" 0.0;
- rel1.to: "button_image";
- rel2.to: "button_image";
+ rel1.to: "button_image";
+ rel2.to: "button_image";
}
}
part { name: "over3";
- mouse_events: 1;
repeat_events: 1;
description { state: "default" 0.0;
- rel1.to: "button_image";
- rel2.to: "button_image";
+ rel1.to: "button_image";
+ rel2.to: "button_image";
color: 0 0 0 0;
}
}
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
- {
- emit("elm,action,default,text,set", "");
- set_state(PART:"elm.text", "visible", 0.0);
- }
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"button_image", "default", 0.0);
+ {
+ emit("elm,action,default,text,set", "");
+ set_state(PART:"elm.text", "visible", 0.0);
+ }
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
+ set_state(PART:"button_image", "default", 0.0);
}
after: button_unpress;
}
signal: "elm,state,text,visible";
source: "elm";
script {
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
set_state(PART:"elm.text", "visible", 0.0);
else
set_state(PART:"elm.text", "disabled_visible", 0.0);
action: STATE_SET "default" 0.0;
target: "elm.text";
}
-
program { name: "disable";
signal: "elm,state,disabled";
source: "elm";
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
+ set_state(PART:"elm.text", "disabled_visible", 0.0);
else
- set_state(PART:"elm.text", "disabled", 0.0);
+ set_state(PART:"elm.text", "disabled", 0.0);
set_int(button_state, BUTTON_STATE_DISABLED);
}
}
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "visible", 0.0);
+ set_state(PART:"elm.text", "visible", 0.0);
else
- set_state(PART:"elm.text", "default", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
set_int(button_state, BUTTON_STATE_ENABLED);
}
}
///////////////////////////////////////////////////////////////////////////////////////
group { name: "elm/button/base/naviframe/back_btn/default";
- alias: "elm/button/base/naviframe/prev_btn/default";
- alias: "elm/button/base/naviframe/end_btn/default";
+ alias: "elm/button/base/naviframe/prev_btn/default";
+ alias: "elm/button/base/naviframe/end_btn/default";
images {
image: "00_winset_Back_btn_normal.png" COMP;
image: "00_winset_Back_btn_press.png" COMP;
description { state: "default" 0.0;
min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
- rel1 {
- relative: 0.0 0.0;
- to: "button_image";
- }
- rel2 {
- relative: 1.0 1.0;
- to: "button_image";
- }
+ rel1.to: "button_image";
+ rel2.to: "button_image";
image.normal: "00_winset_Back.png";
}
description { state: "clicked" 0.0;
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_picker_btn_press.png";
- }
+ image.normal: "00_picker_btn_press.png";
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_picker_btn_press.png";
- }
+ image.normal: "00_picker_btn_press.png";
}
}
part { name: "padding_left_top";
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel2 {
- relative: 0.0 0.0;
- }
+ rel2.relative: 0.0 0.0;
min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
- rel1 {
- relative: 1.0 1.0;
- }
+ rel1.relative: 1.0 1.0;
min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
relative: 0.0 0.0;
to: "padding_right_bottom";
}
- image {
- normal: "00_picker_arrow_left.png";
- }
+ image.normal: "00_picker_arrow_left.png";
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_picker_arrow_left_press.png";
- }
+ image.normal: "00_picker_arrow_left_press.png";
}
}
part { name: "over2";
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_picker_btn_press.png";
- }
+ image.normal: "00_picker_btn_press.png";
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_picker_btn_press.png";
- }
+ image.normal: "00_picker_btn_press.png";
}
}
part { name: "padding_left_top";
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel2 {
- relative: 0.0 0.0;
- }
+ rel2.relative: 0.0 0.0;
min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
- rel1 {
- relative: 1.0 1.0;
- }
+ rel1.relative: 1.0 1.0;
min: BUTTON_PICKER_PREV_ICON_DEFAULT_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
relative: 0.0 0.0;
to: "padding_right_bottom";
}
- image {
- normal: "00_picker_arrow_right.png";
- }
+ image.normal: "00_picker_arrow_right.png";
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_picker_arrow_right_press.png";
- }
+ image.normal: "00_picker_arrow_right_press.png";
}
}
part { name: "over2";
}
///////////////////////////////////////////////////////////////////////////////////////
- group { name: "elm/button/base/naviframe_control/default";
- alias: "elm/button/base/naviframe_control/center";
+ group { name: "elm/button/base/naviframe_control/default";
+ alias: "elm/button/base/naviframe_control/center";
script {
public button_state = BUTTON_STATE_ENABLED;
}
- images.image: "00_Option_header_bt.png" COMP;
- images.image: "00_Option_header_bt_dim.png" COMP;
- images.image: "00_Option_header_bt_press.png" COMP;
+ images {
+ image: "00_Option_header_bt.png" COMP;
+ image: "00_Option_header_bt_dim.png" COMP;
+ image: "00_Option_header_bt_press.png" COMP;
+ }
parts {
part { name: "button_image";
- type: IMAGE;
- mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
color: 0 0 0 0;
rel1.offset: 0 0;
rel2.offset: -1 -1;
- image.normal: "00_Option_header_bt.png";
- image.border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
+ image {
+ normal: "00_Option_header_bt.png";
+ border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
+ }
color: 255 255 255 255;
}
description { state: "disabled" 0.0;
image.normal: "00_Option_header_bt_press.png";
}
}
- part {
- name: "padding_left_top";
+ part { name: "padding_left_top";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel1.relative: 0.0 0.0;
rel2.relative: 0.0 0.0;
min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "padding_right_bottom";
+ part { name: "padding_right_bottom";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
rel1.relative: 1.0 1.0;
- rel2.relative: 1.0 1.0;
min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "icon_rect";
+ part { name: "icon_rect";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
- visible: 1;
min: 0 0;
fixed: 1 0;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
align: 0.0 0.5;
color: 0 0 0 0;
}
description { state: "visible" 0.0;
- visible: 1;
min: BUTTON_NAVIFRAME_CENTER_ICON_RECT_VISIBLE_MIN_SIZE;
fixed: 1 0;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
align: 0.0 0.5;
color: 0 0 0 0;
}
inherit: "default" 0.0;
}
}
- part {
- name: "padding_after_icon";
+ part { name: "padding_after_icon";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0; //when only icon or no icon is there
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1 {
+ relative: 1.0 0.0;
+ to: "icon_rect";
+ }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: 0 0;
color: 0 0 0 0;
}
description { state: "visible" 0.0;
- visible: 1;
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1 {
+ relative: 1.0 0.0;
+ to: "icon_rect";
+ }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: BUTTON_NAVIFRAME_CENTER_PADDING_AFTER_ICON_VISIBLE_MIN_INC;
color: 0 0 0 0;
inherit: "default" 0.0;
}
}
- part {
- name: "padding_before_text";
+ part { name: "padding_before_text";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0; //when only icon or no icon is there
align: 1.0 0.5;
- rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "elm.text";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "elm.text";
+ to_y: "padding_right_bottom";
+ }
fixed: 1 0;
min: BUTTON_NAVIFRAME_CENTER_PADDING_BEFORE_TEXT_DEFAULT_MIN_INC;
color: 0 0 0 0;
description { state: "default" 0.0;
visible: 0;
align: 0.0 0.5;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
fixed: 1 0;
}
description { state: "visible" 0.0;
fixed: 1 0;
- visible: 1;
min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
align: 1.0 0.5;
- rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "padding_before_text";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "padding_before_text";
+ to_y: "padding_right_bottom";
+ }
aspect: 1.0 1.0;
aspect_preference: VERTICAL;
}
description { state: "icononly" 0.0;
- visible: 1;
min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
- align: 0.5 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
aspect: 1.0 1.0;
aspect_preference: VERTICAL;
}
clip_to: "clipper";
description { state: "default" 0.0;
visible: 0;
- rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
- align: 0.5 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "padding_after_icon";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
text {
font: "SLP:style=Medium";
size: BUTTON_NAVIFRAME_CENTER_TEXT_FONT_SIZE_INC;
min: 0 0;
max: 1 0;
- align: 0.5 0.5;
}
}
description { state: "visible" 0.0;
}
part { name: "over2";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
ignore_flags: ON_HOLD;
description { state: "default" 0.0;
}
part { name: "over3";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
description { state: "default" 0.0;
color: 0 0 0 0;
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "clicked", 0.0);
+ set_state(PART:"elm.text", "clicked", 0.0);
}
}
program { name: "button_unpress";
emit("elm,action,default,text,set", "");
set_state(PART:"elm.text", "visible", 0.0);
}
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"button_image", "default", 0.0);
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
+ set_state(PART:"button_image", "default", 0.0);
}
after: button_unpress;
}
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "icononly"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"icon_rect", "visible", 0.0);
- set_state(PART:"padding_after_icon", "visible", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"icon_rect", "visible", 0.0);
+ set_state(PART:"padding_after_icon", "visible", 0.0);
+ }
set_state(PART:"elm.text", "visible", 0.0);
}
}
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"icon_rect", "icononly", 0.0);
- set_state(PART:"padding_after_icon", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"icon_rect", "icononly", 0.0);
+ set_state(PART:"padding_after_icon", "icononly", 0.0);
+ }
set_state(PART:"elm.text", "default", 0.0);
}
}
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"icon_rect", "visible", 0.0);
- set_state(PART:"padding_after_icon", "visible", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"icon_rect", "visible", 0.0);
+ set_state(PART:"padding_after_icon", "visible", 0.0);
+ }
else
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"icon_rect", "icononly", 0.0);
- set_state(PART:"padding_after_icon", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"icon_rect", "icononly", 0.0);
+ set_state(PART:"padding_after_icon", "icononly", 0.0);
+ }
}
}
program { name: "icon_hide";
script {
public button_state = BUTTON_STATE_ENABLED;
}
- images.image: "00_Option_header_bt.png" COMP;
- images.image: "00_Option_header_bt_dim.png" COMP;
- images.image: "00_Option_header_bt_press.png" COMP;
+ images {
+ image: "00_Option_header_bt.png" COMP;
+ image: "00_Option_header_bt_dim.png" COMP;
+ image: "00_Option_header_bt_press.png" COMP;
+ }
styles{
style { name: "btn_multiline_naviframe_controlbar_style";
base: "font=SLP:style=Medium font_size="BUTTON_NAVIFRAME_MULTILINE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed";
}
parts {
part { name: "button_image";
- type: IMAGE;
- mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
min: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_MIN_INC;
rel1.offset: 0 0;
rel2.offset: -1 -1;
- image.normal: "00_Option_header_bt.png";
- image.border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
+ image {
+ normal: "00_Option_header_bt.png";
+ border: BUTTON_NAVIFRAME_CENTER_BG_NORMAL_BORDER_INC;
+ }
color: 255 255 255 255;
}
description { state: "disabled" 0.0;
image.normal: "00_Option_header_bt_press.png";
}
}
- part {
- name: "padding_left_top";
+ part { name: "padding_left_top";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel1 {
- relative: 0.0 0.0;
- }
- rel2 {
- relative: 0.0 0.0;
- }
+ rel2.relative: 0.0 0.0;
min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "padding_right_bottom";
+ part { name: "padding_right_bottom";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
rel1.relative: 1.0 1.0;
- rel2.relative: 1.0 1.0;
min: BUTTON_NAVIFRAME_CENTER_PADDING_MIN_MAX_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "icon_rect";
+ part { name: "icon_rect";
type: RECT;
scale: 1;
mouse_events: 0;
align: 0.0 0.5;
}
}
- part {
- name: "padding_icon_text";
+ part { name: "padding_icon_text";
type: RECT;
scale: 1;
mouse_events: 0;
}
description { state: "visible" 0.0;
fixed: 1 0;
- visible: 1;
min: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
max: BUTTON_NAVIFRAME_CENTER_SWALLOW_VISIBLE_MIN_MAX_INC;
align: 0.0 0.5;
}
}
description { state: "icononly" 0.0;
- visible: 1;
min: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
max: BUTTON_NAVIFRAME_CENTER_SWALLOW_ICONONLY_MIN_MAX_INC;
rel1 {
relative: 0.0 0.0;
to: "padding_right_bottom";
}
- align: 0.5 0.5;
}
}
part { name: "elm.text";
relative: 0.0 0.0;
to: "padding_right_bottom";
}
- align: 0.5 0.5;
color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
text {
style: "btn_multiline_naviframe_controlbar_style";
}
part { name: "over2";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
ignore_flags: ON_HOLD;
description { state: "default" 0.0;
}
part { name: "over3";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
description { state: "default" 0.0;
color: 0 0 0 0;
emit("elm,action,default,text,set", "");
set_state(PART:"elm.text", "visible", 0.0);
}
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
set_state(PART:"button_image", "default", 0.0);
}
after: button_unpress;
description { state: "icononly" 0.0;
min: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
max: BUTTON_NAVIFRAME_ICONONLY_ICON_MIN_MAX_INC;
- align: 0.5 0.5;
}
}
part { name: "elm.text";
description { state: "default" 0.0;
min: BUTTON_NAVIFRAME_TITLE_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
max: BUTTON_NAVIFRAME_TITLE_ICON_DEFAULT_IMAGE_MIN_MAX_INC;
- rel1 {
- relative: 0.0 0.0;
- to: "button_image";
- }
- rel2 {
- relative: 1.0 1.0;
- to: "button_image";
- }
+ rel1.to: "button_image";
+ rel2.to: "button_image";
image.normal: "00_winset_more.png";
}
description { state: "clicked" 0.0;
parts {
part { name: "button_image";
type: RECT;
- mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
min: 20 30;
visible: 0;
}
}
- part {
- name: "padding_left_top";
+ part { name: "padding_left_top";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel1.relative: 0.0 0.0;
rel2.relative: 0.0 0.0;
min: 10 8;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "padding_right_bottom";
+ part { name: "padding_right_bottom";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
rel1.relative: 1.0 1.0;
- rel2.relative: 1.0 1.0;
min: 10 5;
fixed: 1 1;
visible: 0;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
- visible: 1;
min: 0 0;
fixed: 0 1;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to_x: "padding_right_bottom";
+ to_y: "padding_left_top";
+ }
align: 0.5 0.0;
color: 0 0 0 0;
}
description { state: "visible" 0.0;
- visible: 1;
min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
fixed: 0 1;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to_x: "padding_right_bottom";
+ to_y: "padding_left_top";
+ }
align: 0.5 0.0;
color: 0 0 0 0;
}
inherit: "default" 0.0;
}
}
- part {
- name: "padding_after_icon";
+ part { name: "padding_after_icon";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0; //when only icon or no icon is there
align: 0.0 0.0;
- rel1 { relative: 0.0 1.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1 {
+ relative: 0.0 1.0;
+ to: "icon_rect";
+ }
+ rel2.to: "icon_rect";
fixed: 0 1;
min: 0 0;
color: 0 0 0 0;
}
description { state: "visible" 0.0;
- visible: 1;
align: 0.0 0.0;
- rel1 { relative: 0.0 1.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1 {
+ relative: 0.0 1.0;
+ to: "icon_rect";
+ }
+ rel2.to: "icon_rect";
fixed: 0 1;
min: 0 0;
color: 0 0 0 0;
inherit: "default" 0.0;
}
}
- part {
- name: "padding_before_text";
+ part { name: "padding_before_text";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0; //when only icon or no icon is there
align: 0.5 1.0;
- rel1 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "elm.text"; }
- rel2 { relative: 0.0 0.0; to_x: "padding_right_bottom"; to_y: "elm.text"; }
+ rel1 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "elm.text";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "padding_right_bottom";
+ to_y: "elm.text";
+ }
fixed: 0 1;
min: 0 0;
color: 0 0 0 0;
description { state: "default" 0.0;
visible: 0;
align: 0.5 0.0;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 1.0;
+ to_x: "padding_right_bottom";
+ to_y: "padding_left_top";
+ }
fixed: 0 1;
}
description { state: "visible" 0.0;
fixed: 0 1;
- visible: 1;
min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
- align: 0.5 0.5;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to_x: "padding_right_bottom"; to_y: "padding_before_text"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "padding_right_bottom";
+ to_y: "padding_before_text";
+ }
aspect: 1.0 1.0;
aspect_preference: HORIZONTAL;
}
description { state: "icononly" 0.0;
- visible: 1;
min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
- align: 0.5 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
aspect: 1.0 1.0;
aspect_preference: HORIZONTAL;
}
clip_to: "disabler";
description { state: "default" 0.0;
visible: 0;
- rel1 { relative: 1.0 1.0; to_x: "padding_left_top"; to_y: "padding_after_icon"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
- align: 0.5 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "padding_left_top";
+ to_y: "padding_after_icon";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
fixed: 1 1;
text {
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "clicked", 0.0);
+ set_state(PART:"elm.text", "clicked", 0.0);
}
}
program { name: "button_unpress";
emit("elm,action,default,text,set", "");
set_state(PART:"elm.text", "visible", 0.0);
}
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"button_image", "default", 0.0);
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
+ set_state(PART:"button_image", "default", 0.0);
}
after: button_unpress;
}
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "icononly"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"icon_rect", "visible", 0.0);
- set_state(PART:"padding_after_icon", "visible", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"icon_rect", "visible", 0.0);
+ set_state(PART:"padding_after_icon", "visible", 0.0);
+ }
set_state(PART:"elm.text", "visible", 0.0);
}
}
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"icon_rect", "icononly", 0.0);
- set_state(PART:"padding_after_icon", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"icon_rect", "icononly", 0.0);
+ set_state(PART:"padding_after_icon", "icononly", 0.0);
+ }
set_state(PART:"elm.text", "default", 0.0);
}
}
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"icon_rect", "visible", 0.0);
- set_state(PART:"padding_after_icon", "visible", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"icon_rect", "visible", 0.0);
+ set_state(PART:"padding_after_icon", "visible", 0.0);
+ }
else
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"icon_rect", "icononly", 0.0);
- set_state(PART:"padding_after_icon", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"icon_rect", "icononly", 0.0);
+ set_state(PART:"padding_after_icon", "icononly", 0.0);
+ }
}
}
program { name: "icon_hide";
set_int(button_state, BUTTON_STATE_DISABLED);
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
- set_state(PART:"elm.text", "visible", 0.0);
+ set_state(PART:"elm.text", "visible", 0.0);
}
}
program { name: "enable";
set_int(button_state, BUTTON_STATE_ENABLED);
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
- set_state(PART:"elm.text", "visible", 0.0);
+ set_state(PART:"elm.text", "visible", 0.0);
}
}
program { name: "focused";
///////////////////////////////////////////////////////////////////////////////////////
group { name: "elm/button/base/controlbar/horizontal_center";
- script {
+ script {
public button_state = BUTTON_STATE_ENABLED;
}
parts {
part { name: "button_image";
type: RECT;
- mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
min: 20 30;
visible: 1;
}
}
- part {
- name: "padding_left_top";
+ part { name: "padding_left_top";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel1.relative: 0.0 0.0;
rel2.relative: 0.0 0.0;
min: 10 5;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "padding_right_bottom";
+ part { name: "padding_right_bottom";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
rel1.relative: 1.0 1.0;
- rel2.relative: 1.0 1.0;
min: 10 5;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "icon_rect";
+ part { name: "icon_rect";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
- visible: 1;
min: 0 0;
fixed: 1 0;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
align: 0.0 0.5;
color: 0 0 0 0;
}
description { state: "visible" 0.0;
- visible: 1;
min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
fixed: 1 0;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
align: 0.0 0.5;
color: 0 0 0 0;
}
min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
}
}
- part {
- name: "padding_after_icon";
+ part { name: "padding_after_icon";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0; //when only icon or no icon is there
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1 {
+ relative: 1.0 0.0;
+ to: "icon_rect";
+ }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: 0 0;
color: 0 0 0 0;
}
description { state: "visible" 0.0;
- visible: 1;
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1 {
+ relative: 1.0 0.0;
+ to: "icon_rect";
+ }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: 6 0;
color: 0 0 0 0;
inherit: "default" 0.0;
}
}
- part {
- name: "padding_before_text";
+ part { name: "padding_before_text";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0; //when only icon or no icon is there
align: 1.0 0.5;
- rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "elm.text";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "elm.text";
+ to_y: "padding_right_bottom";
+ }
fixed: 1 0;
min: 6 0;
color: 0 0 0 0;
description { state: "default" 0.0;
visible: 0;
align: 0.0 0.5;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
fixed: 1 0;
}
description { state: "visible" 0.0;
fixed: 1 0;
- visible: 1;
min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
align: 1.0 0.5;
- rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "padding_before_text";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "padding_before_text";
+ to_y: "padding_right_bottom";
+ }
aspect: 1.0 1.0;
aspect_preference: VERTICAL;
}
description { state: "icononly" 0.0;
- visible: 1;
min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
- align: 0.5 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
aspect: 1.0 1.0;
aspect_preference: VERTICAL;
}
clip_to: "disabler";
description { state: "default" 0.0;
visible: 0;
- rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
- align: 0.5 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "padding_after_icon";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
text {
font: "SLP:style=Medium";
size: BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC;
min: 0 0;
max: 1 0;
- align: 0.5 0.5;
}
}
description { state: "visible" 0.0;
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "clicked", 0.0);
+ set_state(PART:"elm.text", "clicked", 0.0);
}
}
program { name: "button_unpress";
emit("elm,action,default,text,set", "");
set_state(PART:"elm.text", "visible", 0.0);
}
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"button_image", "default", 0.0);
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
+ set_state(PART:"button_image", "default", 0.0);
}
after: button_unpress;
}
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "icononly"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"icon_rect", "visible", 0.0);
- set_state(PART:"padding_after_icon", "visible", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"icon_rect", "visible", 0.0);
+ set_state(PART:"padding_after_icon", "visible", 0.0);
+ }
set_state(PART:"elm.text", "visible", 0.0);
}
}
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"icon_rect", "icononly", 0.0);
- set_state(PART:"padding_after_icon", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"icon_rect", "icononly", 0.0);
+ set_state(PART:"padding_after_icon", "icononly", 0.0);
+ }
set_state(PART:"elm.text", "default", 0.0);
}
}
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"icon_rect", "visible", 0.0);
- set_state(PART:"padding_after_icon", "visible", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"icon_rect", "visible", 0.0);
+ set_state(PART:"padding_after_icon", "visible", 0.0);
+ }
else
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"icon_rect", "icononly", 0.0);
- set_state(PART:"padding_after_icon", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"icon_rect", "icononly", 0.0);
+ set_state(PART:"padding_after_icon", "icononly", 0.0);
+ }
}
}
program { name: "icon_hide";
set_int(button_state, BUTTON_STATE_DISABLED);
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
- set_state(PART:"elm.text", "visible", 0.0);
+ set_state(PART:"elm.text", "visible", 0.0);
}
}
program { name: "enable";
set_int(button_state, BUTTON_STATE_ENABLED);
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
- set_state(PART:"elm.text", "visible", 0.0);
+ set_state(PART:"elm.text", "visible", 0.0);
}
}
program { name: "focused";
}
}
- ///////////////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////////////
group { name: "elm/button/base/controlbar/horizontal_left";
script {
public button_state = BUTTON_STATE_ENABLED;
parts {
part { name: "button_image";
type: RECT;
- mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
min: 20 30;
visible: 1;
}
}
- part {
- name: "padding_left_top";
+ part { name: "padding_left_top";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel1.relative: 0.0 0.0;
rel2.relative: 0.0 0.0;
min: 10 5;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "padding_right_bottom";
+ part { name: "padding_right_bottom";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
rel1.relative: 1.0 1.0;
- rel2.relative: 1.0 1.0;
min: 10 5;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "icon_rect";
+ part { name: "icon_rect";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
- visible: 1;
min: 0 0;
fixed: 1 0;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
align: 0.0 0.5;
color: 0 0 0 0;
}
description { state: "visible" 0.0;
- visible: 1;
min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
fixed: 1 0;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
align: 0.0 0.5;
color: 0 0 0 0;
}
inherit: "default" 0.0;
}
}
- part {
- name: "padding_after_icon";
+ part { name: "padding_after_icon";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0; //when only icon or no icon is there
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1 {
+ relative: 1.0 0.0;
+ to: "icon_rect";
+ }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: 0 0;
color: 0 0 0 0;
}
description { state: "visible" 0.0;
- visible: 1;
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1 {
+ relative: 1.0 0.0;
+ to: "icon_rect";
+ }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: 6 0;
color: 0 0 0 0;
inherit: "default" 0.0;
}
}
- part {
- name: "padding_before_text";
+ part { name: "padding_before_text";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0; //when only icon or no icon is there
align: 1.0 0.5;
- rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "elm.text";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "elm.text";
+ to_y: "padding_right_bottom";
+ }
fixed: 1 0;
min: 6 0;
color: 0 0 0 0;
description { state: "default" 0.0;
visible: 0;
align: 0.0 0.5;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
fixed: 1 0;
}
description { state: "visible" 0.0;
fixed: 1 0;
- visible: 1;
min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
align: 1.0 0.5;
- rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "padding_before_text";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "padding_before_text";
+ to_y: "padding_right_bottom";
+ }
aspect: 1.0 1.0;
aspect_preference: VERTICAL;
}
description { state: "icononly" 0.0;
- visible: 1;
min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
- align: 0.5 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
aspect: 1.0 1.0;
aspect_preference: VERTICAL;
}
clip_to: "disabler";
description { state: "default" 0.0;
visible: 0;
- rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "padding_after_icon";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
align: 0.0 0.5;
color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
text {
}
part { name: "over2";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
ignore_flags: ON_HOLD;
description { state: "default" 0.0;
}
part { name: "over3";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
description { state: "default" 0.0;
color: 0 0 0 0;
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "clicked", 0.0);
+ set_state(PART:"elm.text", "clicked", 0.0);
}
}
program { name: "button_unpress";
emit("elm,action,default,text,set", "");
set_state(PART:"elm.text", "visible", 0.0);
}
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"button_image", "default", 0.0);
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
+ set_state(PART:"button_image", "default", 0.0);
}
after: button_unpress;
}
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "icononly"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"icon_rect", "visible", 0.0);
- set_state(PART:"padding_after_icon", "visible", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"icon_rect", "visible", 0.0);
+ set_state(PART:"padding_after_icon", "visible", 0.0);
+ }
set_state(PART:"elm.text", "visible", 0.0);
}
}
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"icon_rect", "icononly", 0.0);
- set_state(PART:"padding_after_icon", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"icon_rect", "icononly", 0.0);
+ set_state(PART:"padding_after_icon", "icononly", 0.0);
+ }
set_state(PART:"elm.text", "default", 0.0);
}
}
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"icon_rect", "visible", 0.0);
- set_state(PART:"padding_after_icon", "visible", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"icon_rect", "visible", 0.0);
+ set_state(PART:"padding_after_icon", "visible", 0.0);
+ }
else
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"icon_rect", "icononly", 0.0);
- set_state(PART:"padding_after_icon", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"icon_rect", "icononly", 0.0);
+ set_state(PART:"padding_after_icon", "icononly", 0.0);
+ }
}
}
program { name: "icon_hide";
parts {
part { name: "button_image";
type: RECT;
- mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
min: 20 30;
visible: 1;
}
}
- part {
- name: "padding_left_top";
+ part { name: "padding_left_top";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel1.relative: 0.0 0.0;
rel2.relative: 0.0 0.0;
min: 10 5;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "padding_right_bottom";
+ part { name: "padding_right_bottom";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
rel1.relative: 1.0 1.0;
- rel2.relative: 1.0 1.0;
min: 10 5;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "icon_rect";
+ part { name: "icon_rect";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
- visible: 1;
min: 0 0;
fixed: 1 0;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
align: 0.0 0.5;
color: 0 0 0 0;
}
description { state: "visible" 0.0;
- visible: 1;
min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
fixed: 1 0;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
align: 0.0 0.5;
color: 0 0 0 0;
}
inherit: "default" 0.0;
}
}
- part {
- name: "padding_after_icon";
+ part { name: "padding_after_icon";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0; //when only icon or no icon is there
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1 {
+ relative: 1.0 0.0;
+ to: "icon_rect";
+ }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: 0 0;
color: 0 0 0 0;
}
description { state: "visible" 0.0;
- visible: 1;
align: 0.0 0.0;
- rel1 { relative: 1.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1 {
+ relative: 1.0 0.0;
+ to: "icon_rect";
+ }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: 6 0;
color: 0 0 0 0;
inherit: "default" 0.0;
}
}
- part {
- name: "padding_before_text";
+ part { name: "padding_before_text";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0; //when only icon or no icon is there
align: 1.0 0.5;
- rel1 { relative: 0.0 1.0; to_x: "elm.text"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to_x: "elm.text"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "elm.text";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "elm.text";
+ to_y: "padding_right_bottom";
+ }
fixed: 1 0;
min: 6 0;
color: 0 0 0 0;
description { state: "default" 0.0;
visible: 0;
align: 0.0 0.5;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 0.0; to_x: "padding_left_top"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ to_x: "padding_left_top";
+ to_y: "padding_right_bottom";
+ }
fixed: 1 0;
}
description { state: "visible" 0.0;
fixed: 1 0;
- visible: 1;
min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
align: 1.0 0.5;
- rel1 { relative: 0.0 1.0; to_x: "padding_before_text"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to_x: "padding_before_text"; to_y: "padding_right_bottom"; }
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "padding_before_text";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to_x: "padding_before_text";
+ to_y: "padding_right_bottom";
+ }
aspect: 1.0 1.0;
aspect_preference: VERTICAL;
}
description { state: "icononly" 0.0;
- visible: 1;
min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
- align: 0.5 0.5;
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
aspect: 1.0 1.0;
aspect_preference: VERTICAL;
}
clip_to: "disabler";
description { state: "default" 0.0;
visible: 0;
- rel1 { relative: 1.0 1.0; to_x: "padding_after_icon"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to_x: "padding_after_icon";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
align: 1.0 0.5;
color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
text {
}
part { name: "over2";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
ignore_flags: ON_HOLD;
description { state: "default" 0.0;
}
part { name: "over3";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
description { state: "default" 0.0;
color: 0 0 0 0;
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "clicked", 0.0);
+ set_state(PART:"elm.text", "clicked", 0.0);
}
}
program { name: "button_unpress";
emit("elm,action,default,text,set", "");
set_state(PART:"elm.text", "visible", 0.0);
}
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
- set_state(PART:"button_image", "default", 0.0);
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
+ set_state(PART:"button_image", "default", 0.0);
}
after: button_unpress;
}
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "icononly"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"icon_rect", "visible", 0.0);
- set_state(PART:"padding_after_icon", "visible", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"icon_rect", "visible", 0.0);
+ set_state(PART:"padding_after_icon", "visible", 0.0);
+ }
set_state(PART:"elm.text", "visible", 0.0);
}
}
new Float:vl;
get_state(PART:"elm.swallow.content", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"icon_rect", "icononly", 0.0);
- set_state(PART:"padding_after_icon", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"icon_rect", "icononly", 0.0);
+ set_state(PART:"padding_after_icon", "icononly", 0.0);
+ }
set_state(PART:"elm.text", "default", 0.0);
}
}
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- {
- set_state(PART:"elm.swallow.content", "visible", 0.0);
- set_state(PART:"icon_rect", "visible", 0.0);
- set_state(PART:"padding_after_icon", "visible", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "visible", 0.0);
+ set_state(PART:"icon_rect", "visible", 0.0);
+ set_state(PART:"padding_after_icon", "visible", 0.0);
+ }
else
- {
- set_state(PART:"elm.swallow.content", "icononly", 0.0);
- set_state(PART:"icon_rect", "icononly", 0.0);
- set_state(PART:"padding_after_icon", "icononly", 0.0);
- }
+ {
+ set_state(PART:"elm.swallow.content", "icononly", 0.0);
+ set_state(PART:"icon_rect", "icononly", 0.0);
+ set_state(PART:"padding_after_icon", "icononly", 0.0);
+ }
}
}
program { name: "icon_hide";
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_06_press.png";
- }
+ image.normal: "00_button_06_press.png";
}
description { state: "disabled" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_06_dim.png";
- }
+ image.normal: "00_button_06_dim.png";
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- image {
- normal: "00_button_06_press.png";
- }
+ image.normal: "00_button_06_press.png";
}
}
part { name: "padding_left_top";
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel2 {
- relative: 0.0 0.0;
- }
+ rel2.relative: 0.0 0.0;
min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
- rel1 {
- relative: 1.0 1.0;
- }
+ rel1.relative: 1.0 1.0;
min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
to: "padding_left_top";
}
rel2 {
- relative: 1.0 0.0;
+ relative: 1.0 0.0;
to_x: "padding_left_top";
to_y: "padding_right_bottom";
}
relative: 1.0 0.0;
to: "icon_rect";
}
- rel2 {
- to: "icon_rect";
- }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: 0 0;
visible: 0;
relative: 1.0 0.0;
to: "icon_rect";
}
- rel2 {
- to: "icon_rect";
- }
+ rel2.to: "icon_rect";
fixed: 1 0;
min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
}
description { state: "icononly" 0.0;
min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
- align: 0.5 0.5;
}
}
part { name: "elm.text";
}
parts {
part { name: "button_image";
- mouse_events: 1;
scale: 1;
description { state: "default" 0.0;
min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
image.normal: "00_button_05_press.png";
}
}
- part {
- name: "padding_left_top";
+ part { name: "padding_left_top";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 0.0 0.0;
- rel1.relative: 0.0 0.0;
rel2.relative: 0.0 0.0;
min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "padding_right_bottom";
+ part { name: "padding_right_bottom";
type: RECT;
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
align: 1.0 1.0;
rel1.relative: 1.0 1.0;
- rel2.relative: 1.0 1.0;
min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
fixed: 1 1;
visible: 0;
}
}
- part {
- name: "icon_rect";
+ part { name: "icon_rect";
type: RECT;
scale: 1;
mouse_events: 0;
min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
fixed: 1 0;
- rel1 { relative: 0.0 1.0; to_x: "padding_right_bottom"; to_y: "padding_left_top"; }
- rel2 { relative: 0.0 0.0; to: "padding_right_bottom"; }
+ rel1 {
+ relative: 0.0 1.0;
+ to_x: "padding_right_bottom";
+ to_y: "padding_left_top";
+ }
+ rel2 {
+ relative: 0.0 0.0;
+ to: "padding_right_bottom";
+ }
align: 1.0 0.5;
color: 0 0 0 0;
}
}
- part {
- name: "arrow_expand";
+ part { name: "arrow_expand";
scale: 1;
mouse_events: 0;
description { state: "default" 0.0;
min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND__MIN_MAX_INC;
fixed: 0 0;
- rel1 { relative: 0.0 0.0; to: "icon_rect"; }
- rel2 { relative: 1.0 1.0; to: "icon_rect"; }
+ rel1.to: "icon_rect";
+ rel2.to: "icon_rect";
image.normal:"00_arrow_expand.png";
}
description { state: "clicked" 0.0;
mouse_events: 0;
scale: 1;
description { state: "default" 0.0;
- visible: 1;
min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
fixed:1 0;
- rel1 { relative: 1.0 1.0; to: "padding_left_top"; }
- rel2 { relative: 1.0 1.0; to_x:"padding_left_top"; to_y:"padding_right_bottom"; }
+ rel1 {
+ relative: 1.0 1.0;
+ to: "padding_left_top";
+ }
+ rel2 {
+ relative: 1.0 1.0;
+ to_x:"padding_left_top";
+ to_y:"padding_right_bottom";
+ }
align: 0.0 0.5;
color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
text {
min: 0 0;
fit: 1 1;
size_range: 14 20;
- align: 0.5 0.5;
}
}
description { state: "visible" 0.0;
inherit: "default" 0.0;
- visible: 1;
}
description { state: "clicked" 0.0;
inherit: "default" 0.0;
- visible: 1;
color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
}
description { state: "disabled" 0.0;
description { state: "disabled_visible" 0.0;
inherit: "default" 0.0;
color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
- visible: 1;
}
description { state: "focused" 0.0;
inherit: "default" 0.0;
- visible: 1;
color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
}
}
part { name: "over2";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
ignore_flags: ON_HOLD;
description { state: "default" 0.0;
}
part { name: "over3";
type: RECT;
- mouse_events: 1;
repeat_events: 1;
description { state: "default" 0.0;
color: 0 0 0 0;
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "clicked", 0.0);
+ set_state(PART:"elm.text", "clicked", 0.0);
}
}
program { name: "button_unpress";
signal: "mouse,up,1";
source: "over3";
script {
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
- {
- set_state(PART:"button_image", "default", 0.0);
- set_state(PART:"elm.text", "visible", 0.0);
- set_state(PART:"arrow_expand", "default", 0.0);
- }
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
+ {
+ set_state(PART:"button_image", "default", 0.0);
+ set_state(PART:"elm.text", "visible", 0.0);
+ set_state(PART:"arrow_expand", "default", 0.0);
+ }
}
after: button_unpress;
}
signal: "elm,state,text,visible";
source: "elm";
script {
- if(get_int(button_state) != BUTTON_STATE_DISABLED)
+ if (get_int(button_state) != BUTTON_STATE_DISABLED)
set_state(PART:"elm.text", "visible", 0.0);
else
set_state(PART:"elm.text", "disabled_visible", 0.0);
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "visible"))
- set_state(PART:"elm.text", "disabled_visible", 0.0);
+ set_state(PART:"elm.text", "disabled_visible", 0.0);
else
- set_state(PART:"elm.text", "disabled", 0.0);
+ set_state(PART:"elm.text", "disabled", 0.0);
set_int(button_state, BUTTON_STATE_DISABLED);
}
}
new Float:vl;
get_state(PART:"elm.text", st, 30, vl);
if (!strcmp(st, "disabled_visible"))
- set_state(PART:"elm.text", "visible", 0.0);
+ set_state(PART:"elm.text", "visible", 0.0);
else
- set_state(PART:"elm.text", "default", 0.0);
+ set_state(PART:"elm.text", "default", 0.0);
set_int(button_state, BUTTON_STATE_ENABLED);
}
}