OpenXcom Forum

Modding => OpenXcom Extended => Topic started by: DHangelfan on January 30, 2021, 06:33:21 am

Title: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: DHangelfan on January 30, 2021, 06:33:21 am
Hey, guys. Does anyone know if this is a feature? I don't see how the game is viable if you can't try and shoot through obstacles. Sometimes, that's absolutley needed.

Thank you!  Great work whoever put this together, by the way. Awesome stuff. Thank you so much.
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: Meridian on February 01, 2021, 10:42:16 pm
It's planned for a longer time, using toggle buttons instead of keyboard modifiers and mouse buttons.

Something like attached.

But I need a good artist to draw the buttons for UFO and TFTD.
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: robin on February 05, 2021, 11:18:58 pm
do you use them all in the same manner?
i was wondering if it made sense to make the mouse buttons visually different than the others.
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: Meridian on February 05, 2021, 11:24:54 pm
do you use them all in the same manner?
i was wondering if it made sense to make the mouse buttons visually different than the others.

the first three buttons simulate holding a key down... all can be activated at the same time

the other two buttons simulate pressing a different mouse button... only one of them can be activated at a time

visually, the mouse buttons could be pictograms, to be more international... the other buttons probably need text


does that help? or was the question about something else?

you can see a preview of how the buttons react in the test build: https://lxnt.wtf/oxem/builds//ExtendedTests/Extended-6.9.3-test-4bdbbeb8e-2021-02-02-win64.7z
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: robin on February 05, 2021, 11:48:55 pm
does that help? or was the question about something else?
I see. It does help.
I had installed the test build! I just didn't think about trying it because my brain is evidently fried, sorry :-[.
Still not done by the way, just an idea.
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: robin on February 07, 2021, 03:03:58 pm
?
edit opss inverted RMB and MMB. fixing...... done.
edit, maybe better
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: Meridian on February 07, 2021, 07:07:53 pm
I like both :)

What's the difference between them? They look the same to me at first look.
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: robin on February 07, 2021, 07:13:51 pm
the difference is only for the mouse buttons in the pressed state. they are more "standing out" I think.
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: Meridian on February 08, 2021, 10:52:15 am
I will also remove the 1 pixel space between the buttons (as seen in the test build), so you can assume the buttons will be touching each other (as seen below).

(Unless people think it looked better with the space between?)
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: Solarius Scorch on February 08, 2021, 11:48:33 am
I personally think it looks better when separated, unless you make it into a larger console (like a whole device with buttons on it), which I think you don't want to do.
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: Meridian on February 08, 2021, 12:15:22 pm
I personally think it looks better when separated, unless you make it into a larger console (like a whole device with buttons on it), which I think you don't want to do.

Yeah, looking at it a few minutes more, I agree it looked better with the extra space.

But maybe more people could also bring their opinion...
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: R1dO on February 08, 2021, 01:07:30 pm
The current design (from robin) seems to look better when using spaces. Not entirely sure though since i have to mentally replace those icons on the earlier blue button image.
Is it possible to show the difference in the same (or using 2) image(s)?

Having said that. Perhaps it is better to give "space separation" powers to the UI button designer (using transparent color for the outer contour).
In that case the "touch.png" can still be used to design a console if somebody feels to urge to integrate it with an existing mod interface.
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: Meridian on February 08, 2021, 02:33:43 pm
side by side
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: R1dO on February 08, 2021, 03:07:41 pm
Thank you for that.
For me it kinda confirms that it depends on the design of the icons.

Personally:
* The modifier keys (CTRL, ALT, SHIFT) look better with space between them.
* The mouse keys look better without the space.
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: Meridian on February 08, 2021, 03:15:00 pm
@robin: if you have a preference, let me know

I can also easily create a second test build to compare the two options... I will provide a download link in the evening
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: robin on February 08, 2021, 11:36:34 pm
I designed them thinking they'd be separated (even though the mouse buttons, as R1dO said, are so-so from that PoV).
I haven't uploaded the latest version, but the difference with the current one is minimal.
I was planning to move on to TFTD at this point.
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: Meridian on February 09, 2021, 12:04:17 am
@robin ok let's go with separated as originally planned

@R1dO working with transparent color has also a disadvantage that the transparent area is still "clickable" even if it doesn't look clickable
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: R1dO on February 09, 2021, 12:57:22 am
I did consider the "clickeable part" before mentioning the transparent idea, decided it was probably not really an issue due to the following points:

* The button artist only has 24 pixels to work with when it comes to height.
  + Unless they really hate the player I doubt more than 2 lines will be sacrificed for transparency.

* Most users will "aim" for the center of the button instead of the transparent row between two buttons.
  + I doubt there will be many miss-clicks because of that. Even if it happens: Robin's design provides excellent feedback to the user they clicked "wrong".
     (to be honest: this is a bit biased by the ratio between the size of my fingers and the screen size of the android devices I own ;))

* I am not sure how accurate devices (or SDL) are when registering a touch (e.g. misalignment).
  + Registering a click on the transparent area might even be preferred compared to not registering a click at all (considering that the buttons provide visual feedback on their state).
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: Yankes on February 09, 2021, 12:31:58 pm
I think only place that could be transparent is corners. max 1 or 3 pixels on each corner. This will be probably very hard to "target" by human.

On other hand, should only center part of robin graphic be clickable? Gray pixels are effective border not buttons.

[ps]

More I look on this buttons more I like them, first I thought that they do not fit UFO aesthetic but quality of robin graphic surpass it :)
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: robin on February 13, 2021, 03:24:41 pm
not completely sold on UFOEU versions but I think they're ok

edit: reuploaded UFOEU, fixed a little mistake
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: robin on February 13, 2021, 04:08:44 pm
slightly lighter version of the classic buttons... but like this they do not match the other buttons of the UI anymore.
idk I think I like the darker ones more, even though the mouse icon is less sharp.
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: Meridian on February 13, 2021, 04:36:47 pm
I like all of them.

If I have to choose one, then I take the non-classic UFOEU, the one with brown and orange mouse buttons.
I already got used to it ;)

What do the others think?
Which one's the best?
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: yergnoor on February 13, 2021, 05:04:49 pm
I like the brighter color of the buttons.
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: R1dO on February 13, 2021, 07:16:13 pm
My rating would be (in order):
* Classic ufo
* Non classic ufo
* TFTD

Mostly because:
* I like the "flip-switch" approach for the modifier keys.
* The design of the mouse buttons correspond better to the existing pressed button design [1].

[1] A shame really, because i like the colorfulness of the non classic design ¯\_(ツ)_/¯
Title: Re: Using touch controls on Android. How to force fire? The game isn't viable.
Post by: DHangelfan on February 25, 2021, 03:36:42 am
Gentleman, I have to say, I'm completely lost.

But, I'm here to report that while inconvenient, it is still possible to manually shoot at every item in line of sight between you and a piece of alien scum.