Made adjustments to keep container window within the viewscreen.

actorid
pchan3 13 years ago
parent f902c8fa6f
commit 215d4e1739

@ -28,6 +28,10 @@ ContainerWindow::ContainerWindow(WindowManager& parWindowManager,MWWorld::Enviro
mEnvironment(environment)
{
setText("_Main", "Name of Container");
int w = MyGUI::RenderManager::getInstance().getViewSize().width;
int h = MyGUI::RenderManager::getInstance().getViewSize().height;
setCoord(w-600,h-300,600,300);
//center();
adjustWindowCaption();

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Layout">
<Widget type="Window" skin="MW_Window" layer="Windows" position="900 500 600 300" name="_Main">
<Widget type="Window" skin="MW_Window" layer="Windows" position="0 0 600 300" align="Left Bottom" name="_Main">
<!-- HEADER
<!-- HEADER -->
<Widget type="TextBox" skin="HeaderText" position="0 0 588 18" name="ContainerName" align="ALIGN_LEFT ALIGN_TOP">
<Property key="Caption" value="Name"/>
<Property key="Caption" value=""/>
<Property key="TextAlign" value="ALIGN_CENTER"/>
</Widget>-->
</Widget>

Loading…
Cancel
Save