Tunables service fix and theme changes (#1507)

This commit is contained in:
maybegreat48
2023-06-23 06:43:44 +00:00
committed by GitHub
parent 74d3e2ac57
commit 1d75981731
43 changed files with 1616 additions and 800 deletions

View File

@ -6,10 +6,10 @@
#include "script.hpp"
#include "script_global.hpp"
#include "util/misc.hpp"
#include "util/pathfind.hpp"
#include "util/ped.hpp"
#include "util/system.hpp"
#include "view_debug.hpp"
#include "util/ped.hpp"
#include "util/pathfind.hpp"
namespace big
{
@ -61,7 +61,7 @@ namespace big
INTERIOR::REFRESH_INTERIOR(interior);
});
components::button("NET_SHUTDOWN_AND_LOAD_SP", [] {
components::button("NET_SHUTDOWN_AND_LOAD_SP"_T.data(), [] {
NETWORK::SHUTDOWN_AND_LAUNCH_SINGLE_PLAYER_GAME();
});
@ -80,7 +80,6 @@ namespace big
ENTITY::SET_ENTITY_COORDS(self::ped, safepos.x, safepos.y, safepos.z, 0, 0, 0, false);
else
g_notification_service->push_error("Find safe pos", "Failed to find a safe position");
});
components::command_button<"fastquit">();

View File

@ -9,6 +9,7 @@
#include "script.hpp"
#include "script_global.hpp"
#include "util/misc.hpp"
#include "util/scripts.hpp"
#include "util/system.hpp"
#include "view_debug.hpp"
@ -161,6 +162,21 @@ namespace big
update_free_stacks_count();
});
ImGui::SameLine();
components::button("Start With Launcher", [] {
auto hash = rage::joaat(selected_script);
auto idx = scripts::launcher_index_from_hash(hash);
if (idx == -1)
{
g_notification_service->push_warning("Script Launcher", "This script cannot be started using am_launcher");
return;
}
scripts::start_launcher_script(idx);
});
if (*g_pointers->m_gta.m_game_state != eGameState::Invalid && std::chrono::high_resolution_clock::now() - last_stack_update_time > 100ms)
{
last_stack_update_time = std::chrono::high_resolution_clock::now();