forked from Courseplay/courseplay
-
Notifications
You must be signed in to change notification settings - Fork 1
/
inputCourseNameDialogue.xml
96 lines (79 loc) · 2.77 KB
/
inputCourseNameDialogue.xml
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
91
92
93
94
95
96
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<GUI onOpen="onOpen" onClose="onClose" onEnterPressed="onEnterPressed">
<GuiElement name="background" type="bitmap" position="0px 300px" size="512px 128px" screenAlign="middleCenter" positionOrigin="middleCenter" imageFilename="dataS2/menu/background01.png" MOD_imageDir="img/inputCourseNameGUI/" MOD_imageFilename="inputCourseName_bg.png" imageColor="1 1 1 1">
<!-- Title text -->
<GuiElement
name="titleText"
type="text"
profile="defaultTextWhite"
onCreate="onCreateTitleText"
textSize="14px"
textBold="false"
textColor="0.95 0.95 0.95 1"
text="$CP_COURSEPLAY_COURSE_NAME,$CP_COURSEPLAY_FOLDER_NAME,$CP_COURSEPLAY_FILTER_COURSES"
screenAlign="topLeft" positionOrigin="topLeft" position="8px+20px -8px-22px"
/>
<GuiElement
name="textInput" type="textInput" text=""
screenAlign="topLeft" positionOrigin="topLeft" position="8px+32px -8px-13px"
size="432px 40px"
onCreate="onCreateTextInput" onEnterPressed="onEnterPressed" onTextChanged="onTextChanged" onIsUnicodeAllowed="onIsUnicodeAllowed"
maxInputTextWidth="432px"
maxCharacters="25"
focusId="1"
focusChangeRight="2"
focusChangeBottom="2"
focusInit="onOpen"
textColor="0.12 0.12 0.12 1"
textSelectedColor="0.12 0.12 0.12 1"
textSize="18px"
textBold="false"
alignment="left"
cursorFilename="g_baseUIFilename"
cursorUVs="176px 457px 208px 489px"
cursorOffset="4px 0px"
/>
<!-- Cancel button -->
<GuiElement
name="cancelButton"
type="button"
profile="defaultButton"
screenAlign="topLeft" positionOrigin="topLeft" position="412px -80px"
size="30px 30px"
onCreate="onCreateCancelButton"
onClick="onCancelClick"
focusId="2"
focusChangeLeft="1"
focusChangeRight="3"
focusChangeTop="1"
imageColor="1 1 1 1"
imageFocusedColor="0.4549 0 0 1"
imageDisabledColor="1 1 1 0.15"
fadeInTime="0.2"
fadeOutTime="0.2"
MOD_imageDir="img/inputCourseNameGUI/"
MOD_imageFilename="inputCourseName_cancelButton_normal.png"
/>
<!-- Save button -->
<GuiElement
name="saveButton"
type="button"
profile="defaultButton"
screenAlign="topLeft" positionOrigin="topLeft" position="454px -80px"
size="30px 30px"
onCreate="onCreateSaveButton"
onClick="onSaveClick"
focusId="3"
focusChangeLeft="2"
focusChangeTop="1"
disabled="true"
imageColor="1 1 1 1"
imageFocusedColor="0.1686 0.8039 0.0392 1"
imageDisabledColor="1 1 1 0.15"
fadeInTime="0.2"
fadeOutTime="0.2"
MOD_imageDir="img/inputCourseNameGUI/"
MOD_imageFilename="$course:inputCourseName_saveButton_normal.png,$folder:inputCourseName_saveButton_normal.png,$filter:inputCourseName_searchButton_normal.png"
/>
</GuiElement>
</GUI>