forked from mirror/openmw-tes3mp
Add transparency for interactive messageboxes in game mode
This commit is contained in:
parent
56a30d7aec
commit
6cb3c83248
3 changed files with 18 additions and 1 deletions
|
@ -196,7 +196,7 @@ namespace MWGui
|
|||
|
||||
|
||||
InteractiveMessageBox::InteractiveMessageBox(MessageBoxManager& parMessageBoxManager, const std::string& message, const std::vector<std::string>& buttons)
|
||||
: WindowModal("openmw_interactive_messagebox.layout")
|
||||
: WindowModal(MWBase::Environment::get().getWindowManager()->isGuiMode() ? "openmw_interactive_messagebox_notransp.layout" : "openmw_interactive_messagebox.layout")
|
||||
, mMessageBoxManager(parMessageBoxManager)
|
||||
, mButtonPressed(-1)
|
||||
{
|
||||
|
|
|
@ -38,6 +38,7 @@ set(MYGUI_FILES
|
|||
openmw_hud.layout
|
||||
openmw_infobox.layout
|
||||
openmw_interactive_messagebox.layout
|
||||
openmw_interactive_messagebox_notransp.layout
|
||||
openmw_inventory_window.layout
|
||||
openmw_journal.layout
|
||||
openmw_journal.skin.xml
|
||||
|
|
16
files/mygui/openmw_interactive_messagebox_notransp.layout
Normal file
16
files/mygui/openmw_interactive_messagebox_notransp.layout
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<MyGUI type="Layout">
|
||||
<Widget type="Window" skin="MW_DialogNoTransp" layer="MessageBox" position="0 0 500 400" align="Center" name="_Main">
|
||||
<Widget type="EditBox" skin="MW_TextEditClient" position="10 10 490 20" align="Left Top Stretch" name="message">
|
||||
<Property key="FontName" value="Default"/>
|
||||
<Property key="TextAlign" value="Center"/>
|
||||
<Property key="Static" value="true"/>
|
||||
<Property key="WordWrap" value="true"/>
|
||||
<Property key="MultiLine" value="1"/>
|
||||
<Property key="VisibleVScroll" value="1"/>
|
||||
</Widget>
|
||||
<Widget type="Widget" skin="" position="0 0 500 400" align="Stretch" name="buttons">
|
||||
</Widget>
|
||||
</Widget>
|
||||
</MyGUI>
|
Loading…
Reference in a new issue