Patch: Partial refit
Moderator: OpenTTD Developers
Re: Patch: Partial refit
All may be long in other languages - for example "wszystkie".
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Re: Patch: Partial refit
I would not mind testing futher/again, can you please re-post the link to your patch space?Terkhen wrote: I have uploaded a new queue which corrects that bug and completes the tooltips.
I do not see it anymore in the first post and the versions there seem to be the previous still.
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Re: Patch: Partial refit
I'm sorry, you can find them at http://devs.openttd.org/~terkhen/patches/partial_refit/
Spanish translation of OpenTTD
Extended heightmaps
Have fun, don't quarrel too much and add as many advanced settings as you can.
Extended heightmaps
Have fun, don't quarrel too much and add as many advanced settings as you can.
Re: Patch: Partial refit
Thank you for the link. It was a bit hard to check without the pacth.
The selection box thinghy is fixed indeed.
How changing the order of two lines can make such a big difference ...
If i spot something else I'll post it , untill now everything seems to be working correctly. (Only tested trains for the moment)
The selection box thinghy is fixed indeed.
How changing the order of two lines can make such a big difference ...
If i spot something else I'll post it , untill now everything seems to be working correctly. (Only tested trains for the moment)
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Re: Patch: Partial refit
The patch has now been committed to trunk and will appear in today's nightly. The only thing missing now is the select all button
Here is my current implementation of the button. What do you think?
You can find the patch queue (of course, now it only includes the new panel and the button) at the usual place.
Here is my current implementation of the button. What do you think?
You can find the patch queue (of course, now it only includes the new panel and the button) at the usual place.
Spanish translation of OpenTTD
Extended heightmaps
Have fun, don't quarrel too much and add as many advanced settings as you can.
Extended heightmaps
Have fun, don't quarrel too much and add as many advanced settings as you can.
Re: Patch: Partial refit
Looks good I think...
Re: Patch: Partial refit
A bit late I guess, but I just thought of it now, a suggestion for the "select total train button": a check box. The looks (image) of the button depends on the state, three possible:
- empty box when no component is selected.
- a box with a greyed x when at least one is selected, but not all.
- a box with a black x when all train parts are selected.
When the button is clicked, the selected parts are set to none or all. Which of the two is chosen when at least one, but not all are selected, is up to the developer.
I've read through the topic, and have seen an image was considered, but have not found why it was discarded as a solution. A quick mock-up is attached, but I think you all know the concept of such a box.
- empty box when no component is selected.
- a box with a greyed x when at least one is selected, but not all.
- a box with a black x when all train parts are selected.
When the button is clicked, the selected parts are set to none or all. Which of the two is chosen when at least one, but not all are selected, is up to the developer.
I've read through the topic, and have seen an image was considered, but have not found why it was discarded as a solution. A quick mock-up is attached, but I think you all know the concept of such a box.
Re: Patch: Partial refit
You are not late. The rest of the patch has been commited, but the button issue is still open for discussion. The idea of an icon is not discarded; I coded the text version because it is a quite simple patch.
We need the answer to two questions. Where should the button be placed? Should it use an icon or text?
We need the answer to two questions. Where should the button be placed? Should it use an icon or text?
Spanish translation of OpenTTD
Extended heightmaps
Have fun, don't quarrel too much and add as many advanced settings as you can.
Extended heightmaps
Have fun, don't quarrel too much and add as many advanced settings as you can.
Re: Patch: Partial refit
I do like the idea of an icon. I think an icon in the style of Pikka's UKRS2 Multiheaded Engine Purchase List icons wold be suitable.
Formerly known as r0b0t_b0y2003, robotboy, roboboy and beclawat. The best place to get the most recent nightly builds of TTDPatch is: http://roboboy.users.tt-forums.net/TTDPatch/nightlies/
Re: Patch: Partial refit
Maybe an icon with a train consisting of one engine and one (or two wagons) and the whole train marked as selected? It would have to be maybe about 30-40 pixles long.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: Patch: Partial refit
Something like this?
Re: Patch: Partial refit
Congrats on trunk inclusion.Terkhen wrote: The patch has now been committed to trunk and will appear in today's nightly. The only thing missing now is the select all button
Here is my current implementation of the button. What do you think?
I think it is OK the way you have implemented the button and the info line.
It looks like the buttons in the company's stations gui, the ones to enable all cargos or all vehicle types, and therefore pretty consistent with the other guis.
About addding a graphical button ...
Can the button remain there if a bigger fonsize is selected? Would that not give problems?
Maybe it would be better to make a sprite that has no "button" shape but is drawn centered in the panel? Like how it is done for vehicle sprites in the guis.
That way if the line gets higher in height the sprite is always drawn in the correct place and the result is not a small button with an extra (little) panel above or below ?
Just an idea ...
Will check out the remaining patch(es) in a bit ...
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Re: Patch: Partial refit
I once looked into changing painting of images on buttons so that they are vertically aligned in the middle, but never came around to finalize it. However IIRC it was fairly straight forward to get it working but it might be that there was some pit falls that must be handled as well.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: Patch: Partial refit
For text is was WWT_LABEL IIRC.
I do not know if someting like that exists for images or if text can simply be replaced by an image and then put on a button.
It would be cool though.
I do not know if someting like that exists for images or if text can simply be replaced by an image and then put on a button.
It would be cool though.
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.
Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
Re: Patch: Partial refit
I personally find it a bit strange that when I have made a selection and then click on the refit button, my specific selection is cleared and the whole train gets selected. I think my selection should remain when I click on the refit-button. Otherwise it looks like the refit fails.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: Patch: Partial refit
The Ctrl+Click option is already included. The button is meant for adding a more visible option to select all vehicles.davepoth wrote:What about a Ctrl-Click option? Might work?
In most train sets, the selected part will change its graphics to fit the new refitted cargo. IMO it makes sense to change the selection, since it is not very probable that you will want to refit the same part of the train twice.Zuu wrote:I personally find it a bit strange that when I have made a selection and then click on the refit button, my specific selection is cleared and the whole train gets selected. I think my selection should remain when I click on the refit-button. Otherwise it looks like the refit fails.
Spanish translation of OpenTTD
Extended heightmaps
Have fun, don't quarrel too much and add as many advanced settings as you can.
Extended heightmaps
Have fun, don't quarrel too much and add as many advanced settings as you can.
Re: Patch: Partial refit
I would counter and say that if you have refitted a subset of all wagons, it is not likely that you want refit them again, therefore a complete selection of the train is not more useful than keeping the subset selection.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Junctioneer (a traffic intersection simulator)
Re: Patch: Partial refit
That's true, but I still think that changing the selection is a clear way of showing the user that something happened.
Spanish translation of OpenTTD
Extended heightmaps
Have fun, don't quarrel too much and add as many advanced settings as you can.
Extended heightmaps
Have fun, don't quarrel too much and add as many advanced settings as you can.
Re: Patch: Partial refit
Could the cargo icon for the current refit be displayed under each wagon? That would make it clearer when a wagon has been refitted too...
Who is online
Users browsing this forum: No registered users and 33 guests