NO Commanders in Manufacture

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
User avatar
aubergine
Professional
Professional
Posts: 3462
Joined: 10 Oct 2010, 00:58

Re: NO Commanders in Manufacture

Post by aubergine »

@Emdek - that sounds perfect!!
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
Emdek
Regular
Regular
Posts: 1329
Joined: 24 Jan 2010, 13:14
Location: Poland

Re: NO Commanders in Manufacture

Post by Emdek »

:-)

I'll try to fix it later today, if factory decides what to show (so gets full list) and we have possibility to gray out / mark as inactive buttons in generic way then it should be fairly easy.
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.


Beware! Mad Qt Evangelist.
User avatar
aubergine
Professional
Professional
Posts: 3462
Joined: 10 Oct 2010, 00:58

Re: NO Commanders in Manufacture

Post by aubergine »

Emdek wrote:... then it should be fairly easy.
Famous last words hehe
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
Emdek
Regular
Regular
Posts: 1329
Joined: 24 Jan 2010, 13:14
Location: Poland

Re: NO Commanders in Manufacture

Post by Emdek »

aubergine, maybe so. ;-)
But that wouldn't be my first patch for wz and I know some things about it's internals (but more about generic GUI stuff, not game mechanics, renderer etc.).
For example I've made some changes for that menus stuff (you have seen part of that in that ticket recently), although few hours earlier I've said that it sucks too much (this is not only my opinion, there was already at least one attempt to kill it in the past, see betawidget) to touch it in other way than replacing it at all (well, this would be real task, easy to fail, but still on my TODO list for near future). :-)
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.


Beware! Mad Qt Evangelist.
User avatar
aubergine
Professional
Professional
Posts: 3462
Joined: 10 Oct 2010, 00:58

Re: NO Commanders in Manufacture

Post by aubergine »

Yep, game options screen is looking loads better in 3.1 beta 5, and glad to see radar rotation finally moved to somewhere logical!

I really hope you can get that tweak done to the factory build orders UI, it will be a great usability improvement especially for new players.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
User avatar
Emdek
Regular
Regular
Posts: 1329
Joined: 24 Jan 2010, 13:14
Location: Poland

Re: NO Commanders in Manufacture

Post by Emdek »

Well, in fact radar was moved by cyberspinx and I've published only patch (without commiting it to my fork) but he decided to send it as mine. ;-)
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.


Beware! Mad Qt Evangelist.
User avatar
Emdek
Regular
Regular
Posts: 1329
Joined: 24 Jan 2010, 13:14
Location: Poland

Re: NO Commanders in Manufacture

Post by Emdek »

OK, I got possible way to do that (thanks to Cyp who pointed me where to start searching) by starting with modifying:

Code: Select all

void fillTemplateList(std::vector<DROID_TEMPLATE *> &pList, STRUCTURE *psFactory)
In src/template.cpp.
So it would return list of boolean values (false for those for which that factory is too small) instead of changing the one passed to it.
Or it could return list of integers to tell how many modules are needed for given droid.
Nadszedł już czas, najwyższy czas, nienawiść zniszczyć w sobie.
The time has come, the high time, to destroy hatred in oneself.


Beware! Mad Qt Evangelist.