theme: align transparency msg formatting with default theme

This commit is contained in:
Wonguk Jeong 2014-07-23 00:49:43 +09:00
parent f08f457697
commit 508fad6a85
3 changed files with 7 additions and 7 deletions

View File

@ -43,9 +43,9 @@ collections {
public message(Msg_Type:type, id, ...) {
new r, g, b, a, v;
if (type != MSG_INT || id != 1) return;
if ((type != MSG_INT) || (id != 1)) return;
v = getarg(2) * 255 / 100;
v = (getarg(2) * 255) / 100;
custom_state(PART:"base", "default", 0.0);
get_state_val(PART:"base", STATE_COLOR, r, g, b, a);
@ -1276,7 +1276,7 @@ collections {
}
script {
public message(Msg_Type:type, id, ...) {
if (type != MSG_INT || id != 1) return;
if ((type != MSG_INT) || (id != 1)) return;
if (getarg(2) < 100)
set_state(PART:"fill", "translucent", 0.0);

View File

@ -20,9 +20,9 @@ collections {
public message(Msg_Type:type, id, ...) {
new r, g, b, a, v;
if (type != MSG_INT || id != 1) return;
if ((type != MSG_INT) || (id != 1)) return;
v = getarg(2) * 255 / 100;
v = (getarg(2) * 255) / 100;
custom_state(PART:"shadow", "default", 0.0);
get_state_val(PART:"shadow", STATE_COLOR, r, g, b, a);

View File

@ -16,9 +16,9 @@ collections {
public message(Msg_Type:type, id, ...) {
new r, g, b, a, v;
if (type != MSG_INT || id != 1) return;
if ((type != MSG_INT) || (id != 1)) return;
v = getarg(2) * 255 / 100;
v = (getarg(2) * 255) / 100;
custom_state(PART:"base", "default", 0.0);
get_state_val(PART:"base", STATE_COLOR, r, g, b, a);