mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-13 23:00:45 -04:00
Fix[ui]: add "Add joystick" button to the in-game custom controls editor.
This commit is contained in:
parent
27af0638ab
commit
7bb3477206
@ -43,6 +43,7 @@ import com.kdt.LoggerView;
|
||||
import net.kdt.pojavlaunch.customcontrols.ControlButtonMenuListener;
|
||||
import net.kdt.pojavlaunch.customcontrols.ControlData;
|
||||
import net.kdt.pojavlaunch.customcontrols.ControlDrawerData;
|
||||
import net.kdt.pojavlaunch.customcontrols.ControlJoystickData;
|
||||
import net.kdt.pojavlaunch.customcontrols.ControlLayout;
|
||||
import net.kdt.pojavlaunch.customcontrols.CustomControls;
|
||||
import net.kdt.pojavlaunch.customcontrols.EditorExitable;
|
||||
@ -109,11 +110,11 @@ public class MainActivity extends BaseActivity implements ControlButtonMenuListe
|
||||
switch(position) {
|
||||
case 0: mControlLayout.addControlButton(new ControlData("New")); break;
|
||||
case 1: mControlLayout.addDrawer(new ControlDrawerData()); break;
|
||||
//case 2: mControlLayout.addJoystickButton(new ControlData()); break;
|
||||
case 2 : mControlLayout.openLoadDialog(); break;
|
||||
case 3: mControlLayout.openSaveDialog(this); break;
|
||||
case 4: mControlLayout.openSetDefaultDialog(); break;
|
||||
case 5: mControlLayout.openExitDialog(this);
|
||||
case 2: mControlLayout.addJoystickButton(new ControlJoystickData()); break;
|
||||
case 3: mControlLayout.openLoadDialog(); break;
|
||||
case 4: mControlLayout.openSaveDialog(this); break;
|
||||
case 5: mControlLayout.openSetDefaultDialog(); break;
|
||||
case 6: mControlLayout.openExitDialog(this);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -9,6 +9,7 @@
|
||||
<string-array name="menu_customcontrol">
|
||||
<item name="0">@string/customctrl_addbutton</item>
|
||||
<item name="1">@string/customctrl_addbutton_drawer</item>
|
||||
<item name="2">@string/customctrl_addbutton_joystick</item>
|
||||
<item name="2">@string/global_load</item>
|
||||
<item name="3">@string/global_save</item>
|
||||
<item name="4">@string/customctrl_selectdefault</item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user