badspacebar / sdk

6 stars 3 forks source link

Menu icon issues #18

Closed 69sinisterblade69 closed 10 months ago

69sinisterblade69 commented 1 year ago

When trying to set icon to boolean or slider (and possibly some other types too, not tested) I'm getting this error. But it works when I'm using it on menu type

menu.xerathmenu:menu("Combo", "Combo");
menu.xerathmenu.Combo:set('icon',graphics.sprite('Sprites/Combo.png')) -- works correctly

menu.xerathmenu.Combo:boolean('q_combo', 'Use Q', true);
menu.xerathmenu.Combo.q_combo:set('icon',graphics.sprite('Sprites/Combo.png')) -- doesn't work

image

badspacebar commented 1 year ago

It only works for main or sub menu, don't work for components.

69sinisterblade69 commented 1 year ago

Then it should be mentioned in documentation, or changed so it works with components.

badspacebar commented 10 months ago

Will be fixed in patch 20231225