Post subject: Lua drawings outside of the game screen ?
Lil_Gecko
He/Him
Player (98)
Joined: 4/7/2011
Posts: 520
Hey. I was wondering if it was possible to increase the blank part of the screen, either via Lua or display configuration, in order to put some Lua drawings that will be recorded at the same time as the game in avi ? Something like that : https://i.imgur.com/vYydJ6X.png Or should I stick to draw over the game screen with a background and record two separate videos to mix in video editing later ? Not sure if I'm clear but thanks in advance.
Pokota
He/Him
Joined: 2/5/2014
Posts: 779
I'd advise checking the "Adventures in Lua" thread, there's some helpful stuff in there. To directly answer your question: you can either create a separate lua canvas object or you can set client extra padding and put gui.DrawNew("Native") in your main loop
Adventures in Lua When did I get a vest?
Masterjun
He/Him
Site Developer, Skilled player (1988)
Joined: 10/12/2010
Posts: 1185
Location: Germany
Yes, there is client.SetClientExtraPadding and client.SetGameExtraPadding. Check the Lua Functions List in the Lua Console window for even more functions and explanations!
Warning: Might glitch to credits I will finish this ACE soon as possible (or will I?)
Lil_Gecko
He/Him
Player (98)
Joined: 4/7/2011
Posts: 520
I checked the lua help and somehow missed it... But it does exactly what I want, thanks a lot ! You can close the topic, if you want.
Pokota
He/Him
Joined: 2/5/2014
Posts: 779
Masterjun wrote:
Yes, there is client.SetClientExtraPadding and client.SetGameExtraPadding.
I would not suggest the latter as that will distort the emu surface rather than give extra blank space.
Adventures in Lua When did I get a vest?
Masterjun
He/Him
Site Developer, Skilled player (1988)
Joined: 10/12/2010
Posts: 1185
Location: Germany
Pokota wrote:
I would not suggest the latter as that will distort the emu surface rather than give extra blank space.
Nah it doesn't distort anything. It does what it's supposed to. Client Padding adds to the "native" surface (where the frame counter and input display is on; size will always be the same regardless Windows size settings). Game Padding adds to the "emu" surface (the pixels on the screen; drawings scale with Windows size settings).
Warning: Might glitch to credits I will finish this ACE soon as possible (or will I?)