-
Notifications
You must be signed in to change notification settings - Fork 28
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
Feature: Warps need to be connected to the same electricity network #190
Feature: Warps need to be connected to the same electricity network #190
Conversation
- Refactor gui layout - Changed update flow
|
* Add bypass styling and functionality * Fix using wrong warp position for goto label * Add warp placement checks * Edit remove warp to keep the corpses of the entities * Fix warp label and textbox * Make Warp container wider by 20
Maybe for the future ;)
Added a bit more padding
Proximity should be working now
This seems to be a Factorio issue yea |
* Changed cooldown color to be same as the disabled one;
Because debate about the color usage I made the change to using icons.
@Cooldude2606 Please fix CI & review my latest commit. |
* Fixed that it clears table every warp update. * Dirty fix unknown signal icon, it gets replaced by the old icon
Git actions have beeen fixed, the fix has been merged into your pr. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to the time that I am reviewing this, I have not tested in game or looked at styling.
Most of the comments are suggestions that could be considered rather than required changes.
I will review the styling tomorrow.
Co-authored-by: Cooldude2606 <cooldude260607@gmail.com>
* Variable name. * Moved variable initialisation to outside a function.
* Fixed indentation. * Updated function names to be more representative of what they do. * Added more comments * Moved some variables around for easier readability and such
…ario into feature/warp-net-id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All suggested changes which where implemented look correct.
I will do a final check in game before I approve the PR.
Comments from in game testing:
|
When I have the time I'll look for better icons, doing custom formatting for each icon seems too over done.
Will change the description, doing the second part maybe.
Think because it's new, maybe good to add to other GUI's to inform users about what it does.
I'll make it single line and increase the with if it gets too small (like you said maybe per user, but we'll see).
Will look into this, it’s interesting! |
* Pressing `Discard changes` removes warp if it has been pressed after `New warp`. * Changed `not_available` (not in range) status icon to a cross, fits the sizing of the other icons better. * Renamed locals key `'warp-list.discard-tooltip'` to `'warp-list.remove-tooltip'` * Added textfield squashable and strechable to make it dynamic to the container size. * Container size changes depending on permissiong `'allow_add_warp'`
* Pressing `Discard changes` removes warp if it has been pressed after `New warp`. * Changed `not_available` (not in range) status icon to a cross, fits the sizing of the other icons better. * Renamed locals key `'warp-list.discard-tooltip'` to `'warp-list.remove-tooltip'` * Added textfield squashable and strechable to make it dynamic to the container size. * Container size changes depending on permissiong `'allow_add_warp'`
…ario into feature/warp-net-id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- New icons look great, even if this was only a result of updating to 1.1
- Remove warp on first edit works as expected, but it might be possible to use a boolean?
- One change was missed relating to playing a sound, one was corrected and the other not.
- Because of the truncated warp name, could the full name be added at the top of the tooltip.
- I will be asking for an additional review of the locale file to ensure it is consistent.
* Removed 1 time use local * Fixed double permission check * Locale fixes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might've missed a few things as always. I also haven't checked any variable names for errors. Looks pretty good overall though!
All changes where corrections to spelling and grammar in comments. Co-authored-by: mark9064 <30447455+mark9064@users.noreply.github.com>
…o feature/warp-net-id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My last review covered all functional code, and marks review covered all spelling and grammar, with my last changes which implimented marks request, I am happy to merge this pr.
This pull request contains a refactor of the warp list to enable to make it easier to implement this feature.