24 this->
DrawRowSlider(
"void scaleTruck()",
"game.getCurrentTruck().scaleTruck({})",
_LC(
"AngelScript",
"Scales the truck"), 1.f, 1.5f,
scale);
25 this->
DrawRowText(
"string getTruckName()",
"game.log(game.getCurrentTruck().getTruckName())",
_LC(
"AngelScript",
"Gets the name of the truck"));
26 this->
DrawRowText(
"string getTruckFileName()",
"game.log(game.getCurrentTruck().getTruckFileName())",
_LC(
"AngelScript",
"Gets the name of the truck file"));
27 this->
DrawRowText(
"string getSectionConfig()",
"game.log(game.getCurrentTruck().getSectionConfig())",
_LC(
"AngelScript",
"Gets the name of the loaded section for a truck"));
28 this->
DrawRowText(
"int getTruckType()",
"game.log(' ' + game.getCurrentTruck().getTruckType())",
_LC(
"AngelScript",
"Gets the type of the truck"));
29 this->
DrawRowCheckbox(
"void reset()",
"game.getCurrentTruck().reset({})",
_LC(
"AngelScript",
"Resets the truck"),
reset,
"Keep position");
30 this->
DrawRowText(
"void parkingbrakeToggle()",
"game.getCurrentTruck().parkingbrakeToggle()",
_LC(
"AngelScript",
"Toggles the parking brake"));
31 this->
DrawRowText(
"void tractioncontrolToggle()",
"game.getCurrentTruck().tractioncontrolToggle()",
_LC(
"AngelScript",
"Toggles the tracktion control"));
32 this->
DrawRowText(
"void antilockbrakeToggle()",
"game.getCurrentTruck().antilockbrakeToggle()",
_LC(
"AngelScript",
"Toggles the anti-lock brakes"));
33 this->
DrawRowText(
"void beaconsToggle()",
"game.getCurrentTruck().beaconsToggle()",
_LC(
"AngelScript",
"Toggles the beacons"));
34 this->
DrawRowText(
"void toggleCustomParticles()",
"game.getCurrentTruck().toggleCustomParticles()",
_LC(
"AngelScript",
"Toggles the custom particles"));
35 this->
DrawRowText(
"int getNodeCount()",
"game.log(' ' + game.getCurrentTruck().getNodeCount())",
_LC(
"AngelScript",
"Gets the total amount of nodes of the truck"));
36 this->
DrawRowCheckbox(
"float getTotalMass()",
"game.log(' ' + game.getCurrentTruck().getTotalMass({}))",
_LC(
"AngelScript",
"Gets the total mass of the truck"),
locked,
"With locked");
37 this->
DrawRowText(
"int getWheelNodeCount()",
"game.log(' ' + game.getCurrentTruck().getWheelNodeCount())",
_LC(
"AngelScript",
"Gets the total amount of nodes of the wheels of the truck"));
38 this->
DrawRowSlider(
"void setMass()",
"game.getCurrentTruck().setMass({})",
_LC(
"AngelScript",
"Sets the mass of the truck"), 1000.f, 10000.f,
mass);
39 this->
DrawRowText(
"bool getBrakeLightVisible()",
"game.log(' ' + game.getCurrentTruck().getBrakeLightVisible())",
_LC(
"AngelScript",
"Returns true if the brake light is enabled"));
40 this->
DrawRowInt(
"bool getCustomLightVisible()",
"game.log(' ' + game.getCurrentTruck().getCustomLightVisible({}))",
_LC(
"AngelScript",
"Returns true if the custom light with the number is enabled"),
light);
41 this->
DrawRowIntCheckbox(
"void setCustomLightVisible()",
"game.getCurrentTruck().setCustomLightVisible({}, {})",
_LC(
"AngelScript",
"Enables or disables the custom light"),
custom_light,
visible,
"On");
42 this->
DrawRowText(
"bool getBeaconMode()",
"game.log(' ' + game.getCurrentTruck().getBeaconMode())",
_LC(
"AngelScript",
"Gets the mode of the beacon"));
43 this->
DrawRowInt(
"void setBlinkType()",
"game.getCurrentTruck().setBlinkType({})",
_LC(
"AngelScript",
"Sets the blinking type"),
blink);
44 this->
DrawRowText(
"int getBlinkType()",
"game.log(' ' + game.getCurrentTruck().getBlinkType())",
_LC(
"AngelScript",
"Gets the blinking type"));
45 this->
DrawRowText(
"bool getCustomParticleMode()",
"game.log(' ' + game.getCurrentTruck().getCustomParticleMode())",
_LC(
"AngelScript",
"Gets the custom particles mode"));
46 this->
DrawRowText(
"bool getReverseLightVisible()",
"game.log(' ' + game.getCurrentTruck().getReverseLightVisible())",
_LC(
"AngelScript",
"Returns true if the reverse lights are enabled"));
47 this->
DrawRowText(
"float getHeadingDirectionAngle()",
"game.log(' ' + game.getCurrentTruck().getHeadingDirectionAngle())",
_LC(
"AngelScript",
"Returns the angle in which the truck is heading"));
48 this->
DrawRowText(
"bool isLocked()",
"game.log(' ' + game.getCurrentTruck().isLocked())",
_LC(
"AngelScript",
"Returns true if a hook of this truck is locked"));
49 this->
DrawRowText(
"float getWheelSpeed()",
"game.log(' ' + game.getCurrentTruck().getWheelSpeed())",
_LC(
"AngelScript",
"Gets the current wheel speed of the vehicle"));
50 this->
DrawRowText(
"float getSpeed()",
"game.log(' ' + game.getCurrentTruck().getSpeed())",
_LC(
"AngelScript",
"Gets the current speed of the vehicle"));
51 this->
DrawRowText(
"vector3 getGForces()",
"game.log(' ' + game.getCurrentTruck().getGForces().x + ' ' + game.getCurrentTruck().getGForces().y + ' ' + game.getCurrentTruck().getGForces().z )",
_LC(
"AngelScript",
"Gets the G-forces that this truck is currently experiencing"));
52 this->
DrawRowText(
"float getRotation()",
"game.log(' ' + game.getCurrentTruck().getRotation())",
_LC(
"AngelScript",
"Gets the current rotation of the vehicle"));
53 this->
DrawRowText(
"vector3 getVehiclePosition()",
"game.log(' ' + game.getCurrentTruck().getVehiclePosition().x + ' ' + game.getCurrentTruck().getVehiclePosition().y + ' ' + game.getCurrentTruck().getVehiclePosition().z )",
_LC(
"AngelScript",
"Gets the current position of the vehicle"));
54 this->
DrawRowIntNode(
"vector3 getNodePosition()",
"game.log(' ' + game.getCurrentTruck().getNodePosition({}).x + ' ' + game.getCurrentTruck().getNodePosition({}).y + ' ' + game.getCurrentTruck().getNodePosition({}).z )",
_LC(
"AngelScript",
"Gets the node position"),
node,
node,
node,
node);
59 ImGui::PushID(nameStr);
60 ImGui::AlignFirstTextHeightToWidgets();
63 ImGui::AlignFirstTextHeightToWidgets();
64 ImGui::PushItemWidth(-1);
65 ImGui::SliderFloat(
_LC(
"Console",
""), &var_ref, min, max);
66 ImGui::PopItemWidth();
68 ImGui::AlignFirstTextHeightToWidgets();
69 ImGui::Text(
"%s", descStr);
76 ImGui::AlignFirstTextHeightToWidgets();
77 if (ImGui::Selectable(nameStr)) { this->
ExecuteString(codeStr); }
79 ImGui::AlignFirstTextHeightToWidgets();
80 ImGui::Text(
"%s",
"");
82 ImGui::AlignFirstTextHeightToWidgets();
83 ImGui::Text(
"%s", descStr);
89 ImGui::AlignFirstTextHeightToWidgets();
92 ImGui::AlignFirstTextHeightToWidgets();
93 ImGui::Checkbox(label, &var_ref);
95 ImGui::AlignFirstTextHeightToWidgets();
96 ImGui::Text(
"%s", descStr);
102 ImGui::PushID(nameStr);
103 ImGui::AlignFirstTextHeightToWidgets();
106 ImGui::AlignFirstTextHeightToWidgets();
107 ImGui::PushItemWidth(-1);
108 ImGui::InputInt(
"", &var_ref, 1, 1);
109 ImGui::PopItemWidth();
111 ImGui::AlignFirstTextHeightToWidgets();
112 ImGui::Text(
"%s", descStr);
119 ImGui::PushID(nameStr);
120 ImGui::AlignFirstTextHeightToWidgets();
123 ImGui::AlignFirstTextHeightToWidgets();
124 ImGui::PushItemWidth(-1);
125 ImGui::InputInt(
"", &var_ref, 1, 1);
126 ImGui::PopItemWidth();
128 ImGui::AlignFirstTextHeightToWidgets();
129 ImGui::Text(
"%s", descStr);
136 ImGui::PushID(nameStr);
137 ImGui::AlignFirstTextHeightToWidgets();
140 ImGui::AlignFirstTextHeightToWidgets();
141 ImGui::PushItemWidth(96);
142 ImGui::InputInt(
"", &var_ref, 1, 1);
143 ImGui::PopItemWidth();
145 ImGui::Checkbox(label, &on);
147 ImGui::AlignFirstTextHeightToWidgets();
148 ImGui::Text(
"%s", descStr);