Skip to content

Commit 0b1c0b2

Browse files
authored
internetradio: refactor (#507)
1 parent c96bdd5 commit 0b1c0b2

File tree

12 files changed

+1042
-502
lines changed

12 files changed

+1042
-502
lines changed

[gameplay]/internetradio/client.lua

Lines changed: 0 additions & 353 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
-- #######################################
2+
-- ## Project: Internet radio ##
3+
-- ## Authors: MTA contributors ##
4+
-- ## Version: 1.0 ##
5+
-- #######################################
6+
7+
RADIO_TRACK_SCALE = 1
8+
RADIO_TRACK_FONT = "default-bold"
9+
RADIO_TRACK_COLOR = tocolor(150, 50, 150, 255)
10+
RADIO_TRACK_BACKGROUND_COLOR = tocolor(0, 0, 0, 255)
11+
12+
RADIO_TOGGLE_KEY = "F3"
13+
RADIO_SHOW_ON_START = true
14+
RADIO_COMMANDS = {"sound", "music", "musica", "song", "radio", "speaker"}
15+
RADIO_SETTINGS_PATH = "settings.json"
16+
17+
RADIO_SETTINGS_TEMPLATE = {
18+
["allowRemoteSpeakers"] = {
19+
defaultsTo = true,
20+
dataType = {
21+
["boolean"] = true,
22+
},
23+
},
24+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-- #######################################
2+
-- ## Project: Internet radio ##
3+
-- ## Authors: MTA contributors ##
4+
-- ## Version: 1.0 ##
5+
-- #######################################
6+
7+
RADIO_BOX_MODEL = 2229

0 commit comments

Comments
 (0)