Skip to content

Add mobile-friendly large icons (Steam) for touchscreen play - #58

Open
drhaluu82-dev wants to merge 1 commit into
maxpetul:masterfrom
drhaluu82-dev:feature/toc418-mobile-friendly-icons
Open

Add mobile-friendly large icons (Steam) for touchscreen play#58
drhaluu82-dev wants to merge 1 commit into
maxpetul:masterfrom
drhaluu82-dev:feature/toc418-mobile-friendly-icons

Conversation

@drhaluu82-dev

Copy link
Copy Markdown
Contributor

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:
image
image

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.

screen1 screen2 Screen3

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant