widget/combo/00_combo_hover.png
widget/combo/00_combo_normal_button.png
widget/combo/00_combo_normal.png
- widget/combo/00_combo_press_button.png
- widget/combo/00_combo_press.png
widget/combo/00_combo_border.png
widget/combo/00_combo_focus_border.png
widget/combo/00_combo_hover_border.png
image: "widget/combo/00_combo_hover_button.png" COMP;
image: "widget/combo/00_combo_focus.png" COMP;
image: "widget/combo/00_combo_focus_button.png" COMP;
- image: "widget/combo/00_combo_press.png" COMP;
- image: "widget/combo/00_combo_press_button.png" COMP;
image: "widget/combo/00_combo_border.png" COMP;
image: "widget/combo/00_combo_focus_border.png" COMP;
image: "widget/combo/00_combo_hover_border.png" COMP;
script {
public isEnabled;
- public isPressed;
public isFocused;
public isHovered;
public isStyled;
public show() {
if (get_int(isEnabled) == 1) {
if (get_int(isFocused) == 1) {
- if (get_int(isPressed) == 1) {
- set_state(PART:"combo", "pressed", 0.0);
- set_state(PART:"combo_button", "pressed", 0.0);
- }
- else if (get_int(isStyled) == 1) {
+ if (get_int(isStyled) == 1) {
set_state(PART:"combo", "styled_focused", 0.0);
set_state(PART:"combo_button", "focused", 0.0);
}
}
}
description {
- state: "pressed" 0.0;
- inherit: "default" 0.0;
- image {
- normal: "widget/combo/00_combo_press.png";
- border: 15 0 15 15;
- }
- }
- description {
state: "styled" 0.0;
image {
normal: "widget/combo/00_combo_border.png";
border: 0 15 15 15;
}
}
- description {
- state: "pressed" 0.0;
- inherit: "default" 0.0;
- rel1.to: "bt_combo_clipper";
- image {
- normal: "widget/combo/00_combo_press_button.png";
- border: 0 15 15 15;
- }
- }
}
part {
}
}
program {
- name: "pressed";
- signal: "pressed";
- script {
- set_int(isPressed, 1);
- show();
- }
- }
- program {
name: "focused";
signal: "focused";
script {
signal: "reset";
script {
set_int(isEnabled, 0);
- set_int(isPressed, 0);
set_int(isFocused, 0);
set_int(isHovered, 0);
set_int(isStyled, 0);