65 Commits
Author SHA1 Message Date
Duy Tran KhanhandDuy Tran Khanh 33cb7d0125 Custom Controls revisions implemenation (#292)
* Move control loaders to CustomControlsUtils.m

* WIP Drawer support (currently broken)

Also, updated MetalANGLE for helping debug stuff on crash.

* temp

* ControlDrawer: free orientation

* Avoid scrolling the hotbar in grab mode

* Popover: fix the frame inside the arrow

* Changes

- Attempt to allow Microsoft login when offline.
- Custom controls: drawer and sub-buttons are now visible.
- Pickers in Preferences: pre-select at the saved index.

* Bump version code to 4, hide sub-button by default

* Fix text trucanting

* impl scroll buttons, rewrite some parts to objc

* Virtual mouse implementation

Also, possible fix for popover crashes on iPad

Exception type: NSInternalInconsistencyException
> Reason: Tried to set <UIBarButtonItem: 0x10fee5660> menuOnTouchDown
menu=0x2810dce10 image=<UIImage:0x280149050 symbol(system:
ellipsis.circle) {20, 19} baseline=3.5,contentInsets={1, 1.5, 1,
1.5},alignmentRectInsets={-0.5, 0, -0.5, 0}
config=<traits=(UserInterfaceIdiom = Pad, DisplayScale = 2,
DisplayGamut = sRGB, HorizontalSizeClass = Regular, VerticalSizeClass
= Regular, UserInterfaceStyle = Dark, UserInterfaceLayoutDirection =
LTR, PreferredContentSizeCategory = L, AccessibilityContrast =
Normal)>> as sourceView of
<_UIAlertControllerActionSheetRegularPresentationController:
0x12043f5a0>, even though it is not a kind of UIView.

* Swap item between hands by double-tap item moment

* Basic editor (only several stuff implemented)

There's no save/load yet, so it's just a preview for now.

* Control editor (preview only)
TODO: Color picker for iOS < 14

* Save, load and set default are here

* Changes

- Ported Snap and Align from Android
- Added options: create and delete button

TODO:
- color picker for iOS < 14
- drawer editor
- maybe more

* Editor: Added orientation changer for drawer

Added some more check to determine whether dynamic position should be
visible (when the button is not a sub-button, or the parent drawer
doesn't use the FREE orientation)

* Editor: implemented adding drawer and sub-button

* Added a warning about unfinished custom controls

Co-authored-by: Duy Tran Khanh <[email protected]>
2021-11-26 10:35:21 +07:00
Duy Tran KhanhandDuy Tran Khanh db0074d1e5 Merge custom control changes (#284)
* Move control loaders to CustomControlsUtils.m

* WIP Drawer support (currently broken)

Also, updated MetalANGLE for helping debug stuff on crash.

* temp

* ControlDrawer: free orientation

* Avoid scrolling the hotbar in grab mode

* Popover: fix the frame inside the arrow

* Changes

- Attempt to allow Microsoft login when offline.
- Custom controls: drawer and sub-buttons are now visible.
- Pickers in Preferences: pre-select at the saved index.

* Bump version code to 4, hide sub-button by default

* Fix text trucanting

* impl scroll buttons, rewrite some parts to objc

* Virtual mouse implementation

Also, possible fix for popover crashes on iPad

Exception type: NSInternalInconsistencyException
> Reason: Tried to set <UIBarButtonItem: 0x10fee5660> menuOnTouchDown
menu=0x2810dce10 image=<UIImage:0x280149050 symbol(system:
ellipsis.circle) {20, 19} baseline=3.5,contentInsets={1, 1.5, 1,
1.5},alignmentRectInsets={-0.5, 0, -0.5, 0}
config=<traits=(UserInterfaceIdiom = Pad, DisplayScale = 2,
DisplayGamut = sRGB, HorizontalSizeClass = Regular, VerticalSizeClass
= Regular, UserInterfaceStyle = Dark, UserInterfaceLayoutDirection =
LTR, PreferredContentSizeCategory = L, AccessibilityContrast =
Normal)>> as sourceView of
<_UIAlertControllerActionSheetRegularPresentationController:
0x12043f5a0>, even though it is not a kind of UIView.

Co-authored-by: Duy Tran Khanh <[email protected]>
2021-10-15 05:16:17 +07:00
Duy Tran Khanh a3954539ea duplicate tag 2021-10-03 13:59:10 +07:00
Duy Tran Khanh c2a0e3ae80 Changes in LauncherPreferencesViewController
- Java arguments edit text box: moved the done button to the return button.
- New option: slideable hotbar. This option allows you to use a finger to slide between hotbar slots.
- View tag IDs are moved to macros.
2021-10-03 12:35:05 +07:00
Duy Tran Khanh ed54dd8474 @doregon didn't like it, so return to blur-then-terminate
but "According to Apple, ~~your app should not terminate on its own~~. Since the user did not hit the Home button, any return to the Home screen gives the user the impression that your app crashed. This is confusing, non-standard behavior and should be avoided."
2021-10-02 09:28:57 +07:00
Duy Tran Khanh 9f2b5be409 changes
Add some asserts in loadPreferences()
`-[UIApplication suspend]` transition
2021-10-01 20:40:47 +07:00
Duy Tran Khanh 64f4042103 Changes
- Downgraded to Mesa 21.0 since 21.2.? goes brrr
- Zink renderer is now visible in the renderer picker.
- Makefile: test multi-line ssh script moment
2021-09-18 19:52:09 +07:00
Duy Tran Khanh b2ffd5edc3 Changes
- libpojavexec.dylib is now PojavCore.framework.
- More changes for Zink renderer. Note that Mesa 21.0 is included instead of 21.2.1 due to the new version seems to be broken, only display glClearColor.
2021-09-17 07:00:14 +07:00
Duy Tran Khanh 8ffbc4f653 :fruhh: 2021-09-16 08:29:50 +07:00
Duy Tran Khanh 48c59f5697 Bug fix: java_home saved as "Java 8/16"
Issue is similar to what happened in #272
2021-09-16 08:17:42 +07:00
Duy Tran Khanh 5dcacb6d00 Changes
- Fixes #272
- Replaced MGLLayer with EGL calls
- Re-implemented Zink renderer to work with new Renderer selection system (currently hidden due to unfinished)
2021-09-14 10:57:24 +07:00
Adam Tunnic 6d924a80e8 wtfman i did the same thing again 2 2021-09-13 23:39:09 -04:00
Adam Tunnic 6df3d3ea0b wtfman i did the same thing again 2021-09-13 23:34:24 -04:00
doregon 9c790cd936 Java home is now a UIPicker 2021-09-12 11:28:27 -04:00
doregon 0a979a90bc ahaha that didn't happen
hotfix for renderer switching
2021-09-12 10:44:21 -04:00
doregon a7cc15302c Allow version switches to change without restart 2021-09-12 10:26:42 -04:00
doregon bc2c679cd0 Ok Duy. 2021-09-11 22:09:32 -04:00
doregon 38fbfe2b34 Make game directory option a picker
- Create and delete instances from inside the app
- Fix a wrong debug line
- Fix PojavLauncher Discord link (rip vanity url)
2021-09-11 20:34:08 -04:00
doregon b38fe4df4e Better checks 2021-09-05 20:43:19 -04:00
doregon 1fe2e380af :waitwhat: Fix renderer issue 2021-09-05 18:40:14 -04:00
doregon 0c1122c0ea Debug logging switch, currently not used 2021-09-05 15:01:35 -04:00
Duy Tran Khanh dd9be6e0c4 New renderer: Tiny GL wrapper for ANGLE
This renderer allows Minecraft 21w10a and newer to be rendered directly
in OpenGL ES through ANGLE with several wrapped functions, so the game
may runs with better performance.
Source code:
https://github.com/PojavLauncherTeam/gl4es/tree/master/tinygl4angle
2021-09-05 10:39:00 +07:00
doregon 63a6b62988 Bug fix for smaller displays 2021-09-04 13:14:00 -04:00
Adam Tunnic bd2d2e1285 Version trimming
- Switches to show releases, snapshots, old betas, and old alphas
- Refined the preferences screen, table view look
- Tapping on a text field now scrolls up
2021-09-03 05:56:40 -04:00
Adam Tunnic 58030b7caf Disable shaderconv switch completely on 1.1.4 2021-09-02 23:03:03 -04:00
doregon 11974a497f Changes
- exit app button in pojavlauncher prefs
- jailbreak warning on non-pro strapped jailbreaks
- better deciphering of what jailbreak is in use
2021-09-01 23:54:19 -04:00
Duy Tran Khanh f00b09af2e Changes
- [Custom controls] Implemented `isSwipeable` property.
- VGPU has error at `sampler2DShadow`, so ignore it for now.
- WIP changes on jailed version.
2021-08-27 20:55:38 +07:00
doregon 15a6cf0acf MultiMC-like instances:
- now stores the minecraft directory in .pojavlauncher/instances/default
- configurable straight from the preferences
- migrates your existing minecraft folder to instances/default
- moves L/AS/m from Documents/ to .pojavlauncher/
- changes home directory to .pojavlauncher/
- automatically switches the L/AS/m symlink based on the current instance
- accounts stay the same between instances
2021-08-24 02:56:00 -04:00
doregon 181bb0d3f9 Changes 2
- Help option for reset warnings on iOS 14
- Prevent shaderconv on 1.1.4
- Automatically switch shaderconv on selection of renderer
- Raise default memory allocation by 5%
2021-08-22 13:27:08 -04:00
doregon de7eaa2666 Changes
- renderer UIPickerView
- reset warnings option
- java_warn plist key
2021-08-22 12:54:02 -04:00
doregon b3fe21efb4 Add RAM slider, part 2
Fully functional.
2021-08-21 22:31:56 -04:00
doregon 2b98d2b05c Add RAM slider, part 1
This is not finished and currently does not yet affect the allocated memory. I am simply committing to switch to developing on my iPhone.
2021-08-21 20:35:22 -04:00
doregon 0fee5cc7a7 Human Interface Guidelines... whatever 2021-08-19 15:45:54 -04:00
doregon 54ad5db2dd SF Symbol for Disable shaderconv 2021-08-18 20:00:36 -04:00
Duy Tran Khanh fe5f9e77a9 Changes
- Added a check to prevent attempt to launch 1.17+ with Java 8.
- Added an option to disable gl4es shaderconv in order to let ANGLE
processes them directly. This option lets Minecraft 1.17+ work
without the patch resource pack, OptiFine works aswell :)
- Changing renderer library no longer requires restart the launcher.
- Fixed some alert dialogs not displaying.
- PList default values are now set every time it loads.
2021-08-13 07:25:17 +07:00
doregon a819225ee2 Add a check for Java 8 when attempting to run the mod installer 2021-08-11 00:08:19 -04:00
Duy Tran Khanh 8c781dd6a6 Fix a little offset in preferences 2021-08-11 06:31:57 +07:00
Adam Tunnic 2bf5dae63a Resolution can now be configured to 150 2021-08-10 12:32:15 -04:00
Adam Tunnic f72640298b Formatting changes in Preferences 2021-08-10 11:39:57 -04:00
Duy Tran Khanh 411a53a3b7 Add resolution slider help option 2021-08-10 21:09:33 +07:00
Duy Tran Khanh a739cf7202 Resolution downscaler moment 2021-08-10 19:42:10 +07:00
doregon 88cae80aae Fix iPad popover for UIAlertController 2021-08-10 01:52:23 -04:00
doregon db952dfb5e Fix Help > Renderer SF symbol 2 2021-08-09 18:22:29 -04:00
doregon b72b2b7e7c Fix Help > Renderer SF symbol 2021-08-09 18:19:21 -04:00
doregon c21177b74d SF Symbols, paired with the iOS 14 enhancements.
Also fixed an offsetting issue in the About screen for iOS 13/12 users.
2021-08-09 18:14:14 -04:00
doregon a0582d0f26 Make the About view into a UIMenu
- Only affects iOS 14
- About, Send your logs, Update all in one spot **EASY TO FIND**
- Also fixed a makefile error
- Also fixed a text field thing
2021-08-09 02:05:41 -04:00
doregon 79fe422e37 Use textField instead of the text fields' real names 2021-08-08 19:59:22 -04:00
doregon d4f349fd83 Replace GL4ES_LIBNAME with RENDERER 2021-08-08 19:39:16 -04:00
doregon dc674c10c5 Replace GL4ES_LIBNAME with RENDERER 2021-08-07 01:28:55 -04:00
doregon 4e58132e81 Add help menu, slightly move the text fields 2021-08-07 01:07:21 -04:00