OpenFunscripter / OFS

A tool to create funscripts
GNU General Public License v3.0
90 stars 38 forks source link

Implement player.Width() and player.Height() in lua extension #44

Closed trassshhub closed 2 years ago

trassshhub commented 2 years ago

The video dimension may come in handy when calling external program for processing.

OpenFunscripter commented 2 years ago

I don't see any problem with this. If you want to save me the trouble you could add the stubs to https://github.com/OpenFunscripter/OFS/blob/0d9f7cb0060e8e245a18f991611befaea07d7925/LuaDox/stubs.lua#L230

Like this

--- Get the width of the video
-- @treturn number Pixels
function player.Width() end

That way documentation can be updated as well. Sadly I can't generate the documentation from C++