Welcome to usc’s documentation!¶
Contents:
- Game
- Drawing
- Constants
- BeginPath()
- Rect(float x, float y, float w, float h)
- FastRect(float x, float y, float w, float h)
- Fill()
- FillColor(int r, int g, int b, int a = 255)
- CreateImage(const char* filename, int imageflags)
- CreateSkinImage(const char* filename, int imageflags)
- ImageRect(float x, float y, float w, float h, int image, float alpha, float angle)
- Text(const char* s, float x, float y)
- TextAlign(int align)
- FontFace(const char* s)
- FontSize(float size)
- Translate(float x, float y)
- Scale(float x, float y)
- Rotate(float angle)
- ResetTransform()
- LoadFont(const char* name, const char* filename)
- LoadSkinFont(const char* name, const char* filename)
- FastText(const char* inputText, float x, float y)
- CreateLabel(const char* text, int size, bool monospace)
- DrawLabel(int labelId, float x, float y, float maxWidth = -1)
- MoveTo(float x, float y)
- LineTo(float x, float y)
- BezierTo(float c1x, float c1y, float c2x, float c2y, float x, float y)
- QuadTo(float cx, float cy, float x, float y)
- ArcTo(float x1, float y1, float x2, float y2, float radius)
- ClosePath()
- MiterLimit(float limit)
- StrokeWidth(float size)
- LineCap(int cap)
- LineJoin(int join)
- Stroke()
- StrokeColor(int r, int g, int b, int a = 255)
- UpdateLabel(int labelId, const char* text, int size)
- DrawGauge(float rate, float x, float y, float w, float h, float deltaTime)
- SetGaugeColor(int colorindex, int r, int g, int b)
- RoundedRect(float x, float y, float w, float h, float r)
- RoundedRectVarying(float x, float y, float w, float h, float radTopLeft, float radTopRight, float radBottomRight, float radBottomLeft)
- Ellipse(float cx, float cy, float rx, float ry)
- Circle(float cx, float cy, float r)
- SkewX(float angle)
- SkewY(float angle)
- LinearGradient(float sx, float sy, float ex, float ey)
- BoxGradient(float x, float y, float w, float h, float r, float f)
- RadialGradient(float cx, float cy, float inr, float outr)
- ImagePattern(float ox, float oy, float ex, float ey, float angle, int image, float alpha)
- UpdateImagePattern(int paint, float ox, float oy, float ex, float ey, float angle, float alpha)
- GradientColors(int ri, int gi, int bi, int ai, int ro, int go, int bo, int ao)
- FillPaint(int paint)
- StrokePaint(int paint)
- Save()
- Restore()
- Reset()
- PathWinding(int dir)
- ForceRender()
- LoadImageJob(char* path, int placeholder, int w = 0, int h = 0)
- LoadWebImageJob(char* url, int placeholder, int w = 0, int h = 0)
- Scissor(float x, float y, float w, float h)
- IntersectScissor(float x, float y, float w, float h)
- ResetScissor()
- TextBounds(float x, float y, char* s)
- LabelSize(int label)
- FastTextSize(char* text)
- ImageSize(int image)
- Arc(float cx, float cy, float r, float a0, float a1, int dir)
- SetImageTint(int r, int g, int b)
- GlobalCompositeOperation(int op)
- GlobalCompositeBlendFunc(int sfactor, int dfactor)
- GlobalCompositeBlendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha)
- LoadAnimation(char* path, float frametime, int loopcount = 0, bool compressed = false)
- GlobalAlpha(float alpha)
- LoadSkinAnimation(char* path, float frametime, int loopcount = 0, bool compressed = false)
- TickAnimation(int animation, float deltaTime)
- LoadSharedTexture(string key, string path)
- LoadSharedSkinTexture(string key, string path)
- GetSharedTexture(string key)
- Gameplay
- Result Screen
- Song Wheel
- Filter Wheel
- Settings Wheel
- Challenge Wheel
- Challenge Result Screen
- Skin Settings
- Http
- Background & Foreground
- Collection Dialog
- ShadedMesh
- gfx.CreateShadedMesh(String material = “guiTex”)
- gfx.CreateShadedMesh(String material, String path)
- ShadedMesh:Draw()
- ShadedMesh:AddTexture(String name, String path)
- ShadedMesh:AddSkinTexture(String name, String path)
- ShadedMesh:AddSharedTexture(String name, String key)
- ShadedMesh:SetParam(String name, float value)
- ShadedMesh:SetParamVec2(String name, float x, float y)
- ShadedMesh:SetParamVec3(String name, float x, float y, float z)
- ShadedMesh:SetParamVec4(String name, float x, float y, float z, float w)
- ShadedMesh:SetData(Vertex[] data)
- ShadedMesh:SetBlendMode(int mode)
- ShadedMesh:SetOpaque(bool opaque)
- ShadedMesh:SetPrimitiveType(int type)
- ShadedMesh:SetPosition(float x, float y, float z = 0.0f)
- ShadedMesh:GetPosition()
- ShadedMesh:SetScale(float x, float y, float z = 1.0f)
- ShadedMesh:GetScale()
- ShadedMesh:SetRotation(float roll, float yaw = 0.0f, float pitch = 0.0f)
- ShadedMesh:GetRotation()
- ShadedMesh:SetWireframe(bool useWireframe)
- ShadedMeshOnTrack
- Track
- Challenge File Format