Closed MikuAuahDark closed 3 years ago
There are some problems
love.font
module for some reason.Thank you! :) I left love.font
out of the HTML generator because, as far as I knew at the time, these functions were used internally in LOVE's code but there wasn't a reason for a LOVE user to use them instead of love.graphics.newFont
or love.graphics.newImageFont
, but please let me know if I was mistaken!
Looks like http://love2d-community.github.io/love-api/ is not updated yet after this merge.
Sorry @MikuAuahDark, I somehow didn't see your comment unti now. This project doesn't really seem to have an active maintainer, and I don't want to actively maintain it. Would you like to, or know anyone who would? :) I think updating the HTML page is simply a matter of running html-generator.lua and uploading the resulting page. And/or, would you like to maintain loveref.github.io? It is basically the same but with a URL and a design that I prefer.
Actually I have write access to this repo, but since I don't want to suddenly push lots of change without any discussion first, I made it as PR instead.
About loveref.github.io, I personally prefer the love2d-community.github.io/love-api style, although I think some text are simply too small, but that can be fixed by increasing the size of the text. I think automating the updates with GitHub Actions is possible, but I can't promise anything for the next 2 weeks.
Awesome, well if you find a way to automate the updates I'll do the same thing with loveref.github.io :)
Regarding making the text bigger, you might want to check out and merge PR #80
After checking the repo, why doesn't this used? https://github.com/love2d-community/love-api/blob/master/.travis/push.sh
Anyway we may able to discuss about automating further in Discord.
I'm not sure, I believe @rm-code and @daviel set this up.
While I can't say that I'm the "owner" of this repo (@rm-code again did the work for this, which I'm grateful for), you have my blessing (for what it's worth) @MikuAuahDark to automate and otherwise improve this project in any way you see fit (as does anyone else with write access to this repo).
Well, I guess I'll wait for their replies first then. I don't want to mess up anything.
This is somewhat a big changes. These changes were made when I was making Teal type definitions for LOVE, but I think it's useful to have some of the changes to upstream. Feel free to review and add comment, but I'll keep it in draft state until I completed it.
Progress:
dpiscale
parameter tolove.graphics.newFont
2nd and 3rd variants.Drawable
fromlove
tolove.graphics
.ByteData
fromlove
tolove.data
.DisplayOrientation
enum tolove.window
.DroppedFile
type tolove.filesystem
.Object
methods.VertexAttributeStep
enum tolove.graphics
.VertexWinding
enum inlove.graphics
.IndexDataType
enum tolove.graphics
.PixelFormat
enum tolove.image
(partial, some descriptions needs attention).love.graphics.newShader
.love.font
module.GlyphData
type and methods.Rasterizer
type and methods.HintingMode
enum.love.font
functions.Transform:isAffine
toTransform:isAffine2DTransform
.CompressedDataFormat
fromlove.math
tolove.data
.CompressedData
fromlove.math
tolove.data
.CompareMode
enum.GraphicsFeature
enum.GraphicsLimit
enum.Texture
functions.Image
andCanvas
which is available inTexture
.CanvasMipmapMode
toMipmapMode
.