41 lines
909 B
ActionScript
41 lines
909 B
ActionScript
bool drawFolder(string&in name) {
|
|
bool click = false;
|
|
UI::drawIconCentered("folder", 64);
|
|
|
|
if (UI::isItemClicked(0) and UI::isMouseDoubleClicked(0)) {
|
|
click = true;
|
|
}
|
|
|
|
UI::textCenter(name);
|
|
UI::nextColumn();
|
|
return click;
|
|
}
|
|
|
|
bool drawFile(string&in name) {
|
|
bool click = false;
|
|
UI::drawIconCentered("file", 64);
|
|
if (UI::isItemClicked(0) and UI::isMouseDoubleClicked(0)) {
|
|
click = true;
|
|
}
|
|
|
|
UI::textCenter(name);
|
|
UI::nextColumn();
|
|
return click;
|
|
}
|
|
|
|
bool drawFile(string&in name, string&in dragId, any dragData, string&in overlay) {
|
|
bool click = false;
|
|
UI::drawIconCentered("file", 64);
|
|
if (UI::isItemClicked(0) and UI::isMouseDoubleClicked(0)) {
|
|
click = true;
|
|
}
|
|
|
|
UI::dragDropSource(dragId,
|
|
dragData,
|
|
overlay);
|
|
|
|
UI::textCenter(name);
|
|
UI::nextColumn();
|
|
return click;
|
|
}
|