Пример #1
0
        public override void Initialize()
        {
            Handler = Scene.FindComponentByType <GUIHandler>();

            bounds = new Rectangle(-0.5f, -0.5f, 1f, 1f);
            UpdateWorldBounds();

            InteractionState = GUIComponentState.None;
            dock             = GUIDock.Centered;
        }
Пример #2
0
        public ITexture Get(GUIComponentState state)
        {
            switch (state)
            {
            case GUIComponentState.Hovered:
                return(Hovered);

            case GUIComponentState.Clicked:
                return(Clicked);

            default:
                return(Default);
            }
        }