Skip to content

Conversation

@Ethereal-Business
Copy link

Note: Both of them have some formatting from the legacy YimMenu code, however the rainbow paint feature is missing the tire smoke and neon features.

Vehicle jump is almost word-for-word from the legacy YimMenu code.

@farro97
Copy link

farro97 commented Jul 8, 2025

hopefully to add vehicle jump in..fun feature to have from the legacy

globals->AddItem(std::make_shared<ConditionalItem>("rainbowpaint"_J, std::make_shared<ListCommandItem>("rainbowtype"_J, "Paint Type")));
globals->AddItem(std::make_shared<ConditionalItem>("rainbowpaint"_J, std::make_shared<BoolCommandItem>("rainbowpri"_J, "Primary")));
globals->AddItem(std::make_shared<ConditionalItem>("rainbowpaint"_J, std::make_shared<BoolCommandItem>("rainbowsec"_J, "Secondary")));
// globals->AddItem(std::make_shared<ConditionalItem>("rainbowpaint"_J, std::make_shared<IntCommandItem>("rainbowspeed"_J, "Speed"))); Don't know how to change the speed once it's been changed in the UI, so no speed, for now.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The speed control should work, I can't see anything wrong with the code right now

Copy link
Author

@Ethereal-Business Ethereal-Business Jul 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does work, but I can't figure out how to change the number inside the UI. I click it and it goes from 10 to 1 and it gets stuck there for me. I have tried clicking it like a textbox, tried sliding it both ways, but it didn't budge in the UI.

@kurumimeow
Copy link
Contributor

It would be good if you add these features in a separate tab ("Misc") inside Vehicle.

@Ethereal-Business
Copy link
Author

So, when creating a slider,

This is not the way to do it:
static IntCommand _RainbowPaintSpeed{"rainbowspeed", "Vehicle RGB Paint Speed", "Speed of the rainbow paint cycling (1-10)", g_RainbowPaintSettings.speed, 1, 10};

This is the proper format:
static IntCommand _RainbowPaintSpeed{"rainbowspeed", "Vehicle RGB Paint Speed", "Speed of the rainbow paint cycling (1-10)", 1, 10, 1};

Now the slider actually works. Don't just copy and paste, actually adjust it to other feature's code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants