CheckButton & Initialize Function......
once i wrote the code based on a thought
when CheckButton got checked, its value is 1 when it's uncheck . its value is 0 but i was wrong....when it's uncheck....its value is NIL...... so my Initialize Function should sth like this Code:
UserSet = {} and it's begin....... when my default is set alll status ON and user goes to Config Window and set all CheckButton Unchecked..... next time when he is back..... UserSet = nil...... ('cos all his Child is nil.....) and he goes to Default Settings......................... Hmmm,,,, how can I handle this..... or....maybe I was totally wrong..... maybe..the table is still there with nothing but UserSet = {} ................. how i loved checked buttons..... |
Well, you'd do something like
yourConfig.configValue = ButtonName:GetChecked() or false; |
Quote:
wow....is this means that a nil value won't return to yourConfig.configValue ? and Code:
yourConfig.configValue = ButtonName:GetChecked() or 0; so ButtonName:SetChecked() can use this yourConfig.configValue without a IF |
All times are GMT -6. The time now is 12:05 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI