Add mobile-friendly large icons (Steam) for touchscreen play - #58
Open
drhaluu82-dev wants to merge 1 commit into
Open
Add mobile-friendly large icons (Steam) for touchscreen play#58drhaluu82-dev wants to merge 1 commit into
drhaluu82-dev wants to merge 1 commit into
Conversation
Large companion confirm/cancel buttons on vanilla popups and big up/down scroll arrows on the city build-picker, gated by Mobile_Friendly_Icons. Pure click translators: presses are redirected to the tiny vanilla controls, so vanilla behavior is unchanged. Missing art = silent stand-down. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Large companion confirm/cancel buttons on vanilla popups and big up/down scroll arrows on the city build-picker, gated by Mobile_Friendly_Icons. Pure click translators: presses are redirected to the tiny vanilla controls, so vanilla behavior is unchanged. Missing art = silent stand-down.
STEAM ONLY feature to be able to play on mobile devices -- with enlarged buttons sitting next to the traditionally very small buttons on vanilla popup screens and scrolling buttons in city screen --- larger buttons easier to press on a small touchscreen device.
This feature is config file gated and should default to FALSE.
Feature is labeled with comments for ToC-418 for the code changes. Config variable is boolean: Mobile_Friendly_Icons (default should be set to false)
I tried to commit the right files but am not sure that everything came across as it should have.
If you need me to recommit for ONLY the ToC-418 features (specific to the enlarged buttons only), let me know. I tried to grab only those changes but it looks like other code may have come across.
These are the files you should see:


Config variable description:
; STEAM ONLY: Mobile-friendly big buttons for touchscreen play. Draws large companion confirm/cancel
; buttons beside the tiny checkbox-sized pair on vanilla popups, and large up/down scroll arrows
; inside the city screen's build-picker window. Pressing a big button simply redirects the click
; to the tiny vanilla control, so vanilla behavior is unchanged. Requires the art files
; ToC_Mobile_Buttons_Popup_Screen.pcx and ToC_Mobile_Buttons_City_Screen.pcx in the mod's
; Art/interface folder; if one is missing, that surface silently disables itself.
; Default: False , Set to True for Mobile Friendly Icons -- Currently works for the STEAM version ONLY.
Mobile_Friendly_Icons = FALSE
Comes with 4 .pcx files that help retain compatibility with both High resolution (keepres=1) and low resolution play (keepres=0).
Here's what it looks like in game, below. let me know if you have questions.