wmgr respects config & corelog window size now
This commit is contained in:
parent
d5f4874100
commit
681e07715f
2 changed files with 8 additions and 2 deletions
|
@ -24,6 +24,12 @@ func _ready():
|
||||||
# Make RichTextLabel ignore all mouse events (to disable scrolling)
|
# Make RichTextLabel ignore all mouse events (to disable scrolling)
|
||||||
mouse_filter = Control.MOUSE_FILTER_IGNORE
|
mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||||
|
|
||||||
|
func _process(_delta):
|
||||||
|
var windowsize = DisplayServer.window_get_size()
|
||||||
|
$".".size = windowsize
|
||||||
|
get_parent().size = windowsize
|
||||||
|
get_parent().get_parent().size = windowsize
|
||||||
|
|
||||||
func logevent(_type:String,_script:String,_message:String,logcomp:String) -> void:
|
func logevent(_type:String,_script:String,_message:String,logcomp:String) -> void:
|
||||||
# Appends log to RichTextLabel
|
# Appends log to RichTextLabel
|
||||||
if log_first:
|
if log_first:
|
||||||
|
|
4
wmgr.gd
4
wmgr.gd
|
@ -65,8 +65,8 @@ func get_mode() -> String:
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
Logger.info("wmgr","Configuring window")
|
Logger.info("wmgr","Configuring window")
|
||||||
DisplayServer.window_set_size(Vector2i(960,540))
|
DisplayServer.window_set_size(Vector2i(window_size_x,window_size_y))
|
||||||
DisplayServer.window_set_min_size(Vector2i(960,540))
|
DisplayServer.window_set_min_size(Vector2i(960,540))
|
||||||
DisplayServer.window_set_title(window_title)
|
DisplayServer.window_set_title(window_title)
|
||||||
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)
|
DisplayServer.window_set_mode(window_mode)
|
||||||
core.setready()
|
core.setready()
|
||||||
|
|
Loading…
Reference in a new issue