Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

signs_gui updated to new Widget System #3144

Closed
DorpsGek opened this issue Aug 22, 2009 · 8 comments
Closed

signs_gui updated to new Widget System #3144

DorpsGek opened this issue Aug 22, 2009 · 8 comments
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay

Comments

@DorpsGek
Copy link
Member

Nickman opened the ticket and wrote:

I have updated the signs_gui.cpp file to the new Nested Widget system.
Patch is created for revision r17266

Has been tested and compiled on Windows system (no core changes so should work on all OS's).

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/3144
@DorpsGek
Copy link
Member Author

Nickman wrote:

Updated my patch to new revision (17269) and removed some more magic numbers to make the patch more complete.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/3144#comment6522

@DorpsGek
Copy link
Member Author

SmatZ wrote:

+ //Create initial list
doesn't comply with coding style. Use /* */ style comments when there is no code on the line

+ case SLW_LIST: { //The list has to be drawn
is just weird (missing space after //, NEVER use tabs anywhere else than on the beginning of the line)

+ BuildSignsList();
should be this->BuildSignsList(); if possible - trunk doesn't use correct coding style here...


This comment was imported from FlySpray: https://bugs.openttd.org/task/3144#comment6523

@DorpsGek
Copy link
Member Author

Nickman wrote:

Modified patch to conform to the coding style and noted the style for future additions.
Also updated to revision 17273

No further changes made

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/3144#comment6525

@DorpsGek
Copy link
Member Author

SmatZ wrote:

+ if (data == 0) { //New or deleted sign
+ //Rebuild the list
+ } else { //Change sign contents
+ this->SortSignsList(); //Try to sort the list after each change

Thanks for update, these still have improproper coding style (there should be space after // ). Maybe there are more places like these, I had just a quick look...


This comment was imported from FlySpray: https://bugs.openttd.org/task/3144#comment6529

@DorpsGek
Copy link
Member Author

Nickman wrote:

Updated the comment format and upped to revision 17274.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/3144#comment6530

@DorpsGek
Copy link
Member Author

Alberth wrote:

My comment as patch to the patched file.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/3144#comment6540

@DorpsGek
Copy link
Member Author

DorpsGek commented Sep 3, 2009

Nickman wrote:

Long time since I updated (holiday) but here is an altered version of the patch, updated to revision 17405 along with the new methods for changing some variables introduced in one of the new revisions.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/3144#comment6588

@DorpsGek
Copy link
Member Author

DorpsGek commented Sep 5, 2009

Alberth closed the ticket.

Reason for closing: Implemented

in r17418


This comment was imported from FlySpray: https://bugs.openttd.org/task/3144

@DorpsGek DorpsGek closed this as completed Sep 5, 2009
@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay
Projects
None yet
Development

No branches or pull requests

1 participant