mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-28 13:27:10 +01:00
20 lines
605 B
GDScript
20 lines
605 B
GDScript
extends HBoxContainer
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
func _ready():
|
|
var ob : OptionButton = $OptionButton as OptionButton
|
|
|
|
ob.add_item("Single-Unsafe", 0)
|
|
ob.add_item("Single-Safe", 1)
|
|
ob.add_item("Multi Threaded", 2)
|
|
|
|
ob.selected = Settings.get_value("rendering", "thread_model")
|
|
|
|
ob.connect("item_selected", self, "item_selected")
|
|
|
|
func item_selected(id : int) -> void:
|
|
Settings.set_value("rendering", "thread_model", id)
|