Skip to content

Commit

Permalink
trailer mode
Browse files Browse the repository at this point in the history
  • Loading branch information
EvaisaDev committed Jun 20, 2024
1 parent 56a1de3 commit fa9364f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 8 additions & 4 deletions evaisa.mp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ exceptions_in_logger = true
dev_mode = true
debugging = true
disable_print = false
trailer_mode = true


-----------------------------------
Expand Down Expand Up @@ -96,7 +97,9 @@ function GuiOptionsList(gui)
end



if(trailer_mode)then
ModMagicNumbersFileAdd("mods/evaisa.mp/magic_numbers_trailer.xml")
end


get_content = ModTextFileGetContent
Expand Down Expand Up @@ -886,9 +889,10 @@ function OnWorldPreUpdate()
local text_width, text_height = GuiGetTextDimensions(byte_rate_gui,
"in: " .. input_string .. " | out: " .. output_string)

GuiText(byte_rate_gui, screen_width - text_width - 50, 1, "in: " .. input_string .. " | out: " ..
output_string)

--[[if(not IsPaused())then
GuiText(byte_rate_gui, screen_width - text_width - 50, 1, "in: " .. input_string .. " | out: " ..
output_string)
end]]
--print("d")

--print("Game in progress: "..tostring(game_in_progress))
Expand Down
4 changes: 4 additions & 0 deletions evaisa.mp/magic_numbers_trailer.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<MagicNumbers
DEBUG_LOG_NEVER_VISIBLE = "1"
>
</MagicNumbers>

0 comments on commit fa9364f

Please sign in to comment.