mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-12-25 01:17:10 +01:00
20 lines
605 B
GDScript3
20 lines
605 B
GDScript3
|
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)
|