mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 16:16:04 -04:00
Add ConstrolSubButton
This commit is contained in:
parent
5dee2524df
commit
430392deac
@ -0,0 +1,24 @@
|
|||||||
|
package net.kdt.pojavlaunch.customcontrols;
|
||||||
|
|
||||||
|
public class ControlSubButton extends ControlButton {
|
||||||
|
|
||||||
|
public ControlDrawer parentDrawer;
|
||||||
|
|
||||||
|
public ControlSubButton(ControlLayout layout, ControlData properties, ControlDrawer parentDrawer) {
|
||||||
|
super(layout, properties);
|
||||||
|
this.parentDrawer = parentDrawer;
|
||||||
|
filterProperties();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void filterProperties(){
|
||||||
|
mProperties.height = parentDrawer.getProperties().height;
|
||||||
|
mProperties.width = parentDrawer.getProperties().width;
|
||||||
|
mProperties.isDynamicBtn = false;
|
||||||
|
|
||||||
|
setProperties(mProperties, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user