1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

Made adjustments to keep container window within the viewscreen.

This commit is contained in:
pchan3 2012-04-18 23:09:13 +10:00
parent f902c8fa6f
commit 215d4e1739
2 changed files with 8 additions and 4 deletions

View file

@ -28,6 +28,10 @@ ContainerWindow::ContainerWindow(WindowManager& parWindowManager,MWWorld::Enviro
mEnvironment(environment) mEnvironment(environment)
{ {
setText("_Main", "Name of Container"); 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(); //center();
adjustWindowCaption(); adjustWindowCaption();

View file

@ -1,13 +1,13 @@
<?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" 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"> <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"/> <Property key="TextAlign" value="ALIGN_CENTER"/>
</Widget>--> </Widget>