natinusala / borealis

Hardware accelerated, controller and TV oriented UI library for PC and Nintendo Switch (libnx)
Apache License 2.0
260 stars 83 forks source link

get selected value from SelectListItem and block exit button #56

Closed D3fau4 closed 3 years ago

D3fau4 commented 4 years ago

Hello! is there any way to get a value from any listitem? if i cant get the value could you make public unsigned selectedValue;? also i need block "+" because when i start the system update i can exit from the app. (I don't know if borealis already has that options.) thanks!

natinusala commented 4 years ago

Hello, What kind of ListItem ?

D3fau4 commented 4 years ago

this type https://github.com/natinusala/borealis/blob/70bd48cdd1706c5dc6471246dac15fa026cc1f72/example/main.cpp#L85

https://github.com/D3fau4/Sys-Updater/blob/43d93617c6ff47c3ef9b62091f5ee05adab33425/Sys-Updater/source/main.cpp#L191

natinusala commented 4 years ago

Yeah it needs to be updated to add an int getSelectedValue.

As for disabling + to quit, you can do it with brls::Application::setGlobalQuit(true)