DoggoMaster Posted February 5, 2018 Share Posted February 5, 2018 I want to create changing menu x position using float Option, likes d3sk1ng its examples (isnt working): if (Menu::Float("MenuX Position", Bool::menuxposition, 0.15f, 0.84f)) { Menu::Settings::menuX == Bool::menuxposition; } if (Menu::Float("testtsettest", Bool::testx, 0.15f, 0.84f)) { Menu::Settings::menuX = Bool::testx; } Menu::Float("test", Menu::Settings::menuX, 0.17f, 0.84f); or something like thats, thanks for help! Link to comment Share on other sites More sharing options...
de_Tylmarande Posted February 7, 2018 Share Posted February 7, 2018 (edited) if (Menu::Float("MenuX Position", Bool::menuxposition, 0.15f, 0.84f)) { Menu::Settings::menuX == Bool::menuxposition; } What is this? You're trying to pass float value to bool? Why? This should be work fine: if (Menu::Float("test", Menu::Settings::menuX, 0.17f, 0.84f)); But in some case you need to handle KeyPressm so you need to use something like this: if (Menu::Float("test", Menu::Settings::menuX, 0.17f, 0.84f)) { Menu::Settings::menuX = NumberKeyboard() } Edited February 7, 2018 by de_Tylmarande Link to comment Share on other sites More sharing options...
DoggoMaster Posted February 7, 2018 Author Share Posted February 7, 2018 @de_Tylmarande i used namespace Bool { float menuxposition = 0.17f; } Link to comment Share on other sites More sharing options...