AngeliA
Search Results for

    Show / Hide Table of Contents

    Struct GUIHorizontalScrollScope

    Scope that make GUI elements inside scrolls

    Implements
    IDisposable
    Examples
    using AngeliA;
    
    namespace AngeliaGame;
    
    public class Example {
    
    	static int ScrollPos;
    
    	[OnGameUpdate]
    	internal static void OnGameUpdate () {
    
    		var cameraRect = Renderer.CameraRect;
    
    		using (var scroll = new GUIHorizontalScrollScope(cameraRect, ScrollPos, 0, 4096)) {
    			ScrollPos = scroll.PositionX;
    
    			Renderer.Draw(BuiltInSprite.ICON_ENTITY, cameraRect.x + 1024, cameraRect.y, 0, 0, 0, 512, 512);
    			Renderer.Draw(BuiltInSprite.ICON_ENTITY, cameraRect.x + 1024, cameraRect.y + 1024, 0, 0, 0, 512, 512);
    			Renderer.Draw(BuiltInSprite.ICON_ENTITY, cameraRect.x + 1024, cameraRect.y + 2048, 0, 0, 0, 512, 512);
    
    		}
    
    	}
    
    }

    Constructors

    GUIHorizontalScrollScope(IRect, int, int, int, int)

    Scope that make GUI elements inside scrolls

    Declaration
    public GUIHorizontalScrollScope(IRect rect, int positionX, int min = -2147483648, int max = 2147483647, int layer = 7)

    Fields

    Scope

    Declaration
    public readonly GUIScrollScope Scope

    Properties

    PositionX

    Declaration
    public int PositionX { get; }

    Methods

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()
    Back to top ๐Ÿ„๐Ÿฆโ€โฌ›๐Ÿงฆ๐Ÿˆ๐ŸŽƒ๐Ÿ’“๐ŸŒนโ˜•๐Ÿดโ€โ˜ ๏ธ๐Ÿค