1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-14 22:49:56 +00:00

Merge pull request #619 from madsbuvi/0.8.1-vr-maybe-chat-fix

Maybe fix console and chat window resizing/moving
This commit is contained in:
David Cernat 2022-05-02 21:01:58 +03:00 committed by GitHub
commit 61817715d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 2 deletions

View file

@ -529,6 +529,8 @@ namespace MWVR
LayerConfig mapWindowConfig = createSideBySideConfig(3); LayerConfig mapWindowConfig = createSideBySideConfig(3);
LayerConfig inventoryCompanionWindowConfig = createSideBySideConfig(4); LayerConfig inventoryCompanionWindowConfig = createSideBySideConfig(4);
LayerConfig dialogueWindowConfig = createSideBySideConfig(5); LayerConfig dialogueWindowConfig = createSideBySideConfig(5);
LayerConfig chatWindowConfig = createSideBySideConfig(6);
LayerConfig consoleWindowConfig = createSideBySideConfig(7);
osg::Vec3 leftHudOffset = gLeftHudOffsetWrist; osg::Vec3 leftHudOffset = gLeftHudOffsetWrist;
@ -605,6 +607,8 @@ namespace MWVR
{"Menu", videoPlayerConfig}, {"Menu", videoPlayerConfig},
{"LoadingScreen", loadingScreenConfig}, {"LoadingScreen", loadingScreenConfig},
{"VirtualKeyboard", virtualKeyboardConfig}, {"VirtualKeyboard", virtualKeyboardConfig},
{"Chat", chatWindowConfig},
{"Console", consoleWindowConfig},
}; };
} }

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Layout"> <MyGUI type="Layout">
<Widget type="Window" skin="MW_Window" position="0 0 400 400" layer="Windows" name="_Main"> <Widget type="Window" skin="MW_Window" position="0 0 400 400" layer="Console" name="_Main">
<Property key="Caption" value="#{sConsoleTitle}"/> <Property key="Caption" value="#{sConsoleTitle}"/>
<Property key="MinSize" value="40 40"/> <Property key="MinSize" value="40 40"/>
<Property key="Visible" value="false"/> <Property key="Visible" value="false"/>

View file

@ -19,4 +19,6 @@
<Layer name="MessageBox" overlapped="false" pick="true"/> <Layer name="MessageBox" overlapped="false" pick="true"/>
<Layer name="InputBlocker" overlapped="false" pick="true"/> <Layer name="InputBlocker" overlapped="false" pick="true"/>
<Layer name="Pointer" overlapped="false" pick="false"/> <Layer name="Pointer" overlapped="false" pick="false"/>
<Layer name="Console" overlapped="true" pick="true"/>
<Layer name="Chat" overlapped="true" pick="true"/>
</MyGUI> </MyGUI>

View file

@ -30,4 +30,6 @@
<Layer name="VideoPlayer" overlapped="false" pick="true"/> <Layer name="VideoPlayer" overlapped="false" pick="true"/>
<Layer name="VirtualKeyboard" overlapped="false" pick="true"/> <Layer name="VirtualKeyboard" overlapped="false" pick="true"/>
<Layer name="Pointer" overlapped="false" pick="false"/> <Layer name="Pointer" overlapped="false" pick="false"/>
<Layer name="Console" overlapped="true" pick="true"/>
<Layer name="Chat" overlapped="true" pick="true"/>
</MyGUI> </MyGUI>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Layout"> <MyGUI type="Layout">
<Widget type="Window" skin="MW_Window" position="0 0 400 400" layer="Windows" name="_Main"> <Widget type="Window" skin="MW_Window" position="0 0 400 400" layer="Chat" name="_Main">
<Property key="Caption" value="#{sConsoleTitle}"/> <Property key="Caption" value="#{sConsoleTitle}"/>
<Property key="MinSize" value="40 40"/> <Property key="MinSize" value="40 40"/>
<Property key="Visible" value="false"/> <Property key="Visible" value="false"/>