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

Can't see doesn't close the crafting GUI #73117

Merged
merged 2 commits into from
Apr 21, 2024

Conversation

Brambor
Copy link
Contributor

@Brambor Brambor commented Apr 19, 2024

Summary

Interface ""Can't see" message doesn't close the crafting GUI"

Purpose of change

Before, you would select a recipe, press enter. Nothing happens, but after a second you notice in the log "Can't see to craft." By that time you already forgot what you were crafting.

Describe the solution

Can't see

Pressing CONFIRM pops up a popup "Can't see". The player immediately notices that. They press anything to dismiss it. Remember what they wanted to craft by looking at it. Then they close the crafting GUI.

It might seem like the same state, but the player isn't confused as to why is nothing happening and they do remember what were they crafting.

New "can't see" popup:

Cataclysm_.Dark.Days.Ahead.-.0.G-8892-g12da23f022-dirty.2024-04-19.12-15-54.mp4

query_popup -> popup

Also refactored from query_popup to popup. Shorter code and it looks different:
before:
image
after:
image

Choose crafter

Added "missing: light" as a reason in the "Choose the crafter" menu why they cannot craft.
image

Nothing selected

When no crafting recipe is selected and CONFIRM is pressed, "Nothing selected!" pops up instead of "Crafter can't craft that!".

Describe alternatives you've considered

Testing

I went through these menus and tried to select different things.

Additional context

 - "Nothing selected!" instead of "Crafter can't craft that!" when nothing is selected
 - popup "Crafter can't see!" rather than closing crafting GUI
 - In CHOOSE_CRAFTER, display missing: "light" when crafter can't see
@github-actions github-actions bot added Info / User Interface Game - player communication, menus, etc. Crafting / Construction / Recipes Includes: Uncrafting / Disassembling [C++] Changes (can be) made in C++. Previously named `Code` astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels Apr 19, 2024
@Brambor Brambor closed this Apr 21, 2024
@Brambor Brambor reopened this Apr 21, 2024
@Brambor
Copy link
Contributor Author

Brambor commented Apr 21, 2024

Restarting tests

@Brambor Brambor changed the title Can't see doesn't close the crafting GUI Can't see doesn't close the crafting GUI Apr 21, 2024
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Apr 21, 2024
@Maleclypse Maleclypse merged commit 302ace9 into CleverRaven:master Apr 21, 2024
47 of 55 checks passed
@Brambor Brambor deleted the cant-see branch April 21, 2024 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Crafting / Construction / Recipes Includes: Uncrafting / Disassembling Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants