theme: align transparency msg formatting with default theme
This commit is contained in:
parent
f08f457697
commit
508fad6a85
|
@ -43,9 +43,9 @@ collections {
|
||||||
public message(Msg_Type:type, id, ...) {
|
public message(Msg_Type:type, id, ...) {
|
||||||
new r, g, b, a, v;
|
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);
|
custom_state(PART:"base", "default", 0.0);
|
||||||
get_state_val(PART:"base", STATE_COLOR, r, g, b, a);
|
get_state_val(PART:"base", STATE_COLOR, r, g, b, a);
|
||||||
|
@ -1276,7 +1276,7 @@ collections {
|
||||||
}
|
}
|
||||||
script {
|
script {
|
||||||
public message(Msg_Type:type, id, ...) {
|
public message(Msg_Type:type, id, ...) {
|
||||||
if (type != MSG_INT || id != 1) return;
|
if ((type != MSG_INT) || (id != 1)) return;
|
||||||
|
|
||||||
if (getarg(2) < 100)
|
if (getarg(2) < 100)
|
||||||
set_state(PART:"fill", "translucent", 0.0);
|
set_state(PART:"fill", "translucent", 0.0);
|
||||||
|
|
|
@ -20,9 +20,9 @@ collections {
|
||||||
public message(Msg_Type:type, id, ...) {
|
public message(Msg_Type:type, id, ...) {
|
||||||
new r, g, b, a, v;
|
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);
|
custom_state(PART:"shadow", "default", 0.0);
|
||||||
get_state_val(PART:"shadow", STATE_COLOR, r, g, b, a);
|
get_state_val(PART:"shadow", STATE_COLOR, r, g, b, a);
|
||||||
|
|
|
@ -16,9 +16,9 @@ collections {
|
||||||
public message(Msg_Type:type, id, ...) {
|
public message(Msg_Type:type, id, ...) {
|
||||||
new r, g, b, a, v;
|
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);
|
custom_state(PART:"base", "default", 0.0);
|
||||||
get_state_val(PART:"base", STATE_COLOR, r, g, b, a);
|
get_state_val(PART:"base", STATE_COLOR, r, g, b, a);
|
||||||
|
|
Loading…
Reference in New Issue