mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
fullscreen setting checkbox + smth
This commit is contained in:
parent
8be0d157c2
commit
4861fedf1e
17 changed files with 97 additions and 76 deletions
|
|
@ -206,7 +206,14 @@ public:
|
|||
observers.notify(value);
|
||||
}
|
||||
|
||||
observer_handler observe(consumer<bool> callback) {
|
||||
void toggle() {
|
||||
set(!get());
|
||||
}
|
||||
|
||||
observer_handler observe(consumer<bool> callback, bool callOnStart=false) {
|
||||
if (callOnStart) {
|
||||
callback(value);
|
||||
}
|
||||
return observers.observe(callback);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue