Jump to content

[UI] Slider position not saving after restarting the game.


szef

Recommended Posts

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 by szef
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...