This repository was archived by the owner on May 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Expand file tree Collapse file tree 3 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ <h3>Addon creation</h3>
63
63
< div id ="addonjsonPrompt ">
64
64
< p > Do you already have a addon.json?</ p >
65
65
< div >
66
- < button class ="button_normal transition_button removeBackOption " data-divtoshow ="#jsonCreator " data-divtohide ="#addonjsonPrompt "> No</ button >
66
+ < button class ="button_normal transition_button removeBackOption " data-divtoshow ="#jsonCreator " data-divtohide ="#addonjsonPrompt " data-resize =" 500, 300 " > No</ button >
67
67
< button class ="button_normal transition_button removeBackOption " data-divtoshow ="#gmaPrep " data-divtohide ="#addonjsonPrompt "> Yes</ button >
68
68
</ div >
69
69
</ div >
@@ -134,12 +134,16 @@ <h3>Addon creation</h3>
134
134
</ div >
135
135
</ div >
136
136
< div class ="next_prompt ">
137
- < button id ="jsonAddonValidate " class ="transition_button " style ="background-color: #56bd56; color: white; " data-divtoshow ="" data-divtohide =""> Next</ button >
137
+ < button id ="jsonAddonValidate " class ="transition_button " style ="background-color: #56bd56; color: white; " data-divtoshow ="#gmaPrep " data-divtohide ="#jsonCreator " data-resize =" 500, 250 "> Next</ button >
138
138
</ div >
139
139
</ div >
140
140
</ div >
141
141
< div id ="gmaPrep ">
142
- < p > GMA creation prep</ p >
142
+ < p > Created < span style ="font-weight: 700 "> addon.json</ span > !</ p >
143
+ < h3 > Create GMA for uploading to the Workshop?</ h3 >
144
+ < button class ="button_normal transition_button " data-divtohide ="" data-divtoshow ="" data-resize =""> Yes</ button >
145
+ < button class ="button_normal transition_button " data-divtohide ="" data-divtoshow ="" data-resize =""> No</ button >
146
+ <!-- <img src="src/img/loading.gif" style="display: block; margin-left: auto; margin-right: auto; width: 64px;" alt=""> -->
143
147
</ div >
144
148
</ div >
145
149
</ div >
Original file line number Diff line number Diff line change @@ -117,9 +117,6 @@ $(document).ready(() => {
117
117
$ ( '#addonDirCheck' ) . css ( 'background-color' , '#56bd56' )
118
118
$ ( '#addonDirCheck' ) . prop ( 'disabled' , false )
119
119
$ ( '#addonDirCheck' ) . css ( 'cursor' , 'pointer' )
120
- win . setBounds ( {
121
- height : 300 ,
122
- } )
123
120
} )
124
121
125
122
$ ( '#dir_prompt_next button' ) . click ( ( ) => {
@@ -156,16 +153,25 @@ $(document).ready(() => {
156
153
var target = event . target
157
154
var divToGoBack = $ ( target ) . data ( 'divtohide' )
158
155
var divToShow = $ ( target ) . data ( 'divtoshow' )
159
- goBack ( divToGoBack , divToShow )
156
+ if ( $ ( target ) . data ( 'resize' ) != null ) {
157
+ var resizeInfo = JSON . parse ( "[" + $ ( target ) . data ( 'resize' ) + "]" ) ;
158
+ }
159
+ goBack ( divToGoBack , divToShow , resizeInfo )
160
160
} )
161
161
162
162
$ ( '.removeBackOption' ) . click ( ( ) => {
163
163
$ ( '#back_button_addon_creation' ) . fadeOut ( ) ;
164
164
} )
165
165
166
166
// General function for transitioning between div tags
167
- function goBack ( divToFadeOut , divToFadeIn ) {
167
+ function goBack ( divToFadeOut , divToFadeIn , resizeInfo ) {
168
168
$ ( divToFadeOut ) . fadeOut ( ( ) => {
169
+ if ( resizeInfo != null ) {
170
+ win . setBounds ( {
171
+ width : resizeInfo [ 0 ] ,
172
+ height : resizeInfo [ 1 ]
173
+ } )
174
+ }
169
175
$ ( divToFadeIn ) . fadeIn ( ) ;
170
176
} )
171
177
}
You can’t perform that action at this time.
0 commit comments