-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFormBuilderScript.LUA
More file actions
92 lines (73 loc) · 3.46 KB
/
Copy pathFormBuilderScript.LUA
File metadata and controls
92 lines (73 loc) · 3.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
--Create Form
ShiversPotScrambleInterface = createForm()
control_setSize(ShiversPotScrambleInterface, 400,400)
control_setCaption(ShiversPotScrambleInterface, "Shivers Randomizer")
setProperty(ShiversPotScrambleInterface , "BiDiMode", "bdLeftToRight")
setProperty(ShiversPotScrambleInterface, "Position", "poScreenCenter")
x,y = control_getSize(ShiversPotScrambleInterface)
--Create Buttons
btnHelp = createButton(ShiversPotScrambleInterface)
control_setSize(btnHelp, 50, 20)
control_setCaption(btnHelp, "Help!")
control_setPosition(btnHelp, x-60,10)
control_onClick(btnHelp,btnHelpClick)
btnAttach = createButton(ShiversPotScrambleInterface)
control_setSize(btnAttach, 120, 20)
control_setCaption(btnAttach, "Attach to Shivers")
control_setPosition(btnAttach, 10,30)
control_onClick(btnAttach,btnAttachClick)
btnScramble = createButton(ShiversPotScrambleInterface)
control_setSize(btnScramble, 80, 20)
control_setCaption(btnScramble, "Scramble")
control_setPosition(btnScramble, 10,360)
control_onClick(btnScramble,btnScrambleClick)
--Create Check Boxes
cbExtraLocations = createCheckBox(ShiversPotScrambleInterface)
control_setCaption(cbExtraLocations, "Include Eagles Nest,Library Cabinet, and Tiki Hut")
control_setPosition(cbExtraLocations, 30,215)
control_onClick(cbExtraLocations, cbExtraLocationsClick)
cbExcludeLyre = createCheckBox(ShiversPotScrambleInterface)
control_setCaption(cbExcludeLyre, "Exclude Lyre")
control_setPosition(cbExcludeLyre, 30,235)
control_onClick(cbExcludeLyre, cbExcludeLyreClick)
control_setEnabled(cbExcludeLyre, false)
cbRaceMode = createCheckBox(ShiversPotScrambleInterface)
control_setCaption(cbRaceMode, "RaceMode")
control_setPosition(cbRaceMode, 30,275)
control_onClick(cbRaceMode, cbRaceModeClick)
cbOpenRedDoor = createCheckBox(ShiversPotScrambleInterface)
control_setCaption(cbOpenRedDoor, "Red Door Open")
control_setPosition(cbOpenRedDoor, 30,295)
control_onClick(cbOpenRedDoor, cbOpenRedDoorClick)
control_setEnabled(cbOpenRedDoor, false)
cbCatagoryFirstToFive = createCheckBox(ShiversPotScrambleInterface)
control_setCaption(cbCatagoryFirstToFive, "First to the Only Five")
control_setPosition(cbCatagoryFirstToFive, 30,315)
control_onClick(cbCatagoryFirstToFive, cbCatagoryFirstToFiveClick)
control_setEnabled(cbCatagoryFirstToFive, false)
--Create Text Boxes
txtboxSeed = createEdit(ShiversPotScrambleInterface)
control_setPosition(txtboxSeed, 10,120)
--Create Labels
lblAttachStatus1 = createLabel(ShiversPotScrambleInterface)
control_setCaption(lblAttachStatus1, "Status:")
control_setPosition(lblAttachStatus1, 10,10)
lblAttachStatus2 = createLabel(ShiversPotScrambleInterface)
control_setCaption(lblAttachStatus2, "Launch shivers and then attach")
control_setPosition(lblAttachStatus2, 50,10)
lblSeed = createLabel(ShiversPotScrambleInterface)
control_setCaption(lblSeed, "Seed, leave blank for random seed, numberes only:")
control_setPosition(lblSeed, 10,100)
lblSettings = createLabel(ShiversPotScrambleInterface)
control_setCaption(lblSettings, "Settings:")
control_setPosition(lblSettings, 10,200)
lblScrambleNumber1 = createLabel(ShiversPotScrambleInterface)
control_setCaption(lblScrambleNumber1, "Scramble Number:")
control_setPosition(lblScrambleNumber1, 10,380)
lblScrambleNumber2 = createLabel(ShiversPotScrambleInterface)
control_setCaption(lblScrambleNumber2, "0")
control_setPosition(lblScrambleNumber2, 120,380)
ShiversPotScrambleInterface.onClose = function (sender)
closeCE()
return caHide --Possible options: caHide, caFree, caMinimize, caNone
end