Skip to content
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

Some potential mod shop navigation fixes #451

Closed
wants to merge 5 commits into from
Closed

Conversation

MAFINS
Copy link
Owner

@MAFINS MAFINS commented Dec 25, 2022

@itsjustcurtis please do take a look and test this when possible. I found some of the uses of the selected option numbers instead of the mod/wheel/paint ids passed to the functions already rather confusing and unnecessary.

* Possible solution to #424
@MAFINS MAFINS added the testing required Requires additional testing in-game label Dec 25, 2022
@MAFINS
Copy link
Owner Author

MAFINS commented Dec 25, 2022

Further changes made to make menu stay in car mod submenu after applying mod. Los Santos Customs does not hop the user back when purchasing or equipping a car mod.

@itsjustcurtis
Copy link
Contributor

I can certainly have a look, however I have made some fairly significant changes in my own fork that may conflict with this. Looking at it, my main concern is the removal of the setwheel/setpaint/setmod function. Without those markers the script went haywire and would continuously apply the selected mod after going back. I always thought LSC took you back a menu, its been so long since I used it though! Removing that function would save a lot of headaches in the script.

@MAFINS
Copy link
Owner Author

MAFINS commented Dec 25, 2022

@itsjustcurtis See latest commit to reduce the looped application of the paint/mod/wheel

@MAFINS
Copy link
Owner Author

MAFINS commented Dec 25, 2022

@metoxys You may want to check if bfca41c does fix the indicator for the equipped bike rim, etc. that you mentioned in #447 (comment)

@metoxys
Copy link
Contributor

metoxys commented Dec 25, 2022

Okay, I tested it @MAFINS @itsjustcurtis

When LSC style is off, it works flawlessly
When LSC style is on, the bike wheel menus don't seem to do anything as you scroll and press Enter

@itsjustcurtis
Copy link
Contributor

Echoing what Metoxys has said, wheels menu is completely un-functional atm. Paints and Mod parts are working as expected. Going to merge changes from my most recent commits into this and add to my own fork

@itsjustcurtis
Copy link
Contributor

Very simple fix

bool allowSettingWheelPreview = GET_VEHICLE_WHEEL_TYPE(vehicle) != wheelType || (wheelType == WheelType::BikeWheels && isBikeBack ? GET_VEHICLE_MOD(vehicle, VehicleMod::BackWheels) != wheelIndex : GET_VEHICLE_MOD(vehicle, VehicleMod::FrontWheels) != wheelIndex);

in the second half of the OR comparision, the script should check that the current wheels are NOT the same as the wheelIndex. swapping the two == for != fixes this issue.

@MAFINS
Copy link
Owner Author

MAFINS commented Dec 26, 2022

@itsjustcurtis There seem to be some build errors in 33447c4 but if it's actually fine (or can become fine), just make a pull request. A that point, I'll add your fork as a remote and merge your changes with some other things, and increment the version number before pushing a release.

@MAFINS MAFINS closed this Dec 26, 2022
@itsjustcurtis
Copy link
Contributor

itsjustcurtis commented Dec 26, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing required Requires additional testing in-game
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants