feat: New world options + Request Gun Van anywhere (#2393)
+ World -> Gravity Editor (with presets for ease of use) + World -> Waypoint Beacon + World -> Objective Beacon + World -> Time And Weather -> Ground Snow + Self -> Mobile -> Request Gun Van (spawns the gun van right in front of you no matter where you are)
This commit is contained in:
22
src/views/world/view_gravity.cpp
Normal file
22
src/views/world/view_gravity.cpp
Normal file
@ -0,0 +1,22 @@
|
||||
#include "views/view.hpp"
|
||||
#include "core/data/gravity_presets.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void view::gravity()
|
||||
{
|
||||
components::command_checkbox<"modifygravity">();
|
||||
|
||||
if (g.world.gravity.modify_gravity)
|
||||
{
|
||||
ImGui::SliderFloat("GRAVITY_LEVEL"_T.data(), &g.world.gravity.current_gravity, 0.f, 1000.f, "%.1f");
|
||||
|
||||
static int selected_lunar_preset = 0;
|
||||
|
||||
if (ImGui::Combo("GRAVITY_LUNAR_PRESETS"_T.data(), &selected_lunar_preset, gravity_presets.data(), gravity_presets.size()))
|
||||
{
|
||||
g.world.gravity.current_gravity = gravity_preset_values[selected_lunar_preset];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -40,5 +40,7 @@ namespace big
|
||||
}
|
||||
|
||||
components::command_checkbox<"blackout">();
|
||||
|
||||
components::command_checkbox<"groundsnow">();
|
||||
}
|
||||
}
|
||||
|
17
src/views/world/view_waypoint_and_objective.cpp
Normal file
17
src/views/world/view_waypoint_and_objective.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#include "views/view.hpp"
|
||||
|
||||
namespace big
|
||||
{
|
||||
void view::waypoint_and_objective()
|
||||
{
|
||||
components::command_checkbox<"waypointbeacon">();
|
||||
|
||||
if (g.world.waypoint_n_objective.waypoint_beacon)
|
||||
ImGui::ColorPicker3("VIEW_BEACON_WAYPOINT_COLOR"_T.data(), g.world.waypoint_n_objective.waypoint_beacon_color, ImGuiColorEditFlags_NoDragDrop | ImGuiColorEditFlags_NoOptions | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHex);
|
||||
|
||||
components::command_checkbox<"objectivebeacon">();
|
||||
|
||||
if (g.world.waypoint_n_objective.objective_beacon)
|
||||
ImGui::ColorPicker3("VIEW_BEACON_OBJECTIVE_COLOR"_T.data(), g.world.waypoint_n_objective.objective_beacon_color, ImGuiColorEditFlags_NoDragDrop | ImGuiColorEditFlags_NoOptions | ImGuiColorEditFlags_DisplayRGB | ImGuiColorEditFlags_DisplayHex);
|
||||
}
|
||||
}
|
@ -14,11 +14,21 @@ namespace big
|
||||
view::time_and_weather();
|
||||
}
|
||||
|
||||
ImGui::SeparatorText("GUI_TAB_GRAVITY"_T.data());
|
||||
{
|
||||
view::gravity();
|
||||
}
|
||||
|
||||
ImGui::SeparatorText("GUI_TAB_OCEAN"_T.data());
|
||||
{
|
||||
view::ocean();
|
||||
}
|
||||
|
||||
ImGui::SeparatorText("GUI_TAB_WAYPOINT_N_OBJECTIVE"_T.data());
|
||||
{
|
||||
view::waypoint_and_objective();
|
||||
}
|
||||
|
||||
ImGui::SeparatorText("PED"_T.data());
|
||||
|
||||
components::button<ImVec2(110, 0), ImVec4(0.70196f, 0.3333f, 0.00392f, 1.f)>("VIEW_DEBUG_THREADS_KILL"_T, [] {
|
||||
|
Reference in New Issue
Block a user