Skip to content

Commit dd78fc8

Browse files
committed
Added Icon name property
1 parent ca76924 commit dd78fc8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Engine/UI/TERRA_Widgets.pas

+4
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@
218218

219219
UIIcon = Class(Widget)
220220
Protected
221+
_Icon:TERRAString;
221222
_Width:Integer;
222223
_Height:Integer;
223224
_Dual:Boolean;
@@ -234,6 +235,8 @@
234235

235236
Property Width:Integer Read _Width;
236237
Property Height:Integer Read _Height;
238+
239+
Property Icon:TERRAString Read _Icon;
237240
End;
238241

239242
UISprite = Class(Widget)
@@ -959,6 +962,7 @@
959962
Begin
960963
Inherited Create(Name, UI, Parent);
961964

965+
Self._Icon := Icon;
962966
Self._TabIndex := TabIndex;
963967

964968
Self.SetPosition(VectorCreate2D(X,Y));

0 commit comments

Comments
 (0)