nevarim
18-08-2011 12:03:33
hi all
i have a basic question
i made load of a layout in a basic mygui project, with old mygui in log appeared error message if mygui cannot reveal layout.
now following tutorial code with new version log hasn't error and on screen doesn't appear nothing of layout.
in media folder i put only file.layout what i must put also for have layout charged? and why log doesn't tell me nothing?
thanks
Neva
Altren
18-08-2011 16:25:25
Check, that your layout's widgets are visible, don't have alpha 0 or coordinates far from screen.
Also show MyGUI.log if all this values are correct.
nevarim
19-08-2011 09:02:21
Check, that your layout's widgets are visible
is a login screen with only
label X2
edit X2
button X2
rest of screen is empty (transparent)
and visible of all widget is set to default
anything wrong?
Neva
nevarim
20-08-2011 10:56:31
<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Layout" version="3.2.0">
<Widget type="TextBox" skin="TextBox" position="45 255 150 30" align="Default" name="LOG\LAB\UN">
<Property key="Visible" value="true"/>
<Property key="Caption" value="UserName"/>
<Property key="TextColour" value="1 1 1"/>
<Property key="TextAlign" value="Left VCenter"/>
<Property key="FontName" value="DejaVuSansFont.17"/>
<Property key="FontHeight" value="16"/>
</Widget>
<Widget type="EditBox" skin="EditBox" position="265 255 390 30" align="Center" name="LOG\EDI\UN"/>
<Widget type="TextBox" skin="TextBox" position="45 345 150 30" align="Default" name="LOG\LAB\PW">
<Property key="Visible" value="true"/>
<Property key="Caption" value="PassWord"/>
<Property key="TextColour" value="1 1 1"/>
<Property key="TextAlign" value="Left VCenter"/>
<Property key="FontName" value="DejaVuSansFont.17"/>
<Property key="FontHeight" value="16"/>
</Widget>
<Widget type="EditBox" skin="EditBox" position="265 345 390 30" align="Center" name="LOG\EDI\UN"/>
<Widget type="Button" skin="Button" position="610 420 205 30" name="LOG\BUT\OK">
<Property key="Caption" value="ENTRA"/>
<Property key="TextColour" value="1 1 1"/>
<Property key="TextAlign" value="Center"/>
<Property key="FontName" value="DejaVuSansFont.17"/>
<Property key="FontHeight" value="16"/>
</Widget>
<Widget type="Button" skin="Button" position="370 420 205 30" name="LOG\BUT\EXIT">
<Property key="FontName" value="DejaVuSansFont.17"/>
<Property key="TextAlign" value="Center"/>
<Property key="FontHeight" value="16"/>
<Property key="TextColour" value="1 1 1"/>
<Property key="Caption" value="Esci"/>
</Widget>
</MyGUI>
nevarim
20-08-2011 15:21:37
what's meaning "Texture 'backgroung_login.png' have non power of two size" ?
Altren
21-08-2011 15:06:17
what's meaning "Texture 'backgroung_login.png' have non power of two size" ?
That mean that texture 'backgroung_login.png' have non power of two size. This leads to blurred textures, usually textures looks wose when they have such sizes.
What about invisible widgets - all your widget don't have layer set, so they won't be wisible without parent widget for layout or layer assigned to each widget (you can do that in LayoutEditor).