GUI¶
For a good overview of GUI see the GUILevel
.
We ran out of time on this one, so if you need additional help ask Jacob or Yidi!
Essential API¶
Loading Font¶
Font::AddFontFromFile(const std::string_view& filename, float fontSize, const std::string_view& fontName)
Warning
All GUI function calls must be contained with Component::GuiUpdate
.
Texture¶
Texture::Texture(std::string_view pathToFile, bool load = true)
: Load in the texture at the given file path and returns aTexture*
GUI::Image(const RectTransform& transform, const class Texture& texture, const ImageStyle& style = {})
: Draw GUI image using the texture loaded before
Code Snippets¶
See GUIComponent
Example UI¶
Network Monitor Main Menu Main Menu