Fixed window order when open dialog
This commit is contained in:
Binary file not shown.
@@ -38,6 +38,7 @@ GraphicsSettings:
|
||||
- {fileID: 10783, guid: 0000000000000000f000000000000000, type: 0}
|
||||
- {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0}
|
||||
- {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0}
|
||||
- {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_PreloadedShaders: []
|
||||
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
|
||||
type: 0}
|
||||
|
||||
@@ -542,7 +542,7 @@ PlayerSettings:
|
||||
scriptingDefineSymbols: {}
|
||||
platformArchitecture: {}
|
||||
scriptingBackend:
|
||||
Standalone: 1
|
||||
Standalone: 0
|
||||
il2cppCompilerConfiguration: {}
|
||||
managedStrippingLevel: {}
|
||||
incrementalIl2cppBuild: {}
|
||||
|
||||
@@ -916,6 +916,10 @@ public class LibUniWinC : NSObject {
|
||||
let initialFile = getStringFromUtf16Array(textPointer: ps.initialFile) as NSString
|
||||
let fileTypes = getFileTypesArray(text: getStringFromUtf16Array(textPointer: ps.filterText))
|
||||
|
||||
if (targetWindow != nil && state.isTopmost) {
|
||||
targetWindow?.level = NSWindow.Level.floating
|
||||
}
|
||||
//panel.parent = targetWindow // Nil if not attatched
|
||||
panel.allowsMultipleSelection = PanelFlag.AllowMultipleSelection.containedIn(value: ps.flags)
|
||||
panel.showsHiddenFiles = PanelFlag.ShowHidden.containedIn(value: ps.flags)
|
||||
panel.allowedFileTypes = fileTypes
|
||||
@@ -949,7 +953,10 @@ public class LibUniWinC : NSObject {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (targetWindow != nil && state.isTopmost) {
|
||||
targetWindow?.level = NSWindow.Level.popUpMenu
|
||||
}
|
||||
|
||||
return outputToStringBuffer(text: text, lpBuffer: lpBuffer, bufferSize: bufferSize)
|
||||
}
|
||||
|
||||
@@ -967,6 +974,10 @@ public class LibUniWinC : NSObject {
|
||||
let initialFile = getStringFromUtf16Array(textPointer: ps.initialFile) as NSString
|
||||
let fileTypes = getFileTypesArray(text: getStringFromUtf16Array(textPointer: ps.filterText))
|
||||
|
||||
if (targetWindow != nil && state.isTopmost) {
|
||||
targetWindow?.level = NSWindow.Level.floating
|
||||
}
|
||||
//panel.parent = targetWindow // Nil if not attatched
|
||||
panel.showsHiddenFiles = PanelFlag.ShowHidden.containedIn(value: ps.flags)
|
||||
panel.message = getStringFromUtf16Array(textPointer: ps.titleText)
|
||||
panel.title = getStringFromUtf16Array(textPointer: ps.titleText)
|
||||
@@ -992,6 +1003,9 @@ public class LibUniWinC : NSObject {
|
||||
let url: String = panel.url!.path
|
||||
text = "\"" + url.replacingOccurrences(of: "\"", with: "\"\"") + "\"\n"
|
||||
}
|
||||
if (targetWindow != nil && state.isTopmost) {
|
||||
targetWindow?.level = NSWindow.Level.popUpMenu
|
||||
}
|
||||
|
||||
return outputToStringBuffer(text: text, lpBuffer: lpBuffer, bufferSize: bufferSize)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user