Browse Source

Added some comments.

ninjastone 9 years ago
parent
commit
6fb6de2873
2 changed files with 5 additions and 2 deletions
  1. 2 2
      Source/Urho3D/Core/Attribute.h
  2. 3 0
      Source/Urho3D/UI/UIElement.h

+ 2 - 2
Source/Urho3D/Core/Attribute.h

@@ -46,8 +46,8 @@ static const unsigned AM_NODEID = 0x10;
 static const unsigned AM_COMPONENTID = 0x20;
 static const unsigned AM_COMPONENTID = 0x20;
 /// Attribute is a node ID vector where first element is the amount of nodes.
 /// Attribute is a node ID vector where first element is the amount of nodes.
 static const unsigned AM_NODEIDVECTOR = 0x40;
 static const unsigned AM_NODEIDVECTOR = 0x40;
-/// Attribute is readonly.
-static const unsigned AM_FILEREADONLY= 0x81;
+/// Attribute is readonly. Can't be used with binary serialized objects.
+static const unsigned AM_FILEREADONLY = 0x81;
 
 
 class Serializable;
 class Serializable;
 
 

+ 3 - 0
Source/Urho3D/UI/UIElement.h

@@ -257,6 +257,9 @@ public:
     /// Set minimum anchor.
     /// Set minimum anchor.
     void SetMinAnchor(float x, float y);
     void SetMinAnchor(float x, float y);
     /// Set maximum anchor.
     /// Set maximum anchor.
+    /// Maximum anchor is position where right and bottom sides of UI elements starts.
+    /// Right and bottom sides of UI elements are calculated like following:
+    ///  Final value = ParentSize * MaxAnchor + MaxOffset
     void SetMaxAnchor(const Vector2& anchor);
     void SetMaxAnchor(const Vector2& anchor);
     /// Set maximum anchor.
     /// Set maximum anchor.
     void SetMaxAnchor(float x, float y);
     void SetMaxAnchor(float x, float y);