@@ -312,7 +312,7 @@ func GetSelectionFromHorizontalMenuByIndex(layerAlias string, styleEntry memory.
312
312
}
313
313
314
314
/*
315
- drawVerticalMenu allows you to obtain a user selection from a horizontal menu.
315
+ DrawVerticalMenu allows you to obtain a user selection from a horizontal menu.
316
316
In addition, the following information should be noted:
317
317
318
318
- If the location to draw a menu item falls outside of the range of the text
@@ -322,7 +322,7 @@ layer, then only the visible portion of your menu item will be drawn.
322
322
drawn. This is useful for menus sizes which are significantly larger than
323
323
the visible display area allocated for the menu.
324
324
*/
325
- func drawVerticalMenu (layerAlias string , styleEntry memory.TuiStyleEntryType , selectionEntry memory.SelectionEntryType , xLocation int , yLocation int , menuWidth int , menuHeight int , viewportPosition int , itemSelected int ) {
325
+ func DrawVerticalMenu (layerAlias string , styleEntry memory.TuiStyleEntryType , selectionEntry memory.SelectionEntryType , xLocation int , yLocation int , menuWidth int , menuHeight int , viewportPosition int , itemSelected int ) {
326
326
layerEntry := memory .GetLayer (layerAlias )
327
327
menuAttributeEntry := memory .NewAttributeEntry ()
328
328
menuAttributeEntry .ForegroundColor = styleEntry .MenuForegroundColor
@@ -382,7 +382,7 @@ func GetSelectionFromVerticalMenuByIndex(layerAlias string, styleEntry memory.Tu
382
382
if defaultItemSelected < 0 || defaultItemSelected >= len (selectionEntry .SelectionValue ) {
383
383
panic (fmt .Sprintf ("The specified default item selected of '%d' is invalid for a selection range of 0 to %d!" , defaultItemSelected , len (selectionEntry .SelectionValue )))
384
384
}
385
- drawVerticalMenu (layerAlias , styleEntry , selectionEntry , xLocation , yLocation , menuWidth , menuHeight , viewportPosition , selectedItem )
385
+ DrawVerticalMenu (layerAlias , styleEntry , selectionEntry , xLocation , yLocation , menuWidth , menuHeight , viewportPosition , selectedItem )
386
386
UpdateDisplay ()
387
387
for isItemSelected == false {
388
388
currentKeyPressed := Inkey ()
@@ -434,7 +434,7 @@ func GetSelectionFromVerticalMenuByIndex(layerAlias string, styleEntry memory.Tu
434
434
if selectedItem >= len (selectionEntry .SelectionValue ) {
435
435
selectedItem = len (selectionEntry .SelectionValue ) - 1
436
436
}
437
- drawVerticalMenu (layerAlias , styleEntry , selectionEntry , xLocation , yLocation , menuWidth , menuHeight , viewportPosition , selectedItem )
437
+ DrawVerticalMenu (layerAlias , styleEntry , selectionEntry , xLocation , yLocation , menuWidth , menuHeight , viewportPosition , selectedItem )
438
438
UpdateDisplay ()
439
439
previouslySelectedItem = selectedItem
440
440
}
0 commit comments