Logo
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Yukar.Engine.MenuSubContainer Class Reference

Each selected item stored in the layout menu container More...

Inheritance diagram for Yukar.Engine.MenuSubContainer:
Yukar.Engine.SpriteRenderObject Yukar.Engine.AbstractRenderObject

Public Member Functions

override Vector2 GetRenderPosition ()
 Get drawing position (considering parent's position as well) More...
 
override void SetPositionForPreview (Vector2 position)
 Set the position for preview. More...
 
override Vector2 GetPositionForPreview ()
 Get position in preview More...
 
Vector2 GetDefaultDrawPosition ()
 
override LayoutObjectType GetRenderObjectType ()
 Get layout part type More...
 
override void ChangeAnimationState (AnimationState animationState)
 Change animation state. More...
 
override void ResetSubMenuContainerRenderStatus ()
 Reset the drawing state of the subcontainer More...
 
override void SetParent (AbstractRenderObject parent)
 Set the parent object. More...
 
override AbstractRenderObject Remove (MenuSettings.MenuItem menuItem)
 remove child

Parameters
menuItemSetting the layout to be deleted
Returns
true if it was possible to delete false if it did not exist in the child and could not be deleted
More...
 
override void Release ()
 Open More...
 
override void Show ()
 indicate More...
 
override void ShowWithNotAnimation ()
 display without animation More...
 
override void Hide ()
 You want to hide More...
 
override void HideWithNotAnimation ()
 Hide without animation More...
 
override void Lock ()
 lock More...
 
override void UnLock ()
 to unlock More...
 
override Rectangle GetClipRectangle (Rectangle? currentClipRectAngle)
 Taking into account the current object's position, size, parent clipping, and existing clipping rectangle, Calculates a valid clipping rectangle. More...
 
override bool GetClipRectangleSolo (out Rectangle val)
 Calculates the clipping rectangle of the current object and based on the associated window render object Adjust as necessary. More...
 
override Rectangle GetChildClipRectangle ()
 Computes and returns the child element's clipping rectangle. More...
 
override bool IsClipChildren ()
 Determines whether a child element is clipped to the bounds of its parent. More...
 
override bool IsClippingWithParent ()
 Determines whether the current menu item is clipping with its parent. More...
 
override bool IsClippingSelf ()
 Determines whether the current menu item is set to use clipping. More...
 
override bool IsClipRecursive ()
 Determines whether clipping is applied recursively. More...
 
override Vector2 GetWindowPadding ()
 Gets the inner margin (padding) of the window. More...
 
override Vector2 GetWindowRenderSize (Vector2 size)
 Calculates the actual drawing size of the window based on the specified size. More...
 
override MenuSettings.MenuItem GetMenuItem ()
 Gets the menu item associated with this subcontainer. More...
 
override void ConfigureContentProperty (int maximumContent)
 Set content properties. More...
 
override void ConfigureContentProperty (int maximumContent, bool updateRenderPanel)
 Set content properties and update the render panel as needed. More...
 
override void ChangeSubMenuContainerRenderStatus (RenderStatus renderStatus, bool overrride)
 Changes the drawing state of the submenu container. More...
 
override AbstractRenderObject Copy (AbstractRenderObject parent)
 Create a copy of this object. More...
 
override void SetSelectIndexWithChildern (int index)
 Sets selection index along with child elements. More...
 
override void EnableSubContainerWithChildern (bool enable, int subPanelIndex)
 Sets the enabled state of the subcontainer and its child elements at the specified index. More...
 
override Tuple< MenuSettings.MenuItem.ActionType, AbstractRenderObjectGetInputtingActionAndObjectWithChildern ()
 Gets the input action and its object along with its child elements. More...
 
Vector2 Vector2 Vector2 cellOffset GetPositionAt (int index)
 
void UpdatePositionAtMenuIndex ()
 Updates location information based on the current MenuIndex. More...
 
Vector2 GetPositionAtMenuIndex (int? index=null)
 Gets the drawing position based on the specified index (or current MenuIndex). More...
 
bool IsContentChanged (int page, int index)
 Determine whether the content has changed. More...
 
bool IsAutoMoveDirection (Nav nav)
 Determines whether the specified navigation direction is set as the automatic travel direction. More...
 
bool IsAutoMoveDirection (NextInputTypes inputType)
 Determines whether the specified input type is set as automatic movement direction. More...
 
- Public Member Functions inherited from Yukar.Engine.SpriteRenderObject
override Vector2 GetRenderPosition ()
 Get the rendering position More...
 
override bool ContainsRenderContent ()
 Check if the rendering is included More...
 
override void ChangeAnimationState (AnimationState animationState)
 Changing the animation state More...
 
Vector2 CalcRenderPosition (Vector2 inBasePosition, bool useScaleOffset=false)
 Calculate the rendering position More...
 
override void Release ()
 Set the parent element More...
 
override void Show ()
 indicate More...
 
override void ShowWithNotAnimation ()
 display without animation More...
 
override void Hide ()
 You want to hide More...
 
override void HideWithNotAnimation ()
 Hide without animation More...
 
void ResetAnimationProgress ()
 Reset the progress of a drawing animation More...
 
- Public Member Functions inherited from Yukar.Engine.AbstractRenderObject
 AbstractRenderObject ()
 Initializes a new instance of the AbstractRenderObject class. More...
 
 AbstractRenderObject (MenuSettings.MenuItem menuItem, bool isThumbnail)
 Initializes a new instance of the AbstractRenderObject class with the specified menu item and thumbnail flag. More...
 
 AbstractRenderObject (MenuSettings.MenuItem menuItem, Guid guid, bool isThumbnail)
 Initializes a new instance of the AbstractRenderObject class with the specified menu item, GUID, and thumbnail flag. More...
 
 AbstractRenderObject (MenuSettings.MenuItem menuItem, Guid guid, AbstractRenderObject parent, int insertIndex, bool isThumbnail)
 Initializes a new instance of the AbstractRenderObject class with the specified menu item, unique identifier, parent object, insertion index, and thumbnail flags. More...
 
 AbstractRenderObject (MenuSettings.MenuItem menuItem, Guid guid, AbstractRenderObject parent, int insertIndex, bool drawable, bool isThumbnail)
 Has the specified menu item, unique identifier, parent object, insert index, drawing state, and thumbnail state AbstractRenderObject クラスの新しいインスタンスを初期化します。 More...
 
 AbstractRenderObject (MenuSettings.MenuItem menuItem, Guid guid, AbstractRenderObject parent, int insertIndex, bool drawable, Vector2 position, bool isThumbnail)
 Initializes a new instance of the <see cref=\ More...
 
 AbstractRenderObject (MenuSettings.MenuItem menuItem, Guid guid, AbstractRenderObject parent, int insertIndex, bool drawable, Vector2 position, Vector2 size, bool isThumbnail)
 Initializes a new instance of the <see cref=\ More...
 
 AbstractRenderObject (MenuSettings.MenuItem menuItem, Guid guid, AbstractRenderObject parent, int insertIndex, bool drawable, Vector2 position, Vector2 size, Vector2 scale, bool isThumbnail)
 Initializes a new instance of the <see cref=\ More...
 
 AbstractRenderObject (MenuSettings.MenuItem menuItem, Guid guid, AbstractRenderObject parent, int insertIndex, bool drawable, Vector2 position, Vector2 size, Vector2 scale, float alpha, bool isThumbnail)
 Initializes a new instance of the <see cref=\ More...
 
 AbstractRenderObject (MenuSettings.MenuItem menuItem, Guid guid, AbstractRenderObject parent, int insertIndex, bool drawable, Vector2 position, Vector2 size, Vector2 scale, float alpha, bool isPreview, bool isThumbnail)
 Initializes a new instance of the <see cref=\ More...
 
 AbstractRenderObject (MenuSettings.MenuItem menuItem, Guid guid, AbstractRenderObject parent, int insertIndex, RenderProperty renderProperty, bool isThumbnail)
 The specified menu item, unique identifier, parent object, insert index, render property, Initializes a new instance of the <see cref=\ More...
 
 AbstractRenderObject (MenuSettings.MenuItem menuItem, Guid guid, AbstractRenderObject parent, int insertIndex, RenderProperty renderProperty, bool isPreview, bool isThumbnail)
 Initializes a new instance of the <see cref=\ More...
 
virtual Vector2 GetScaledSize ()
 Get size with scaling (also consider parent's scaling) More...
 
virtual Vector2 GetRenderPosition ()
 Get drawing position (considering parent's position as well) More...
 
virtual Vector2 GetParentRenderPositionOffset ()
 Get the parent's drawing position offset More...
 
Vector2 GetAllParentRenderPositionOffset ()
 Get the draw position offset for all parents More...
 
RectangleF RemoveParentOffsetF (RectangleF rect)
 Remove parent drawing position offset More...
 
virtual Vector2 GetRenderPositionWithoutParent ()
 Get own drawing position More...
 
virtual Vector2 GetRenderScale ()
 Get scaling (also consider parent's scaling) More...
 
virtual Vector2 GetRenderScaleWithoutParent ()
 Get own scaling More...
 
bool IsTouching (Vector2 position)
 whether you are touching More...
 
bool IsTouching (SharpKmyMath.Vector2 position)
 whether you are touching More...
 
bool IsTouchingCenter (Vector2 position, float centerLength)
 Whether you are touching the center or not More...
 
bool IsTouchingCenter (SharpKmyMath.Vector2 position, float centerLength)
 Whether you are touching the center or not More...
 
Tuple< bool, TouchCollider.EdgePositionIsTouchingEdge (Vector2 position, float edgeLength)
 Are you touching the edge? More...
 
Tuple< bool, TouchCollider.EdgePositionIsTouchingEdge (SharpKmyMath.Vector2 position, float edgeLength)
 Are you touching the edge? More...
 
bool IsTouchingAnything (Vector2 position)
 Whether the child is also touched More...
 
bool IsTouchingAnything (SharpKmyMath.Vector2 position)
 Whether the child is also touched More...
 
List< AbstractRenderObjectGetTouchingObjects (Vector2 position)
 Get touched drawing object including children More...
 
List< AbstractRenderObjectGetTouchingObjects (SharpKmyMath.Vector2 position)
 Get touched drawing object including children More...
 
bool CollideRectangle (Rectangle rectangle)
 whether it hits the rectangle More...
 
bool CollideRectangle (SharpKmyMath.Rectangle rectangle)
 whether it hits the rectangle More...
 
bool CoverRectangle (Rectangle rectangle)
 Whether it covers a rectangle More...
 
bool CoverRectangle (SharpKmyMath.Rectangle rectangle)
 Whether it covers a rectangle More...
 
virtual void SetPositionForPreview (Vector2 position)
 Position change function in preview More...
 
virtual Vector2 GetPositionForPreview ()
 Get position in preview More...
 
virtual Vector2 SetRenderPosition (Vector2 globalPosition)
 Set position in world coordinates More...
 
void SetOffsetMyPosition (Vector2 position)
 Set the position considering the initial position More...
 
virtual Vector2 GetOriginPosition ()
 Get origin position More...
 
virtual void ReCalculatePostion ()
 recalculate position More...
 
virtual void SetSize (Vector2 size)
 set position More...
 
virtual void SetAngle (float angle)
 set the angle More...
 
virtual void SetFlip (int flip)
 set inversion More...
 
bool IsDescendants (AbstractRenderObject obj)
 determine if descendant More...
 
bool IsAncestor (AbstractRenderObject obj)
 determine if ancestor More...
 
virtual LayoutObjectType GetRenderObjectType ()
 Get layout part type More...
 
bool IsContainer ()
 container or not More...
 
virtual bool ContainsRenderContent ()
 whether it contains something to draw More...
 
virtual void CreateBattleContent ()
 Generate elements for battle More...
 
virtual bool NeedDrawingOrigin ()
 Need to draw the origin? More...
 
virtual void ChangeAnimationState (SpriteRenderObject.AnimationState animationState)
 Force an animation state change More...
 
virtual void SetParent (AbstractRenderObject parent)
 set parent More...
 
bool AddChild (AbstractRenderObject child)
 add child More...
 
bool InsertChild (AbstractRenderObject child, int insertIndex)
 add child More...
 
virtual AbstractRenderObject Remove (MenuSettings.MenuItem menuItem)
 remove child

Parameters
menuItemSetting the layout to be deleted
Returns
true if it was possible to delete false if it did not exist in the child and could not be deleted
More...
 
bool RemoveChild (AbstractRenderObject child)
 remove child More...
 
void ClearChildren ()
 clear the child More...
 
AbstractRenderObject RemoveFromParent ()
 detach from parent More...
 
virtual RenderProperty CreateRenderProperty ()
 Create drawing information More...
 
void Update ()
 Update More...
 
virtual void UpdateTouchCollider (Vector2 addtionalContainerSize)
 Update hitbox More...
 
void Draw ()
 draw More...
 
virtual void DrawLineRect (Color color)
 draw a rectangle More...
 
void DrawTouchCollider ()
 Draw touch hit detection More...
 
virtual void Release ()
 Open More...
 
virtual void Show ()
 indicate More...
 
virtual void ShowWithNotAnimation ()
 display without animation More...
 
virtual void ShowContainer ()
 Show only containers More...
 
virtual void Hide ()
 You want to hide More...
 
virtual void HideWithNotAnimation ()
 Hide without animation More...
 
void HideNotUsingAnimation ()
 Alias for Old Name / HideWithNotAnimation More...
 
virtual void HideContainer ()
 Hide container only More...
 
virtual void Lock ()
 lock More...
 
virtual void Lock (AbstractRenderObject menuContiner)
 lock the specified menu container More...
 
bool IsLockedWithChildern ()
 whether it is locked More...
 
virtual void UnLock ()
 to unlock More...
 
void EnableDrawable (bool enable)
 Change drawable state More...
 
bool GetDrawable ()
 Gets whether it is drawable or not More...
 
virtual void EnableCanUse (bool enable)
 Change Enabled State More...
 
void AddDrawableInBattle (bool enable)
 Add control over drawing during battle More...
 
virtual Rectangle GetClipRectangle (Rectangle? currentClipRectangle)
 Get the rectangle to use for clipping More...
 
virtual bool GetClipRectangleSolo (out Rectangle val)
 Get the rectangle used for clipping (only by yourself) More...
 
virtual bool IsClipRecursive ()
 
virtual RectangleF GetRendererRectangleF ()
 Areas you draw (RectangleF) More...
 
virtual Rectangle GetRendererRectangle ()
 Areas you draw (Rectangle) More...
 
virtual RectangleF GetRendererRectangleWithChildrenF (bool useOffset=true)
 Areas that you and your child draw (RectangleF) More...
 
virtual Rectangle GetRendererRectangleWithChildren (bool useOffset=true)
 Areas that you and your child draw (Rectangle) More...
 
virtual Rectangle GetChildClipRectangle ()
 Areas that allow children to draw More...
 
virtual Rectangle GetClipAreaRectangle ()
 Areas that allow children to draw (including parental influence) More...
 
virtual bool IsClipChildren ()
 Do you want to clip the kids? More...
 
virtual bool IsClippingWithParent ()
 When clipping a child, do you also consider the parent's clip? More...
 
virtual bool IsClippingSelf ()
 Do you want to clip yourself? More...
 
virtual Vector2 GetWindowPadding ()
 get window margins More...
 
virtual Vector2 GetWindowRenderSize (Vector2 size)
 Calculate drawing size within window frame More...
 
virtual float GetRenderAlpha ()
 get transparency More...
 
virtual void SetRenderAlpha (float alpha)
 set transparency More...
 
virtual Vector2 GetAutoSizeMargin ()
 Get Auto Adjust Margins More...
 
AbstractRenderObject GetSameMenuItemObjectWithChildern (MenuSettings.MenuItem menuItem)
 Get objects of the same menu item More...
 
AbstractRenderObject GetNextRenderObject (NextInputTypes nextInputTypes)
 get an object that matches the input More...
 
virtual MenuSettings.MenuItem GetMenuItem ()
 get menu item More...
 
virtual MenuSettings.MenuItem GetMenuItemWithChildren ()
 get menu item More...
 
virtual MenuSettings.MenuItem.ActionType GetActionWithChildren (AbstractRenderObject menuContiner)
 Get the selected action of the specified menu container More...
 
virtual MenuSettings.MenuItem.ActionType GetActionWithChildern (int index)
 Get the child action of the menu container with the specified index More...
 
virtual Tuple< MenuSettings.MenuItem.ActionType, AbstractRenderObjectGetInputtingActionAndObjectWithChildern ()
 Get action with input More...
 
bool IsVisibleWithChildern ()
 whether it is showing More...
 
bool IsInOutAnimatingWithChildern ()
 whether it is in animation More...
 
virtual bool HasHideContainerOption ()
 Whether the selected container has a setting to hide the container when determined More...
 
virtual bool HasEventObject (Events layoutEvent)
 Whether the event contains special formatting More...
 
virtual bool HasSpecialText (SpecialTextRenderer.SpecialTexts specialText)
 Whether the specified content contains special formatting More...
 
virtual bool ContainLayoutType (MenuSettings.MenuItem.LayoutType layoutType)
 Does it contain the specified layout type? More...
 
virtual void ConfigureContentProperty (int maximumContent)
 Set maximum number of elements in menu container More...
 
virtual void ConfigureContentProperty (int maximumContent, AbstractRenderObject menuContiner)
 Set maximum number of elements in menu container More...
 
virtual void ConfigureContentProperty (int maximumContent, bool updateRenderPanelIndex)
 Set maximum number of elements in menu container More...
 
virtual void UpdateGameContent (GameContent gameContent, bool skipBattleReplace=false)
 Update game content More...
 
virtual void ResetSubMenuContainerRenderStatus ()
 Reset the drawing state of the subcontainer More...
 
virtual void ChangeSubMenuContainerRenderStatus (RenderStatus renderStatus, bool overrride)
 Change the drawing state of a subcontainer More...
 
virtual void ChangeBattleResultVisible (GameContent gameContent)
 Switch between displaying and hiding battle results More...
 
virtual AbstractRenderObject Copy (AbstractRenderObject parent)
 copy itself More...
 
virtual bool HaveDecidedByTouch ()
 Whether you pressed decision by touch More...
 
virtual Tuple< bool, int > ForceUpdateSubContainerTouch ()
 Force touch detection More...
 
virtual void SkipContentRendering (bool skip)
 Prevent container drawing (container children are still drawn) More...
 
virtual Tuple< int, bool > GetSelectIndexWithChildern ()
 Get the index number of the selected menu container More...
 
virtual Tuple< int, bool > GetSelectIndexWithChildern (AbstractRenderObject menuContiner)
 Get the index number of the selected menu container More...
 
virtual void SetSelectIndexWithChildern (int index)
 Change the selected position of the menu container More...
 
virtual Tuple< int, bool > GetMenuPageWithChildern ()
 Get page of menu container More...
 
virtual bool IsSelectedFirstPage ()
 Are you selecting the first page? More...
 
virtual bool IsSelectedLastPage ()
 Are you selecting the last page? More...
 
virtual bool PressNextPage ()
 Did you enter a move to the next page? More...
 
virtual bool PressPreviousPage ()
 Did you enter a move to the previous page? More...
 
virtual bool MovedPage ()
 Did you move the page (need to call update first) More...
 
virtual int GetMaximumSelectIndexWithChildern (AbstractRenderObject menuContiner)
 Get the maximum value of the selection index of the menu container More...
 
virtual void EnableSubContainerWithChildern (bool enable, int subContainerIndex)
 Change whether the subcontainer with the specified index number can be selected More...
 
virtual void EnableSubContainerPageIndexWithChildern (bool enable, int subContainerPageIndex)
 Change whether the subcontainer of the specified page number can be selected More...
 
virtual void EnableLoopPage (bool enable)
 Whether to loop keystroke paging More...
 
void EnableDrawSizeRect (bool drawable, bool drawSubContainer=false)
 Display ON/OFF of size rectangle More...
 
void SetSelectingRenderObject (Guid guid)
 Make the object with the specified guid selected More...
 
virtual void EnableSelectAll (bool enableSelectAll)
 select all More...
 
virtual void EnableSelectMulti (bool enableSelectMulti, int selectedCount)
 Select multiple items from the beginning More...
 
virtual void ForceBlinkSubContainer (bool forceUseBlinker, int subContainerIndex)
 Force the subcontainer with the specified index number to shine More...
 
virtual Guid GetSelectOpenLayoutGuid ()
 Get the guid of the selected open layout More...
 
virtual Guid GetLayoutStateGuid ()
 Get the guid of the selected open layout state More...
 
virtual void SetLayoutStateGuid (Guid guid)
 Sets the guid of the selected open layout state More...
 
virtual Tuple< bool, Vector2 > GetTextScaledSize ()
 get text size More...
 
virtual Tuple< bool, float > GetTextScale ()
 get text scale More...
 
virtual TextDrawer GetTextDrawer ()
 get text drawing object More...
 
List< TextContentTypeGetChildrenTextContentType ()
 get text content More...
 
virtual void GetTextContentType (List< TextContentType > result)
 get text content More...
 
virtual void EnableScrollText (bool enable)
 enable scrolling More...
 
virtual bool IsTextOutOfScreen ()
 whether the text is off screen More...
 
virtual void UpdateSpecialRenderObject ()
 Update specially formatted text More...
 
virtual void ShowNamePlate (int containerIndex)
 Show nameplate More...
 
virtual void HideNamePlate (int containerIndex)
 Hide nameplate More...
 
virtual void ForceHideNamePlate ()
 Force hide all nameplates More...
 
virtual float GetSelectSliderValueWithChildern ()
 Get the value of the selected slider More...
 
virtual float GetSliderValueWithChildern (int index)
 Get the value of the slider in the subcontainer with the specified index number More...
 
virtual float GetSliderMaximumValueWithChildern (int index)
 Gets the maximum value of the slider in the subcontainer with the specified index number More...
 
virtual void SetSliderValueWithChildern (float value, int index)
 Change the value of the slider in the subcontainer with the specified index number More...
 
virtual int GetSpinValueWithChildern (int index)
 Get the value of the spin in the subcontainer with the specified index number More...
 
virtual void SetSpinValueWithChildern (int value, int index)
 Change the value of the spin in the subcontainer with the specified index number More...
 
virtual void ChangeMenuSubContainerAmount (int amount, Vector2 menuSubContainerSize)
 Change the number of submenu containers More...
 
virtual TagPositions GetTagPosition ()
 Get tag position settings More...
 
virtual TagTelop GetTagTelop ()
 Get telop tag settings More...
 
virtual void EnableMessageSprite (bool enable)
 Enable sprites when waiting for messages More...
 
AbstractRenderObject GetRenderObjectWithPositionAnchorTag (string positionAnchorTag)
 Get an object with a special coordinate tag (return the first one found) More...
 
AbstractRenderObject GetRenderObjectWithPositionAnchorTag (PositionAnchorTags positionAnchorTag)
 Get an object with a special coordinate tag (return the first one found) More...
 
virtual AbstractRenderObject GetRenderObjectWithPositionAnchorTag (string positionAnchorTag, int menuIndex)
 Get an object with a special coordinate tag with the same container management number (return the first found object) More...
 
AbstractRenderObject GetRenderObjectWithPositionAnchorTag (PositionAnchorTags positionAnchorTag, int menuIndex)
 Get an object with a special coordinate tag with the same container management number (return the first found object) More...
 
List< AbstractRenderObjectGetRenderObjectsWithPositionAnchorTag (string positionAnchorTag)
 Get all objects with a special coordinate tag More...
 
List< AbstractRenderObjectGetRenderObjectsWithPositionAnchorTag (PositionAnchorTags positionAnchorTag)
 Get all objects with a special coordinate tag More...
 
virtual bool IsUpdateSubContainerRenderStatus ()
 Update the drawing status of a subcontainer More...
 
virtual bool IsUpdateScrollBarProperty ()
 Do I need to update scrollbar properties? More...
 
List< AbstractRenderObjectParseNodes ()
 return all nodes More...
 

Static Public Member Functions

static Vector2 GetOriginOffset (AbstractRenderObject parent, AbstractRenderObject self, MenuSettings.MenuItem.Origin origin)
 Calculates the offset of the specified origin position based on the size information of the parent and child objects. More...
 
- Static Public Member Functions inherited from Yukar.Engine.AbstractRenderObject
static RectangleF GetRectangleF (Rectangle rect)
 Conversion of Rectangle and RectangleF More...
 
static Rectangle GetRectangle (RectangleF rect)
 RectangleF and Rectangle Conversion More...
 
static Rectangle GetFullScreenRectangle ()
 Get a rectangle covering the full screen More...
 
static void PushClip (int x, int y, int w, int h, bool isRecursive=false)
 Convert to a rectangle that does not include parent offset More...
 
static bool PushClip (Rectangle clipRect, bool isRecursive=false, bool isForced=false)
 Convert to a rectangle that does not include parent offset More...
 
static void PushFullScreenClip ()
 Convert to a rectangle that covers the entire screen More...
 
static void PopClip ()
 Unclipping More...
 
static void ApplyCurrentMask ()
 Apply the current mask More...
 

Public Attributes

Vector2 position
 Calculates and retrieves the location information for the specified index. More...
 
Vector2 Vector2 margin
 
- Public Attributes inherited from Yukar.Engine.SpriteRenderObject
Vector2 defaultPosition
 
- Public Attributes inherited from Yukar.Engine.AbstractRenderObject
bool UseRenderPositionOffset = true
 
Vector2 renderPositionOffset = Vector2.Zero
 

Protected Member Functions

override void UpdateCallback ()
 Executes the menu container update process. More...
 
override bool DrawCallback ()
 Executes the drawing process of the menu subcontainer. More...
 
override void ResetLayoutProperties ()
 Resets layout properties to default values. More...
 
- Protected Member Functions inherited from Yukar.Engine.SpriteRenderObject
void ApplyDrawableWithAnimation (bool newDrawable)
 Apply animation to change the display state More...
 
override void UpdateCallback ()
 Update callback More...
 
override void DrawAll ()
 Draw all elements More...
 
Vector2 CalculateOriginOffset ()
 Calculate the origin offset More...
 
void ResetSpriteProperty (MenuSettings.MenuItem.Origin origin, Guid animationSpriteId, Guid appearAnimationMotionId, Guid disappearAnimationMotionId, Guid drawAnimationMotionId, Guid drawWhenNotFocsingAnimationMotionId, Guid decisionAnimationMotionId)
 Reset the sprite properties More...
 
void ResetDecisionAnimation (Guid animationSpriteId, Guid decisionAnimationMotionId)
 Reset decision animation More...
 
- Protected Member Functions inherited from Yukar.Engine.AbstractRenderObject
virtual void UpdateTouchRectCollider ()
 
void PushMask (Rectangle clipRect, Guid mask)
 Apply UI mask More...
 
void PushMaskUseSprite (Action< Vector2 > applyMask)
 Putting elements on the stack to use sprite-based UI masks More...
 
void PopMask ()
 
virtual Rectangle CreateIntersectRectangle (Rectangle rectangleA, Rectangle rectangleB)
 
AbstractRenderObject GetRenderObjectWithPositionAnchorTagCore (string positionAnchorTag, int? menuIndex=null)
 
void GetRenderObjectsWithPositionAnchorTag (List< AbstractRenderObject > result, string positionAnchorTag)
 
abstract void UpdateCallback ()
 Update process More...
 
abstract bool DrawCallback ()
 drawing process More...
 
virtual void AfterDrawCallback ()
 Post-drawing processing More...
 
virtual void DrawAll ()
 drawing process More...
 
void DebugDrawTouchCollider ()
 
virtual void ResetLayoutProperties ()
 Reset layout information More...
 
void ResetChildLayoutProperties ()
 Repopulate child layout information More...
 
void ResetFocusedTouchId ()
 
RenderObjectFlags GetRenderFlagHierarchyAnd ()
 
RenderObjectFlags GetRenderFlagHierarchyOr ()
 

Additional Inherited Members

- Public Types inherited from Yukar.Engine.SpriteRenderObject
enum  AnimationState {
  ShowPlaying , DrawPlaying , HidePlaying , DrawPlayingWhenNotFocsing ,
  DecisionPlaying , End
}
 animation state More...
 
- Public Types inherited from Yukar.Engine.AbstractRenderObject
enum  LayoutObjectType {
  None = -1 , MenuContainer , MenuSubContainer , RenderContainer ,
  SliderPanel , SpinPanel , TextPanel , ImagePanel ,
  Amount
}
 Layout part type More...
 
enum  NextInputTypes {
  NONE = -1 , UP , DOWN , RIGHT ,
  LEFT , AMOUNT
}
 The following input types More...
 
enum  PositionAnchorTags {
  TopLeft , Top , TopRight , Left ,
  Center , Right , BottomLeft , Bottom ,
  BottomRight , Balloon , FixedBalloon , MessageSprite ,
  ArrowSprite , TelopBackgroung , TelopBackgroungImage , TelopText ,
  TelopScrollText , Player , Enemy , DamagePosition
}
 special coordinate tag name More...
 
enum  TagPositions {
  None = -2 , ALL = -1 , TopLeft , Top ,
  TopRight , Left , Center , Right ,
  BottomLeft , Bottom , BottomRight , Balloon ,
  FixedBalloon
}
 Tag position More...
 
enum  TagTelop {
  None = -1 , TelopBackgroung , TelopBackgroungImage , TelopText ,
  TelopScrollText
}
 tag for telop More...
 
enum  Events {
  None = -1 , Message , Dialogue , DialogueImage ,
  TelopText , TelopImage , Inn , Selection ,
  InputStrings
}
 Event type More...
 
enum  TextContentType { NONE = -1 , EMPTY_TEXT , TEXT_OR_SPECIAL_TEXT }
 type of text content More...
 
enum  Nav {
  NONE = -1 , UP , DOWN , LEFT ,
  RIGHT , PREVIOUS , NEXT
}
 General purpose Direction, order More...
 
- Protected Attributes inherited from Yukar.Engine.SpriteRenderObject
Common.Catalog catalog
 
GameMain gameMain
 
AnimationState animationState
 
MenuSettings.MenuItem.Origin origin
 
Vector2 offset
 
EffectDrawer appearSpriteDrawer
 
EffectDrawer drawSpriteDrawer
 
EffectDrawer drawWhenNotFocsingSpriteDrawer
 
EffectDrawer disappearSpriteDrawer
 
EffectDrawer decisionSpriteDrawer
 
Vector2 defaultScale
 
float defaultAlpha
 
Vector2 defaultOffset
 
Vector2 centerOffset
 
bool isEndNotFocsingMotion = false
 
- Protected Attributes inherited from Yukar.Engine.AbstractRenderObject
Guid guid
 
bool canUse
 Whether to use (toggles between enabling and disabling only Drawble of MenuItem) More...
 
bool drawable
 Toggle whether to draw or not depending on the action More...
 
bool locked
 
Vector2 scale
 
float alpha
 
TouchRectCollider touchRectCollider
 
bool isPreview
 
bool isThumbnail
 
bool disable
 
Color? overrideRenderColor
 
bool useVariablePosition
 
Tuple< string, string > variableNames
 
GameContentParser.CachedResult variableParserResult
 
bool usePlayerPosition
 
Layout.AbstractController controller
 
int focusedTouchId = -1
 
- Properties inherited from Yukar.Engine.SpriteRenderObject
bool useEffectDrawer [get]
 Gets whether you are using the effect drawing feature More...
 
override bool IsInOutAnimating [get]
 Gets whether the display/hide animation is in progress More...
 
- Properties inherited from Yukar.Engine.AbstractRenderObject
AbstractRenderObject Parent [get, set]
 
List< AbstractRenderObjectChildren [get, set]
 
Vector2 Position [get, set]
 
Vector2 DefaultPosition [get, protected set]
 
Vector2 Size [get, set]
 
int Depth [get, set]
 
bool DrawableSizeRect [get]
 
Color? SizeRectColor [get, set]
 
int Index [get]
 
int MenuIndex [get, set]
 
int Top [get]
 
int Bottom [get]
 
int Left [get]
 
int Right [get]
 
bool CanUse [get]
 
bool CanUseWithParents [get]
 
bool IsVisibleBySwitchWithParents [get]
 
bool IsVisibleAndUsableWithParents [get]
 
MenuSettings.MenuItem MenuItem [get, set]
 
bool SkipDrawMySelf [get, set]
 
bool IsVisible [get, set]
 
bool SkipUpdateVisibleFromParent [get, set]
 
virtual bool IsInOutAnimating [get]
 
AbstractRenderObject Previous [get, set]
 
AbstractRenderObject Next [get, set]
 
AbstractRenderObject RightNext [get, set]
 
AbstractRenderObject LeftNext [get, set]
 
AbstractRenderObject UpNext [get, set]
 
AbstractRenderObject DownNext [get, set]
 
bool IsVisibleBySwitch [get]
 
virtual bool IsDrawable [get]
 

Detailed Description

Each selected item stored in the layout menu container

Member Function Documentation

◆ ChangeAnimationState()

override void Yukar.Engine.MenuSubContainer.ChangeAnimationState ( AnimationState  animationState)
virtual

Change animation state.

Parameters
animationStateAnimation state to change

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ ChangeSubMenuContainerRenderStatus()

override void Yukar.Engine.MenuSubContainer.ChangeSubMenuContainerRenderStatus ( RenderStatus  renderStatus,
bool  overrride 
)
virtual

Changes the drawing state of the submenu container.

Parameters
renderStatusdrawing state to set
overrrideWhether to force the state to be overwritten

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ ConfigureContentProperty() [1/2]

override void Yukar.Engine.MenuSubContainer.ConfigureContentProperty ( int  maximumContent)
virtual

Set content properties.

Parameters
maximumContentMaximum number of content

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ ConfigureContentProperty() [2/2]

override void Yukar.Engine.MenuSubContainer.ConfigureContentProperty ( int  maximumContent,
bool  updateRenderPanel 
)
virtual

Set content properties and update the render panel as needed.

Parameters
maximumContentMaximum number of content
updateRenderPanelWhether to update the render panel

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ Copy()

override AbstractRenderObject Yukar.Engine.MenuSubContainer.Copy ( AbstractRenderObject  parent)
virtual

Create a copy of this object.

Parameters
parentThe destination parent object
Returns
Copy object created

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ DrawCallback()

override bool Yukar.Engine.MenuSubContainer.DrawCallback ( )
protectedvirtual

Executes the drawing process of the menu subcontainer.

Returns
Returns <see langword=</returns>

Implements Yukar.Engine.AbstractRenderObject.

◆ EnableSubContainerWithChildern()

override void Yukar.Engine.MenuSubContainer.EnableSubContainerWithChildern ( bool  enable,
int  subPanelIndex 
)
virtual

Sets the enabled state of the subcontainer and its child elements at the specified index.

Parameters
enableWhether to enable or not
subPanelIndexTarget subpanel index

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ GetChildClipRectangle()

override Rectangle Yukar.Engine.MenuSubContainer.GetChildClipRectangle ( )
virtual

Computes and returns the child element's clipping rectangle.

Returns
子要素のクリッピング領域を表すRectangle。この矩形は Defined by the element's position and size, and associated <see May be adjusted based on cref=\

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ GetClipRectangle()

override Rectangle Yukar.Engine.MenuSubContainer.GetClipRectangle ( Rectangle?  currentClipRectAngle)
virtual

Taking into account the current object's position, size, parent clipping, and existing clipping rectangle, Calculates a valid clipping rectangle.

Parameters
currentClipRectAngle現在のクリッピング領域を表すオプションの矩形。指定された場合、このメソッドはこの矩形とオブジェクトの Calculates the intersection of clipping regions.
Returns
オブジェクトの有効なクリッピング領域を表すRectangle。該当する場合、これには May include the intersection of an object's clipping region and its parent's clipping region.

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ GetClipRectangleSolo()

override bool Yukar.Engine.MenuSubContainer.GetClipRectangleSolo ( out Rectangle  val)
virtual

Calculates the clipping rectangle of the current object and based on the associated window render object Adjust as necessary.

Parameters
valこのメソッドが戻るとき、計算されたクリッピング矩形が格納されます。このパラメータは It is passed uninitialized.
Returns
Returns <see langword=</returns>

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ GetDefaultDrawPosition()

Vector2 Yukar.Engine.MenuSubContainer.GetDefaultDrawPosition ( )

◆ GetInputtingActionAndObjectWithChildern()

override Tuple< MenuSettings.MenuItem.ActionType, AbstractRenderObject > Yukar.Engine.MenuSubContainer.GetInputtingActionAndObjectWithChildern ( )
virtual

Gets the input action and its object along with its child elements.

Returns
A tuple of detected action types and corresponding objects.

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ GetMenuItem()

override MenuSettings.MenuItem Yukar.Engine.MenuSubContainer.GetMenuItem ( )
virtual

Gets the menu item associated with this subcontainer.

Returns
The associated <see cref=</returns>

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ GetOriginOffset()

static Vector2 Yukar.Engine.MenuSubContainer.GetOriginOffset ( AbstractRenderObject  parent,
AbstractRenderObject  self,
MenuSettings.MenuItem.Origin  origin 
)
static

Calculates the offset of the specified origin position based on the size information of the parent and child objects.

Parameters
parentparent render object
selfchild render object
originOrigin position type
Returns
Calculated offset value

◆ GetPositionAt()

Vector2 Vector2 Vector2 cellOffset Yukar.Engine.MenuSubContainer.GetPositionAt ( int  index)

◆ GetPositionAtMenuIndex()

Vector2 Yukar.Engine.MenuSubContainer.GetPositionAtMenuIndex ( int?  index = null)

Gets the drawing position based on the specified index (or current MenuIndex).

Parameters
indexIndex to get position.
Returns
calculated drawing position

◆ GetPositionForPreview()

override Vector2 Yukar.Engine.MenuSubContainer.GetPositionForPreview ( )
virtual

Get position in preview

Returns

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ GetRenderObjectType()

override LayoutObjectType Yukar.Engine.MenuSubContainer.GetRenderObjectType ( )
virtual

Get layout part type

Returns
Layout part type

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ GetRenderPosition()

override Vector2 Yukar.Engine.MenuSubContainer.GetRenderPosition ( )
virtual

Get drawing position (considering parent's position as well)

Returns
drawing position

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ GetWindowPadding()

override Vector2 Yukar.Engine.MenuSubContainer.GetWindowPadding ( )
virtual

Gets the inner margin (padding) of the window.

Returns
ウィンドウの内側の余白を表すVector2。ウィンドウレンダーオブジェクトがある場合は Returns that padding value, or if not, the base class padding value.

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ GetWindowRenderSize()

override Vector2 Yukar.Engine.MenuSubContainer.GetWindowRenderSize ( Vector2  size)
virtual

Calculates the actual drawing size of the window based on the specified size.

Parameters
sizeStandard size
Returns
ウィンドウの実際の描画サイズを表すVector2。ウィンドウレンダーオブジェクトがある場合は Returns the size computed by the object, or if not, the size computed by the base class.

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ Hide()

override void Yukar.Engine.MenuSubContainer.Hide ( )
virtual

You want to hide

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ HideWithNotAnimation()

override void Yukar.Engine.MenuSubContainer.HideWithNotAnimation ( )
virtual

Hide without animation

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ IsAutoMoveDirection() [1/2]

bool Yukar.Engine.MenuSubContainer.IsAutoMoveDirection ( Nav  nav)

Determines whether the specified navigation direction is set as the automatic travel direction.

Parameters
navNavigation direction to determine
Returns
<see langword=</returns>

◆ IsAutoMoveDirection() [2/2]

bool Yukar.Engine.MenuSubContainer.IsAutoMoveDirection ( NextInputTypes  inputType)

Determines whether the specified input type is set as automatic movement direction.

Parameters
inputTypeInput type to judge
Returns
<see langword=</returns>

◆ IsClipChildren()

override bool Yukar.Engine.MenuSubContainer.IsClipChildren ( )
virtual

Determines whether a child element is clipped to the bounds of its parent.

Returns
子要素が親の境界にクリッピングされる場合はtrue、そうでなければ<see langword=\

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ IsClippingSelf()

override bool Yukar.Engine.MenuSubContainer.IsClippingSelf ( )
virtual

Determines whether the current menu item is set to use clipping.

Returns
<see langword=</returns>

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ IsClippingWithParent()

override bool Yukar.Engine.MenuSubContainer.IsClippingWithParent ( )
virtual

Determines whether the current menu item is clipping with its parent.

Returns
<see langword=</returns>

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ IsClipRecursive()

override bool Yukar.Engine.MenuSubContainer.IsClipRecursive ( )
virtual

Determines whether clipping is applied recursively.

Returns
<see langword=</returns>

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ IsContentChanged()

bool Yukar.Engine.MenuSubContainer.IsContentChanged ( int  page,
int  index 
)

Determine whether the content has changed.

Parameters
pagePage number to compare
indexIndex to be compared
Returns
<see langword=</returns>

◆ Lock()

override void Yukar.Engine.MenuSubContainer.Lock ( )
virtual

lock

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ Release()

override void Yukar.Engine.MenuSubContainer.Release ( )
virtual

Open

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ Remove()

override AbstractRenderObject Yukar.Engine.MenuSubContainer.Remove ( MenuSettings.MenuItem  menuItem)
virtual

remove child

Parameters
menuItemSetting the layout to be deleted
Returns
true if it was possible to delete false if it did not exist in the child and could not be deleted

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ ResetLayoutProperties()

override void Yukar.Engine.MenuSubContainer.ResetLayoutProperties ( )
protectedvirtual

Resets layout properties to default values.

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ ResetSubMenuContainerRenderStatus()

override void Yukar.Engine.MenuSubContainer.ResetSubMenuContainerRenderStatus ( )
virtual

Reset the drawing state of the subcontainer

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ SetParent()

override void Yukar.Engine.MenuSubContainer.SetParent ( AbstractRenderObject  parent)
virtual

Set the parent object.

Parameters
parentParent object

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ SetPositionForPreview()

override void Yukar.Engine.MenuSubContainer.SetPositionForPreview ( Vector2  position)
virtual

Set the position for preview.

Parameters
positionPosition to set

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ SetSelectIndexWithChildern()

override void Yukar.Engine.MenuSubContainer.SetSelectIndexWithChildern ( int  index)
virtual

Sets selection index along with child elements.

Parameters
indexSelection index to set

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ Show()

override void Yukar.Engine.MenuSubContainer.Show ( )
virtual

indicate

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ ShowWithNotAnimation()

override void Yukar.Engine.MenuSubContainer.ShowWithNotAnimation ( )
virtual

display without animation

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ UnLock()

override void Yukar.Engine.MenuSubContainer.UnLock ( )
virtual

to unlock

Reimplemented from Yukar.Engine.AbstractRenderObject.

◆ UpdateCallback()

override void Yukar.Engine.MenuSubContainer.UpdateCallback ( )
protectedvirtual

Executes the menu container update process.

Implements Yukar.Engine.AbstractRenderObject.

◆ UpdatePositionAtMenuIndex()

void Yukar.Engine.MenuSubContainer.UpdatePositionAtMenuIndex ( )

Updates location information based on the current MenuIndex.

Member Data Documentation

◆ margin

Vector2 Vector2 Yukar.Engine.MenuSubContainer.margin

◆ position

Vector2 Yukar.Engine.MenuSubContainer.position

Calculates and retrieves the location information for the specified index.

Parameters
indexindex to calculate position
Returns
Tuple of calculated position, margin and cell offset