Invert opacity on converted layouts

This commit is contained in:
artdeell 2021-07-21 13:46:37 +03:00 committed by SerpentSpirale
parent 37b6db5887
commit 793f93c5cc

View File

@ -45,7 +45,7 @@ public class LayoutConverter {
n_button.dynamicY = button.getString("dynamicY");
n_button.isDynamicBtn = button.getBoolean("isDynamicBtn");
n_button.name = button.getString("name");
n_button.opacity = ((float)button.getInt("transparency"))/100f;
n_button.opacity = ((float)((button.getInt("transparency")-100)*-1))/100f;
n_button.passThruEnabled = button.getBoolean("passThruEnabled");
n_button.isToggle = button.getBoolean("isToggle");
n_button.x = button.getInt("x");