mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-04 07:40:42 -07:00
overlay: small tweaks to cards tab (#602)
## Link to GitHub Issue or related Pull Request, if one exists #593 ## Description of change * Display a confirmation dialog when clicking on `Generate` for the first time (to prevent accidental loss of card number) * If `cardN.txt` contents are read back successfully, show card number in green to indicate success, and red in case of failure.
This commit is contained in:
@@ -87,7 +87,7 @@ namespace overlay::windows {
|
||||
bool auto_match_soft_enabled = true;
|
||||
bool auto_match_p2 = false;
|
||||
|
||||
// keypads tab
|
||||
// cards tab
|
||||
int keypads_selected[2] {};
|
||||
char keypads_card_path[2][1024] {};
|
||||
std::thread *keypads_card_select = nullptr;
|
||||
@@ -96,6 +96,7 @@ namespace overlay::windows {
|
||||
char keypads_card_number[2][18] {};
|
||||
bool keypads_card_override_valid[2] = { false, false };
|
||||
bool keypads_card_file_contents_valid[2] = { false, false };
|
||||
bool keypads_card_overwrite_confirmed[2];
|
||||
|
||||
// presets tab
|
||||
std::vector<ControllerTemplate> templates_cache;
|
||||
|
||||
Reference in New Issue
Block a user