Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 47c4b7d

Browse files
Merge pull request #507 from 3djc/480x320
feat: add 480x320 support
2 parents de29b66 + a999c65 commit 47c4b7d

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

‎src/SCRIPTS/BF/TEMPLATES/480x320.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
return {
2+
margin = 5,
3+
indent = 15,
4+
lineSpacing = 22,
5+
listSpacing = { line = 20, field = 170 },
6+
tableSpacing = { row = 25, col = 60, header = 20 },
7+
}

‎src/SCRIPTS/BF/radios.lua

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,35 @@ local supportedRadios =
109109
}
110110
},
111111
},
112-
["320x480"] =
112+
["480x320"] =
113+
{
114+
msp = {
115+
template = "TEMPLATES/480x320.lua",
116+
highRes = true,
117+
MenuBox = { x=120, y=100, w=200, x_offset=68, h_line=20, h_offset=6 },
118+
SaveBox = { x=120, y=100, w=180, x_offset=12, h=60, h_offset=12 },
119+
NoTelem = { 192, LCD_H - 28, "No Telemetry", (TEXT_COLOR or 0) + INVERS + BLINK },
120+
textSize = 0,
121+
yMinLimit = 35,
122+
yMaxLimit = 280,
123+
},
124+
cms = {
125+
rows = 9,
126+
cols = 32,
127+
pixelsPerRow = 24,
128+
pixelsPerChar = 14,
129+
xIndent = 14,
130+
yOffset = 32,
131+
textSize = MIDSIZE,
132+
refresh = {
133+
event = EVT_VIRTUAL_ENTER,
134+
text = "Refresh: [ENT]",
135+
top = 1,
136+
left = 300,
137+
}
138+
},
139+
},
140+
["320x480"] =
113141
{
114142
msp = {
115143
template = "TEMPLATES/320x480.lua",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /