You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New UI Scale setting (#2041): Launcher settings gained a "UI Scale" option with six levels: 75% / 100% / 125% / 150% / 175% / 200%. The new com.tungsten.fcllibrary.util.UiScale object stores the level in SharedPreferences "launcher" under uiScale (default 100); wrap(context) copies the Configuration and scales densityDpi by the level ratio (createConfigurationContext) whenever it is not 100%, so every dp/sp dimension scales proportionally, while the default 100% returns the context untouched so devices that never changed the setting keep the system-native display. FCLActivity.attachBaseContext now runs UiScale.wrap(LocaleUtils.setLanguage(base)), sharing the same context-wrapping chain as language switching; LauncherSettingPage calls getActivity().recreate() right after a change so it applies immediately. positionOf falls back to the 100% level for unknown values, and its clamp no longer treats the first level specially, fixing the setting page showing 100% after 75% was chosen.
⚡ Improvements
Control layout loading and startup scanning speed (#2031): The layout list in Controllers used to register an element extractor (observableArrayList(controller -> new Observable[]{controller})), so any property change of any layout triggered a full save that parsed every layout in the list (including lightweight objects whose key data was never loaded) and wrote each one back to disk, making startup and layout switching scale linearly with the number of layouts. It is now a plain ObservableList without element listeners, so invalidation only comes from element additions and removals: the new onControllersChanged saves only the newly added layout through its own saveToDisk(), and removals are handled by cleanupOrphanControllers, which renames json files on disk that are no longer in the list to .bak. The new LayoutMetadataScanner scans layout files byte by byte: it skips a UTF-8 BOM, skips viewData wholesale by bracket depth instead of parsing it token by token, and hands the raw slice to ControlViewGroup.ViewData.Serializer only when the target layout id matches; buttonStyles / directionStyles are likewise kept raw and parsed and registered by Controller.parseLightweight0. parseLightweight and loadViewGroupData therefore no longer walk the whole file, and loading time no longer grows with the number of keys inside a layout. The sentinel for an undeclared controllerVersion changed from Constants.CONTROLLER_VERSION to Integer.MIN_VALUE, and explicitly declared negative values are kept as-is for version validation. Group copy / create / rename / delete / move up or down (GameMenu, ViewGroupAdapter, ViewGroupDialog) and Controller.upgrade() now save explicitly instead of relying on the removed list fallback; a new LayoutMetadataScannerTest covers the scanner.
🐛 Bug Fixes
Opening launcher dialogs such as quick input pausing the game (#2051): JVMActivity.onWindowFocusChanged used to forward the window focus to SDL through notifySdlWindowFocus unchanged, and launcher dialogs such as quick input or send key briefly steal window focus, so the game took the focus loss as a pause trigger and opened the pause menu. SDL focus now follows the activity's foreground state instead: a new sdlWindowFocused field tracks the last state, onWindowFocusChanged forwards only a regained focus, onPause / onResume forward loss / gain respectively, setSdlWindowFocus ignores duplicate states, and SDLActivity.nativeFocusChanged is only called when SdlBridge.getSdlEnabled() is on.
Screenshots stretched and cropped on the controller download page (#2044): The download page used a bare ImageView as the ListView item and loaded at override(Target.SIZE_ORIGINAL), so large screenshots such as 2400x1080 stretched the item to the original height, misaligning it with the list and cropping it. A new item_controller_screenshot.xml (match_parent width, wrap_content height, adjustViewBounds and fitCenter) is inflated by ControllerScreenshotAdapter and its ImageView is reused through the view tag; Glide decoding is capped at 1280 with an explicit DownsampleStrategy.FIT_CENTER, because the default CENTER_OUTSIDE strategy does not downsample when the scale factor is above 1 and actually enlarged the 2400x1080 image to about 2844x1280, whereas FIT_CENTER produces 1280x576 and makes the cap and memory savings effective.