MyGUI 3.2.1 changelog draft

scrawl

17-08-2014 05:02:15

Here is changelog draft that I prepared before, I just updated it with recent commits


----------------------------------------------------------------
------------------------- Version 3.2.1 ------------------------
----------------------------------------------------------------

-- Core --
- Fixed incorrectly detecting double click when clicking on different widgets.
- Added events to clipboard manager: eventClipboardRequested, eventClipboardChanged.
- Check for null return values from RenderManager::createTexture.
- Added API access to child LayerNodes.
- Added pointer to ControllerItem in all controller events.
- Added const to getUserData and _getInternalData in WidgetUserData.
- Key focus will be reset when the key focus widget is hidden.
- Fixed a memory leak when creating or changing widgets in several cases.
-- Widgets --
- ListBox: Added eventNotifyItem for key or mouse press on item widgets.
- ListBox: Added getWidgetByIndex public API to allow item widget access from outside.
- EditBox: Fixed several keyboard shortcuts (such as copy & paste) not working when key and text events are injected separately by the user.
- TabControl: Fix possible null pointer access in TabControl::updateBarNew.
- ImageBox: Added getImageSize method.
- ScrollBar: Added WheelPage property for mouse wheel scroll step.
- Enabled property is now inherited from parent widgets.
- Added eventChangeCoord event.

-- SubWidgets --
- PolygonalSkin: Added stroke support for drawing dashed lines (can be seen in UnitTest_Spline).
- RotatingSkin: Added properties to skin XML.

-- Resources --
- ResourceTrueTypeFont: Added Distance parameter for margin between glyphs in generated font texture.
- ResourceImageSet, ResourceTrueTypeFont: Added public API to allow creating in code rather than from XML.
- ResourceManualFont: Added support to set glyph size separately rather than deriving it from image coordinates.

-- Skins --
- Added Dark skin (used by default in Tools).
- Added Black skin.
- Minor updates to other skins.

-- Tools --
- Significant improvements to LayoutEditor, FontEditor, ImageEditor and SkinEditor.

-- Platforms --
- Added Dummy platform.
- Various fixes for DirectX11 platform.
- Slightly refactored OpenGL platform.

-- UnitTests --
- Added DataInfoTest.

UNSORTED
- Minor updates to several demos.
- Use non-exclusive OIS input by default.
- Remove MYGUI_RTTI_DISABLE_TYPE_INFO.
- Remove -msse from compiler flags.
- Added memory stream class.
- Fixed a lot of warnings from cppcheck.
- Documentation improvements.
- Updated C# wrapper.
- Switched from LGPL to MIT license.

Altren

17-08-2014 16:23:46

Thank you. I committed updated changelog. I'm waiting for confirmation regarding this issue and new "Depth" property and then we are ready for release.

Spire

20-08-2014 03:58:38

What is the rationale for adding back the "Distance" parameter in ResourceTrueTypeFont that I marked as deprecated in 3.2.0? It should never be needed anymore due to the improved texture packing that I implemented. If it is needed in any cases, it's a bug, and I would like to fix it before the release of 3.2.1. Please let me know.

Spire

20-08-2014 04:09:16

Whoops, didn't realize it was just released a few hours ago. In any case, I'd still like to hear any comments on the need for "Distance".

Crystal Hammer

20-08-2014 08:55:26

Does this 'Distance' add extra space on all sides (i.e. top, bottom, left, right) ?
If so this would be cool.

I wanted to someday try to add an outline to the text texture. So the text would be white and have a black outline.
This would need space for each character (same amount on all sides, e.g. 3 pixels).
Then adding it with a shader that modifies the original font texture(s) with all chars.
This would be useful for big HUD texts that have no background. While text shadow is good, it is always 1 pixel and only in 1 direction. Outline could be thicker and without direction (evenly).

Crystal Hammer

20-08-2014 10:35:41

Ah wait. You mean this 'Distance' ?

<Property key="Source" value="DejaVuLGCSans.ttf"/>
<Property key="Size" value="24"/>
<Property key="Resolution" value="50"/>
<Property key="Antialias" value="false"/>
<Property key="SpaceWidth" value="11"/><!--same as digit width-->
<Property key="TabWidth" value="8"/>
<Property key="Distance" value="4"/>
<Property key="OffsetHeight" value="0"/>

Yeah I need it too. That code uses it.
Since I needed fixed width for digits only (and space) to e.g. have '120.2 Fps' and ' 40.5 Fps' show the same and have same width.
While other characters like letters and dot, have normal spacing (i.e. act like variable width).

Altren

20-08-2014 14:09:57

What is the rationale for adding back the "Distance" parameter in ResourceTrueTypeFont that I marked as deprecated in 3.2.0? It should never be needed anymore due to the improved texture packing that I implemented. If it is needed in any cases, it's a bug, and I would like to fix it before the release of 3.2.1. Please let me know.By default it is one pixel as in your implementation, but it might be needed in case when font texture is edited after generation. For example it is possible to add some text glow or other effects right in texture using graphical editor.