@@ -77,11 +77,6 @@ return function(Iris: Types.Iris)
77
77
local ImageTransparencyState = Iris .State (Iris ._config .ImageTransparency )
78
78
Iris .InputColor4 ({ " Image Tint" }, { color = ImageColorState , transparency = ImageTransparencyState })
79
79
80
- Iris .PushConfig ({
81
- ImageColor = ImageColorState :get (),
82
- ImageTransparency = ImageTransparencyState :get (),
83
- })
84
-
85
80
Iris .Combo ({ " Asset" }, { index = AssetState })
86
81
do
87
82
Iris .Selectable ({ " Robux Small" , " rbxasset://textures/ui/common/robux.png" }, { index = AssetState })
@@ -105,32 +100,51 @@ return function(Iris: Types.Iris)
105
100
Iris .End ()
106
101
Iris .Checkbox ({ " Pixelated" }, { isChecked = PixelatedCheckState })
107
102
103
+ Iris .PushConfig ({
104
+ ImageColor = ImageColorState :get (),
105
+ ImageTransparency = ImageTransparencyState :get (),
106
+ })
108
107
Iris .Image ({ AssetState :get (), SizeState :get (), RectState :get (), ScaleTypeState :get (), PixelatedState :get () })
108
+ Iris .PopConfig ()
109
109
110
110
Iris .SeparatorText ({ " Tile" })
111
- local TileState = Iris .State (UDim2 .fromScale (1 , 1 ))
111
+ local TileState = Iris .State (UDim2 .fromScale (0.5 , 0.5 ))
112
112
Iris .SliderUDim2 ({ " Tile Size" , nil , nil , UDim2 .new (1 , 240 , 1 , 240 ) }, { number = TileState })
113
113
114
+ Iris .PushConfig ({
115
+ ImageColor = ImageColorState :get (),
116
+ ImageTransparency = ImageTransparencyState :get (),
117
+ })
114
118
Iris .Image ({ " rbxasset://textures/grid2.png" , SizeState :get (), nil , Enum .ScaleType .Tile , PixelatedState :get (), TileState :get () })
119
+ Iris .PopConfig ()
115
120
116
121
Iris .SeparatorText ({ " Slice" })
117
122
local SliceScaleState = Iris .State (1 )
118
123
Iris .SliderNum ({ " Image Slice Scale" , 0.1 , 0.1 , 5 }, { number = SliceScaleState })
119
124
125
+ Iris .PushConfig ({
126
+ ImageColor = ImageColorState :get (),
127
+ ImageTransparency = ImageTransparencyState :get (),
128
+ })
120
129
Iris .Image ({ " rbxasset://textures/ui/chatBubble_blue_notify_bkg.png" , SizeState :get (), nil , Enum .ScaleType .Slice , PixelatedState :get (), nil , Rect .new (12 , 12 , 56 , 56 ), 1 }, SliceScaleState :get ())
130
+ Iris .PopConfig ()
121
131
122
132
Iris .SeparatorText ({ " Image Button" })
123
133
local count = Iris .State (0 )
134
+
124
135
Iris .SameLine ()
125
136
do
137
+ Iris .PushConfig ({
138
+ ImageColor = ImageColorState :get (),
139
+ ImageTransparency = ImageTransparencyState :get (),
140
+ })
126
141
if Iris .ImageButton ({ " rbxasset://textures/AvatarCompatibilityPreviewer/add.png" , UDim2 .fromOffset (20 , 20 ) }).clicked () then
127
142
count :set (count .value + 1 )
128
143
end
144
+ Iris .PopConfig ()
129
145
130
146
Iris .Text ({ ` Click count: {count.value}` })
131
147
end
132
-
133
- Iris .PopConfig ()
134
148
Iris .End ()
135
149
end
136
150
Iris .End ()
0 commit comments