UFO:Alien Invasion

Archive => Bugs prior to release 2.4 => Topic started by: jerikojerk on August 11, 2011, 12:25:45 am

Title: click less to transfert your cargo
Post by: jerikojerk 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.
Title: Re: click less to transfert your cargo
Post by: jerm 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.
Title: Re: click less to transfert your cargo
Post by: jerikojerk 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...
Title: Re: click less to transfert your cargo
Post by: Mattn on October 09, 2011, 06:16:52 pm
attached this as a patch here
Title: Re: click less to transfert your cargo
Post by: MCR 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
Title: Re: click less to transfert your cargo
Post by: Gren 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...  :(
Title: Re: click less to transfert your cargo
Post by: Kildor on October 11, 2011, 03:20:05 pm
Press and hold Shift and use spinner :)
Title: Re: click less to transfert your cargo
Post by: Gren on October 11, 2011, 03:26:20 pm
Press and hold Shift and use spinner :)

Cool!  8) Thanks Kildor  ;)
Title: Re: click less to transfert your cargo
Post by: Kildor on October 11, 2011, 05:31:00 pm
All kudos to Mattn $)