visual: modification pour la prise en considération de l'attribut checked pour buttongroup

This commit is contained in:
Nicolas Hordé 2016-06-17 22:30:50 +02:00
parent 61bdef8cec
commit d64bcbdfd2
2 changed files with 5 additions and 5 deletions

View File

@ -138,10 +138,10 @@
temp: { disabledFontColor:white, fontColor:white, overFontColor:red ,up: temp , down: temp_down, over:temp_over, disabled:temp_disabled, font: OpenDyslexicAlta-25, pressedOffsetY: -45, unpressedOffsetY: -47, checkedOffsetY: -47 }
rayon: { disabledFontColor:white, fontColor:white, overFontColor:red ,up: rayon , down: rayon_down, over:rayon_over, disabled:rayon_disabled, font: OpenDyslexicAlta-25, pressedOffsetY: -45, unpressedOffsetY: -47, checkedOffsetY: -47 }
nrj: { disabledFontColor:white, fontColor:white, overFontColor:red ,up: nrj , down: nrj_down, over:nrj_over, disabled:nrj_disabled, font: OpenDyslexicAlta-25, pressedOffsetY: -45, unpressedOffsetY: -47, checkedOffsetY: -47 }
cycle2: { disabledFontColor:white, fontColor:white, overFontColor:red ,up: cycle , down: cycle, over:cycle, disabled:cycle, font: OpenDyslexicAlta-25, pressedOffsetX: 45, unpressedOffsetX: 47, checkedOffsetX: 45 }
temp2: { disabledFontColor:white, fontColor:white, overFontColor:red ,up: temp , down: temp, over:temp, disabled:temp, font: OpenDyslexicAlta-25, pressedOffsetX: 45, unpressedOffsetX: 47, checkedOffsetX: 45 }
rayon2: { disabledFontColor:white, fontColor:white, overFontColor:red ,up: rayon , down: rayon, over:rayon, disabled:rayon, font: OpenDyslexicAlta-25, pressedOffsetX: 45, unpressedOffsetX: 47, checkedOffsetX: 45 }
nrj2: { disabledFontColor:white, fontColor:white, overFontColor:red ,up: nrj , down: nrj, over:nrj, disabled:nrj, font: OpenDyslexicAlta-25, pressedOffsetX: 45, unpressedOffsetX: 47, checkedOffsetX: 45 }
cycle2: { disabledFontColor:white, fontColor:white, overFontColor:red ,up: cycle , down: cycle, over:cycle, disabled:cycle, font: OpenDyslexicAlta-25, pressedOffsetX: 75, unpressedOffsetX: 77, checkedOffsetX: 75 }
temp2: { disabledFontColor:white, fontColor:white, overFontColor:red ,up: temp , down: temp, over:temp, disabled:temp, font: OpenDyslexicAlta-25, pressedOffsetX: 75, unpressedOffsetX: 77, checkedOffsetX: 75 }
rayon2: { disabledFontColor:white, fontColor:white, overFontColor:red ,up: rayon , down: rayon, over:rayon, disabled:rayon, font: OpenDyslexicAlta-25, pressedOffsetX: 75, unpressedOffsetX: 77, checkedOffsetX: 75 }
nrj2: { disabledFontColor:white, fontColor:white, overFontColor:red ,up: nrj , down: nrj, over:nrj, disabled:nrj, font: OpenDyslexicAlta-25, pressedOffsetX: 75, unpressedOffsetX: 77, checkedOffsetX: 75 }
cout2: { disabledFontColor:white, fontColor:white, overFontColor:red ,up: cout , down: cout, over:cout, disabled:cout, font: OpenDyslexicAlta-25, pressedOffsetY: -45, unpressedOffsetY: -47, checkedOffsetY: -47 }
tech2: { disabledFontColor:white, fontColor:white, overFontColor:red ,up: tech , down: tech, over:tech, disabled:tech, font: OpenDyslexicAlta-25, pressedOffsetY: -45, unpressedOffsetY: -47, checkedOffsetY: -47 }
research2: { disabledFontColor:white, fontColor:white, overFontColor:red ,up: points , down: points, over:points, disabled:points, font: OpenDyslexicAlta-25, pressedOffsetY: -45, unpressedOffsetY: -47, checkedOffsetY: -47 }

View File

@ -16,7 +16,7 @@ com.badlogic.gdx.scenes.scene2d.ui.Button$ButtonStyle: {
toggle: { down: default-round-down, checked: default-round-down, up: default-round }
},
com.badlogic.gdx.scenes.scene2d.ui.TextButton$TextButtonStyle: {
default: { down: default-round-down, up: default-round, font: default-font, fontColor: white, disabledFontColor:lowgrey },
default: { down: default-round-down, up: default-round, font: default-font, fontColor: white, disabledFontColor:lowgrey, checkedFontColor:red },
toggle: { down: default-round-down, up: default-round, checked: default-round-down, font: default-font, fontColor: white,
downFontColor: red }
},