For example:
Code: Select all
ThisFolder
Another Folder here
Third FolderCode: Select all
ThisFolder
Another Folder here
Third FolderCode: Select all
function load_menu($menu){
$menu = replace($menu," "," ");
$cmd = trim(popupnested($menu, , , , , , , "|" , ));
if startswith($cmd,"#") == FALSE AND startswith($cmd,":") == FALSE AND $cmd != '' {
if (get("trigger", "menushift") == 1 && strpos($cmd, '" "') != -1) {
$remove = gettoken($cmd, 2, '" "', "t", 2);
$cmd = regexreplace(replace($cmd, $remove), "[ ]+?[""]$", chr(39));
}
load $cmd, , "s";
}
}
"_ : clickableMenu"
$menu = <<<MENU
some caption |somefunction() |someicon.png
sub_entry |somefunction("sufix", "prefix") |someicon.png
somecaption |zip($somevar) |someicon.png
MENU;
load_menu($menu);Thanks. Cab you please tell me how I use it with the hamburger menu?bossi wrote: ↑12 Aug 2025 00:23Code: Select all
function load_menu($menu){ $menu = replace($menu," "," "); $cmd = trim(popupnested($menu, , , , , , , "|" , )); if startswith($cmd,"#") == FALSE AND startswith($cmd,":") == FALSE AND $cmd != '' { if (get("trigger", "menushift") == 1 && strpos($cmd, '" "') != -1) { $remove = gettoken($cmd, 2, '" "', "t", 2); $cmd = regexreplace(replace($cmd, $remove), "[ ]+?[""]$", chr(39)); } load $cmd, , "s"; } } "_ : clickableMenu" $menu = <<<MENU some caption |somefunction() |someicon.png sub_entry |somefunction("sufix", "prefix") |someicon.png somecaption |zip($somevar) |someicon.png MENU; load_menu($menu);
this will do what you want , expands on hover and lets you click any element within the menu , indent is 1xSpace = 1xLevel
So it's something Don would have to do. Hopefully he'll see this and consider it, if it's able to be used without breaking anything.