2023-12-31 16:29:17 -06:00
|
|
|
'use strict'
|
|
|
|
|
|
|
|
|
|
function Settings () {
|
|
|
|
|
this.element = null
|
|
|
|
|
this.theme_button = null
|
|
|
|
|
|
|
|
|
|
this.install = function () {
|
|
|
|
|
this.element = document.createElement('div')
|
|
|
|
|
this.element.setAttribute('class', 'settings')
|
|
|
|
|
|
|
|
|
|
this.theme_button = document.createElement('select')
|
|
|
|
|
this.theme_button.setAttribute('class', 'theme button')
|
|
|
|
|
this.theme_button.innerHTML = '<option value=\"theme\">Theme (default)</option>'
|
2024-01-07 11:12:05 -06:00
|
|
|
this.theme_button.innerHTML += '<option value=\"apollo\">Apollo</option>'
|
2024-01-07 11:36:21 -06:00
|
|
|
this.theme_button.innerHTML += '<option value=\"battlestation\">Battlestation</option>'
|
2024-01-07 11:45:58 -06:00
|
|
|
this.theme_button.innerHTML += '<option value=\"berry\">Berry</option>'
|
2024-01-07 12:21:35 -06:00
|
|
|
this.theme_button.innerHTML += '<option value=\"bigtime\">Big Time</option>'
|
2024-01-17 19:02:09 -06:00
|
|
|
this.theme_button.innerHTML += '<option value=\"boysenberry\">Boysenberry</option>'
|
2024-01-17 19:04:20 -06:00
|
|
|
this.theme_button.innerHTML += '<option value=\"coal\">Coal</option>'
|
2024-01-17 19:06:41 -06:00
|
|
|
this.theme_button.innerHTML += '<option value=\"cobalt\">Cobalt</option>'
|
2024-01-17 19:14:59 -06:00
|
|
|
this.theme_button.innerHTML += '<option value=\"commodore\">Commodore</option>'
|
2024-01-17 19:16:49 -06:00
|
|
|
this.theme_button.innerHTML += '<option value=\"forestlawn\">Forest Lawn</option>'
|
2024-01-17 19:33:28 -06:00
|
|
|
this.theme_button.innerHTML += '<option value=\"frameio\">Frame.io</option>'
|
2023-12-31 16:29:17 -06:00
|
|
|
this.theme_button.innerHTML += '<option value=\"gameboy\">Game Boy</option>'
|
2024-03-31 14:54:15 -05:00
|
|
|
this.theme_button.innerHTML += '<option value=\"garden\">Garden</option>'
|
2024-10-10 11:20:23 -05:00
|
|
|
this.theme_button.innerHTML += '<option value=\"gotham\">Gotham</option>'
|
2024-10-10 11:20:42 -05:00
|
|
|
this.theme_button.innerHTML += '<option value=\"haxe\">Haxe</option>'
|
2024-10-10 11:21:08 -05:00
|
|
|
this.theme_button.innerHTML += '<option value=\"isotope\">Isotope</option>'
|
2024-10-10 11:21:25 -05:00
|
|
|
this.theme_button.innerHTML += '<option value=\"kawaii\">Kawaii</option>'
|
2024-10-13 20:48:55 -05:00
|
|
|
this.theme_button.innerHTML += '<option value=\"laundry\">Laundry</option>'
|
2024-10-13 20:49:17 -05:00
|
|
|
this.theme_button.innerHTML += '<option value=\"lotus\">Lotus</option>'
|
2024-10-13 20:49:36 -05:00
|
|
|
this.theme_button.innerHTML += '<option value=\"mahou\">Mahou</option>'
|
2024-10-13 20:49:59 -05:00
|
|
|
this.theme_button.innerHTML += '<option value=\"marble\">Marble</option>'
|
2024-10-13 20:50:28 -05:00
|
|
|
this.theme_button.innerHTML += '<option value=\"murata\">Murata</option>'
|
2024-10-13 20:51:56 -05:00
|
|
|
this.theme_button.innerHTML += '<option value=\"muzieca\">Muzieca</option>'
|
2023-12-31 16:29:17 -06:00
|
|
|
this.theme_button.innerHTML += '<option value=\"nightowl\">Night Owl</option>'
|
2024-10-13 20:52:27 -05:00
|
|
|
this.theme_button.innerHTML += '<option value=\"ninetynine\">Ninety Nine</option>'
|
2024-10-13 20:52:49 -05:00
|
|
|
this.theme_button.innerHTML += '<option value=\"noir\">Noir</option>'
|
2024-10-13 20:53:06 -05:00
|
|
|
this.theme_button.innerHTML += '<option value=\"nord\">Nord</option>'
|
2024-10-13 20:53:40 -05:00
|
|
|
this.theme_button.innerHTML += '<option value=\"obsidian\">Obsidian</option>'
|
2025-11-29 23:12:47 -06:00
|
|
|
this.theme_button.innerHTML += '<option value=\"op-1\">Op-1</option>'
|
2025-11-29 23:16:06 -06:00
|
|
|
this.theme_button.innerHTML += '<option value=\"orca">Orca</option>'
|
2025-12-07 21:12:09 -06:00
|
|
|
this.theme_button.innerHTML += '<option value=\"pawbin">Pawbin</option>'
|
2025-12-07 21:16:49 -06:00
|
|
|
this.theme_button.innerHTML += '<option value=\"pico8">PICO-8</option>'
|
2023-12-31 17:00:33 -06:00
|
|
|
this.theme_button.innerHTML += '<option value=\"roguelite\">Roguelite</option>'
|
|
|
|
|
this.theme_button.innerHTML += '<option value=\"tape\">Tape</option>'
|
2023-12-31 16:29:17 -06:00
|
|
|
this.theme_button.addEventListener('mousedown', () => { donsol.player.change_theme(this.theme_button.value) })
|
2023-12-31 16:39:20 -06:00
|
|
|
this.theme_button.addEventListener('change', () => { donsol.player.change_theme(this.theme_button.value) })
|
2023-12-31 16:29:17 -06:00
|
|
|
|
|
|
|
|
this.element.appendChild(this.theme_button)
|
|
|
|
|
|
|
|
|
|
return this.element
|
|
|
|
|
}
|
|
|
|
|
}
|