#Embedded window can't be resized.

1 messages · Page 1 of 1 (latest)

spiral torrent
#

Embedded window can't be resized. Embedded window can't be resized. Embedded window can't be resized. Embedded window can't be resized. Embedded window can't be resized. Embedded window can't be resized. Embedded window can't be resized. extends Node2D

@onready var option = $"сложность" @onready var option1= $FireSize var optionchik1= { "1280×720" : Vector2i(1280,720), "1366×768" : Vector2i(1366, 768), "1600×900" : Vector2i(1600,900), "1920×1080" : Vector2i(1920,1080), "2560×1440": Vector2i(2560,1440), "3840×2160" : Vector2i(3840, 2160), "7680×4320" : Vector2i(7680, 4320) }

var сложность = ["Легко","Средне","Сложно"]

func _ready() -> void: for i in optionchik1: option1.add_item(i)

func _on_option_button_item_selected(index: int) -> void: match index: 0: Global.сложность = 1 1: Global.сложность = 2 2: Global.сложность = 3

func _on_fire_size_item_selected(index: int) -> void: DisplayServer.window_set_size(optionchik1.values()[index])

Even with my permission it shows an error, pls help

spiral torrent
#

Pls help

spiral torrent
#

extends Node2D

@onready var option = $"сложность"
@onready var option1 = $FireSize
var optionchik1 = {
"1280×720" : Vector2i(1280,720),
"1366×768" : Vector2i(1366, 768),
"1600×900" : Vector2i(1600,900),
"1920×1080" : Vector2i(1920,1080),
"2560×1440": Vector2i(2560,1440),
"3840×2160" : Vector2i(3840, 2160),
"7680×4320" : Vector2i(7680, 4320)
}

var сложность = ["Легко","Средне","Сложно"]

func _ready() -> void:
for i in optionchik1:
option1.add_item(i)

for i in сложность:
option.add_item(i)

func _on_option_button_item_selected(index: int) -> void:
match index:
0:
Global.сложность = 1
1:
Global.сложность = 2
2:
Global.сложность = 3

func _on_fire_size_item_selected(index: int) -> void:
DisplayServer.window_set_size(optionchik1.values()[index])