mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-20 00:46:34 +00:00
Fixed bug where icons show on slider menu (#528)
* Fixed bug by hiding icon for buttons when rendering Slider Menu * Fixed formatting * Fixed build
This commit is contained in:
parent
dbfa60bebc
commit
b34fc6b4a9
1 changed files with 6 additions and 0 deletions
|
@ -337,6 +337,12 @@ unsafe fn render_slider_page(app: &App, root_pane: &mut Pane) {
|
|||
|
||||
min_value_text.set_visible(true);
|
||||
max_value_text.set_visible(true);
|
||||
|
||||
// Hide the Icon pane for MinButton and MaxButton
|
||||
[min_button, max_button].iter().for_each(|button| {
|
||||
let icon = button.find_pane_by_name_recursive("Icon").unwrap();
|
||||
icon.set_visible(false);
|
||||
});
|
||||
}
|
||||
|
||||
pub unsafe fn draw(root_pane: &mut Pane) {
|
||||
|
|
Loading…
Reference in a new issue