mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
[macOS extend-to-title] Add scene/project name to the editor title, fix incorrect window button position/order when system primary language is RTL.
This commit is contained in:
@@ -37,9 +37,22 @@
|
||||
- (id)init {
|
||||
self = [super init];
|
||||
window_id = DisplayServer::INVALID_WINDOW_ID;
|
||||
anim_duration = -1.0f;
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)setAnimDuration:(NSTimeInterval)duration {
|
||||
anim_duration = duration;
|
||||
}
|
||||
|
||||
- (NSTimeInterval)animationResizeTime:(NSRect)newFrame {
|
||||
if (anim_duration > 0) {
|
||||
return anim_duration;
|
||||
} else {
|
||||
return [super animationResizeTime:newFrame];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setWindowID:(DisplayServerMacOS::WindowID)wid {
|
||||
window_id = wid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user