Beispiel #1
0
 /// <summary>
 /// Method called by <see cref="IUIElementUpdate.Update"/>.
 /// This method can be overridden by inherited classes to perform time-based actions.
 /// This method is not in charge to recursively call the update on children elements, this is automatically done.
 /// </summary>
 /// <param name="time">The current time of the game</param>
 protected virtual void Update(GameTime time)
 {
     if (Parent != null && !Parent.UIElementServices.Equals(ref uiElementServices))
         uiElementServices = Parent.UIElementServices;
 }
 public bool Equals(ref UIElementServices other)
 {
     return (Services == other.Services);
 }
Beispiel #3
0
 public bool Equals(ref UIElementServices other)
 {
     return(Services == other.Services);
 }