szef Posted July 27, 2023 Share Posted July 27, 2023 (edited) Can someone guide me where, or how to do it so that the slider setting, is saved and not reset to default position after restarting the game (or exit menu options)? slider { area 322 464 105 27 position "dboxSkinSLDR" bam 'SLDRSTAR' mosaic sliderbg settings 3 --pad 8 0 10 0 action " Infinity_ChangeOption( 69, dboxSkinSLDR, 6) selectedGraphicOpt = 0 selectedSL = 4 " } Have no idea how this may connect to saving position settings. It is have to do with: dboxSkinsSLDR = Infinity_GetOption(69, panelID) dboxSkinsCancel = Infinity_GetOption(69, panelID) for index, var in pairs(graphicsToggles) do var[5] = Infinity_GetOption(var[3], panelID) var[6] = 0 if var[5] == 0 then var[4] = 0 else var[4] = 2 end end ? Also I see this example option: Infinity_ChangeOption( 22, fontSizeCancel, panelID) Why 22 value, what is the reason? Found this: https://eeex-docs.readthedocs.io/en/latest/EE Game Lua Functions/Infinity/index.html#infinity-changeoption SOLVED: Edited July 31, 2023 by szef Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.