1 | static L<TextImageAction> moduleLibraryForNiceButtons(L<S> list, final VF1<S> action) {
|
2 | final SS iconMap = mechMap("Icons for modules");
|
3 | ret map(list, func(fS line) -> TextImageAction {
|
4 | fL<S> l = splitAtSlash(line); |
5 | S moduleID = first(l); |
6 | TextImageAction tia = textImageActionToolTip( |
7 | line, |
8 | #1101288, |
9 | r { pcallF(action, line) },
|
10 | moduleID); |
11 | tia.more = litmapOrNull(lazyImageID := |
12 | lookup_first(iconMap, line, moduleID, last(l))); |
13 | ret tia; |
14 | }); |
15 | } |
Began life as a copy of #1015366
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016104 |
| Snippet name: | moduleLibraryForNiceButtons |
| Eternal ID of this version: | #1016104/3 |
| Text MD5: | 173637c909fcde9be8ac113ae14b049f |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-06-06 12:44:41 |
| Source code size: | 512 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 629 / 675 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |