project-navigation
Personal tools

Author Topic: click less to transfert your cargo  (Read 5613 times)

Offline jerikojerk

  • Squad Leader
  • ****
  • Posts: 149
    • View Profile
click less to transfert your cargo
« on: August 11, 2011, 12:25:45 am »
When we are on a transfert menu, as long the possibility to transfert all the 'items' (ie all alien material) by just clicking on the item name, you may be interested in this little mod that allow to transfert 10 items with just one click.

It's not enough good quality to be one day in the trunk version but you may use the attached file to replace ufoai/base/ufos/ui/transfert.ufo (in fact rename you original version to revert the change). This file is loaded at game start so restart the game.

it will add a button that selects 10 items by 10 items for transfert.

Internaly it's done by calling 10 times the ±1 procedure. So you can't use that to cheat on cargo count.

there is still a little bug regarding having grey/blue button when reaching the max value. I still looking at a way to fix that...

hope it will help.
« Last Edit: August 11, 2011, 01:09:25 am by jerikojerk »

Offline jerm

  • Rookie
  • ***
  • Posts: 46
    • View Profile
Re: click less to transfert your cargo
« Reply #1 on: August 11, 2011, 03:36:06 am »
Wow... looks usable. :o Maybe make little markers at the top to represent numbers. Perhaps even a 'x100' button could be made up. Merci boucoup. You sir, can have all my omelette le fromage.

Offline jerikojerk

  • Squad Leader
  • ****
  • Posts: 149
    • View Profile
Re: click less to transfert your cargo
« Reply #2 on: August 11, 2011, 12:43:49 pm »
well that's not so difficult to do: if you try it you will find there are definitively bugs, but with my 0 knowledge it's the best i can suggest.
Having a customized button will requiere new strings to be translated and i think it's not worth it...

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: click less to transfert your cargo
« Reply #3 on: October 09, 2011, 06:16:52 pm »
attached this as a patch here

Offline MCR

  • PHALANX veteran
  • ******
  • Posts: 1244
    • View Profile
Re: click less to transfert your cargo
« Reply #4 on: October 09, 2011, 07:51:47 pm »
Thanks a lot for your patch, jerikojerk.  8)
It has been applied to master with just slight changes, so now all of the gamers can enjoy a better and faster transfer UI.
See here:
http://ufoai.git.sourceforge.net/git/gitweb.cgi?p=ufoai/ufoai;a=commit;h=cf7c19f6085138048948e7ddfdf80b4a8bcca06f

Offline Gren

  • Squad Leader
  • ****
  • Posts: 165
    • View Profile
Re: click less to transfert your cargo
« Reply #5 on: October 11, 2011, 12:35:52 pm »
Thanks a lot for your patch, jerikojerk.  8)
It has been applied to master with just slight changes, so now all of the gamers can enjoy a better and faster transfer UI.
See here:
http://ufoai.git.sourceforge.net/git/gitweb.cgi?p=ufoai/ufoai;a=commit;h=cf7c19f6085138048948e7ddfdf80b4a8bcca06f

Short and Sweet!!

Built 1318283612 last night and the extra button has disappeared...  :(

Offline Kildor

  • Project Artist
  • Captain
  • ***
  • Posts: 757
  • Project mapper and some other stuff`er
    • View Profile
    • http://ufoai.nx0.ru
Re: click less to transfert your cargo
« Reply #6 on: October 11, 2011, 03:20:05 pm »
Press and hold Shift and use spinner :)

Offline Gren

  • Squad Leader
  • ****
  • Posts: 165
    • View Profile
Re: click less to transfert your cargo
« Reply #7 on: October 11, 2011, 03:26:20 pm »
Press and hold Shift and use spinner :)

Cool!  8) Thanks Kildor  ;)

Offline Kildor

  • Project Artist
  • Captain
  • ***
  • Posts: 757
  • Project mapper and some other stuff`er
    • View Profile
    • http://ufoai.nx0.ru
Re: click less to transfert your cargo
« Reply #8 on: October 11, 2011, 05:31:00 pm »
All kudos to Mattn $)