|
225 | 225 | :name (text-id input-options) |
226 | 226 | :scale #t |
227 | 227 | :param3 (game-option-menu input-options)) |
228 | | - (new 'static 'game-option :option-type (game-option-type on-off) :name (text-id play-hints) :scale #t) |
| 228 | + (new 'static 'game-option :option-type (game-option-type on-off) :name (text-id play-hints) :scale #t |
| 229 | + :on-confirm |
| 230 | + (lambda () |
| 231 | + (set! (-> *setting-control* default play-hints) (-> *pc-settings* memcard-play-hints?)))) |
229 | 232 | (new 'static 'game-option :option-type (game-option-type on-off) :name (text-id subtitles) :scale #t) |
230 | 233 | (new 'static 'game-option :option-type (game-option-type on-off) :name (text-id hinttitles) :scale #t) |
231 | 234 | (new 'static 'game-option :option-type (game-option-type language) :name (text-id language) :scale #t) |
|
297 | 300 | :scale #t |
298 | 301 | :param1 0.0 |
299 | 302 | :param2 100.0 |
300 | | - :slider-step-size 1.0) |
| 303 | + :slider-step-size 1.0 |
| 304 | + :on-confirm |
| 305 | + (lambda ((val object)) |
| 306 | + (set! (-> *setting-control* default sfx-volume) (-> *pc-settings* memcard-volume-sfx)) |
| 307 | + (none))) |
301 | 308 | (new 'static |
302 | 309 | 'game-option |
303 | 310 | :option-type (game-option-type slider) |
304 | 311 | :name (text-id music-volume) |
305 | 312 | :scale #t |
306 | 313 | :param1 0.0 |
307 | 314 | :param2 100.0 |
308 | | - :slider-step-size 1.0) |
| 315 | + :slider-step-size 1.0 |
| 316 | + :on-confirm |
| 317 | + (lambda ((val object)) |
| 318 | + (set! (-> *setting-control* default music-volume) (-> *pc-settings* memcard-volume-music)) |
| 319 | + (none))) |
309 | 320 | (new 'static |
310 | 321 | 'game-option |
311 | 322 | :option-type (game-option-type slider) |
312 | 323 | :name (text-id speech-volume) |
313 | 324 | :scale #t |
314 | 325 | :param1 0.0 |
315 | 326 | :param2 100.0 |
316 | | - :slider-step-size 1.0) |
| 327 | + :slider-step-size 1.0 |
| 328 | + :on-confirm |
| 329 | + (lambda ((val object)) |
| 330 | + (set! (-> *setting-control* default dialog-volume) (-> *pc-settings* memcard-volume-dialog)) |
| 331 | + (none))) |
317 | 332 | ;(new 'static 'game-option :option-type (game-option-type on-off) :name (text-id music-fadein) :scale #t) |
318 | 333 | (new 'static 'game-option :option-type (game-option-type button) :name (text-id back) :scale #t))) |
319 | 334 |
|
|
371 | 386 | :scale #t |
372 | 387 | :option-disabled-func |
373 | 388 | (lambda () |
374 | | - (not (pc-current-controller-has-rumble?)))) |
| 389 | + (not (pc-current-controller-has-rumble?))) |
| 390 | + :on-confirm |
| 391 | + (lambda () |
| 392 | + (set! (-> *setting-control* default vibration) (-> *pc-settings* memcard-vibration?)))) |
375 | 393 | (new 'static |
376 | 394 | 'game-option |
377 | 395 | :option-type (game-option-type slider) |
|
2025 | 2043 | (set! (-> *progress-state* video-mode-choice) (get-video-mode)) |
2026 | 2044 | (set! (-> *progress-state* yes-no-choice) #f) |
2027 | 2045 | ;; set variable pointers |
2028 | | - (set! (-> *game-options* 1 value-to-modify) (&-> *setting-control* default play-hints)) |
| 2046 | + (set! (-> *game-options* 1 value-to-modify) (&-> *pc-settings* memcard-play-hints?)) |
2029 | 2047 | (set! (-> *game-options* 2 value-to-modify) (&-> *setting-control* default language)) |
2030 | | - (set! (-> *game-options-japan* 0 value-to-modify) (&-> *setting-control* default vibration)) |
2031 | | - (set! (-> *game-options-japan* 1 value-to-modify) (&-> *setting-control* default play-hints)) |
2032 | | - (set! (-> *game-options-demo* 0 value-to-modify) (&-> *setting-control* default vibration)) |
2033 | | - (set! (-> *game-options-demo* 1 value-to-modify) (&-> *setting-control* default play-hints)) |
| 2048 | + (set! (-> *game-options-japan* 0 value-to-modify) (&-> *pc-settings* memcard-vibration?)) |
| 2049 | + (set! (-> *game-options-japan* 1 value-to-modify) (&-> *pc-settings* memcard-play-hints?)) |
| 2050 | + (set! (-> *game-options-demo* 0 value-to-modify) (&-> *pc-settings* memcard-vibration?)) |
| 2051 | + (set! (-> *game-options-demo* 1 value-to-modify) (&-> *pc-settings* memcard-play-hints?)) |
2034 | 2052 | (set! (-> *graphic-options* 1 value-to-modify) (&-> *progress-state* aspect-ratio-choice)) |
2035 | 2053 | (set! (-> *sound-options* 0 value-to-modify) (&-> *setting-control* default sfx-volume)) |
2036 | 2054 | (set! (-> *sound-options* 1 value-to-modify) (&-> *setting-control* default music-volume)) |
2037 | 2055 | (set! (-> *sound-options* 2 value-to-modify) (&-> *setting-control* default dialog-volume)) |
2038 | 2056 | (set! (-> *yes-no-options* 0 value-to-modify) (&-> *progress-state* yes-no-choice)) |
2039 | 2057 | ;; our options! |
2040 | | - (set! (-> *game-options-pc* 1 value-to-modify) (&-> *setting-control* default play-hints)) |
| 2058 | + (set! (-> *game-options-pc* 1 value-to-modify) (&-> *pc-settings* memcard-play-hints?)) |
2041 | 2059 | (set! (-> *game-options-pc* 2 value-to-modify) (&-> *pc-settings* subtitles?)) |
2042 | 2060 | (set! (-> *game-options-pc* 3 value-to-modify) (&-> *pc-settings* hinttitles?)) |
2043 | 2061 | (set! (-> *game-options-pc* 4 value-to-modify) (&-> *setting-control* default language)) |
|
2057 | 2075 | (set! (-> *camera-options* 2 value-to-modify) (&-> *pc-settings* third-camera-h-inverted?)) |
2058 | 2076 | (set! (-> *camera-options* 3 value-to-modify) (&-> *pc-settings* third-camera-v-inverted?)) |
2059 | 2077 | ;; input options |
2060 | | - (set! (-> *controller-options* 1 value-to-modify) (&-> *setting-control* default vibration)) |
| 2078 | + (set! (-> *controller-options* 1 value-to-modify) (&-> *pc-settings* memcard-vibration?)) |
2061 | 2079 | (set! (-> *controller-options* 2 value-to-modify) (&-> *pc-settings* stick-deadzone)) |
2062 | 2080 | (set! (-> *controller-options* 3 value-to-modify) (&-> *pc-settings* ignore-controller-win-unfocused?)) |
2063 | 2081 | (set! (-> *controller-options* 4 value-to-modify) (&-> *pc-settings* controller-led-hp?)) |
|
2075 | 2093 | (set! (-> *gfx-ps2-options* 2 value-to-modify) (&-> *pc-settings* ps2-parts?)) |
2076 | 2094 | (set! (-> *gfx-ps2-options* 3 value-to-modify) (&-> *pc-settings* force-envmap?)) |
2077 | 2095 | (set! (-> *gfx-ps2-options* 4 value-to-modify) (&-> *pc-settings* ps2-actor-vis?)) |
2078 | | - (set! (-> *sound-options-pc* 0 value-to-modify) (&-> *setting-control* default sfx-volume)) |
2079 | | - (set! (-> *sound-options-pc* 1 value-to-modify) (&-> *setting-control* default music-volume)) |
2080 | | - (set! (-> *sound-options-pc* 2 value-to-modify) (&-> *setting-control* default dialog-volume)) |
| 2096 | + (set! (-> *sound-options-pc* 0 value-to-modify) (&-> *pc-settings* memcard-volume-sfx)) |
| 2097 | + (set! (-> *sound-options-pc* 1 value-to-modify) (&-> *pc-settings* memcard-volume-music)) |
| 2098 | + (set! (-> *sound-options-pc* 2 value-to-modify) (&-> *pc-settings* memcard-volume-dialog)) |
2081 | 2099 | (dotimes (i (1- (-> *cheats* length))) |
2082 | 2100 | (set! (-> *cheats* i value-to-modify) (&-> *progress-carousell* symbol-backup))) |
2083 | 2101 | ;(set! (-> *sound-options-pc* 3 value-to-modify) (&-> *pc-settings* music-fadein?)) |
|
0 commit comments