Feel free to suggest and ask for enhancement
![Smile :)](./images/smilies/icon_smile.gif)
Please use one post per feature or idea...
Moderators: CEGUI MVP, CEGUI Team
Code: Select all
<Window Type="TaharezLook/FrameWindow" Name="MyWidget" >
<Property
...
<language id="en" value="My label" />
<language id="fr" value="Mon libellé" />
<language id="de" value="Mein Wortlaut" />
</window>
jacmoe wrote:But the most important thing is to stabilise things: improve exsisting widgets/controls...
...CEGUI has taken it's twist and turns - I think it's time to focus and expand what's already in CEGUI, waiting to come out.
Rackle wrote:Speaking of internationalisation, I'll eventually need the ability to load screens/layouts in multiple languages. My current just-waking-up approach would be something like this:
...
and within the LayoutEditor I would be able to input this text in multiple languages at once, via a language combobox.
Code: Select all
<Window Type="TaharezLook/FrameWindow" Name="Demo7/Window1">
<Property ...
<Window Type="TaharezLook/Button" Name="Demo7/Window1/Quit">
<Property ...
</Window>
<Window Type="LayoutImport" Name="Demo7/Window1/DynamicWidget1">
<Property Filename="WidgetDefinition.layout" />
<Property Name="Position" Value="x:0.2 y:0.2" />
<Property Name="Size" Value="w:0.5 h:0.5" />
</Window>
<Window Type="LayoutImport" Name="Demo7/Window1/DynamicWidget2">
<Property Filename="WidgetDefinition.layout" />
<Property Name="Position" Value="x:0.2 y:0.2" />
<Property Name="Size" Value="w:0.5 h:0.5" />
</Window>
</Window>
Taharez wrote:Rackle wrote:Speaking of internationalisation, I'll eventually need the ability to load screens/layouts in multiple languages. My current just-waking-up approach would be something like this:
...
and within the LayoutEditor I would be able to input this text in multiple languages at once, via a language combobox.
Very important point imho, a central string table/registry would be great for this kind of thing.
Rackle wrote:I find myself creating UI dialogs that share sub components. One example would be an inventory dialog as a 4x4 grid of buttons. Each button contains a StaticImage and a StaticText name. In the Layout Editor I would create the first button then copy-paste for the additional 15 needed. Then I create a merchant dialog and basically repeat these steps.
The problem is when I decide to update this button with image and name I then I have to find each dialog that contains these buttons and then update each instance. The solution could be to create a new XML element that would read the contents of a second .layout file. Something along the lines of:Code: Select all
<Window Type="TaharezLook/FrameWindow" Name="Demo7/Window1">
<Property ...
<Window Type="TaharezLook/Button" Name="Demo7/Window1/Quit">
<Property ...
</Window>
<Window Type="LayoutImport" Name="Demo7/Window1/DynamicWidget1">
<Property Filename="WidgetDefinition.layout" />
<Property Name="Position" Value="x:0.2 y:0.2" />
<Property Name="Size" Value="w:0.5 h:0.5" />
</Window>
<Window Type="LayoutImport" Name="Demo7/Window1/DynamicWidget2">
<Property Filename="WidgetDefinition.layout" />
<Property Name="Position" Value="x:0.2 y:0.2" />
<Property Name="Size" Value="w:0.5 h:0.5" />
</Window>
</Window>
The WidgetDefinition.layout file would contain the widget that I want to repeatedly import into the current layout.
The Name element and the Position and Size properties are used as normal. The Type element instructs to import a .layout and the Filename property specifies which file to import.
Return to “CEGUI Library Development Discussion”
Users browsing this forum: No registered users and 7 guests