Add "edit" and "open folder" actions for dropdowns#776
Conversation
* CharSelect char button with edit char.ini, open this char folder, open characters folder * pos dropdown with open this background, open background(s) folder * text color dropdown with open chat_config.ini * evidence button with open evidence folder * sound list with open sounds folder * music list with open music folder
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…line/AO2-Client into more-dropdown-actions
TrickyLeifa
left a comment
There was a problem hiding this comment.
Barely any of this works and the only that does work needs more work.
…s (so every mounted background folder is opened rather than just the latest one)
oldmud0
left a comment
There was a problem hiding this comment.
There's some good stuff and some really bad stuff
|
how is this important for 2.10 |
…ightclick options
…the sfx is not "0" or "1"
|
this PR's done, implemented Longbyte's and Leifa's requests |
| menu->addAction(QString("Open base characters folder"), this, | ||
| [=] { | ||
| QString p_path = ao_app->get_real_path(VPath("characters/")); | ||
| QString p_path = ao_app->get_base_path() + "characters/"; | ||
| if (!dir_exists(p_path)) { | ||
| return; | ||
| } | ||
| } |
There was a problem hiding this comment.
what I really mean to say is, this button is not really useful. The only reason you want to open this folder is if you are looking for a character or you want to add a character, and in both cases the way to do it is with a different button.
| menu->addSeparator(); | ||
| menu->addAction(QString("Play"), this, &Courtroom::on_sfx_play_clicked); | ||
| // SFX is not "Nothing" or "Default"? | ||
| if (get_char_sfx() != "0" && get_char_sfx() != "1") { |
There was a problem hiding this comment.
I think - is also common for sfx.
- Base characters and base backgrounds folder buttons aren't generally u seful as usually these are mounted somewhere else. Easier to open the character or background folder and go up one level. - I decided to give the evidence, music, and sound lists the benefit of the doubt and kept their buttons for opening the base path, since there aren't many places to put an "open file location" button. - Added "-" to the list of SFX names to ignore when previewing.
There was a problem hiding this comment.
approved with some modifications. I'm not really liking the "open base folder" concept as it does not go well with mounts. If there is a strong demand it may be worth making a file browser with QFileDialog and setting a proxy model so that it uses the vfs instead of the native file system.
Uh oh!
There was an error while loading. Please reload this page.