Class MDTextArea

#include <Geode/ui/MDTextArea.hpp>
classMDTextArea:publiccocos2d::CCLayer,publiccocos2d::CCLabelProtocol,publicFLAlertLayerProtocol{ ... }

TextArea for static markdown content. Supports the following features:

  • Links
  • Images (sprites & spritesheets)
  • Headings
  • Paragraphs
  • Code blocks
  • Code spans
  • TextArea color tags (<cr>, <cy>, etc.)
  • Strikethrough
  • Underline
  • Bold & italic
  • Horizontal rules
  • Lists

Note that links also have some special protocols. Use user:<accountID> to link to a GD account; level:<id> to link to a GD level and mod:<id> to link to another Geode mod.

Examples0
Public static methods1
staticgeode::MDTextArea*create(,)

Create a markdown text area. See class documentation for details on supported features & notes.

Parameters

str

String to render

size

Size of the textarea
Public member functions4
voidupdateLabel()

Update the label’s content; call sparingly as rendering may be slow

virtualvoidsetString()
No description provided
virtualcharconst*getString()
No description provided
CCScrollLayerExt*getScrollLayer()const
No description provided
Fields0
Protected member functions6
boolinit(,)
No description provided
voidonGDProfile()
No description provided
voidonGDLevel()
No description provided
voidonGeodeMod()
No description provided
virtualvoidFLAlert_Clicked(,
boolbtn
)
No description provided
Protected fields6
;
No description provided
;
No description provided
;
No description provided
;
No description provided
CCScrollLayerExt*m_scrollLayer
;
No description provided
;
No description provided