Skip to content

Game.UI.Editor.LargeIconButton

Assembly: Game
Namespace: Game.UI.Editor

Type: public class

Base: Game.UI.Widgets.IconButton

Summary:
A simple, concrete subclass of IconButton used by the editor UI. LargeIconButton does not add new state or behavior; it exists to provide a distinct type for styling, layout, or prefab selection so the editor can present icon buttons with larger visuals or different defaults than the standard IconButton.


Fields

This class does not declare any private or public fields. Any state comes from the inherited IconButton base class.

Properties

This class does not declare new properties. It inherits all properties (icon, label, click handlers, styling-related properties, etc.) from Game.UI.Widgets.IconButton.

Constructors

  • public LargeIconButton()
    Implicit default constructor; no custom construction logic is defined in this type. Instances rely on base IconButton initialization and any post-construction setup applied by the UI system or code that creates the instance.

Methods

This class does not declare additional methods. All behavior (rendering, input handling, events) is provided by the IconButton base class.

Usage Example

// Create and configure a LargeIconButton in code
var largeBtn = new Game.UI.Editor.LargeIconButton();

// Configure inherited properties (names are illustrative — use the actual IconButton API)
largeBtn.Icon = someSprite;        // set the icon sprite
largeBtn.Tooltip = "Open panel";   // set tooltip text
largeBtn.OnClick += () => OpenPanel();

// Add to a parent UI container (API name may differ in your UI framework)
parentContainer.AddChild(largeBtn);

// Alternatively, if the UI system uses prefabs/styles, LargeIconButton can be used
// as the element type in XML/json layout or referenced by style selectors to apply
// larger visual assets without additional code.