OpenXcom Forum

Contributions => Programming => Topic started by: Fenyő on October 14, 2012, 10:56:48 pm

Title: Basescape development
Post by: Fenyő on October 14, 2012, 10:56:48 pm
Since i have not found a topic with this name (or similar), i opened it.

I want to present you the newest feature which I've just completed! :)
"Right-click on arrow buttons means max/min" (https://openxcom.org/forum/index.php/topic,655.msg6270.html#msg6270)

I've attached the sources.

SupSuper, please add these code to the official OpenXcom codebase!

Notes about the feature:
1) As you can see, the buttons are actually not pressed down VISUALLY when keeping the right-mouse down.
This behavior is already persisted before this feature. If you (anyone!) miss it, go ahead! Implement it! :)
2) When right-clicking to put all of a type of HWP to a craft, and there is not enough ammo for them, in this case it divides the ammo for equal parts, so they're all sharing the ammo they have.
3) Of course after a mission this equal ammo partitioning is not done, because the re-equipment is an other story, which is not done by me. :)
4) When right-clicking on the Increase pieces to produce on the Manufacture screen, it sets the value to 999. (unless it is higher already) This value (or maybe a greater one, or maybe a dedicated symbol, perhaps the symbol of infinity) could mean "produce to sell" like in UFO-extender,  but thats an other story, it has to be implemented. This is the point in the source where this feature should be implemented later. (Does anyone have a mood to implement this?)

edit:
Oh, and of course the attached files already contain the fix for "Transferring a craft is not possible" bug.
Title: Re: Basescape development
Post by: Fenyő on October 15, 2012, 02:09:11 am
Okay, finally i have set up github correctly, and i have done a pull request.
Title: Re: Basescape development
Post by: SupSuper on October 16, 2012, 03:07:44 pm
Thanks for the contributions, I was planning on doing some of these UI improvements myself but only by 0.5 (along with stuff from UfoExtender etc.). The "buttons don't look pressed when right-clicked" is by design, it can easily be fixed.
Title: Re: Basescape development
Post by: Fenyő on October 22, 2012, 01:15:37 am
SupSuper!

You rejected my Pull-request "Fix: There's not enough space for STR_TOTAL_TO_PRODUCE"
with an explanation "Not needed anymore.".

May i ask why?
The problem it fixes is still exist in the newest git-build!

You can see it on the screen-shot i attached to this post. (in the red circle)
Title: Re: Basescape development
Post by: SupSuper on October 22, 2012, 02:15:54 am
No need to shout my (nick)name, I can hear you just fine.

I rejected your pull request because the problem is already fixed on my local repository, as well as fixes for all the other languages, fixing your problem with buttons not pressing with right-click, finishing up Ufopaedia, and all the various stuff I've been working on throughout the weekend for 0.4.5 (which are going up now), which will take even longer now due to all the recent issues popping up.

Be patient and heed the developer's words next time.
Title: Re: Basescape development
Post by: radius75 on October 22, 2012, 11:33:44 am
Developer's work locally on Branch 'master' directly, and ' remote Branch master' do not actualize systematically.
And Git is after this so that over what every one sees he works someone, for check new proposal and testing commit for bugs, and was not such misunderstandings.
 ;D

EDIT
It sufficed to Close&comment PR: "fixed in commit 8eb915f" or something...
"Not needed anymore." hmm... enigmatic.  :P
Title: Re: Basescape development
Post by: Fenyő on October 22, 2012, 12:53:34 pm
No need to shout my (nick)name, I can hear you just fine.
Actually, its just an accost. :) (and i didn't shout, it wasn't uppercased)

I rejected your pull request because the problem is already fixed on my local repository, as well as fixes for all the other languages, fixing your problem with buttons not pressing with right-click, finishing up Ufopaedia, and all the various stuff I've been working on throughout the weekend for 0.4.5 (which are going up now), which will take even longer now due to all the recent issues popping up.
Nice job!!

"Not needed anymore." hmm... enigmatic.  :P
Yeah, this is the reason i asked. :)
Title: Re: Basescape development
Post by: kkmic on October 22, 2012, 05:05:13 pm
Since i have not found a topic with this name (or similar), i opened it.

There is one, and quite a long one too... (https://openxcom.org/forum/index.php/topic,87.0)

And you have posted there before opening this thread.

:D
Title: Re: Basescape development
Post by: Fenyő on October 22, 2012, 05:10:31 pm
This is BASEscape development.
The one you linked is BATTLEscape.
Title: Re: Basescape development
Post by: kkmic on October 22, 2012, 05:15:16 pm
My eyes, oh, my eyes!!  ::)

My bad bro :D

Btw, I remember Daiky posting something about the Alien Base missions. Just a heads-up in case you two might cross over during development.