mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-07-01 12:02:55 +08:00
Tunables service fix and theme changes (#1507)
This commit is contained in:
@ -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">();
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user