diff --git a/app_pojavlauncher/src/main/assets/default.json b/app_pojavlauncher/src/main/assets/default.json index 467ce312e..263e1f3bf 100644 --- a/app_pojavlauncher/src/main/assets/default.json +++ b/app_pojavlauncher/src/main/assets/default.json @@ -1 +1 @@ -{"mControlDataList":[{"bgColor":1291845632,"cornerRadius":0,"dynamicX":"${margin} * 3 + ${width} * 2","dynamicY":"${margin}","height":30,"isDynamicBtn":false,"isHideable":false,"isSwipeable":false,"isToggle":false,"keycodes":[-1,0,0,0],"name":"Keyboard","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":80},{"bgColor":1291845632,"cornerRadius":0,"dynamicX":"${margin}","dynamicY":"${bottom} - ${margin}","height":50,"isDynamicBtn":false,"isHideable":false,"isSwipeable":false,"isToggle":false,"keycodes":[-2,0,0,0],"name":"GUI","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":50},{"bgColor":1291845632,"cornerRadius":0,"dynamicX":"${margin}","dynamicY":"${screen_height} - ${margin} * 3 - ${height} * 3","height":50,"isDynamicBtn":false,"isHideable":false,"isSwipeable":false,"isToggle":false,"keycodes":[-3,0,0,0],"name":"PRI","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":50},{"bgColor":1291845632,"cornerRadius":0,"dynamicX":"${margin} * 3 + ${width} * 2","dynamicY":"${screen_height} - ${margin} * 3 - ${height} * 3","height":50,"isDynamicBtn":false,"isHideable":false,"isSwipeable":false,"isToggle":false,"keycodes":[-4,0,0,0],"name":"SEC","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":50},{"bgColor":1291845632,"cornerRadius":0,"dynamicX":"${right}","dynamicY":"${margin}","height":30,"isDynamicBtn":false,"isHideable":false,"isSwipeable":false,"isToggle":false,"keycodes":[-5,0,0,0],"name":"Mouse","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":80},{"bgColor":1291845632,"cornerRadius":0,"dynamicX":"${margin}","dynamicY":"${margin}","height":30,"isDynamicBtn":false,"isHideable":false,"isSwipeable":false,"isToggle":false,"keycodes":[292,0,0,0],"name":"Debug","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":80},{"bgColor":1291845632,"cornerRadius":0,"dynamicX":"${margin} * 2 + ${width}","dynamicY":"${margin}","height":30,"isDynamicBtn":false,"isHideable":false,"isSwipeable":false,"isToggle":false,"keycodes":[84,0,0,0],"name":"Chat","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":80},{"bgColor":1291845632,"cornerRadius":0,"dynamicX":"${margin} * 4 + ${width} * 3","dynamicY":"${margin}","height":30,"isDynamicBtn":false,"isHideable":false,"isSwipeable":false,"isToggle":false,"keycodes":[258,0,0,0],"name":"Tab","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":80},{"bgColor":1291845632,"cornerRadius":0,"dynamicX":"${margin}","dynamicY":"${height} + ${margin}","height":30,"isDynamicBtn":false,"isHideable":false,"isSwipeable":false,"isToggle":false,"keycodes":[294,0,0,0],"name":"3rd","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":80},{"bgColor":1291845632,"cornerRadius":0,"dynamicX":"${margin} * 2 + ${width}","dynamicY":"${bottom} - ${margin} * 3 - ${height} * 2","height":50,"isDynamicBtn":false,"isHideable":false,"isSwipeable":false,"isToggle":false,"keycodes":[87,0,0,0],"name":"▲","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":50},{"bgColor":1291845632,"cornerRadius":0,"dynamicX":"${margin}","dynamicY":"${bottom} - ${margin} * 2 - ${height}","height":50,"isDynamicBtn":false,"isHideable":false,"isSwipeable":false,"isToggle":false,"keycodes":[65,0,0,0],"name":"◀","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":50},{"bgColor":1291845632,"cornerRadius":0,"dynamicX":"${margin} * 2 + ${width}","dynamicY":"${bottom} - ${margin}","height":50,"isDynamicBtn":false,"isHideable":false,"isSwipeable":false,"isToggle":false,"keycodes":[83,0,0,0],"name":"▼","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":50},{"bgColor":1291845632,"cornerRadius":0,"dynamicX":"${margin} * 3 + ${width} * 2","dynamicY":"${bottom} - ${margin} * 2 - ${height}","height":50,"isDynamicBtn":false,"isHideable":false,"isSwipeable":false,"isToggle":false,"keycodes":[68,0,0,0],"name":"▶","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":50},{"bgColor":1291845632,"cornerRadius":0,"dynamicX":"${margin} * 3 + ${width} * 2","dynamicY":"${bottom} - ${margin}","height":50,"isDynamicBtn":false,"isHideable":false,"isSwipeable":false,"isToggle":false,"keycodes":[69,0,0,0],"name":"Inv","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":50},{"bgColor":1291845632,"cornerRadius":0,"dynamicX":"${margin} * 2 + ${width}","dynamicY":"${screen_height} - ${margin} * 2 - ${height} * 2","height":50,"isDynamicBtn":false,"isHideable":false,"isSwipeable":false,"isToggle":true,"keycodes":[340,0,0,0],"name":"◇","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":50},{"bgColor":1291845632,"cornerRadius":0,"dynamicX":"${right} - ${margin} * 2 - ${width}","dynamicY":"${bottom} - ${margin} * 2 - ${height}","height":50,"isDynamicBtn":false,"isHideable":false,"isSwipeable":false,"isToggle":false,"keycodes":[32,0,0,0],"name":"⬛","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":50}],"mDrawerDataList":[],"scaledAt":100,"version":4} \ No newline at end of file +{"mControlDataList":[{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":false,"dynamicX":"1 * ${screen_width} - (${width} * 3.3) - (px(40.6) / (((${screen_width} + 2340 - abs(${screen_width} - 2340)) / 2) / 2340) * ((((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 + 0.5 + abs(((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 - 0.5 )) / 2) / 100.0 * ${preferred_scale} - (((((((1.78 - (${screen_width} / ${screen_height})) * 10000) + 1 - abs(((1.78 - (${screen_width} / ${screen_height})) * 10000) - 1)) / 2) + 0 + abs(((((1.78 - (${screen_width} / ${screen_height})) * 10000) + 1 - abs(((1.78 - (${screen_width} / ${screen_height})) * 10000) - 1)) / 2) - 0)) / 2) * (px(76.0) /100.0 * ${preferred_scale}))) - ${margin}","dynamicY":" 1 * ${screen_height} - ${height} - (px(125.6) / (((${screen_height} + 1080 - abs(${screen_height} - 1080)) / 2) / 1080) * ((((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1 )) / 2 + 0.5 + abs(((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1)) / 2 - 0.5)) / 2) / 100.0 * ${preferred_scale} - (((((((1.78 - (${screen_width} / ${screen_height})) * 10000) + 1 - abs(((1.78 - (${screen_width} / ${screen_height})) * 10000) - 1)) / 2) + 0 + abs(((((1.78 - (${screen_width} / ${screen_height})) * 10000) + 1 - abs(((1.78 - (${screen_width} / ${screen_height})) * 10000) - 1)) / 2) - 0)) / 2) * (px(15.0) /100.0 * ${preferred_scale})))","height":69.6,"isSwipeable":false,"isToggle":false,"keycodes":[32,0,0,0],"name":"Jump","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":69.6},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":false,"dynamicX":"1 * ${screen_width} - ${width} * 3.3 - (px(40.6) / (((${screen_width} + 2340 - abs(${screen_width} - 2340)) / 2) / 2340) * ((((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 + 0.5 + abs(((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 - 0.5 )) / 2) / 100.0 * ${preferred_scale} - (px(75.0) /100.0 * ${preferred_scale}) + (((((((1.78 - (${screen_width} / ${screen_height})) * 10000) + 1 - abs(((1.78 - (${screen_width} / ${screen_height})) * 10000) - 1)) / 2) + 0 + abs(((((1.78 - (${screen_width} / ${screen_height})) * 10000) + 1 - abs(((1.78 - (${screen_width} / ${screen_height})) * 10000) - 1)) / 2) - 0)) / 2) * (px(76.0) /100.0 * ${preferred_scale}))) - ${margin}","dynamicY":" 1 * ${screen_height} - ${height} - (px(115.6) / (((${screen_height} + 1080 - abs(${screen_height} - 1080)) / 2) / 1080) * ((((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1 )) / 2 + 0.5 + abs(((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1)) / 2 - 0.5)) / 2) / 100.0 * ${preferred_scale} + (1-(((((((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2 + abs((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2)) / 2) + (((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2 + abs((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2)) / 2)) + 1 - abs(((((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2 + abs((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2)) / 2) + (((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2 + abs((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2)) / 2)) - 1)) / 2)) * (px(80.0) / 100.0 * ${preferred_scale} + ${margin}*2 + (1 * ${screen_height}))) / 100.0 * ${preferred_scale})","height":69.6,"isSwipeable":false,"isToggle":false,"keycodes":[70,0,0,0],"name":"Off\nHand","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":69.6},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":true,"dynamicX":"1.0 * ${screen_width} - (px(174.4) / 100.0 * ${preferred_scale}) - ${margin}","dynamicY":"0 * ${screen_height}","height":39.2,"isSwipeable":false,"isToggle":false,"keycodes":[-9,0,0,0],"name":"Menu","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":104.8},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":false,"dynamicX":"1 * ${screen_width} - ${width} * 1.70 - (px(40.6) / (((${screen_width} + 2340 - abs(${screen_width} - 2340)) / 2) / 2340) * ((((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 + 0.5 + abs(((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 - 0.5 )) / 2) / 100.0 * ${preferred_scale})","dynamicY":" 1 * ${screen_height} - ${height} - (px(185.6) / (((${screen_height} + 1080 - abs(${screen_height} - 1080)) / 2) / 1080) * ((((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1 )) / 2 + 0.5 + abs(((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1)) / 2 - 0.5)) / 2) / 100.0 * ${preferred_scale})","height":69.6,"isSwipeable":false,"isToggle":true,"keycodes":[340,0,0,0],"name":"Crouch","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":69.6},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":true,"dynamicX":"1 * ${screen_width} - ${width} * 1.60 - (px(50.6) / (((${screen_width} + 2340 - abs(${screen_width} - 2340)) / 2) / 2340) * ((((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 + 0.5 + abs(((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 - 0.5 )) / 2) / 100.0 * ${preferred_scale})","dynamicY":" 1 * ${screen_height} - ${height} - (px(45.6) / (((${screen_height} + 1080 - abs(${screen_height} - 1080)) / 2) / 1080) * ((((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1 )) / 2 + 0.5 + abs(((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1)) / 2 - 0.5)) / 2) / 100.0 * ${preferred_scale})","height":69.6,"isSwipeable":true,"isToggle":false,"keycodes":[-4,0,0,0],"name":"Right\nClick","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":69.6},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":true,"dynamicX":"1 * ${screen_width} - ${width} * 2.60 - (px(50.6) / (((${screen_width} + 2340 - abs(${screen_width} - 2340)) / 2) / 2340) * ((((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 + 0.5 + abs(((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 - 0.5 )) / 2) / 100.0 * ${preferred_scale}) - ${margin}","dynamicY":" 1 * ${screen_height} - ${height} - (px(45.6) / (((${screen_height} + 1080 - abs(${screen_height} - 1080)) / 2) / 1080) * ((((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1 )) / 2 + 0.5 + abs(((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1)) / 2 - 0.5)) / 2) / 100.0 * ${preferred_scale})","height":69.6,"isSwipeable":true,"isToggle":false,"keycodes":[-3,0,0,0],"name":"Left\nClick","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":69.6},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":true,"dynamicX":"1 * ${screen_width} - ${width} - (px(50.6) / (((${screen_width} + 2340 - abs(${screen_width} - 2340)) / 2) / 2340) * ((((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 + 0.5 + abs(((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 - 0.5 )) / 2) / 100.0 * ${preferred_scale})","dynamicY":" 1 * ${screen_height} - ${height} - (px(105.6) / (((${screen_height} + 1080 - abs(${screen_height} - 1080)) / 2) / 1080) * ((((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1 )) / 2 + 0.5 + abs(((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1)) / 2 - 0.5)) / 2) / 100.0 * ${preferred_scale})","height":69.6,"isSwipeable":true,"isToggle":false,"keycodes":[-6,0,0,0],"name":"Middle\nClick","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":69.6},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":false,"dynamicX":"1 * ${screen_width} - ${width} - (px(50.6) / (((${screen_width} + 2340 - abs(${screen_width} - 2340)) / 2) / 2340) * ((((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 + 0.5 + abs(((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 - 0.5 )) / 2) / 100.0 * ${preferred_scale})","dynamicY":" 1 * ${screen_height} - ${height} * 2 - (px(185.6) / (((${screen_height} + 1080 - abs(${screen_height} - 1080)) / 2) / 1080) * ((((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1 )) / 2 + 0.5 + abs(((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1)) / 2 - 0.5)) / 2) / 100.0 * ${preferred_scale} + ((-1 + ((((((1.78 - (${screen_width} / ${screen_height})) * 10000) + 1 - abs(((1.78 - (${screen_width} / ${screen_height})) * 10000) - 1)) / 2) + 0 + abs(((((1.78 - (${screen_width} / ${screen_height})) * 10000) + 1 - abs(((1.78 - (${screen_width} / ${screen_height})) * 10000) - 1)) / 2) - 0)) / 2)) * (2 * ${screen_width})))","height":69.6,"isSwipeable":false,"isToggle":false,"keycodes":[69,0,0,0],"name":"Inv.","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":69.6},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":false,"dynamicX":"1 * ${screen_width} - ${width} * 2.70 - (px(40.6) / (((${screen_width} + 2340 - abs(${screen_width} - 2340)) / 2) / 2340) * ((((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 + 0.5 + abs(((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 - 0.5 )) / 2) / 100.0 * ${preferred_scale})","dynamicY":" 1 * ${screen_height} - ${height} - (px(185.6) / (((${screen_height} + 1080 - abs(${screen_height} - 1080)) / 2) / 1080) * ((((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1 )) / 2 + 0.5 + abs(((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1)) / 2 - 0.5)) / 2) / 100.0 * ${preferred_scale})","height":69.6,"isSwipeable":false,"isToggle":true,"keycodes":[341,0,0,0],"name":"Sprint","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":69.6},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":true,"dynamicX":"1.0 * ${screen_width} - (px(69.6) / 100.0 * ${preferred_scale})","dynamicY":"0.0","height":40,"isSwipeable":false,"isToggle":false,"keycodes":[-2,0,0,0],"name":"Hide\nGUI","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":69.6},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":false,"dynamicX":"1.0 * ${screen_width} - (px(279.2) / 100.0 * ${preferred_scale}) - (${margin} * 2)","dynamicY":"0 * ${screen_height}","height":39.2,"isSwipeable":false,"isToggle":false,"keycodes":[256,0,0,0],"name":"Pause","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":104.8},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":false,"dynamicX":"1.0 * ${screen_width} - (px(384) / 100.0 * ${preferred_scale}) - (${margin} * 2) + (((((((1.78 - (${screen_width} / ${screen_height})) * 10000) + 1 - abs(((1.78 - (${screen_width} / ${screen_height})) * 10000) - 1)) / 2) + 0 + abs(((((1.78 - (${screen_width} / ${screen_height})) * 10000) + 1 - abs(((1.78 - (${screen_width} / ${screen_height})) * 10000) - 1)) / 2) - 0)) / 2) * (2 * ${screen_width}))","dynamicY":"0 * ${screen_height}","height":40,"isSwipeable":false,"isToggle":false,"keycodes":[69,0,0,0],"name":"Inventory","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":100},{"bgColor":1291845632,"cornerRadius":50,"displayInGame":false,"displayInMenu":false,"dynamicX":"0 * ${screen_width} + (px(96.0) / 100.0 * ${preferred_scale} + ${margin})","dynamicY":"0 * ${screen_height} + (px(40.0) /100.0 * ${preferred_scale})*2 + ${margin}*2","height":110,"isSwipeable":false,"isToggle":false,"keycodes":[0,0,0,0],"name":"Welcome to the Editor.\nTap a button to see what you can do!\nTap the gear at the top to see more options.","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":288},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":false,"displayInMenu":true,"dynamicX":"1.0 * ${screen_width} - (px(279.2) / 100.0 * ${preferred_scale}) - (${margin} * 2)","dynamicY":"0 * ${screen_height}","height":39.2,"isSwipeable":false,"isToggle":false,"keycodes":[256,0,0,0],"name":"Exit\nMenu","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":104.8},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":false,"displayInMenu":true,"dynamicX":"1 * ${screen_width} - ${width} * 2.70 - (px(40.6) / (((${screen_width} + 2340 - abs(${screen_width} - 2340)) / 2) / 2340) * ((((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 + 0.5 + abs(((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 - 0.5 )) / 2) / 100.0 * ${preferred_scale})","dynamicY":" 1 * ${screen_height} - ${height} - (px(185.6) / (((${screen_height} + 1080 - abs(${screen_height} - 1080)) / 2) / 1080) * ((((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1 )) / 2 + 0.5 + abs(((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1)) / 2 - 0.5)) / 2) / 100.0 * ${preferred_scale})","height":69.6,"isSwipeable":false,"isToggle":true,"keycodes":[341,0,0,0],"name":"CTRL","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":69.6},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":false,"displayInMenu":true,"dynamicX":"1 * ${screen_width} - ${width} * 1.70 - (px(40.6) / (((${screen_width} + 2340 - abs(${screen_width} - 2340)) / 2) / 2340) * ((((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 + 0.5 + abs(((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) + 1 - abs((((2.80002*(10^-13)) * (${screen_width}^4)) - ((1.1389*10^-9) * (${screen_width}^3)) + (0.00000131447 * (${screen_width}^2))) - 1 )) / 2 - 0.5 )) / 2) / 100.0 * ${preferred_scale})","dynamicY":" 1 * ${screen_height} - ${height} - (px(185.6) / (((${screen_height} + 1080 - abs(${screen_height} - 1080)) / 2) / 1080) * ((((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1 )) / 2 + 0.5 + abs(((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) + 1 - abs((((6.17062*(10^-12)) * (${screen_height}^4)) - ((1.15841*10^-8) * (${screen_height}^3)) + (0.00000617072 * (${screen_height}^2))) - 1)) / 2 - 0.5)) / 2) / 100.0 * ${preferred_scale})","height":69.6,"isSwipeable":false,"isToggle":true,"keycodes":[340,0,0,0],"name":"Shift","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":69.6}],"mDrawerDataList":[{"buttonProperties":[{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":true,"dynamicX":"0 * ${screen_width} + (px(96.0) / 100.0 * ${preferred_scale}) + ${margin}","dynamicY":"0 * ${screen_height}","height":40,"isSwipeable":false,"isToggle":false,"keycodes":[294,0,0,0],"name":"Third\nPerson","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":96},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":true,"dynamicX":"0 * ${screen_width} + ((px(96.0) / 100.0 * ${preferred_scale}) + ${margin}) * 3","dynamicY":"0 * ${screen_height} + ((((((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2 + abs((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2)) / 2) + (((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2 + abs((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2)) / 2)) + 1 - abs(((((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2 + abs((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2)) / 2) + (((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2 + abs((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2)) / 2)) - 1)) / 2) * (px(40.0) / 100.0 * ${preferred_scale} + ${margin})","height":40,"isSwipeable":false,"isToggle":false,"keycodes":[292,0,0,0],"name":"Debug\nMenu","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":96},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":true,"dynamicX":"0 * ${screen_width}","dynamicY":"0 * ${screen_height} - (1 * ${screen_height}) + ((((((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2 + abs((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2)) / 2) + (((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2 + abs((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2)) / 2)) + 1 - abs(((((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2 + abs((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2)) / 2) + (((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2 + abs((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2)) / 2)) - 1)) / 2) * (px(80.0) / 100.0 * ${preferred_scale} + ${margin}*2 + (1 * ${screen_height}))","height":40,"isSwipeable":false,"isToggle":false,"keycodes":[70,0,0,0],"name":"Offhand","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":96},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":true,"dynamicX":"0 * ${screen_width} + ((px(96.0) / 100.0 * ${preferred_scale}) + ${margin})*2","dynamicY":"0 * ${screen_height} + (px(40.0) /100.0 * ${preferred_scale}) + ${margin}","height":40,"isSwipeable":false,"isToggle":false,"keycodes":[-5,0,0,0],"name":"Mouse\nToggle","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":96},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":true,"dynamicX":"0 * ${screen_width}","dynamicY":"0 * ${screen_height} + (px(40.0) /100.0 * ${preferred_scale}) + ${margin}","height":40,"isSwipeable":false,"isToggle":false,"keycodes":[84,0,0,0],"name":"Chat","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":96},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":true,"dynamicX":"0 * ${screen_width} + (px(96.0) / 100.0 * ${preferred_scale}) + ${margin}","dynamicY":"0 * ${screen_height} + (px(40.0) /100.0 * ${preferred_scale}) + ${margin}","height":40,"isSwipeable":false,"isToggle":false,"keycodes":[-1,0,0,0],"name":"Keyboard","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":96},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":true,"dynamicX":"0 * ${screen_width} + (px(96.0) / 100.0 * ${preferred_scale})*3 + ${margin}*3 - ((((((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2 + abs((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2)) / 2) + (((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2 + abs((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2)) / 2)) + 1 - abs(((((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2 + abs((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2)) / 2) + (((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2 + abs((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2)) / 2)) - 1)) / 2) * (px(96.0)*3 / 100.0 * ${preferred_scale} + ${margin}*3) + ((((((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2 + abs((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2)) / 2) + (((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2 + abs((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2)) / 2)) + 1 - abs(((((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2 + abs((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2)) / 2) + (((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2 + abs((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2)) / 2)) - 1)) / 2) * (px(96.0) / 100.0 * ${preferred_scale} + ${margin})","dynamicY":"0 * ${screen_height} + (px(40.0) /100.0 * ${preferred_scale}) + ${margin} + ((((((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2 + abs((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2)) / 2) + (((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2 + abs((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2)) / 2)) + 1 - abs(((((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2 + abs((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2)) / 2) + (((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2 + abs((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2)) / 2)) - 1)) / 2) * (px(40.0) / 100.0 * ${preferred_scale} + ${margin})","height":40,"isSwipeable":false,"isToggle":false,"keycodes":[290,0,0,0],"name":"HUD\nToggle","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":96},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":true,"dynamicX":"0 * ${screen_width} + ((((((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2 + abs((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2)) / 2) + (((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2 + abs((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2)) / 2)) + 1 - abs(((((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2 + abs((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2)) / 2) + (((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2 + abs((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2)) / 2)) - 1)) / 2) * (0) + ((((((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2 + abs((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2)) / 2) + (((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2 + abs((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2)) / 2)) + 1 - abs(((((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2 + abs((((1920 - ${screen_width}) * 1000) + 1 - abs(((1920 - ${screen_width}) * 1000) - 1)) / 2)) / 2) + (((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2 + abs((((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) + 1 - abs(((${preferred_scale} - (257.833333333*(${screen_height}/${screen_width}))) * 1000) - 1)) / 2)) / 2)) - 1)) / 2) * (px(96.0) / 100.0 * ${preferred_scale} + ${margin}) * 2","dynamicY":"0 * ${screen_height} + ((px(40.0) /100.0 * ${preferred_scale}) + ${margin}) * 2","height":40,"isSwipeable":false,"isToggle":false,"keycodes":[290,0,0,0],"name":"Drop\nItem","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":96},{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":true,"dynamicX":"0 * ${screen_width} + ((px(96.0) / 100.0 * ${preferred_scale}) + ${margin}) * 2","dynamicY":"0 * ${screen_height}","height":40,"isSwipeable":false,"isToggle":true,"keycodes":[258,0,0,0],"name":"Player\nList","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":0,"width":96}],"orientation":"FREE","properties":{"bgColor":1291845632,"cornerRadius":100,"displayInGame":true,"displayInMenu":true,"dynamicX":"0 * ${screen_width}","dynamicY":"0 * ${screen_height}","height":40,"isSwipeable":false,"isToggle":false,"keycodes":[0,0,0,0],"name":"More","opacity":1,"passThruEnabled":false,"strokeColor":-1,"strokeWidth":1.5,"width":96}}],"mJoystickDataList":[{"absolute":false,"forwardLock":false,"bgColor":1291845632,"cornerRadius":0,"displayInGame":true,"displayInMenu":false,"dynamicX":"0 * ${screen_width} + (px(8.0) / 100.0 * 100.0)","dynamicY":"1.0 * ${screen_height} - ${height} - (px(5.0) / 100.0 * 100.0)","height":204.8,"isSwipeable":false,"isToggle":false,"keycodes":[0,0,0,0],"name":"Hi There (this is a joystick why is this here, hello?)","opacity":1,"passThruEnabled":false,"strokeColor":1291845632,"strokeWidth":0,"width":204.8}],"scaledAt":100,"version":8} diff --git a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/tasks/AsyncAssetManager.java b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/tasks/AsyncAssetManager.java index 37ab66c42..189221fca 100644 --- a/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/tasks/AsyncAssetManager.java +++ b/app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/tasks/AsyncAssetManager.java @@ -12,9 +12,9 @@ import android.util.Log; import com.kdt.mcgui.ProgressLayout; -import net.kdt.pojavlaunch.Architecture; import net.kdt.pojavlaunch.Tools; import net.kdt.pojavlaunch.multirt.MultiRTUtils; +import net.kdt.pojavlaunch.prefs.LauncherPreferences; import org.apache.commons.io.FileUtils; @@ -67,7 +67,17 @@ public class AsyncAssetManager { sExecutorService.execute(() -> { try { Tools.copyAssetFile(ctx, "options.txt", Tools.DIR_GAME_NEW, false); - Tools.copyAssetFile(ctx, "default.json", Tools.CTRLMAP_PATH, false); + + // This is disgusting, but am lazy. We probably wont be getting any updates to + // controlmap till rewrite anyway so this is fiiine. + try (InputStream is = ctx.getAssets().open("default.json")) { + String assetSha1 = new String(org.apache.commons.codec.binary.Hex.encodeHex(org.apache.commons.codec.digest.DigestUtils.sha1(is))); + if (!Tools.compareSHA1(new File(Tools.CTRLDEF_FILE), assetSha1)) { + Tools.copyAssetFile(ctx, "default.json", Tools.CTRLMAP_PATH, "new_default.json" , false); + // Be annoying and set their default to the new one heehee + LauncherPreferences.DEFAULT_PREF.edit().putString("defaultCtrl", Tools.CTRLMAP_PATH+"/new_default.json").apply(); + } else Tools.copyAssetFile(ctx, "default.json", Tools.CTRLMAP_PATH, false); + } Tools.copyAssetFile(ctx, "launcher_profiles.json", Tools.DIR_GAME_NEW, false); Tools.copyAssetFile(ctx,"resolv.conf",Tools.DIR_DATA, false);