OpenXcom Forum

Modding => Work In Progress => Topic started by: ufomesh on June 29, 2014, 02:42:20 pm

Title: [Request][UI] Open door button
Post by: ufomesh on June 29, 2014, 02:42:20 pm
Hi!
I found that one of the important features of openXcom is missing in android port. It is opening doors by right click. So the idea was to make an additional button for this. I think it's not bad if PC version will have this UI button, too :)
The problem is: I'm not a coder and even can't check out the possibility of creating new UI buttons, but I can draw them.
Also I found that size of a standard button is 32х16. Maybe this is made for some memory reasons and it isn't possible to change button sizes.
Anyway, new ones are 28x16. Check out attached files: normal view and zoomed in x2. For now I have 2 variations of open door button, don't know which is better. I will appreciate any comments, help and advice.

The second problem is: all buttons go in pairs, so it would be good to find another action for this second button in a column. For now this blank place is used for a variation for "open a door" button.
Title: Re: [Request][UI] Open door button
Post by: davide on July 02, 2014, 07:27:43 pm
+1
Title: Re: [Request][UI] Open door button
Post by: Unknown Hero on July 02, 2014, 07:44:46 pm
Why not: "Close the door"

Your first soldier, with a power suit, opens the door and enters the UFO.
Your second soldier, with no armor, closes the door.
Then, your first soldier can throw a grenade inside the UFO without risking to hurt the second soldier.


**********
***** Added 07/04/2014 - Start
**********


Forget the "Close the door" button, this can be done with the same button "Open/Close Door".
It's better to reserve the other button for another action.


**********
***** Added 07/04/2014 - End
**********
Title: Re: [Request][UI] Open door button
Post by: SupSuper on July 05, 2014, 02:19:05 am
The other button could be for the Reload shortcut that people keep missing. :P
Title: Re: [Request][UI] Open door button
Post by: Unknown Hero on July 05, 2014, 02:58:30 am
Yes, great; select the active weapon (if the soldier has 2 weapons with clips (one in each hand)), then reload if enough TUs. Should work.
Title: Re: [Request][UI] Open door button
Post by: Solarius Scorch on July 11, 2014, 06:26:15 pm
Yes, great; select the active weapon (if the soldier has 2 weapons with clips (one in each hand)), then reload if enough TUs. Should work.

You know it already works with the R key, right?
Title: Re: [Request][UI] Open door button
Post by: Muukalainen on July 11, 2014, 07:26:39 pm
I would love to have hand icon that would work as a use button.

Open and close doors. It would also pick up or place items on the tile ahead.
Title: Re: [Request][UI] Open door button
Post by: Unknown Hero on July 11, 2014, 07:41:20 pm
@ Solarius Scorch

Quote
You know it already works with the R key, right?

Yes, but for players who can/want not use a keyboard.
Title: Re: [Request][UI] Open door button
Post by: Aldorn on July 12, 2014, 03:08:52 pm
You know it already works with the R key, right?
???
Thanks for the tip
Title: Re: [Request][UI] Open door button
Post by: luke83 on July 13, 2014, 12:43:57 pm
Would love a Lock door button :)
Title: Re: [Request][UI] Open door button
Post by: Aldorn on July 13, 2014, 12:49:48 pm
Would love a Lock door button :)

And some thief "unlock" capability ?  8)
Title: Re: [Request][UI] Open door button
Post by: luke83 on July 13, 2014, 09:37:02 pm
And some thief "unlock" capability ?  8)
One day maybe :P just causing people to waste the extra TUs to shoot it down for now would be enough 8)
Title: Re: [Request][UI] Open door button
Post by: NeoWorm on July 14, 2014, 12:29:50 pm
I found that one of the important features of openXcom is missing in android port.

It isnt missing. When you turn towards the door you want to open by hold+flick motion you can open the door by doing the same thing again. Its a little wonky but nothing that harsh. And it works.
Title: Re: [Request][UI] Open door button
Post by: ufomesh on July 22, 2014, 10:51:20 pm
It isnt missing. When you turn towards the door you want to open by hold+flick motion you can open the door by doing the same thing again. Its a little wonky but nothing that harsh. And it works.

Wow, didn't know that, thanks for tip. Anyway, it would be much easier to open doors with icon rather than this tricky gesture.
Title: Re: [Request][UI] Open door button
Post by: Tarvis on July 24, 2014, 10:50:24 pm
So the idea was to make an additional button for this. I think it's not bad if PC version will have this UI button, too :)
Quite frankly, I think the Android version just needs a new UI entirely. The buttons are entirely too small for a finger on 4 or 5 inch screens. There's been a few mockups in the old Android port thread.

I think the best place to start though would be if UI layouts and such were externalized. Then they could simply be handled by mods.
Title: Re: [Request][UI] Open door button
Post by: ufomesh on July 26, 2014, 08:00:19 pm
Quite frankly, I think the Android version just needs a new UI entirely. The buttons are entirely too small for a finger on 4 or 5 inch screens. There's been a few mockups in the old Android port thread.

I think the best place to start though would be if UI layouts and such were externalized. Then they could simply be handled by mods.

I'm playing on my 7' tablet and feeling comfortable. I think playing openXcom on phones won't be comfortable at all. In case of small screens you need to enlage buttons. Enlarging them you greatly reduce battlescape size.
Anyway my miserable attempts of at least changing background picture with buttons failed.

I wrote something like this but had no effect.
layout:
  - name: icons
    order: 1
    type: InteractiveSurface
    width: 320
    height: 56
    hAlign: center
    vAlign: bottom
    relX: -160
    relY: -56
    singleImage: true
    files:
      120: Resources/UI/newIcons.png
      crop:
        x: 0
        y: 144
        w: 320
        h: 56
    hidden: false
    handlers:
      onMouseIn: mouseInIcons
      onMouseOut: mouseOutIcons

Maybe if I catch luck and get understanding with all this coding I think about 4'-5' version..