-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI/UX tweaks and quality of life - remastered #1517
base: develop
Are you sure you want to change the base?
Conversation
2f27cb9
to
7d88553
Compare
Screenshots? |
|
e730e52
to
4ff3b8a
Compare
@LennyMcLennington What do you want changed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loader needs to be an enum
@LennyMcLennington if I make it an enum, I would need it to have a function that returns a string constant based on the value, do you have a preferred way of implementing that or just hardcode everything in that said function? |
just use a QMap<LoaderType, QString> |
@Sneedplex That's a very bad idea for a couple of reasons:
I was going to make an enum of values, where I can then have a function where you pass in the value and returns a |
|
This comment was marked as off-topic.
This comment was marked as off-topic.
@Sneedplex @AutumnalModding This is how software turns to shit, people like you. No wonder modern software takes years to open for example, you just don't give a shit at all. It would be much faster to just return a fucking address and doing a simple comparison on the enum value. Or make a static constant array, and use the enum value as an index. You just add complexity. |
It's 100 bytes of memory and a picosecond of computation time. If you're that concerned about micro-optimizations then you wouldn't be using Qt, create your own shitty CLI launcher in x86 assembly. |
@crueter @xslendix @Sneedplex Instead of whining or speculating I have prepared some example code for you: switch https://godbolt.org/z/z1bTW5v98 Honestly, I don't care which approach you take or if you take a completely different approach, I just want it to not have arbitrary strings floating around in random parts of the code. I've arranged them in order of my personal preference of how I would probably do it from a balance of code readability/maintainability and performance. But I really don't care because they all solve my nitpick. |
Also please try not to use Qt containers when a standard one suffices, except when the Qt container provides some additional functionality that you require over the standard one. Qt already has excellent support for the standard containers, I don't want any new code written to use Qt specific containers unless it's actually a hard requirement. |
Also I just had the thought that since we're on C++17 now we could also use std::optional instead of throwing ig. |
these old PRs are so irritating because none of them build properly thanks to the QList<>::iterator change that I cba to fix every time |
@Sneedplex can't you just rebase it and then force push? |
Yeah but I don't want to push when I've rebased the entirety of develop onto the branch and it's annoying to go back. |
@xslendix i need to push a quick fix turn on maintainer edits again. |
@Sneedplex if you want to rebase the PR onto develop and force push that's fine. |
260e6fa
to
4ff3b8a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer if you only formatted code that you modified, so that I don't have to look through an entire page of whitespace diffs just to figure out what you changed.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
958293e
to
d9c3907
Compare
Signed-off-by: xSlendiX <slendi@socopon.com>
Signed-off-by: xSlendiX <slendi@socopon.com>
Signed-off-by: xSlendiX <slendi@socopon.com>
Signed-off-by: xSlendiX <slendi@socopon.com>
Signed-off-by: xSlendiX <slendi@socopon.com>
Signed-off-by: xSlendiX <slendi@socopon.com>
This patch adds a new column to ModFolderModel which tells the user which loader the mod was made for. Currently, it cannot tell whether or not a mod can be loaded with multiple loaders due to limitations in the way we parse Mod files. Signed-off-by: xSlendiX <slendi@socopon.com>
Signed-off-by: Slendi <slendi@socopon.com>
Signed-off-by: Slendi <slendi@socopon.com>
d9c3907
to
56f1e76
Compare
Since Zeke is now gone, I think it's safe to say, work on PR #1103 has seized
development. As such, I have decided to take this into my own hands. Drop your
ideas in the comments on what you think I should change about the UI/UX in
order to make it more friendly to beginners.