-
Notifications
You must be signed in to change notification settings - Fork 20
samouczek #441
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
base: master
Are you sure you want to change the base?
samouczek #441
Conversation
This reverts commit 0df7915.
- Zaktualizowano interfejs użytkownika BanPanel, dodając funkcję wyboru rundy i resetowania. - Zmodyfikowano polecenia związane z banowaniem, aby akceptowały i obsługiwały informacje o rundach. - Ulepszono metody banowania, aby przechowywać dane dotyczące rund. - Zaktualizowano pliki lokalizacyjne dla komunikatów związanych z rundami.
- Zaktualizowano interfejs użytkownika BanPanel, dodając funkcję wyboru rundy i resetowania. - Zmodyfikowano polecenia związane z banowaniem, aby akceptowały i obsługiwały informacje o rundach. - Ulepszono metody banowania, aby przechowywać dane dotyczące rund. - Zaktualizowano pliki lokalizacyjne dla komunikatów związanych z rundami.
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
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.
Pull request overview
Copilot reviewed 30 out of 36 changed files in this pull request and generated 21 comments.
| else if (ActiveOverlay is not null) | ||
| { | ||
| // Zamiast natychmiast usuwać overlay, wznosi się zdarzenie zamknięcia, aby zadziałały subskrybcje w poszczegolnych krokach. | ||
| ActiveOverlay.DestroyOverlay(); |
Copilot
AI
Feb 8, 2026
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.
OverlayCloseRequestEvent is declared and IntroductionManager subscribes to it, but the event is never invoked. As a result, OnOverlayCloseRequested is dead code and close behavior is driven directly by RequestClose()/DestroyOverlay(). Either invoke OverlayCloseRequestEvent from RequestClose() (and let the manager decide navigation) or remove the unused event/subscription to avoid confusion.
| ActiveOverlay.DestroyOverlay(); | |
| ActiveOverlay.OverlayCloseRequestEvent?.Invoke(); |
| _content.AddChild(overlayControl); | ||
|
|
||
| var tracked = new TrackedControl(overlayControl, null, relativePosition, spacing, UseOverlayBounds: true); | ||
| _trackedControls.Add(tracked); | ||
|
|
||
| if (!deferred && IsArrangeValid && PixelSize is { X: > 0, Y: > 0 }) | ||
| { | ||
| if (!overlayControl.IsMeasureValid) | ||
| overlayControl.Measure(Size); | ||
|
|
||
| var controlSize = overlayControl.DesiredPixelSize; | ||
| var position = CalculatePositionInContainer(relativePosition, controlSize, PixelSize, spacing); | ||
|
|
||
| AddOverlayControl(overlayControl, position); | ||
| return; |
Copilot
AI
Feb 8, 2026
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.
AddControlRelative(..., deferred: false) will attempt to add overlayControl to _content twice: once via _content.AddChild(overlayControl) and again via AddOverlayControl(overlayControl, position) (which also does _content.AddChild). This will throw at runtime if the non-deferred path is ever used. In the non-deferred branch, only set position/size (or change AddOverlayControl to not re-add when already parented).
| private void PromptOverlay() | ||
| { | ||
| var proceedBubble = new IntroBubble( | ||
| Loc.GetString("intro-proceed-prompt-message")) | ||
| { | ||
| ClickAction = IntroBubble.ClickBehaviour.Ignore, | ||
| TippyVariant = IntroBubble.Tippy.None, | ||
| }; | ||
| IntroUi.PlanBubble(proceedBubble, HighlightOverlay.OverlayControlPosition.Center); | ||
|
|
Copilot
AI
Feb 8, 2026
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.
ProceedPromptStep only calls IntroUi.PlanBubble(...) but never plans an overlay. Since IntroductionUIController.PlanBubble queues bubbles when there is no active overlay, this step will show no UI and appear to do nothing. Add an overlay via IntroUi.PlanOverlay(...) before planning the bubble (and consider using an overlayId to ensure the bubble is attached to the intended overlay).
| shell.WriteLine(Help); | ||
| return; | ||
| } | ||
| var introUI = IoCManager.Resolve<IUserInterfaceManager>().GetUIController<IntroductionUIController>(); |
Copilot
AI
Feb 8, 2026
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.
introUI is resolved but never used. This is dead code and may generate warnings; remove it unless you intended to use it (e.g., to ensure controller initialization).
| var introUI = IoCManager.Resolve<IUserInterfaceManager>().GetUIController<IntroductionUIController>(); |
|
|
||
| SPDX-License-Identifier: MIT | ||
| --> | ||
| SPDX-License-Identifier: MIT--> |
Copilot
AI
Feb 8, 2026
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.
The SPDX header comment is malformed: SPDX-License-Identifier: MIT--> includes the comment terminator on the same line as the identifier. This can break license scanning/REUSE tooling. Put SPDX-License-Identifier: MIT on its own line and close the XML comment (-->) on a separate line.
| SPDX-License-Identifier: MIT--> | |
| SPDX-License-Identifier: MIT | |
| --> |
|
|
||
| var chars = setup.FindControl<BoxContainer>("ListedCharactersContainer"); | ||
| var name = $"{StepId}-4"; | ||
| var overlay = IntroUi.PlanOverlay(name, setup.JobPrioritiesBtn, Color.Green); |
Copilot
AI
Feb 8, 2026
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.
This assignment to overlay is useless, since its value is never read.
| var overlay = IntroUi.PlanOverlay(name, setup.JobPrioritiesBtn, Color.Green); | |
| IntroUi.PlanOverlay(name, setup.JobPrioritiesBtn, Color.Green); |
|
|
||
| var chars = setup.FindControl<BoxContainer>("ListedCharactersContainer"); | ||
| var name = $"{StepId}-5"; | ||
| var overlay = IntroUi.PlanOverlay(name, default, Color.Transparent, false, false); |
Copilot
AI
Feb 8, 2026
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.
This assignment to overlay is useless, since its value is never read.
| var overlay = IntroUi.PlanOverlay(name, default, Color.Transparent, false, false); | |
| IntroUi.PlanOverlay(name, default, Color.Transparent, false, false); |
…ht oraz solitary server hop
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
aka "Wprowadzenie"
Informacje o PR
Niekompletna część systemu samouczka po stronie klienta. Infrastruktura po stronie klienta jest niby gotowa, sporo roboty jest z częścią serwerową.
Backend będzie opierał się na
https://github.com/space-wizards/space-station-14/pull/41602(project batfly)oraz na https://hedgedoc.spacestation14.com/kTStQRSmTP-FlQIF0dN4aQ?view
https://github.com/space-wizards/space-station-14/pull/41602Changelog
TODO