Internal change of function signature.
This commit is contained in:
@@ -6,7 +6,7 @@ namespace JUI {
|
||||
|
||||
header = new TextButton(this);
|
||||
header->Size({100_percent, header_height});
|
||||
header->SetContent("Collapsible");
|
||||
header->Content("Collapsible");
|
||||
header->BaseBGColor(Colors::DarkGray);
|
||||
header->BGColor(Colors::DarkGray);
|
||||
header->Center();
|
||||
@@ -21,7 +21,7 @@ namespace JUI {
|
||||
lil_arrow = new TextRect(header);
|
||||
lil_arrow->Size({header_height, header_height});
|
||||
lil_arrow->BGColor(Colors::Transparent);
|
||||
lil_arrow->SetContent("/\\");
|
||||
lil_arrow->Content("/\\");
|
||||
lil_arrow->BorderWidth(0);
|
||||
|
||||
content_box = new Rect(this);
|
||||
@@ -35,7 +35,7 @@ namespace JUI {
|
||||
|
||||
void Collapsible::Collapse() {
|
||||
//Size(saved_size);
|
||||
lil_arrow->SetContent("\\/");
|
||||
lil_arrow->Content("\\/");
|
||||
content_box->Visible(false);
|
||||
if (resize_anim != nullptr && !resize_anim->HasCompleted()) {
|
||||
resize_anim->Cancel();
|
||||
@@ -50,7 +50,7 @@ namespace JUI {
|
||||
}
|
||||
|
||||
void Collapsible::Expand() {
|
||||
lil_arrow->SetContent("/\\");
|
||||
lil_arrow->Content("/\\");
|
||||
content_box->Visible(true);
|
||||
if (resize_anim != nullptr && !resize_anim->HasCompleted())
|
||||
resize_anim->Cancel();
|
||||
@@ -77,8 +77,8 @@ namespace JUI {
|
||||
void Collapsible::HeaderHeight(const UDim &value) { header_height = value; }
|
||||
|
||||
void Collapsible::Title(const std::string &value) {
|
||||
header->SetContent(value);
|
||||
header->Content(value);
|
||||
}
|
||||
|
||||
std::string Collapsible::Title() const { return header->GetContent(); }
|
||||
std::string Collapsible::Title() const { return header->Content(); }
|
||||
}
|
Reference in New Issue
Block a user