mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 23:00:42 -07:00
overlay: redesign Cards tab (#593)
* add `-card0` `-card1` options at the top of Cards tab to clearly indicate that they take precedence over card files * reorganize UI / clean up * remove ability to directly edit the contents of `card0.txt` / `card1.txt` as that wasn't very intuitive; instead, encourage users to use overrides directly or use an external text editor (`Edit` button opens notepad)
This commit is contained in:
@@ -94,6 +94,8 @@ namespace overlay::windows {
|
||||
bool keypads_card_select_done = false;
|
||||
ImGui::FileBrowser keypads_card_select_browser[2];
|
||||
char keypads_card_number[2][18] {};
|
||||
bool keypads_card_override_valid[2] = { false, false };
|
||||
bool keypads_card_file_contents_valid[2] = { false, false };
|
||||
|
||||
// presets tab
|
||||
std::vector<ControllerTemplate> templates_cache;
|
||||
@@ -195,12 +197,13 @@ namespace overlay::windows {
|
||||
|
||||
void set_alternating_row_colors(const int row_index);
|
||||
|
||||
bool validate_ea_card(char card_number[16]);
|
||||
|
||||
public:
|
||||
Config(SpiceOverlay *overlay);
|
||||
~Config() override;
|
||||
|
||||
void read_card(int player = -1);
|
||||
void write_card(int player);
|
||||
void build_content() override;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user