aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages/instance/ExternalResourcesPage.cpp
AgeCommit message (Collapse)Author
2023-06-25fix: Page container extra info set on logs pageTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-06-22Merge pull request #1058 from Ryex/feature/images-for-resource-pageRachel Powers
Feature: image coumn for Mod, Resource Pack, and Texturepack pages
2023-06-15Updated text and fixed mod page text updateTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-06-07Added dynamic page extra infoTrial97
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2023-05-28fix: use instance settings, make image column user resizeable, fix memory leakRachel Powers
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-05-24feat: Column on left, hideableRachel Powers
- columns are hideable (saves to settings) - image column moved to left - datamodals can provide resize modes Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-05-05change: don't toggle a resource's enabeling just by selecting it. only if ↵Rachel Powers
they are on the checkbox. Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2022-12-26About to -> you are about toTheKodeToad
You're is used in some other places but im lazy Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-12-24Make requested changesTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-12-14Improve handling of destructive actionsTheKodeToad
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
2022-12-11Merge pull request #486 from flowln/wide_bar_customizationflow
2022-11-27fix: make resource buttons work when instance is runningSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-11-19feat(InstancePages): save/load wide bar visibility settingsflow
Signed-off-by: flow <flowlnlnln@gmail.com>
2022-10-18Streamline Button changes to improve source readability.Cleo John
2022-08-20change: add enable/disable to resourcesflow
TIL that zip resource packs, when disabled, actually have the effect of not showing up in the game at all. Since this can be useful to someone, I moved the logic for it to the resources. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20refactor: adapt rest of the codebase to the new resource modelflow
In order to access the ModFolderModel from the ModFolderPage, i created a new m_model for the correct type, shadowing the m_model of type ResourceFolderModel. This creates two shared_ptr references to the same object, but since they will have the same lifetime, it doesn't generate a memory leak. Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-20refactor: move general code from mod model to its own modelflow
This aims to continue decoupling other types of resources (e.g. resource packs, shader packs, etc) from mods, so that we don't have to continuously watch our backs for changes to one of them affecting the others. To do so, this creates a more general list model for resources, based on the mods one, that allows you to extend it with functionality for other resources. I had to do some template and preprocessor stuff to get around the QObject limitation of not allowing templated classes, so that's sadge :c On the other hand, I tried cleaning up most general-purpose code in the mod model, and added some documentation, because it looks nice :D Signed-off-by: flow <flowlnlnln@gmail.com>
2022-08-02Check for running instance when re-opening the mod folder page and when ↵Gingeh
selecting mods Signed-off-by: Gingeh <39150378+Gingeh@users.noreply.github.com>
2022-07-23fix: filter in external resource pages not workingflow
For some reason, using setFilterFixedString() doesn't seem to update the QRegularExpression object with a new value, instead leaving it empty. It updates QRegExp just fine, so maybe that's an Qt bug? o.O Anyway, using regex in the filter is kinda cool actually :D Signed-off-by: flow <flowlnlnln@gmail.com>
2022-07-10refactor: replace QRegExp with QRegularExpressionSefa Eyeoglu
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
2022-06-30change: better regex for removing 'The' when sorting modsflow
Teh :| Co-authored-by: timoreo22 <timo.oreo34@gmail.com>
2022-06-14refactor: Create a more clear hierarchy for some instance pagesflow
Previously, the Shaders, Texture packs and Resource packs tabs had as parent the ModFolderPage, making it so that making changes only to the Mods page would require checking the id of the page for the correct one. This was hackish and error-prone. Now, those pages all inherit from a single class, ExternalResourcesPage, that handles the basic behaviour of all of them, while allowing for individual modification in code. This is still not a clear separation, since internally, all those resources are derived from Mods, so for now there's still some awkward common code :/