diff options
| author | physcik <mynameisgennadiy@vk.com> | 2026-03-27 15:38:35 +0500 |
|---|---|---|
| committer | physcik <mynameisgennadiy@vk.com> | 2026-03-27 15:38:35 +0500 |
| commit | 34e63154d2c683c6f30b3d0d524b1e11331ea27e (patch) | |
| tree | 9350305338c115e81ad51c00fc1c83b62ffccda5 /engine/UI/Label.go | |
| parent | 6f1a05cfa4d9323b55dc4da3221d10c58c2327d4 (diff) | |
Added background elements to grid row and column
Diffstat (limited to 'engine/UI/Label.go')
| -rw-r--r-- | engine/UI/Label.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/UI/Label.go b/engine/UI/Label.go index 64bb8d0..53157d9 100644 --- a/engine/UI/Label.go +++ b/engine/UI/Label.go @@ -53,10 +53,6 @@ func (base *Label) Init(menu *Menu) { func (base *Label) Destroy() { } -func (base *Label) GetBackgroundElement() UIElement { - return base.BackgroundElement -} - func (base *Label) GetOccupationWeight() float32 { return base.Weight } @@ -80,6 +76,10 @@ func (base *Label) GetStyle() *Style { return &base.Style } +func (base *Label) GetBackgroundElement() UIElement { + return base.BackgroundElement +} + // Returns the size of the text that will not overflow in the side func (base *Label) getTextHeight(position *rl.Rectangle) int32 { var width = position.Width - 2 * *base.Style.Padding |
