Skip to content

Commit b71da18

Browse files
committed
remove testing code from helloIris
1 parent ea19e7c commit b71da18

File tree

1 file changed

+1
-69
lines changed

1 file changed

+1
-69
lines changed

src/client/helloIris.client.lua

Lines changed: 1 addition & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,4 @@
11
local StarterPlayerScripts = game.StarterPlayer.StarterPlayerScripts
22
local Iris = require(StarterPlayerScripts.Client.Iris).Init()
33

4-
Iris:Connect(Iris.ShowDemoWindow)
5-
6-
Iris:Connect(function()
7-
-- stylua: ignore start
8-
Iris.Window({ "Testing Window" })
9-
10-
if Iris.Button({ "Disable Iris" }).clicked() then
11-
Iris.Disabled = true
12-
end
13-
14-
Iris.InputVector3({ "Dynamic Formatting", 0.05, 0, 1 })
15-
16-
local NumberState = Iris.State(0)
17-
local Vector2State = Iris.State(Vector2.zero)
18-
local Vector3State = Iris.State(Vector3.zero)
19-
local UDimState = Iris.State(UDim.new())
20-
local UDim2State = Iris.State(UDim2.new())
21-
local RectState = Iris.State(Rect.new(0, 0, 960, 960))
22-
23-
Iris.Text({ tostring(NumberState:get()) })
24-
Iris.Text({ tostring(Vector2State:get()) })
25-
Iris.Text({ tostring(Vector3State:get()) })
26-
Iris.Text({ tostring(UDimState:get()) })
27-
Iris.Text({ tostring(UDim2State:get()) })
28-
Iris.Text({ tostring(RectState:get()) })
29-
30-
local UseFloats = Iris.State(false)
31-
local UseHSV = Iris.State(false)
32-
local sharedColor = Iris.State(Color3.new())
33-
local transparency = Iris.State(0)
34-
Iris.SliderNum({ "Transparency", 0.01, 0, 1 }, { number = transparency })
35-
Iris.InputColor3({ "InputColor3", UseFloats:get(), UseHSV:get() }, { color = sharedColor })
36-
Iris.InputColor4({ "InputColor4", UseFloats:get(), UseHSV:get() }, { color = sharedColor, transparency = transparency })
37-
Iris.SameLine()
38-
Iris.Text({ sharedColor:get():ToHex() })
39-
Iris.Checkbox({ "Use Floats" }, { isChecked = UseFloats })
40-
Iris.Checkbox({ "Use HSV" }, { isChecked = UseHSV })
41-
Iris.End()
42-
43-
Iris.CollapsingHeader("Input")
44-
Iris.InputNum({ "InputNum" }, { number = NumberState})
45-
Iris.InputVector2({ "InputVector2" }, { number = Vector2State})
46-
Iris.InputVector3({ "InputVector3" }, { number = Vector3State})
47-
Iris.InputUDim({ "InputUDim" }, { number = UDimState})
48-
Iris.InputUDim2({ "InputUDim2" }, { number = UDim2State})
49-
Iris.InputRect({ "InputRect" }, { number = RectState})
50-
Iris.End()
51-
52-
Iris.CollapsingHeader("Drag")
53-
Iris.DragNum({ "DragNum" }, { number = NumberState})
54-
Iris.DragVector2({ "DragVector2" }, { number = Vector2State})
55-
Iris.DragVector3({ "DragVector3" }, { number = Vector3State})
56-
Iris.DragUDim({ "DragUDim" }, { number = UDimState})
57-
Iris.DragUDim2({ "DragUDim2" }, { number = UDim2State})
58-
Iris.DragRect({ "DragRect" }, { number = RectState})
59-
Iris.End()
60-
61-
Iris.CollapsingHeader("Slider")
62-
Iris.SliderNum({ "SliderNum" }, { number = NumberState})
63-
Iris.SliderVector2({ "SliderVector2" }, { number = Vector2State})
64-
Iris.SliderVector3({ "SliderVector3" }, { number = Vector3State})
65-
Iris.SliderUDim({ "SliderUDim" }, { number = UDimState})
66-
Iris.SliderUDim2({ "SliderUDim2" }, { number = UDim2State})
67-
Iris.SliderRect({ "SliderRect" }, { number = RectState})
68-
Iris.End()
69-
70-
Iris.End()
71-
-- stylua: ignore end
72-
end)
4+
Iris:Connect(Iris.ShowDemoWindow)

0 commit comments

Comments
 (0)