-
Notifications
You must be signed in to change notification settings - Fork 5
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
Reversed IsEngineOn, GetSiren and GetBeaconLightsOn #90
Conversation
…ehicle-improvements
…ehicle-improvements
…ehicle-improvements
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.
You can remove these TODOs then :
cls.function("getBeaconLightsOn", &Vehicle::GetBeaconLightsOn); // TODO: doesn't work yet cls.function("getSirenOn", &Vehicle::GetSirenOn); // TODO: doesn't work yet
ImGui::Text("Car Ptr: %p", currentCar); | ||
ImGui::Text("Vehicle Ptr: %p", currentVehicle); |
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.
These are already at the bottom : https://github.com/MafiaHub/MafiaMP/pull/90/files#diff-9b678781c9bd580b6852983396c0fa61aee6c99734fc0e99a0f9c8a5f1419d97R178-R179
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.
not anymore :-)
bool isEngineOn = currentCar->IsEngineOn(); | ||
if (ImGui::Checkbox("Engine", &isEngineOn)) { | ||
currentVehicle->SetEngineOn(isEngineOn, isEngineOn); | ||
} |
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.
Just to be sure, getter is on Car and setter on Vehicle?
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.
exactly
PR closes #73
Won't address the TODOs for now so lets keep it like this