Can't see
doesn't close the crafting GUI
#73117
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
![image](https://private-user-images.githubusercontent.com/13402666/323923350-338a6c64-da21-4bf5-b04e-0fa96695775d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI4NDIwNjUsIm5iZiI6MTcyMjg0MTc2NSwicGF0aCI6Ii8xMzQwMjY2Ni8zMjM5MjMzNTAtMzM4YTZjNjQtZGEyMS00YmY1LWIwNGUtMGZhOTY2OTU3NzVkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyN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pZD0wIn0.si5xa1tPq25lQ7kIzaSJ5pK6oVeNIJmvBYfCJ4zZ6jM)
query_popup
topopup
. Shorter code and it looks different:before:
after:
Choose crafter
Added "missing:
![image](https://private-user-images.githubusercontent.com/13402666/323924236-63118975-cf79-467f-9ab4-2417abf943a6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI4NDIwNjUsIm5iZiI6MTcyMjg0MTc2NSwicGF0aCI6Ii8xMzQwMjY2Ni8zMjM5MjQyMzYtNjMxMTg5NzUtY2Y3OS00NjdmLTlhYjQtMjQxN2FiZjk0M2E2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA1VDA3MDkyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI3YTA4YzAzZDM0MThiNzcyMWY4N2JiZTZkYmMzZTIyZDFlMzVkNTNkMDQyODAxN2MxMjg2Nzg4ZDhmYTA3MzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0._rR5KcTZeuodALzDY1_hRqnz1P9bQE9k3CptHKa_syo)
light
" as a reason in the "Choose the crafter" menu why they cannot craft.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