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

[BUG] Horizontal anchors invalid #3381

Open
j-gynn opened this issue Jan 25, 2025 · 1 comment
Open

[BUG] Horizontal anchors invalid #3381

j-gynn opened this issue Jan 25, 2025 · 1 comment

Comments

@j-gynn
Copy link
Collaborator

j-gynn commented Jan 25, 2025

Type of bug

UI - anything to do with the user interface - maybe a button is not working, or the way some assets are formatted seems to be off.

Description

When opening the MakeClanScreen, a warning appears about horizontal anchors being invalid. Related: #3380

Grade

Unimportant - This bug has little to no impact on play.

Steps to reproduce the behavior

Open MakeClanScreen, see the error appear in the terminal.

Patrol ID + Outcome Print (if applicable)

No response

Commit # or Game Version Number

862a45e

Additional context

No response

Screenshots

Image

@rustykitty
Copy link
Contributor

For anyone who wants to take this on, the warning happens when we create random_clan_checkbox_label in MakeClanScreen.open_game_mode:

self.elements["random_clan_checkbox_label"] = pygame_gui.elements.UILabel(
ui_scale(pygame.Rect((5, -28), (-1, -1))),
"screens.make_clan.quick_start",
manager=MANAGER,
object_id=get_text_box_theme("#text_box_30_horizleft"),
anchors={
"left_target": self.elements["random_clan_checkbox"],
"top_target": self.elements["random_clan_checkbox"],
"centerx": self.elements["random_clan_checkbox"],
},
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants