an old little question about layout file format...
Posted: Sat Dec 05, 2009 07:24
this question is nothing but just a little personal curiosity.current format is okay,but i just think...
currently our layout format is
i don`t understand why don`t we do it this way:
or this way:
i just don`t understand what`s the point of <Property> as a xml element.seems it just a key-value pair,but the xml attributes is already naturally enumeratable key-value pairs.
and also a little question about udim,doesn`t "10%" and "10px" looks more comfortable than "{10,0}" and "{0,10}" for ui designers ?
currently our layout format is
Code: Select all
<Window Type="WindowsLook/FrameWindow" Name="Root/Pad" >
<Property Name="Font" Value="UKai-8" />
<Property Name="Text" Value="Console" />
<Property Name="AlwaysOnTop" Value="True" />
<Window>...sub windows...</Window>
</Window>
i don`t understand why don`t we do it this way:
Code: Select all
<Window Type="WindowsLook/FrameWindow" Name="Root/Pad" Font="UKai-8" Text ="Console" AlwaysOnTop="True" />
<Window>...sub windows...</Window>
</Window>
or this way:
Code: Select all
<Window Type="WindowsLook/FrameWindow" Name="Root/Pad" >
<Properties Font="UKai-8" Text="Console" AlwaysOnTop="True" />
<Window>...sub windows...</Window>
</Window>
i just don`t understand what`s the point of <Property> as a xml element.seems it just a key-value pair,but the xml attributes is already naturally enumeratable key-value pairs.
and also a little question about udim,doesn`t "10%" and "10px" looks more comfortable than "{10,0}" and "{0,10}" for ui designers ?